AmplifyGen3 / Client / list_aliases

list_aliases

AmplifyGen3.Client.list_aliases(**kwargs)

Returns a list of the aliases for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

response = client.list_aliases(
    AppName='string',
    EnvironmentName='string',
    NextToken='string',
    MaxResults=123
)
Parameters:
  • AppName (string) –

    [REQUIRED]

    The name of the app.

  • EnvironmentName (string) –

    [REQUIRED]

    The name of the environment.

  • NextToken (string) – The pagination token returned in a previous response, used to retrieve the next page of results.

  • MaxResults (integer) – The maximum number of results to return in a single response.

Return type:

dict

Returns:

Response Syntax

{
    'Aliases': [
        {
            'AliasName': 'string',
            'AliasArn': 'string',
            'Type': 'ENVIRONMENT'|'BRANCH'|'PULL_REQUEST',
            'Url': 'string',
            'RoutingConfig': [
                {
                    'DeploymentId': 'string',
                    'Weight': 123
                },
            ],
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Aliases (list) –

      The aliases.

      • (dict) –

        Summary information for an alias.

        • AliasName (string) –

          The name of the alias.

        • AliasArn (string) –

          The Amazon Resource Name (ARN) of the alias.

        • Type (string) –

          The type of the alias.

        • Url (string) –

          The URL of the alias.

        • RoutingConfig (list) –

          The traffic routing configuration.

          • (dict) –

            An entry that maps a portion of traffic to a deployment.

            • DeploymentId (string) –

              The ID of the deployment that receives the traffic.

            • Weight (integer) –

              The percentage of traffic to route to the deployment.

        • CreatedAt (datetime) –

          The time at which the alias was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) –

          The time at which the alias was last updated. The value is in ISO-8601 format.

    • NextToken (string) –

      The pagination token returned in a previous response, used to retrieve the next page of results.

Exceptions