Amazon AppConfig

2022/07/13 - Amazon AppConfig - 10 new 3 updated api methods

Changes  Adding Create, Get, Update, Delete, and List APIs for new two new resources: Extensions and ExtensionAssociations.

CreateExtensionAssociation (new) Link ¶

When you create an extension or configure an Amazon Web Services-authored extension, you associate the extension with an AppConfig application, environment, or configuration profile. For example, you can choose to run the AppConfig deployment events to Amazon SNS Amazon Web Services-authored extension and receive notifications on an Amazon SNS topic anytime a configuration deployment is started for a specific application. Defining which extension to associate with an AppConfig resource is called an extension association . An extension association is a specified relationship between an extension and an AppConfig resource, such as an application or a configuration profile. For more information about extensions and associations, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.create_extension_association(
    ExtensionIdentifier='string',
    ExtensionVersionNumber=123,
    ResourceIdentifier='string',
    Parameters={
        'string': 'string'
    },
    Tags={
        'string': 'string'
    }
)
type ExtensionIdentifier

string

param ExtensionIdentifier

[REQUIRED]

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

type ExtensionVersionNumber

integer

param ExtensionVersionNumber

The version number of the extension. If not specified, AppConfig uses the maximum version of the extension.

type ResourceIdentifier

string

param ResourceIdentifier

[REQUIRED]

The ARN of an application, configuration profile, or environment.

type Parameters

dict

param Parameters

The parameter names and values defined in the extensions. Extension parameters marked Required must be entered for this field.

  • (string) --

    • (string) --

type Tags

dict

param Tags

Adds one or more tags for the specified extension association. Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'ExtensionArn': 'string',
    'ResourceArn': 'string',
    'Arn': 'string',
    'Parameters': {
        'string': 'string'
    },
    'ExtensionVersionNumber': 123
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID for the association.

    • ExtensionArn (string) --

      The ARN of the extension defined in the association.

    • ResourceArn (string) --

      The ARNs of applications, configuration profiles, or environments defined in the association.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Parameters (dict) --

      The parameter names and values defined in the association.

      • (string) --

        • (string) --

    • ExtensionVersionNumber (integer) --

      The version number for the extension defined in the association.

GetExtensionAssociation (new) Link ¶

Returns information about an AppConfig extension association. For more information about extensions and associations, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.get_extension_association(
    ExtensionAssociationId='string'
)
type ExtensionAssociationId

string

param ExtensionAssociationId

[REQUIRED]

The extension association ID to get.

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'ExtensionArn': 'string',
    'ResourceArn': 'string',
    'Arn': 'string',
    'Parameters': {
        'string': 'string'
    },
    'ExtensionVersionNumber': 123
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID for the association.

    • ExtensionArn (string) --

      The ARN of the extension defined in the association.

    • ResourceArn (string) --

      The ARNs of applications, configuration profiles, or environments defined in the association.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Parameters (dict) --

      The parameter names and values defined in the association.

      • (string) --

        • (string) --

    • ExtensionVersionNumber (integer) --

      The version number for the extension defined in the association.

UpdateExtensionAssociation (new) Link ¶

Updates an association. For more information about extensions and associations, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.update_extension_association(
    ExtensionAssociationId='string',
    Parameters={
        'string': 'string'
    }
)
type ExtensionAssociationId

string

param ExtensionAssociationId

[REQUIRED]

The system-generated ID for the association.

type Parameters

dict

param Parameters

The parameter names and values defined in the extension.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'ExtensionArn': 'string',
    'ResourceArn': 'string',
    'Arn': 'string',
    'Parameters': {
        'string': 'string'
    },
    'ExtensionVersionNumber': 123
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID for the association.

    • ExtensionArn (string) --

      The ARN of the extension defined in the association.

    • ResourceArn (string) --

      The ARNs of applications, configuration profiles, or environments defined in the association.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Parameters (dict) --

      The parameter names and values defined in the association.

      • (string) --

        • (string) --

    • ExtensionVersionNumber (integer) --

      The version number for the extension defined in the association.

UpdateExtension (new) Link ¶

Updates an AppConfig extension. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.update_extension(
    ExtensionIdentifier='string',
    Description='string',
    Actions={
        'string': [
            {
                'Name': 'string',
                'Description': 'string',
                'Uri': 'string',
                'RoleArn': 'string'
            },
        ]
    },
    Parameters={
        'string': {
            'Description': 'string',
            'Required': True|False
        }
    },
    VersionNumber=123
)
type ExtensionIdentifier

string

param ExtensionIdentifier

[REQUIRED]

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

type Description

string

param Description

Information about the extension.

type Actions

dict

param Actions

The actions defined in the extension.

  • (string) --

    • (list) --

      • (dict) --

        An action defines the tasks the extension performs during the AppConfig workflow. Each action includes an action point such as ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name, URI, and ARN for each action point defined in the extension. You can specify the following actions for an extension:

        • PRE_CREATE_HOSTED_CONFIGURATION_VERSION

        • PRE_START_DEPLOYMENT

        • ON_DEPLOYMENT_START

        • ON_DEPLOYMENT_STEP

        • ON_DEPLOYMENT_BAKING

        • ON_DEPLOYMENT_COMPLETE

        • ON_DEPLOYMENT_ROLLED_BACK

        • Name (string) --

          The action name.

        • Description (string) --

          Information about the action.

        • Uri (string) --

          The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

        • RoleArn (string) --

          An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

type Parameters

dict

param Parameters

One or more parameters for the actions called by the extension.

  • (string) --

    • (dict) --

      A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

      • Description (string) --

        Information about the parameter.

      • Required (boolean) --

        A parameter value must be specified in the extension association.

type VersionNumber

integer

param VersionNumber

The extension version number.

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'VersionNumber': 123,
    'Arn': 'string',
    'Description': 'string',
    'Actions': {
        'string': [
            {
                'Name': 'string',
                'Description': 'string',
                'Uri': 'string',
                'RoleArn': 'string'
            },
        ]
    },
    'Parameters': {
        'string': {
            'Description': 'string',
            'Required': True|False
        }
    }
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID of the extension.

    • Name (string) --

      The extension name.

    • VersionNumber (integer) --

      The extension version number.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Description (string) --

      Information about the extension.

    • Actions (dict) --

      The actions defined in the extension.

      • (string) --

        • (list) --

          • (dict) --

            An action defines the tasks the extension performs during the AppConfig workflow. Each action includes an action point such as ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name, URI, and ARN for each action point defined in the extension. You can specify the following actions for an extension:

            • PRE_CREATE_HOSTED_CONFIGURATION_VERSION

            • PRE_START_DEPLOYMENT

            • ON_DEPLOYMENT_START

            • ON_DEPLOYMENT_STEP

            • ON_DEPLOYMENT_BAKING

            • ON_DEPLOYMENT_COMPLETE

            • ON_DEPLOYMENT_ROLLED_BACK

            • Name (string) --

              The action name.

            • Description (string) --

              Information about the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

    • Parameters (dict) --

      The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

      • (string) --

        • (dict) --

          A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

          • Description (string) --

            Information about the parameter.

          • Required (boolean) --

            A parameter value must be specified in the extension association.

ListExtensionAssociations (new) Link ¶

Lists all AppConfig extension associations in the account. For more information about extensions and associations, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.list_extension_associations(
    ResourceIdentifier='string',
    ExtensionIdentifier='string',
    ExtensionVersionNumber=123,
    MaxResults=123,
    NextToken='string'
)
type ResourceIdentifier

string

param ResourceIdentifier

The ARN of an application, configuration profile, or environment.

type ExtensionIdentifier

string

param ExtensionIdentifier

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

type ExtensionVersionNumber

integer

param ExtensionVersionNumber

The version number for the extension defined in the association.

type MaxResults

integer

param MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

type NextToken

string

param NextToken

A token to start the list. Use this token to get the next set of results or pass null to get the first set of results.

rtype

dict

returns

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'ExtensionArn': 'string',
            'ResourceArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The list of extension associations. Each item represents an extension association to an application, environment, or configuration profile.

      • (dict) --

        Information about an association between an extension and an AppConfig resource such as an application, environment, or configuration profile. Call GetExtensionAssociation to get more information about an association.

        • Id (string) --

          The extension association ID. This ID is used to call other ExtensionAssociation API actions such as GetExtensionAssociation or DeleteExtensionAssociation .

        • ExtensionArn (string) --

          The system-generated Amazon Resource Name (ARN) for the extension.

        • ResourceArn (string) --

          The ARNs of applications, configuration profiles, or environments defined in the association.

    • NextToken (string) --

      The token for the next set of items to return. Use this token to get the next set of results.

DeleteExtensionAssociation (new) Link ¶

Deletes an extension association. This action doesn't delete extensions defined in the association.

See also: AWS API Documentation

Request Syntax

client.delete_extension_association(
    ExtensionAssociationId='string'
)
type ExtensionAssociationId

string

param ExtensionAssociationId

[REQUIRED]

The ID of the extension association to delete.

returns

None

CreateExtension (new) Link ¶

Creates an AppConfig extension. An extension augments your ability to inject logic or behavior at different points during the AppConfig workflow of creating or deploying a configuration.

You can create your own extensions or use the Amazon Web Services-authored extensions provided by AppConfig. For most use-cases, to create your own extension, you must create an Lambda function to perform any computation and processing defined in the extension. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.create_extension(
    Name='string',
    Description='string',
    Actions={
        'string': [
            {
                'Name': 'string',
                'Description': 'string',
                'Uri': 'string',
                'RoleArn': 'string'
            },
        ]
    },
    Parameters={
        'string': {
            'Description': 'string',
            'Required': True|False
        }
    },
    Tags={
        'string': 'string'
    },
    LatestVersionNumber=123
)
type Name

string

param Name

[REQUIRED]

A name for the extension. Each extension name in your account must be unique. Extension versions use the same name.

type Description

string

param Description

Information about the extension.

type Actions

dict

param Actions

[REQUIRED]

The actions defined in the extension.

  • (string) --

    • (list) --

      • (dict) --

        An action defines the tasks the extension performs during the AppConfig workflow. Each action includes an action point such as ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name, URI, and ARN for each action point defined in the extension. You can specify the following actions for an extension:

        • PRE_CREATE_HOSTED_CONFIGURATION_VERSION

        • PRE_START_DEPLOYMENT

        • ON_DEPLOYMENT_START

        • ON_DEPLOYMENT_STEP

        • ON_DEPLOYMENT_BAKING

        • ON_DEPLOYMENT_COMPLETE

        • ON_DEPLOYMENT_ROLLED_BACK

        • Name (string) --

          The action name.

        • Description (string) --

          Information about the action.

        • Uri (string) --

          The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

        • RoleArn (string) --

          An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

type Parameters

dict

param Parameters

The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

  • (string) --

    • (dict) --

      A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

      • Description (string) --

        Information about the parameter.

      • Required (boolean) --

        A parameter value must be specified in the extension association.

type Tags

dict

param Tags

Adds one or more tags for the specified extension. Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.

  • (string) --

    • (string) --

type LatestVersionNumber

integer

param LatestVersionNumber

You can omit this field when you create an extension. When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'VersionNumber': 123,
    'Arn': 'string',
    'Description': 'string',
    'Actions': {
        'string': [
            {
                'Name': 'string',
                'Description': 'string',
                'Uri': 'string',
                'RoleArn': 'string'
            },
        ]
    },
    'Parameters': {
        'string': {
            'Description': 'string',
            'Required': True|False
        }
    }
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID of the extension.

    • Name (string) --

      The extension name.

    • VersionNumber (integer) --

      The extension version number.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Description (string) --

      Information about the extension.

    • Actions (dict) --

      The actions defined in the extension.

      • (string) --

        • (list) --

          • (dict) --

            An action defines the tasks the extension performs during the AppConfig workflow. Each action includes an action point such as ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name, URI, and ARN for each action point defined in the extension. You can specify the following actions for an extension:

            • PRE_CREATE_HOSTED_CONFIGURATION_VERSION

            • PRE_START_DEPLOYMENT

            • ON_DEPLOYMENT_START

            • ON_DEPLOYMENT_STEP

            • ON_DEPLOYMENT_BAKING

            • ON_DEPLOYMENT_COMPLETE

            • ON_DEPLOYMENT_ROLLED_BACK

            • Name (string) --

              The action name.

            • Description (string) --

              Information about the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

    • Parameters (dict) --

      The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

      • (string) --

        • (dict) --

          A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

          • Description (string) --

            Information about the parameter.

          • Required (boolean) --

            A parameter value must be specified in the extension association.

ListExtensions (new) Link ¶

Lists all custom and Amazon Web Services-authored AppConfig extensions in the account. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

See also: AWS API Documentation

Request Syntax

client.list_extensions(
    MaxResults=123,
    NextToken='string',
    Name='string'
)
type MaxResults

integer

param MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

type NextToken

string

param NextToken

A token to start the list. Use this token to get the next set of results.

type Name

string

param Name

The extension name.

rtype

dict

returns

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'Name': 'string',
            'VersionNumber': 123,
            'Arn': 'string',
            'Description': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The list of available extensions. The list includes Amazon Web Services-authored and user-created extensions.

      • (dict) --

        Information about an extension. Call GetExtension to get more information about an extension.

        • Id (string) --

          The system-generated ID of the extension.

        • Name (string) --

          The extension name.

        • VersionNumber (integer) --

          The extension version number.

        • Arn (string) --

          The system-generated Amazon Resource Name (ARN) for the extension.

        • Description (string) --

          Information about the extension.

    • NextToken (string) --

      The token for the next set of items to return. Use this token to get the next set of results.

DeleteExtension (new) Link ¶

Deletes an AppConfig extension. You must delete all associations to an extension before you delete the extension.

See also: AWS API Documentation

Request Syntax

client.delete_extension(
    ExtensionIdentifier='string',
    VersionNumber=123
)
type ExtensionIdentifier

string

param ExtensionIdentifier

[REQUIRED]

The name, ID, or Amazon Resource Name (ARN) of the extension you want to delete.

type VersionNumber

integer

param VersionNumber

A specific version of an extension to delete. If omitted, the highest version is deleted.

returns

None

GetExtension (new) Link ¶

Returns information about an AppConfig extension.

See also: AWS API Documentation

Request Syntax

client.get_extension(
    ExtensionIdentifier='string',
    VersionNumber=123
)
type ExtensionIdentifier

string

param ExtensionIdentifier

[REQUIRED]

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

type VersionNumber

integer

param VersionNumber

The extension version number. If no version number was defined, AppConfig uses the highest version.

rtype

dict

returns

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'VersionNumber': 123,
    'Arn': 'string',
    'Description': 'string',
    'Actions': {
        'string': [
            {
                'Name': 'string',
                'Description': 'string',
                'Uri': 'string',
                'RoleArn': 'string'
            },
        ]
    },
    'Parameters': {
        'string': {
            'Description': 'string',
            'Required': True|False
        }
    }
}

Response Structure

  • (dict) --

    • Id (string) --

      The system-generated ID of the extension.

    • Name (string) --

      The extension name.

    • VersionNumber (integer) --

      The extension version number.

    • Arn (string) --

      The system-generated Amazon Resource Name (ARN) for the extension.

    • Description (string) --

      Information about the extension.

    • Actions (dict) --

      The actions defined in the extension.

      • (string) --

        • (list) --

          • (dict) --

            An action defines the tasks the extension performs during the AppConfig workflow. Each action includes an action point such as ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name, URI, and ARN for each action point defined in the extension. You can specify the following actions for an extension:

            • PRE_CREATE_HOSTED_CONFIGURATION_VERSION

            • PRE_START_DEPLOYMENT

            • ON_DEPLOYMENT_START

            • ON_DEPLOYMENT_STEP

            • ON_DEPLOYMENT_BAKING

            • ON_DEPLOYMENT_COMPLETE

            • ON_DEPLOYMENT_ROLLED_BACK

            • Name (string) --

              The action name.

            • Description (string) --

              Information about the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

    • Parameters (dict) --

      The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

      • (string) --

        • (dict) --

          A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide .

          • Description (string) --

            Information about the parameter.

          • Required (boolean) --

            A parameter value must be specified in the extension association.

GetDeployment (updated) Link ¶
Changes (response)
{'AppliedExtensions': [{'ExtensionAssociationId': 'string',
                        'ExtensionId': 'string',
                        'Parameters': {'string': 'string'},
                        'VersionNumber': 'integer'}],
 'EventLog': {'ActionInvocations': [{'ActionName': 'string',
                                     'ErrorCode': 'string',
                                     'ErrorMessage': 'string',
                                     'ExtensionIdentifier': 'string',
                                     'InvocationId': 'string',
                                     'RoleArn': 'string',
                                     'Uri': 'string'}]}}

Retrieves information about a configuration deployment.

See also: AWS API Documentation

Request Syntax

client.get_deployment(
    ApplicationId='string',
    EnvironmentId='string',
    DeploymentNumber=123
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The ID of the application that includes the deployment you want to get.

type EnvironmentId

string

param EnvironmentId

[REQUIRED]

The ID of the environment that includes the deployment you want to get.

type DeploymentNumber

integer

param DeploymentNumber

[REQUIRED]

The sequence number of the deployment.

rtype

dict

returns

Response Syntax

{
    'ApplicationId': 'string',
    'EnvironmentId': 'string',
    'DeploymentStrategyId': 'string',
    'ConfigurationProfileId': 'string',
    'DeploymentNumber': 123,
    'ConfigurationName': 'string',
    'ConfigurationLocationUri': 'string',
    'ConfigurationVersion': 'string',
    'Description': 'string',
    'DeploymentDurationInMinutes': 123,
    'GrowthType': 'LINEAR'|'EXPONENTIAL',
    'GrowthFactor': ...,
    'FinalBakeTimeInMinutes': 123,
    'State': 'BAKING'|'VALIDATING'|'DEPLOYING'|'COMPLETE'|'ROLLING_BACK'|'ROLLED_BACK',
    'EventLog': [
        {
            'EventType': 'PERCENTAGE_UPDATED'|'ROLLBACK_STARTED'|'ROLLBACK_COMPLETED'|'BAKE_TIME_STARTED'|'DEPLOYMENT_STARTED'|'DEPLOYMENT_COMPLETED',
            'TriggeredBy': 'USER'|'APPCONFIG'|'CLOUDWATCH_ALARM'|'INTERNAL_ERROR',
            'Description': 'string',
            'ActionInvocations': [
                {
                    'ExtensionIdentifier': 'string',
                    'ActionName': 'string',
                    'Uri': 'string',
                    'RoleArn': 'string',
                    'ErrorMessage': 'string',
                    'ErrorCode': 'string',
                    'InvocationId': 'string'
                },
            ],
            'OccurredAt': datetime(2015, 1, 1)
        },
    ],
    'PercentageComplete': ...,
    'StartedAt': datetime(2015, 1, 1),
    'CompletedAt': datetime(2015, 1, 1),
    'AppliedExtensions': [
        {
            'ExtensionId': 'string',
            'ExtensionAssociationId': 'string',
            'VersionNumber': 123,
            'Parameters': {
                'string': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    • ApplicationId (string) --

      The ID of the application that was deployed.

    • EnvironmentId (string) --

      The ID of the environment that was deployed.

    • DeploymentStrategyId (string) --

      The ID of the deployment strategy that was deployed.

    • ConfigurationProfileId (string) --

      The ID of the configuration profile that was deployed.

    • DeploymentNumber (integer) --

      The sequence number of the deployment.

    • ConfigurationName (string) --

      The name of the configuration.

    • ConfigurationLocationUri (string) --

      Information about the source location of the configuration.

    • ConfigurationVersion (string) --

      The configuration version that was deployed.

    • Description (string) --

      The description of the deployment.

    • DeploymentDurationInMinutes (integer) --

      Total amount of time the deployment lasted.

    • GrowthType (string) --

      The algorithm used to define how percentage grew over time.

    • GrowthFactor (float) --

      The percentage of targets to receive a deployed configuration during each interval.

    • FinalBakeTimeInMinutes (integer) --

      The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

    • State (string) --

      The state of the deployment.

    • EventLog (list) --

      A list containing all events related to a deployment. The most recent events are displayed first.

      • (dict) --

        An object that describes a deployment event.

        • EventType (string) --

          The type of deployment event. Deployment event types include the start, stop, or completion of a deployment; a percentage update; the start or stop of a bake period; and the start or completion of a rollback.

        • TriggeredBy (string) --

          The entity that triggered the deployment event. Events can be triggered by a user, AppConfig, an Amazon CloudWatch alarm, or an internal error.

        • Description (string) --

          A description of the deployment event. Descriptions include, but are not limited to, the user account or the Amazon CloudWatch alarm ARN that initiated a rollback, the percentage of hosts that received the deployment, or in the case of an internal error, a recommendation to attempt a new deployment.

        • ActionInvocations (list) --

          The list of extensions that were invoked as part of the deployment.

          • (dict) --

            An extension that was invoked as part of a deployment event.

            • ExtensionIdentifier (string) --

              The name, the ID, or the Amazon Resource Name (ARN) of the extension.

            • ActionName (string) --

              The name of the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

            • ErrorMessage (string) --

              The error message when an extension invocation fails.

            • ErrorCode (string) --

              The error code when an extension invocation fails.

            • InvocationId (string) --

              A system-generated ID for this invocation.

        • OccurredAt (datetime) --

          The date and time the event occurred.

    • PercentageComplete (float) --

      The percentage of targets for which the deployment is available.

    • StartedAt (datetime) --

      The time the deployment started.

    • CompletedAt (datetime) --

      The time the deployment completed.

    • AppliedExtensions (list) --

      A list of extensions that were processed as part of the deployment. The extensions that were previously associated to the configuration profile, environment, or the application when StartDeployment was called.

      • (dict) --

        An extension that was invoked during a deployment.

        • ExtensionId (string) --

          The system-generated ID of the extension.

        • ExtensionAssociationId (string) --

          The system-generated ID for the association.

        • VersionNumber (integer) --

          The extension version number.

        • Parameters (dict) --

          One or more parameters for the actions called by the extension.

          • (string) --

            • (string) --

StartDeployment (updated) Link ¶
Changes (response)
{'AppliedExtensions': [{'ExtensionAssociationId': 'string',
                        'ExtensionId': 'string',
                        'Parameters': {'string': 'string'},
                        'VersionNumber': 'integer'}],
 'EventLog': {'ActionInvocations': [{'ActionName': 'string',
                                     'ErrorCode': 'string',
                                     'ErrorMessage': 'string',
                                     'ExtensionIdentifier': 'string',
                                     'InvocationId': 'string',
                                     'RoleArn': 'string',
                                     'Uri': 'string'}]}}

Starts a deployment.

See also: AWS API Documentation

Request Syntax

client.start_deployment(
    ApplicationId='string',
    EnvironmentId='string',
    DeploymentStrategyId='string',
    ConfigurationProfileId='string',
    ConfigurationVersion='string',
    Description='string',
    Tags={
        'string': 'string'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The application ID.

type EnvironmentId

string

param EnvironmentId

[REQUIRED]

The environment ID.

type DeploymentStrategyId

string

param DeploymentStrategyId

[REQUIRED]

The deployment strategy ID.

type ConfigurationProfileId

string

param ConfigurationProfileId

[REQUIRED]

The configuration profile ID.

type ConfigurationVersion

string

param ConfigurationVersion

[REQUIRED]

The configuration version to deploy.

type Description

string

param Description

A description of the deployment.

type Tags

dict

param Tags

Metadata to assign to the deployment. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'ApplicationId': 'string',
    'EnvironmentId': 'string',
    'DeploymentStrategyId': 'string',
    'ConfigurationProfileId': 'string',
    'DeploymentNumber': 123,
    'ConfigurationName': 'string',
    'ConfigurationLocationUri': 'string',
    'ConfigurationVersion': 'string',
    'Description': 'string',
    'DeploymentDurationInMinutes': 123,
    'GrowthType': 'LINEAR'|'EXPONENTIAL',
    'GrowthFactor': ...,
    'FinalBakeTimeInMinutes': 123,
    'State': 'BAKING'|'VALIDATING'|'DEPLOYING'|'COMPLETE'|'ROLLING_BACK'|'ROLLED_BACK',
    'EventLog': [
        {
            'EventType': 'PERCENTAGE_UPDATED'|'ROLLBACK_STARTED'|'ROLLBACK_COMPLETED'|'BAKE_TIME_STARTED'|'DEPLOYMENT_STARTED'|'DEPLOYMENT_COMPLETED',
            'TriggeredBy': 'USER'|'APPCONFIG'|'CLOUDWATCH_ALARM'|'INTERNAL_ERROR',
            'Description': 'string',
            'ActionInvocations': [
                {
                    'ExtensionIdentifier': 'string',
                    'ActionName': 'string',
                    'Uri': 'string',
                    'RoleArn': 'string',
                    'ErrorMessage': 'string',
                    'ErrorCode': 'string',
                    'InvocationId': 'string'
                },
            ],
            'OccurredAt': datetime(2015, 1, 1)
        },
    ],
    'PercentageComplete': ...,
    'StartedAt': datetime(2015, 1, 1),
    'CompletedAt': datetime(2015, 1, 1),
    'AppliedExtensions': [
        {
            'ExtensionId': 'string',
            'ExtensionAssociationId': 'string',
            'VersionNumber': 123,
            'Parameters': {
                'string': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    • ApplicationId (string) --

      The ID of the application that was deployed.

    • EnvironmentId (string) --

      The ID of the environment that was deployed.

    • DeploymentStrategyId (string) --

      The ID of the deployment strategy that was deployed.

    • ConfigurationProfileId (string) --

      The ID of the configuration profile that was deployed.

    • DeploymentNumber (integer) --

      The sequence number of the deployment.

    • ConfigurationName (string) --

      The name of the configuration.

    • ConfigurationLocationUri (string) --

      Information about the source location of the configuration.

    • ConfigurationVersion (string) --

      The configuration version that was deployed.

    • Description (string) --

      The description of the deployment.

    • DeploymentDurationInMinutes (integer) --

      Total amount of time the deployment lasted.

    • GrowthType (string) --

      The algorithm used to define how percentage grew over time.

    • GrowthFactor (float) --

      The percentage of targets to receive a deployed configuration during each interval.

    • FinalBakeTimeInMinutes (integer) --

      The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

    • State (string) --

      The state of the deployment.

    • EventLog (list) --

      A list containing all events related to a deployment. The most recent events are displayed first.

      • (dict) --

        An object that describes a deployment event.

        • EventType (string) --

          The type of deployment event. Deployment event types include the start, stop, or completion of a deployment; a percentage update; the start or stop of a bake period; and the start or completion of a rollback.

        • TriggeredBy (string) --

          The entity that triggered the deployment event. Events can be triggered by a user, AppConfig, an Amazon CloudWatch alarm, or an internal error.

        • Description (string) --

          A description of the deployment event. Descriptions include, but are not limited to, the user account or the Amazon CloudWatch alarm ARN that initiated a rollback, the percentage of hosts that received the deployment, or in the case of an internal error, a recommendation to attempt a new deployment.

        • ActionInvocations (list) --

          The list of extensions that were invoked as part of the deployment.

          • (dict) --

            An extension that was invoked as part of a deployment event.

            • ExtensionIdentifier (string) --

              The name, the ID, or the Amazon Resource Name (ARN) of the extension.

            • ActionName (string) --

              The name of the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

            • ErrorMessage (string) --

              The error message when an extension invocation fails.

            • ErrorCode (string) --

              The error code when an extension invocation fails.

            • InvocationId (string) --

              A system-generated ID for this invocation.

        • OccurredAt (datetime) --

          The date and time the event occurred.

    • PercentageComplete (float) --

      The percentage of targets for which the deployment is available.

    • StartedAt (datetime) --

      The time the deployment started.

    • CompletedAt (datetime) --

      The time the deployment completed.

    • AppliedExtensions (list) --

      A list of extensions that were processed as part of the deployment. The extensions that were previously associated to the configuration profile, environment, or the application when StartDeployment was called.

      • (dict) --

        An extension that was invoked during a deployment.

        • ExtensionId (string) --

          The system-generated ID of the extension.

        • ExtensionAssociationId (string) --

          The system-generated ID for the association.

        • VersionNumber (integer) --

          The extension version number.

        • Parameters (dict) --

          One or more parameters for the actions called by the extension.

          • (string) --

            • (string) --

StopDeployment (updated) Link ¶
Changes (response)
{'AppliedExtensions': [{'ExtensionAssociationId': 'string',
                        'ExtensionId': 'string',
                        'Parameters': {'string': 'string'},
                        'VersionNumber': 'integer'}],
 'EventLog': {'ActionInvocations': [{'ActionName': 'string',
                                     'ErrorCode': 'string',
                                     'ErrorMessage': 'string',
                                     'ExtensionIdentifier': 'string',
                                     'InvocationId': 'string',
                                     'RoleArn': 'string',
                                     'Uri': 'string'}]}}

Stops a deployment. This API action works only on deployments that have a status of DEPLOYING . This action moves the deployment to a status of ROLLED_BACK .

See also: AWS API Documentation

Request Syntax

client.stop_deployment(
    ApplicationId='string',
    EnvironmentId='string',
    DeploymentNumber=123
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The application ID.

type EnvironmentId

string

param EnvironmentId

[REQUIRED]

The environment ID.

type DeploymentNumber

integer

param DeploymentNumber

[REQUIRED]

The sequence number of the deployment.

rtype

dict

returns

Response Syntax

{
    'ApplicationId': 'string',
    'EnvironmentId': 'string',
    'DeploymentStrategyId': 'string',
    'ConfigurationProfileId': 'string',
    'DeploymentNumber': 123,
    'ConfigurationName': 'string',
    'ConfigurationLocationUri': 'string',
    'ConfigurationVersion': 'string',
    'Description': 'string',
    'DeploymentDurationInMinutes': 123,
    'GrowthType': 'LINEAR'|'EXPONENTIAL',
    'GrowthFactor': ...,
    'FinalBakeTimeInMinutes': 123,
    'State': 'BAKING'|'VALIDATING'|'DEPLOYING'|'COMPLETE'|'ROLLING_BACK'|'ROLLED_BACK',
    'EventLog': [
        {
            'EventType': 'PERCENTAGE_UPDATED'|'ROLLBACK_STARTED'|'ROLLBACK_COMPLETED'|'BAKE_TIME_STARTED'|'DEPLOYMENT_STARTED'|'DEPLOYMENT_COMPLETED',
            'TriggeredBy': 'USER'|'APPCONFIG'|'CLOUDWATCH_ALARM'|'INTERNAL_ERROR',
            'Description': 'string',
            'ActionInvocations': [
                {
                    'ExtensionIdentifier': 'string',
                    'ActionName': 'string',
                    'Uri': 'string',
                    'RoleArn': 'string',
                    'ErrorMessage': 'string',
                    'ErrorCode': 'string',
                    'InvocationId': 'string'
                },
            ],
            'OccurredAt': datetime(2015, 1, 1)
        },
    ],
    'PercentageComplete': ...,
    'StartedAt': datetime(2015, 1, 1),
    'CompletedAt': datetime(2015, 1, 1),
    'AppliedExtensions': [
        {
            'ExtensionId': 'string',
            'ExtensionAssociationId': 'string',
            'VersionNumber': 123,
            'Parameters': {
                'string': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    • ApplicationId (string) --

      The ID of the application that was deployed.

    • EnvironmentId (string) --

      The ID of the environment that was deployed.

    • DeploymentStrategyId (string) --

      The ID of the deployment strategy that was deployed.

    • ConfigurationProfileId (string) --

      The ID of the configuration profile that was deployed.

    • DeploymentNumber (integer) --

      The sequence number of the deployment.

    • ConfigurationName (string) --

      The name of the configuration.

    • ConfigurationLocationUri (string) --

      Information about the source location of the configuration.

    • ConfigurationVersion (string) --

      The configuration version that was deployed.

    • Description (string) --

      The description of the deployment.

    • DeploymentDurationInMinutes (integer) --

      Total amount of time the deployment lasted.

    • GrowthType (string) --

      The algorithm used to define how percentage grew over time.

    • GrowthFactor (float) --

      The percentage of targets to receive a deployed configuration during each interval.

    • FinalBakeTimeInMinutes (integer) --

      The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

    • State (string) --

      The state of the deployment.

    • EventLog (list) --

      A list containing all events related to a deployment. The most recent events are displayed first.

      • (dict) --

        An object that describes a deployment event.

        • EventType (string) --

          The type of deployment event. Deployment event types include the start, stop, or completion of a deployment; a percentage update; the start or stop of a bake period; and the start or completion of a rollback.

        • TriggeredBy (string) --

          The entity that triggered the deployment event. Events can be triggered by a user, AppConfig, an Amazon CloudWatch alarm, or an internal error.

        • Description (string) --

          A description of the deployment event. Descriptions include, but are not limited to, the user account or the Amazon CloudWatch alarm ARN that initiated a rollback, the percentage of hosts that received the deployment, or in the case of an internal error, a recommendation to attempt a new deployment.

        • ActionInvocations (list) --

          The list of extensions that were invoked as part of the deployment.

          • (dict) --

            An extension that was invoked as part of a deployment event.

            • ExtensionIdentifier (string) --

              The name, the ID, or the Amazon Resource Name (ARN) of the extension.

            • ActionName (string) --

              The name of the action.

            • Uri (string) --

              The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.

            • RoleArn (string) --

              An Amazon Resource Name (ARN) for an Identity and Access Management assume role.

            • ErrorMessage (string) --

              The error message when an extension invocation fails.

            • ErrorCode (string) --

              The error code when an extension invocation fails.

            • InvocationId (string) --

              A system-generated ID for this invocation.

        • OccurredAt (datetime) --

          The date and time the event occurred.

    • PercentageComplete (float) --

      The percentage of targets for which the deployment is available.

    • StartedAt (datetime) --

      The time the deployment started.

    • CompletedAt (datetime) --

      The time the deployment completed.

    • AppliedExtensions (list) --

      A list of extensions that were processed as part of the deployment. The extensions that were previously associated to the configuration profile, environment, or the application when StartDeployment was called.

      • (dict) --

        An extension that was invoked during a deployment.

        • ExtensionId (string) --

          The system-generated ID of the extension.

        • ExtensionAssociationId (string) --

          The system-generated ID for the association.

        • VersionNumber (integer) --

          The extension version number.

        • Parameters (dict) --

          One or more parameters for the actions called by the extension.

          • (string) --

            • (string) --