Connect / Client / create_contact_flow_version

create_contact_flow_version#

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

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'
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Amazon Connect instance.

  • Description (string) – The description of the flow version.

  • ContactFlowId (string) –

    [REQUIRED]

    The identifier of the flow.

  • FlowContentSha256 (string) – Indicates the checksum value of the flow content.

  • ContactFlowVersion (integer) – The identifier of the flow version.

  • LastModifiedTime (datetime) – The Amazon Web Services Region where this resource was last modified.

  • LastModifiedRegion (string) – The Amazon Web Services Region where this resource was last modified.

Return type:

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