Connect / Client / create_view_version

create_view_version#

Connect.Client.create_view_version(**kwargs)#

Publishes a new version of the view identifier.

Versions are immutable and monotonically increasing.

It returns the highest version if there is no change in content compared to that version. An error is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of the $LATEST alias.

See also: AWS API Documentation

Request Syntax

response = client.create_view_version(
    InstanceId='string',
    ViewId='string',
    VersionDescription='string',
    ViewContentSha256='string'
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • ViewId (string) –

    [REQUIRED]

    The identifier of the view. Both ViewArn and ViewId can be used.

  • VersionDescription (string) – The description for the version being published.

  • ViewContentSha256 (string) – Indicates the checksum value of the latest published view content.

Return type:

dict

Returns:

Response Syntax

{
    'View': {
        'Id': 'string',
        'Arn': 'string',
        'Name': 'string',
        'Status': 'PUBLISHED'|'SAVED',
        'Type': 'CUSTOMER_MANAGED'|'AWS_MANAGED',
        'Description': 'string',
        'Version': 123,
        'VersionDescription': 'string',
        'Content': {
            'InputSchema': 'string',
            'Template': 'string',
            'Actions': [
                'string',
            ]
        },
        'Tags': {
            'string': 'string'
        },
        'CreatedTime': datetime(2015, 1, 1),
        'LastModifiedTime': datetime(2015, 1, 1),
        'ViewContentSha256': 'string'
    }
}

Response Structure

  • (dict) –

    • View (dict) –

      All view data is contained within the View object.

      • Id (string) –

        The identifier of the view.

      • Arn (string) –

        The Amazon Resource Name (ARN) of the view.

      • Name (string) –

        The name of the view.

      • Status (string) –

        Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

      • Type (string) –

        The type of the view - CUSTOMER_MANAGED.

      • Description (string) –

        The description of the view.

      • Version (integer) –

        Current version of the view.

      • VersionDescription (string) –

        The description of the version.

      • Content (dict) –

        View content containing all content necessary to render a view except for runtime input data.

        • InputSchema (string) –

          The data schema matching data that the view template must be provided to render.

        • Template (string) –

          The view template representing the structure of the view.

        • Actions (list) –

          A list of possible actions from the view.

          • (string) –

      • Tags (dict) –

        The tags associated with the view resource (not specific to view version).

        • (string) –

          • (string) –

      • CreatedTime (datetime) –

        The timestamp of when the view was created.

      • LastModifiedTime (datetime) –

        Latest timestamp of the UpdateViewContent or CreateViewVersion operations.

      • ViewContentSha256 (string) –

        Indicates the checksum value of the latest published view content.

Exceptions