:doc:`CodeGuruProfiler <../../codeguruprofiler>` / Client / post_agent_profile

******************
post_agent_profile
******************



.. py:method:: CodeGuruProfiler.Client.post_agent_profile(**kwargs)

  

  Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is created with this profiling data, use `GetProfile <https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_GetProfile.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PostAgentProfile>`_  


  **Request Syntax**
  ::

    response = client.post_agent_profile(
        agentProfile=b'bytes'|file,
        contentType='string',
        profileToken='string',
        profilingGroupName='string'
    )
    
  :type agentProfile: bytes or seekable file-like object
  :param agentProfile: **[REQUIRED]** 

    The submitted profiling data.

    

  
  :type contentType: string
  :param contentType: **[REQUIRED]** 

    The format of the submitted profiling data. The format maps to the ``Accept`` and ``Content-Type`` headers of the HTTP request. You can specify one of the following: or the default .

     `` <ul> <li> <p> <code>application/json</code> — standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> — the Amazon Ion data format. For more information, see <a href="http://amzn.github.io/ion-docs/">Amazon Ion</a>. </p> </li> </ul>``

  
  :type profileToken: string
  :param profileToken: 

    Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.

    This field is autopopulated if not provided.

  
  :type profilingGroupName: string
  :param profilingGroupName: **[REQUIRED]** 

    The name of the profiling group with the aggregated profile that receives the submitted profiling data.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The structure representing the postAgentProfileResponse.

      
  
  **Exceptions**
  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.InternalServerException`

  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.ValidationException`

  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.ResourceNotFoundException`

  