AWS Marketplace Catalog Service

2020/10/06 - AWS Marketplace Catalog Service - 2 updated api methods

Changes  AWS Marketplace Catalog now supports FailureCode for change workflows to help differentiate client errors and server faults.

DescribeChangeSet (updated) Link ¶
Changes (response)
{'FailureCode': 'CLIENT_ERROR | SERVER_FAULT'}

Provides information about a given change set.

See also: AWS API Documentation

Request Syntax

client.describe_change_set(
    Catalog='string',
    ChangeSetId='string'
)
type Catalog

string

param Catalog

[REQUIRED]

Required. The catalog related to the request. Fixed value: AWSMarketplace

type ChangeSetId

string

param ChangeSetId

[REQUIRED]

Required. The unique identifier for the StartChangeSet request that you want to describe the details for.

rtype

dict

returns

Response Syntax

{
    'ChangeSetId': 'string',
    'ChangeSetArn': 'string',
    'ChangeSetName': 'string',
    'StartTime': 'string',
    'EndTime': 'string',
    'Status': 'PREPARING'|'APPLYING'|'SUCCEEDED'|'CANCELLED'|'FAILED',
    'FailureCode': 'CLIENT_ERROR'|'SERVER_FAULT',
    'FailureDescription': 'string',
    'ChangeSet': [
        {
            'ChangeType': 'string',
            'Entity': {
                'Type': 'string',
                'Identifier': 'string'
            },
            'Details': 'string',
            'ErrorDetailList': [
                {
                    'ErrorCode': 'string',
                    'ErrorMessage': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • ChangeSetId (string) --

      Required. The unique identifier for the change set referenced in this request.

    • ChangeSetArn (string) --

      The ARN associated with the unique identifier for the change set referenced in this request.

    • ChangeSetName (string) --

      The optional name provided in the StartChangeSet request. If you do not provide a name, one is set by default.

    • StartTime (string) --

      The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started.

    • EndTime (string) --

      The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request transitioned to a terminal state. The change cannot transition to a different state. Null if the request is not in a terminal state.

    • Status (string) --

      The status of the change request.

    • FailureCode (string) --

      Returned if the change set is in FAILED status. Can be either CLIENT_ERROR , which means that there are issues with the request (see the ErrorDetailList ), or SERVER_FAULT , which means that there is a problem in the system, and you should retry your request.

    • FailureDescription (string) --

      Returned if there is a failure on the change set, but that failure is not related to any of the changes in the request.

    • ChangeSet (list) --

      An array of ChangeSummary objects.

      • (dict) --

        This object is a container for common summary information about the change. The summary doesn't contain the whole change structure.

        • ChangeType (string) --

          The type of the change.

        • Entity (dict) --

          The entity to be changed.

          • Type (string) --

            The type of entity.

          • Identifier (string) --

            The identifier for the entity.

        • Details (string) --

          This object contains details specific to the change type of the requested change.

        • ErrorDetailList (list) --

          An array of ErrorDetail objects associated with the change.

          • (dict) --

            Details about the error.

            • ErrorCode (string) --

              The error code that identifies the type of error.

            • ErrorMessage (string) --

              The message for the error.

ListChangeSets (updated) Link ¶
Changes (response)
{'ChangeSetSummaryList': {'FailureCode': 'CLIENT_ERROR | SERVER_FAULT'}}

Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId , ChangeSetName , and status. If you provide more than one filter, the API operation applies a logical AND between the filters.

You can describe a change during the 60-day request history retention period for API calls.

See also: AWS API Documentation

Request Syntax

client.list_change_sets(
    Catalog='string',
    FilterList=[
        {
            'Name': 'string',
            'ValueList': [
                'string',
            ]
        },
    ],
    Sort={
        'SortBy': 'string',
        'SortOrder': 'ASCENDING'|'DESCENDING'
    },
    MaxResults=123,
    NextToken='string'
)
type Catalog

string

param Catalog

[REQUIRED]

The catalog related to the request. Fixed value: AWSMarketplace

type FilterList

list

param FilterList

An array of filter objects.

  • (dict) --

    A filter object, used to optionally filter results from calls to the ListEntities and ListChangeSets actions.

    • Name (string) --

      For ListEntities , the supported value for this is an EntityId .

      For ListChangeSets , the supported values are as follows:

    • ValueList (list) --

      ListEntities - This is a list of unique EntityId s.

      ListChangeSets - The supported filter names and associated ValueList s is as follows:

      • ChangeSetName - The supported ValueList is a list of non-unique ChangeSetName s. These are defined when you call the StartChangeSet action.

      • Status - The supported ValueList is a list of statuses for all change set requests.

      • EntityId - The supported ValueList is a list of unique EntityId s.

      • BeforeStartTime - The supported ValueList is a list of all change sets that started before the filter value.

      • AfterStartTime - The supported ValueList is a list of all change sets that started after the filter value.

      • BeforeEndTime - The supported ValueList is a list of all change sets that ended before the filter value.

      • AfterEndTime - The supported ValueList is a list of all change sets that ended after the filter value.

      • (string) --

type Sort

dict

param Sort

An object that contains two attributes, SortBy and SortOrder .

  • SortBy (string) --

    For ListEntities , supported attributes include LastModifiedDate (default), Visibility , EntityId , and Name .

    For ListChangeSets , supported attributes include StartTime and EndTime .

  • SortOrder (string) --

    The sorting order. Can be ASCENDING or DESCENDING . The default value is DESCENDING .

type MaxResults

integer

param MaxResults

The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.

type NextToken

string

param NextToken

The token value retrieved from a previous call to access the next page of results.

rtype

dict

returns

Response Syntax

{
    'ChangeSetSummaryList': [
        {
            'ChangeSetId': 'string',
            'ChangeSetArn': 'string',
            'ChangeSetName': 'string',
            'StartTime': 'string',
            'EndTime': 'string',
            'Status': 'PREPARING'|'APPLYING'|'SUCCEEDED'|'CANCELLED'|'FAILED',
            'EntityIdList': [
                'string',
            ],
            'FailureCode': 'CLIENT_ERROR'|'SERVER_FAULT'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ChangeSetSummaryList (list) --

      Array of ChangeSetSummaryListItem objects.

      • (dict) --

        A summary of a change set returned in a list of change sets when the ListChangeSets action is called.

        • ChangeSetId (string) --

          The unique identifier for a change set.

        • ChangeSetArn (string) --

          The ARN associated with the unique identifier for the change set referenced in this request.

        • ChangeSetName (string) --

          The non-unique name for the change set.

        • StartTime (string) --

          The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was started.

        • EndTime (string) --

          The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was finished.

        • Status (string) --

          The current status of the change set.

        • EntityIdList (list) --

          This object is a list of entity IDs (string) that are a part of a change set. The entity ID list is a maximum of 20 entities. It must contain at least one entity.

          • (string) --

        • FailureCode (string) --

          Returned if the change set is in FAILED status. Can be either CLIENT_ERROR , which means that there are issues with the request (see the ErrorDetailList of DescribeChangeSet ), or SERVER_FAULT , which means that there is a problem in the system, and you should retry your request.

    • NextToken (string) --

      The value of the next token, if it exists. Null if there are no more results.