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

**************************
create_contact_flow_module
**************************



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

  

  Creates a flow module for the specified Amazon Connect instance.

  

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


  **Request Syntax**
  ::

    response = client.create_contact_flow_module(
        InstanceId='string',
        Name='string',
        Description='string',
        Content='string',
        Tags={
            'string': 'string'
        },
        ClientToken='string',
        Settings='string',
        ExternalInvocationConfiguration={
            'Enabled': True|False
        }
    )
    
  :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 Name: string
  :param Name: **[REQUIRED]** 

    The name of the flow module.

    

  
  :type Description: string
  :param Description: 

    The description of the flow module.

    

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

    The JSON string that represents the content of the flow. For an example, see `Example flow in Amazon Connect Flow language <https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html>`__.

    

  
  :type Tags: dict
  :param Tags: 

    The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type ClientToken: string
  :param ClientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see `Making retries safe with idempotent APIs <https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/>`__.

    This field is autopopulated if not provided.

  
  :type Settings: string
  :param Settings: 

    The configuration settings for the flow module.

    

  
  :type ExternalInvocationConfiguration: dict
  :param ExternalInvocationConfiguration: 

    The external invocation configuration for the flow module.

    

  
    - **Enabled** *(boolean) --* 

      Enable external invocation.

      

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

    
    ::

      {
          'Id': 'string',
          'Arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The identifier of the flow module.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the flow module.

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

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

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

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

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

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

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

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

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

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

  