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

***************************
create_contact_flow_version
***************************



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

  

  Publishes a new version of the flow provided. Versions are immutable and monotonically increasing. If the ``FlowContentSha256`` provided is different from the ``FlowContentSha256`` of the ``$LATEST`` published flow content, then an error is returned. This API only supports creating versions for flows of type ``Campaign``.

  

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


  **Request Syntax**
  ::

    response = client.create_contact_flow_version(
        InstanceId='string',
        Description='string',
        ContactFlowId='string',
        FlowContentSha256='string',
        ContactFlowVersion=123,
        LastModifiedTime=datetime(2015, 1, 1),
        LastModifiedRegion='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance.

    

  
  :type Description: string
  :param Description: 

    The description of the flow version.

    

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

    The identifier of the flow.

    

  
  :type FlowContentSha256: string
  :param FlowContentSha256: 

    Indicates the checksum value of the flow content.

    

  
  :type ContactFlowVersion: integer
  :param ContactFlowVersion: 

    The identifier of the flow version.

    

  
  :type LastModifiedTime: datetime
  :param LastModifiedTime: 

    The Amazon Web Services Region where this resource was last modified.

    

  
  :type LastModifiedRegion: string
  :param LastModifiedRegion: 

    The Amazon Web Services Region where this resource was last modified.

    

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

    
    ::

      {
          'ContactFlowArn': 'string',
          'Version': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ContactFlowArn** *(string) --* 

        The Amazon Resource Name (ARN) of the flow.

        
      

      - **Version** *(integer) --* 

        The identifier of the flow version.

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

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

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

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

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

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

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

  