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

**********************************
list_security_profile_flow_modules
**********************************



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

  

  A list of Flow Modules an AI Agent can invoke as a tool

  

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


  **Request Syntax**
  ::

    response = client.list_security_profile_flow_modules(
        SecurityProfileId='string',
        InstanceId='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type SecurityProfileId: string
  :param SecurityProfileId: **[REQUIRED]** 

    The identifier for the security profile.

    

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

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  :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**

    
    ::

      {
          'AllowedFlowModules': [
              {
                  'Type': 'MCP',
                  'FlowModuleId': 'string'
              },
          ],
          'NextToken': 'string',
          'LastModifiedTime': datetime(2015, 1, 1),
          'LastModifiedRegion': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AllowedFlowModules** *(list) --* 

        A list of Flow Modules an AI Agent can invoke as a tool.

        
        

        - *(dict) --* 

          A list of Flow Modules an AI Agent can invoke as a tool

          
          

          - **Type** *(string) --* 

            Only Type we support is MCP.

            
          

          - **FlowModuleId** *(string) --* 

            If of Flow Modules invocable as tool

            
      
    
      

      - **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.

        
      

      - **LastModifiedTime** *(datetime) --* 

        The time the flow module was last modified.

        
      

      - **LastModifiedRegion** *(string) --* 

        The Region that flow module was last modified in.

        
  
  **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`

  