AppConfig / Client / list_deployment_strategies

list_deployment_strategies#

AppConfig.Client.list_deployment_strategies(**kwargs)#

Lists deployment strategies.

See also: AWS API Documentation

Request Syntax

response = client.list_deployment_strategies(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – 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.

  • NextToken (string) – A token to start the list. Use this token to get the next set of results.

Return type:

dict

Returns:

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'Name': 'string',
            'Description': 'string',
            'DeploymentDurationInMinutes': 123,
            'GrowthType': 'LINEAR'|'EXPONENTIAL',
            'GrowthFactor': ...,
            'FinalBakeTimeInMinutes': 123,
            'ReplicateTo': 'NONE'|'SSM_DOCUMENT'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Items (list) –

      The elements from this collection.

      • (dict) –

        • Id (string) –

          The deployment strategy ID.

        • Name (string) –

          The name of the deployment strategy.

        • Description (string) –

          The description of the deployment strategy.

        • 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 that received 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.

        • ReplicateTo (string) –

          Save the deployment strategy to a Systems Manager (SSM) document.

    • NextToken (string) –

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

Exceptions

Examples

The following list-deployment-strategies example lists the available deployment strategies in your AWS account.

response = client.list_deployment_strategies(
)

print(response)

Expected Output:

{
    'Items': [
        {
            'DeploymentDurationInMinutes': 15,
            'FinalBakeTimeInMinutes': 0,
            'GrowthFactor': 25,
            'GrowthType': 'LINEAR',
            'Id': '1225qzk',
            'Name': 'Example-Deployment',
            'ReplicateTo': 'SSM_DOCUMENT',
        },
    ],
    'ResponseMetadata': {
        '...': '...',
    },
}