AmplifyGen3 / Paginator / ListDomainAssociationsForAccount

ListDomainAssociationsForAccount

class AmplifyGen3.Paginator.ListDomainAssociationsForAccount
paginator = client.get_paginator('list_domain_associations_for_account')
paginate(**kwargs)

Creates an iterator that will paginate through responses from AmplifyGen3.Client.list_domain_associations_for_account().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:

PaginationConfig (dict) –

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) –

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) –

    The size of each page.

  • StartingToken (string) –

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'DomainAssociations': [
        {
            'DomainName': 'string',
            'AppName': 'string',
            'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
            'Routing': {
                'alias': {
                    'AliasArn': 'string'
                },
                'redirect': {
                    'TargetUrl': 'string',
                    'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
                }
            }
        },
    ],

}

Response Structure

  • (dict) –

    • DomainAssociations (list) –

      The domain associations.

      • (dict) –

        Summary information for a domain association, including the app it belongs to.

        • DomainName (string) –

          The fully qualified domain name.

        • AppName (string) –

          The name of the app.

        • DomainStatus (string) –

          The status of the domain association.

        • Routing (dict) –

          The routing configuration for the domain.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: alias, redirect. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • alias (dict) –

            Routes traffic for the domain to an alias.

            • AliasArn (string) –

              The Amazon Resource Name (ARN) of the alias.

          • redirect (dict) –

            Redirects traffic for the domain to another URL.

            • TargetUrl (string) –

              The URL to redirect requests to.

            • StatusCode (string) –

              The HTTP status code to return for the redirect.