Route53GlobalResolver / Client / list_dns_views

list_dns_views

Route53GlobalResolver.Client.list_dns_views(**kwargs)

Lists all DNS views for a Route 53 Global Resolver with pagination support.

See also: AWS API Documentation

Request Syntax

response = client.list_dns_views(
    maxResults=123,
    nextToken='string',
    globalResolverId='string'
)
Parameters:
  • maxResults (integer) – The maximum number of results to retrieve in a single call.

  • nextToken (string) – A pagination token used for large sets of results that can’t be returned in a single response.

  • globalResolverId (string) –

    [REQUIRED]

    The Global Resolver ID.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'dnsViews': [
        {
            'id': 'string',
            'arn': 'string',
            'clientToken': 'string',
            'dnssecValidation': 'ENABLED'|'DISABLED',
            'ednsClientSubnet': 'ENABLED'|'DISABLED',
            'firewallRulesFailOpen': 'ENABLED'|'DISABLED',
            'name': 'string',
            'description': 'string',
            'globalResolverId': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'ENABLING'|'DISABLING'|'DISABLED'|'DELETING'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      A pagination token used for large sets of results that can’t be returned in a single response. Provide this token in the next call to get the results not returned in this call.

    • dnsViews (list) –

      An array of information about the DNS views, such as whether DNSSEC is enabled, creation time, etc.

      • (dict) –

        Summary information about a DNS view.

        • id (string) –

          The unique identifier of the DNS view.

        • arn (string) –

          The Amazon Resource Name (ARN) of the DNS view.

        • clientToken (string) –

          The unique string that identifies the request and ensures idempotency.

        • dnssecValidation (string) –

          Whether DNSSEC validation is enabled for the DNS view.

        • ednsClientSubnet (string) –

          Whether EDNS Client Subnet injection is enabled for the DNS view.

        • firewallRulesFailOpen (string) –

          Whether firewall rules fail open when they cannot be evaluated.

        • name (string) –

          The name of the DNS view.

        • description (string) –

          A description of the DNS view.

        • globalResolverId (string) –

          The ID of the global resolver that the DNS view is associated with.

        • createdAt (datetime) –

          The date and time when the DNS view was created.

        • updatedAt (datetime) –

          The date and time when the DNS view was last updated.

        • status (string) –

          The current status of the DNS view.

Exceptions

  • Route53GlobalResolver.Client.exceptions.InternalServerException

  • Route53GlobalResolver.Client.exceptions.ValidationException

  • Route53GlobalResolver.Client.exceptions.AccessDeniedException

  • Route53GlobalResolver.Client.exceptions.ThrottlingException

  • Route53GlobalResolver.Client.exceptions.ResourceNotFoundException