:doc:`Connect <../../connect>` / Client / list_entity_security_profiles

*****************************
list_entity_security_profiles
*****************************



.. py:method:: Connect.Client.list_entity_security_profiles(**kwargs)

  

  Lists all security profiles attached to a Q in Connect AIAgent Entity in an Amazon Connect instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListEntitySecurityProfiles>`_  


  **Request Syntax**
  ::

    response = client.list_entity_security_profiles(
        InstanceId='string',
        EntityType='USER'|'AI_AGENT',
        EntityArn='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

    

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

    Only supported type is AI_AGENT.

    

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

    ARN of a Q in Connect AI Agent.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return per page. The default MaxResult size is 100.

    

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

    
    ::

      {
          'SecurityProfiles': [
              {
                  'Id': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SecurityProfiles** *(list) --* 

        List of Security Profile Object.

        
        

        - *(dict) --* 

          Security profile items.

          
          

          - **Id** *(string) --* 

            Id of a security profile item.

            
      
    
      

      - **NextToken** *(string) --* 

        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  