2021/10/25 - Amazon Route 53 Resolver - 3 new api methods
Changes New API for ResolverConfig, which allows autodefined rules for reverse DNS resolution to be disabled for a VPC
Retrieves the Resolver configurations that you have defined. Route 53 Resolver uses the configurations to manage DNS resolution behavior for your VPCs.
See also: AWS API Documentation
Request Syntax
client.list_resolver_configs( MaxResults=123, NextToken='string' )
integer
The maximum number of Resolver configurations that you want to return in the response to a ListResolverConfigs request. If you don't specify a value for MaxResults , up to 100 Resolver configurations are returned.
string
(Optional) If the current Amazon Web Services account has more than MaxResults Resolver configurations, use NextToken to get the second and subsequent pages of results.
For the first ListResolverConfigs request, omit this value.
For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.
dict
Response Syntax
{ 'NextToken': 'string', 'ResolverConfigs': [ { 'Id': 'string', 'ResourceId': 'string', 'OwnerId': 'string', 'AutodefinedReverse': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED' }, ] }
Response Structure
(dict) --
NextToken (string) --
If a response includes the last of the Resolver configurations that are associated with the current Amazon Web Services account, NextToken doesn't appear in the response.
If a response doesn't include the last of the configurations, you can get more configurations by submitting another ListResolverConfigs request. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in NextToken in the next request.
ResolverConfigs (list) --
An array that contains one ResolverConfigs element for each Resolver configuration that is associated with the current Amazon Web Services account.
(dict) --
A complex type that contains information about a Resolver configuration for a VPC.
Id (string) --
ID for the Resolver configuration.
ResourceId (string) --
The ID of the Amazon Virtual Private Cloud VPC that you're configuring Resolver for.
OwnerId (string) --
The owner account ID of the Amazon Virtual Private Cloud VPC.
AutodefinedReverse (string) --
The status of whether or not the Resolver will create autodefined rules for reverse DNS lookups. This is enabled by default. The status can be one of following:
Status of the rules generated by VPCs based on CIDR/Region for reverse DNS resolution. The status can be one of following:
ENABLING: Autodefined rules for reverse DNS lookups are being enabled but are not complete.
ENABLED: Autodefined rules for reverse DNS lookups are enabled.
DISABLING: Autodefined rules for reverse DNS lookups are being disabled but are not complete.
DISABLED: Autodefined rules for reverse DNS lookups are disabled.
Retrieves the behavior configuration of Route 53 Resolver behavior for a single VPC from Amazon Virtual Private Cloud.
See also: AWS API Documentation
Request Syntax
client.get_resolver_config( ResourceId='string' )
string
[REQUIRED]
Resource ID of the Amazon VPC that you want to get information about.
dict
Response Syntax
{ 'ResolverConfig': { 'Id': 'string', 'ResourceId': 'string', 'OwnerId': 'string', 'AutodefinedReverse': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED' } }
Response Structure
(dict) --
ResolverConfig (dict) --
Information about the behavior configuration of Route 53 Resolver behavior for the VPC you specified in the GetResolverConfig request.
Id (string) --
ID for the Resolver configuration.
ResourceId (string) --
The ID of the Amazon Virtual Private Cloud VPC that you're configuring Resolver for.
OwnerId (string) --
The owner account ID of the Amazon Virtual Private Cloud VPC.
AutodefinedReverse (string) --
The status of whether or not the Resolver will create autodefined rules for reverse DNS lookups. This is enabled by default. The status can be one of following:
Status of the rules generated by VPCs based on CIDR/Region for reverse DNS resolution. The status can be one of following:
ENABLING: Autodefined rules for reverse DNS lookups are being enabled but are not complete.
ENABLED: Autodefined rules for reverse DNS lookups are enabled.
DISABLING: Autodefined rules for reverse DNS lookups are being disabled but are not complete.
DISABLED: Autodefined rules for reverse DNS lookups are disabled.
Updates the behavior configuration of Route 53 Resolver behavior for a single VPC from Amazon Virtual Private Cloud.
See also: AWS API Documentation
Request Syntax
client.update_resolver_config( ResourceId='string', AutodefinedReverseFlag='ENABLE'|'DISABLE' )
string
[REQUIRED]
Resource ID of the Amazon VPC that you want to update the Resolver configuration for.
string
[REQUIRED]
Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. This is enabled by default. Disabling this option will also affect EC2-Classic instances using ClassicLink. For more information, see ClassicLink in the Amazon EC2 guide .
Note
It can take some time for the status change to be completed.
dict
Response Syntax
{ 'ResolverConfig': { 'Id': 'string', 'ResourceId': 'string', 'OwnerId': 'string', 'AutodefinedReverse': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED' } }
Response Structure
(dict) --
ResolverConfig (dict) --
An array that contains settings for the specified Resolver configuration.
Id (string) --
ID for the Resolver configuration.
ResourceId (string) --
The ID of the Amazon Virtual Private Cloud VPC that you're configuring Resolver for.
OwnerId (string) --
The owner account ID of the Amazon Virtual Private Cloud VPC.
AutodefinedReverse (string) --
The status of whether or not the Resolver will create autodefined rules for reverse DNS lookups. This is enabled by default. The status can be one of following:
Status of the rules generated by VPCs based on CIDR/Region for reverse DNS resolution. The status can be one of following:
ENABLING: Autodefined rules for reverse DNS lookups are being enabled but are not complete.
ENABLED: Autodefined rules for reverse DNS lookups are enabled.
DISABLING: Autodefined rules for reverse DNS lookups are being disabled but are not complete.
DISABLED: Autodefined rules for reverse DNS lookups are disabled.