Table of Contents
A low-level client representing Amazon Route 53 Resolver (Route53Resolver):
import boto3
client = boto3.client('route53resolver')
These are the available methods:
Adds IP addresses to an inbound or an outbound Resolver endpoint. If you want to add more than one IP address, submit one AssociateResolverEndpointIpAddress request for each IP address.
To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress .
See also: AWS API Documentation
Request Syntax
response = client.associate_resolver_endpoint_ip_address(
ResolverEndpointId='string',
IpAddress={
'IpId': 'string',
'SubnetId': 'string',
'Ip': 'string'
}
)
[REQUIRED]
The ID of the Resolver endpoint that you want to associate IP addresses with.
[REQUIRED]
Either the IPv4 address that you want to add to a Resolver endpoint or a subnet ID. If you specify a subnet ID, Resolver chooses an IP address for you from the available IPs in the specified subnet.
Only when removing an IP address from a Resolver endpoint : The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint .
The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint .
The new IP address.
dict
Response Syntax
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverEndpoint (dict) --
The response to an AssociateResolverEndpointIpAddress request.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Associates an Amazon VPC with a specified query logging configuration. Route 53 Resolver logs DNS queries that originate in all of the Amazon VPCs that are associated with a specified query logging configuration. To associate more than one VPC with a configuration, submit one AssociateResolverQueryLogConfig request for each VPC.
Note
The VPCs that you associate with a query logging configuration must be in the same Region as the configuration.
To remove a VPC from a query logging configuration, see DisassociateResolverQueryLogConfig .
See also: AWS API Documentation
Request Syntax
response = client.associate_resolver_query_log_config(
ResolverQueryLogConfigId='string',
ResourceId='string'
)
[REQUIRED]
The ID of the query logging configuration that you want to associate a VPC with.
[REQUIRED]
The ID of an Amazon VPC that you want this query logging configuration to log queries for.
Note
The VPCs and the query logging configuration must be in the same Region.
dict
Response Syntax
{
'ResolverQueryLogConfigAssociation': {
'Id': 'string',
'ResolverQueryLogConfigId': 'string',
'ResourceId': 'string',
'Status': 'CREATING'|'ACTIVE'|'ACTION_NEEDED'|'DELETING'|'FAILED',
'Error': 'NONE'|'DESTINATION_NOT_FOUND'|'ACCESS_DENIED'|'INTERNAL_SERVICE_ERROR',
'ErrorMessage': 'string',
'CreationTime': 'string'
}
}
Response Structure
(dict) --
ResolverQueryLogConfigAssociation (dict) --
A complex type that contains settings for a specified association between an Amazon VPC and a query logging configuration.
Id (string) --
The ID of the query logging association.
ResolverQueryLogConfigId (string) --
The ID of the query logging configuration that a VPC is associated with.
ResourceId (string) --
The ID of the Amazon VPC that is associated with the query logging configuration.
Status (string) --
The status of the specified query logging association. Valid values include the following:
Error (string) --
If the value of Status is FAILED , the value of Error indicates the cause:
If the value of Status is a value other than FAILED , Error is null.
ErrorMessage (string) --
Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.
CreationTime (string) --
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Associates a Resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule .
See also: AWS API Documentation
Request Syntax
response = client.associate_resolver_rule(
ResolverRuleId='string',
Name='string',
VPCId='string'
)
[REQUIRED]
The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules .
[REQUIRED]
The ID of the VPC that you want to associate the Resolver rule with.
dict
Response Syntax
{
'ResolverRuleAssociation': {
'Id': 'string',
'ResolverRuleId': 'string',
'Name': 'string',
'VPCId': 'string',
'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
'StatusMessage': 'string'
}
}
Response Structure
(dict) --
ResolverRuleAssociation (dict) --
Information about the AssociateResolverRule request, including the status of the request.
Id (string) --
The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
ResolverRuleId (string) --
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
Name (string) --
The name of an association between a Resolver rule and a VPC.
VPCId (string) --
The ID of the VPC that you associated the Resolver rule with.
Status (string) --
A code that specifies the current status of the association between a Resolver rule and a VPC.
StatusMessage (string) --
A detailed description of the status of the association between a Resolver rule and a VPC.
Exceptions
Check if an operation can be paginated.
Creates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:
See also: AWS API Documentation
Request Syntax
response = client.create_resolver_endpoint(
CreatorRequestId='string',
Name='string',
SecurityGroupIds=[
'string',
],
Direction='INBOUND'|'OUTBOUND',
IpAddresses=[
{
'SubnetId': 'string',
'Ip': 'string'
},
],
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
[REQUIRED]
The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound Resolver endpoints) or outbound rules (for outbound Resolver endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
[REQUIRED]
Specify the applicable value:
[REQUIRED]
The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). The subnet ID uniquely identifies a VPC.
In a CreateResolverEndpoint request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). IpAddressRequest also includes the ID of the subnet that contains the IP address.
The ID of the subnet that contains the IP address.
The IP address that you want to use for DNS queries.
A list of the tag keys and values that you want to associate with the endpoint.
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.
dict
Response Syntax
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverEndpoint (dict) --
Information about the CreateResolverEndpoint request, including the status of the request.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Creates a Resolver query logging configuration, which defines where you want Resolver to save DNS query logs that originate in your VPCs. Resolver can log queries only for VPCs that are in the same Region as the query logging configuration.
To specify which VPCs you want to log queries for, you use AssociateResolverQueryLogConfig . For more information, see AssociateResolverQueryLogConfig .
You can optionally use AWS Resource Access Manager (AWS RAM) to share a query logging configuration with other AWS accounts. The other accounts can then associate VPCs with the configuration. The query logs that Resolver creates for a configuration include all DNS queries that originate in all VPCs that are associated with the configuration.
See also: AWS API Documentation
Request Syntax
response = client.create_resolver_query_log_config(
Name='string',
DestinationArn='string',
CreatorRequestId='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name that you want to give the query logging configuration
[REQUIRED]
The ARN of the resource that you want Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream. Examples of valid values include the following:
[REQUIRED]
A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
This field is autopopulated if not provided.
A list of the tag keys and values that you want to associate with the query logging configuration.
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.
dict
Response Syntax
{
'ResolverQueryLogConfig': {
'Id': 'string',
'OwnerId': 'string',
'Status': 'CREATING'|'CREATED'|'DELETING'|'FAILED',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'AssociationCount': 123,
'Arn': 'string',
'Name': 'string',
'DestinationArn': 'string',
'CreatorRequestId': 'string',
'CreationTime': 'string'
}
}
Response Structure
(dict) --
ResolverQueryLogConfig (dict) --
Information about the CreateResolverQueryLogConfig request, including the status of the request.
Id (string) --
The ID for the query logging configuration.
OwnerId (string) --
The AWS account ID for the account that created the query logging configuration.
Status (string) --
The status of the specified query logging configuration. Valid values include the following:
ShareStatus (string) --
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).
AssociationCount (integer) --
The number of VPCs that are associated with the query logging configuration.
Arn (string) --
The ARN for the query logging configuration.
Name (string) --
The name of the query logging configuration.
DestinationArn (string) --
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
CreatorRequestId (string) --
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
CreationTime (string) --
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
For DNS queries that originate in your VPCs, specifies which Resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.
See also: AWS API Documentation
Request Syntax
response = client.create_resolver_rule(
CreatorRequestId='string',
Name='string',
RuleType='FORWARD'|'SYSTEM'|'RECURSIVE',
DomainName='string',
TargetIps=[
{
'Ip': 'string',
'Port': 123
},
],
ResolverEndpointId='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
[REQUIRED]
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
[REQUIRED]
DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).
The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a comma.
TargetIps is available only when the value of Rule type is FORWARD .
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
The port at Ip that you want to forward DNS queries to.
A list of the tag keys and values that you want to associate with the endpoint.
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.
dict
Response Syntax
{
'ResolverRule': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverRule (dict) --
Information about the CreateResolverRule request, including the status of the request.
Id (string) --
The ID that Resolver assigned to the Resolver rule when you created it.
CreatorRequestId (string) --
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DomainName (string) --
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
Status (string) --
A code that specifies the current status of the Resolver rule.
StatusMessage (string) --
A detailed description of the status of a Resolver rule.
RuleType (string) --
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
Name (string) --
The name for the Resolver rule, which you specified when you created the Resolver rule.
TargetIps (list) --
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
(dict) --
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
Ip (string) --
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
Port (integer) --
The port at Ip that you want to forward DNS queries to.
ResolverEndpointId (string) --
The ID of the endpoint that the rule is associated with.
OwnerId (string) --
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
ShareStatus (string) --
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
CreationTime (string) --
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Deletes a Resolver endpoint. The effect of deleting a Resolver endpoint depends on whether it's an inbound or an outbound Resolver endpoint:
See also: AWS API Documentation
Request Syntax
response = client.delete_resolver_endpoint(
ResolverEndpointId='string'
)
[REQUIRED]
The ID of the Resolver endpoint that you want to delete.
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
Information about the DeleteResolverEndpoint request, including the status of the request.
The ID of the Resolver endpoint.
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
The ARN (Amazon Resource Name) for the Resolver endpoint.
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
The number of IP addresses that the Resolver endpoint can use for DNS queries.
The ID of the VPC that you want to create the Resolver endpoint in.
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
A detailed description of the status of the Resolver endpoint.
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Deletes a query logging configuration. When you delete a configuration, Resolver stops logging DNS queries for all of the Amazon VPCs that are associated with the configuration. This also applies if the query logging configuration is shared with other AWS accounts, and the other accounts have associated VPCs with the shared configuration.
Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. See DisassociateResolverQueryLogConfig .
If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, you must stop sharing the configuration before you can delete a configuration. The accounts that you shared the configuration with can first disassociate VPCs that they associated with the configuration, but that's not necessary. If you stop sharing the configuration, those VPCs are automatically disassociated from the configuration.
See also: AWS API Documentation
Request Syntax
response = client.delete_resolver_query_log_config(
ResolverQueryLogConfigId='string'
)
[REQUIRED]
The ID of the query logging configuration that you want to delete.
{
'ResolverQueryLogConfig': {
'Id': 'string',
'OwnerId': 'string',
'Status': 'CREATING'|'CREATED'|'DELETING'|'FAILED',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'AssociationCount': 123,
'Arn': 'string',
'Name': 'string',
'DestinationArn': 'string',
'CreatorRequestId': 'string',
'CreationTime': 'string'
}
}
Response Structure
Information about the query logging configuration that you deleted, including the status of the request.
The ID for the query logging configuration.
The AWS account ID for the account that created the query logging configuration.
The status of the specified query logging configuration. Valid values include the following:
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).
The number of VPCs that are associated with the query logging configuration.
The ARN for the query logging configuration.
The name of the query logging configuration.
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Deletes a Resolver rule. Before you can delete a Resolver rule, you must disassociate it from all the VPCs that you associated the Resolver rule with. For more information, see DisassociateResolverRule .
See also: AWS API Documentation
Request Syntax
response = client.delete_resolver_rule(
ResolverRuleId='string'
)
[REQUIRED]
The ID of the Resolver rule that you want to delete.
{
'ResolverRule': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
Information about the DeleteResolverRule request, including the status of the request.
The ID that Resolver assigned to the Resolver rule when you created it.
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
A code that specifies the current status of the Resolver rule.
A detailed description of the status of a Resolver rule.
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
The name for the Resolver rule, which you specified when you created the Resolver rule.
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
The port at Ip that you want to forward DNS queries to.
The ID of the endpoint that the rule is associated with.
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Removes IP addresses from an inbound or an outbound Resolver endpoint. If you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress request for each IP address.
To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress .
See also: AWS API Documentation
Request Syntax
response = client.disassociate_resolver_endpoint_ip_address(
ResolverEndpointId='string',
IpAddress={
'IpId': 'string',
'SubnetId': 'string',
'Ip': 'string'
}
)
[REQUIRED]
The ID of the Resolver endpoint that you want to disassociate an IP address from.
[REQUIRED]
The IPv4 address that you want to remove from a Resolver endpoint.
Only when removing an IP address from a Resolver endpoint : The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint .
The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint .
The new IP address.
dict
Response Syntax
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverEndpoint (dict) --
The response to an DisassociateResolverEndpointIpAddress request.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Disassociates a VPC from a query logging configuration.
Note
Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, VPCs can be disassociated from the configuration in the following ways:
See also: AWS API Documentation
Request Syntax
response = client.disassociate_resolver_query_log_config(
ResolverQueryLogConfigId='string',
ResourceId='string'
)
[REQUIRED]
The ID of the query logging configuration that you want to disassociate a specified VPC from.
[REQUIRED]
The ID of the Amazon VPC that you want to disassociate from a specified query logging configuration.
dict
Response Syntax
{
'ResolverQueryLogConfigAssociation': {
'Id': 'string',
'ResolverQueryLogConfigId': 'string',
'ResourceId': 'string',
'Status': 'CREATING'|'ACTIVE'|'ACTION_NEEDED'|'DELETING'|'FAILED',
'Error': 'NONE'|'DESTINATION_NOT_FOUND'|'ACCESS_DENIED'|'INTERNAL_SERVICE_ERROR',
'ErrorMessage': 'string',
'CreationTime': 'string'
}
}
Response Structure
(dict) --
ResolverQueryLogConfigAssociation (dict) --
A complex type that contains settings for the association that you deleted between an Amazon VPC and a query logging configuration.
Id (string) --
The ID of the query logging association.
ResolverQueryLogConfigId (string) --
The ID of the query logging configuration that a VPC is associated with.
ResourceId (string) --
The ID of the Amazon VPC that is associated with the query logging configuration.
Status (string) --
The status of the specified query logging association. Valid values include the following:
Error (string) --
If the value of Status is FAILED , the value of Error indicates the cause:
If the value of Status is a value other than FAILED , Error is null.
ErrorMessage (string) --
Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.
CreationTime (string) --
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Removes the association between a specified Resolver rule and a specified VPC.
Warning
If you disassociate a Resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the Resolver rule.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_resolver_rule(
VPCId='string',
ResolverRuleId='string'
)
[REQUIRED]
The ID of the VPC that you want to disassociate the Resolver rule from.
[REQUIRED]
The ID of the Resolver rule that you want to disassociate from the specified VPC.
dict
Response Syntax
{
'ResolverRuleAssociation': {
'Id': 'string',
'ResolverRuleId': 'string',
'Name': 'string',
'VPCId': 'string',
'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
'StatusMessage': 'string'
}
}
Response Structure
(dict) --
ResolverRuleAssociation (dict) --
Information about the DisassociateResolverRule request, including the status of the request.
Id (string) --
The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
ResolverRuleId (string) --
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
Name (string) --
The name of an association between a Resolver rule and a VPC.
VPCId (string) --
The ID of the VPC that you associated the Resolver rule with.
Status (string) --
A code that specifies the current status of the association between a Resolver rule and a VPC.
StatusMessage (string) --
A detailed description of the status of the association between a Resolver rule and a VPC.
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Gets information about a specified Resolver endpoint, such as whether it's an inbound or an outbound Resolver endpoint, and the current status of the endpoint.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_endpoint(
ResolverEndpointId='string'
)
[REQUIRED]
The ID of the Resolver endpoint that you want to get information about.
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
Information about the Resolver endpoint that you specified in a GetResolverEndpoint request.
The ID of the Resolver endpoint.
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
The ARN (Amazon Resource Name) for the Resolver endpoint.
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
The number of IP addresses that the Resolver endpoint can use for DNS queries.
The ID of the VPC that you want to create the Resolver endpoint in.
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
A detailed description of the status of the Resolver endpoint.
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Gets information about a specified Resolver query logging configuration, such as the number of VPCs that the configuration is logging queries for and the location that logs are sent to.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_query_log_config(
ResolverQueryLogConfigId='string'
)
[REQUIRED]
The ID of the Resolver query logging configuration that you want to get information about.
{
'ResolverQueryLogConfig': {
'Id': 'string',
'OwnerId': 'string',
'Status': 'CREATING'|'CREATED'|'DELETING'|'FAILED',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'AssociationCount': 123,
'Arn': 'string',
'Name': 'string',
'DestinationArn': 'string',
'CreatorRequestId': 'string',
'CreationTime': 'string'
}
}
Response Structure
Information about the Resolver query logging configuration that you specified in a GetQueryLogConfig request.
The ID for the query logging configuration.
The AWS account ID for the account that created the query logging configuration.
The status of the specified query logging configuration. Valid values include the following:
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).
The number of VPCs that are associated with the query logging configuration.
The ARN for the query logging configuration.
The name of the query logging configuration.
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Gets information about a specified association between a Resolver query logging configuration and an Amazon VPC. When you associate a VPC with a query logging configuration, Resolver logs DNS queries that originate in that VPC.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_query_log_config_association(
ResolverQueryLogConfigAssociationId='string'
)
[REQUIRED]
The ID of the Resolver query logging configuration association that you want to get information about.
{
'ResolverQueryLogConfigAssociation': {
'Id': 'string',
'ResolverQueryLogConfigId': 'string',
'ResourceId': 'string',
'Status': 'CREATING'|'ACTIVE'|'ACTION_NEEDED'|'DELETING'|'FAILED',
'Error': 'NONE'|'DESTINATION_NOT_FOUND'|'ACCESS_DENIED'|'INTERNAL_SERVICE_ERROR',
'ErrorMessage': 'string',
'CreationTime': 'string'
}
}
Response Structure
Information about the Resolver query logging configuration association that you specified in a GetQueryLogConfigAssociation request.
The ID of the query logging association.
The ID of the query logging configuration that a VPC is associated with.
The ID of the Amazon VPC that is associated with the query logging configuration.
The status of the specified query logging association. Valid values include the following:
If the value of Status is FAILED , the value of Error indicates the cause:
If the value of Status is a value other than FAILED , Error is null.
Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Gets information about a query logging policy. A query logging policy specifies the Resolver query logging operations and resources that you want to allow another AWS account to be able to use.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_query_log_config_policy(
Arn='string'
)
[REQUIRED]
The ARN of the query logging configuration that you want to get the query logging policy for.
{
'ResolverQueryLogConfigPolicy': 'string'
}
Response Structure
Information about the query logging policy for the query logging configuration that you specified in a GetResolverQueryLogConfigPolicy request.
Exceptions
Gets information about a specified Resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound Resolver endpoint that the rule is associated with.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_rule(
ResolverRuleId='string'
)
[REQUIRED]
The ID of the Resolver rule that you want to get information about.
{
'ResolverRule': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
Information about the Resolver rule that you specified in a GetResolverRule request.
The ID that Resolver assigned to the Resolver rule when you created it.
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
A code that specifies the current status of the Resolver rule.
A detailed description of the status of a Resolver rule.
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
The name for the Resolver rule, which you specified when you created the Resolver rule.
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
The port at Ip that you want to forward DNS queries to.
The ID of the endpoint that the rule is associated with.
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Gets information about an association between a specified Resolver rule and a VPC. You associate a Resolver rule and a VPC using AssociateResolverRule .
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_rule_association(
ResolverRuleAssociationId='string'
)
[REQUIRED]
The ID of the Resolver rule association that you want to get information about.
{
'ResolverRuleAssociation': {
'Id': 'string',
'ResolverRuleId': 'string',
'Name': 'string',
'VPCId': 'string',
'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
'StatusMessage': 'string'
}
}
Response Structure
Information about the Resolver rule association that you specified in a GetResolverRuleAssociation request.
The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
The name of an association between a Resolver rule and a VPC.
The ID of the VPC that you associated the Resolver rule with.
A code that specifies the current status of the association between a Resolver rule and a VPC.
A detailed description of the status of the association between a Resolver rule and a VPC.
Exceptions
Gets information about a Resolver rule policy. A Resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.
See also: AWS API Documentation
Request Syntax
response = client.get_resolver_rule_policy(
Arn='string'
)
[REQUIRED]
The ID of the Resolver rule policy that you want to get information about.
{
'ResolverRulePolicy': 'string'
}
Response Structure
Information about the Resolver rule policy that you specified in a GetResolverRulePolicy request.
Exceptions
Returns an object that can wait for some condition.
Gets the IP addresses for a specified Resolver endpoint.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_endpoint_ip_addresses(
ResolverEndpointId='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The ID of the Resolver endpoint that you want to get IP addresses for.
For the first ListResolverEndpointIpAddresses request, omit this value.
If the specified Resolver endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.
dict
Response Syntax
{
'NextToken': 'string',
'MaxResults': 123,
'IpAddresses': [
{
'IpId': 'string',
'SubnetId': 'string',
'Ip': 'string',
'Status': 'CREATING'|'FAILED_CREATION'|'ATTACHING'|'ATTACHED'|'REMAP_DETACHING'|'REMAP_ATTACHING'|'DETACHING'|'FAILED_RESOURCE_GONE'|'DELETING'|'DELETE_FAILED_FAS_EXPIRED',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If the specified endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.
MaxResults (integer) --
The value that you specified for MaxResults in the request.
IpAddresses (list) --
Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
(dict) --
In the response to a GetResolverEndpoint request, information about the IP addresses that the Resolver endpoint uses for DNS queries.
IpId (string) --
The ID of one IP address.
SubnetId (string) --
The ID of one subnet.
Ip (string) --
One IP address that the Resolver endpoint uses for DNS queries.
Status (string) --
A status code that gives the current status of the request.
StatusMessage (string) --
A message that provides additional information about the status of the request.
CreationTime (string) --
The date and time that the IP address was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the IP address was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Lists all the Resolver endpoints that were created using the current AWS account.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_endpoints(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
]
)
For the first ListResolverEndpoints request, omit this value.
If you have more than MaxResults Resolver endpoints, you can submit another ListResolverEndpoints request to get the next group of Resolver endpoints. In the next request, specify the value of NextToken from the previous response.
An optional specification to return a subset of Resolver endpoints, such as all inbound Resolver endpoints.
Note
If you submit a second or subsequent ListResolverEndpoints request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
dict
Response Syntax
{
'NextToken': 'string',
'MaxResults': 123,
'ResolverEndpoints': [
{
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If more than MaxResults IP addresses match the specified criteria, you can submit another ListResolverEndpoint request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverEndpoints (list) --
The Resolver endpoints that were created by using the current AWS account, and that match the specified filters, if any.
(dict) --
In the response to a CreateResolverEndpoint , DeleteResolverEndpoint , GetResolverEndpoint , ListResolverEndpoints , or UpdateResolverEndpoint request, a complex type that contains settings for an existing inbound or outbound Resolver endpoint.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Lists information about associations between Amazon VPCs and query logging configurations.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_query_log_config_associations(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
SortBy='string',
SortOrder='ASCENDING'|'DESCENDING'
)
For the first ListResolverQueryLogConfigAssociations request, omit this value.
If there are more than MaxResults query logging associations that match the values that you specify for Filters , you can submit another ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next request, specify the value of NextToken from the previous response.
An optional specification to return a subset of query logging associations.
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The element that you want Resolver to sort query logging associations by.
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortBy , if any, as in the previous request.
Valid values include the following elements:
If Status is a value other than FAILED , ERROR is null.
If you specified a value for SortBy , the order that you want query logging associations to be listed in, ASCENDING or DESCENDING .
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortOrder , if any, as in the previous request.
dict
Response Syntax
{
'NextToken': 'string',
'TotalCount': 123,
'TotalFilteredCount': 123,
'ResolverQueryLogConfigAssociations': [
{
'Id': 'string',
'ResolverQueryLogConfigId': 'string',
'ResourceId': 'string',
'Status': 'CREATING'|'ACTIVE'|'ACTION_NEEDED'|'DELETING'|'FAILED',
'Error': 'NONE'|'DESTINATION_NOT_FOUND'|'ACCESS_DENIED'|'INTERNAL_SERVICE_ERROR',
'ErrorMessage': 'string',
'CreationTime': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If there are more than MaxResults query logging associations, you can submit another ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next request, specify the value of NextToken from the previous response.
TotalCount (integer) --
The total number of query logging associations that were created by the current account in the specified Region. This count can differ from the number of associations that are returned in a ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the request.
TotalFilteredCount (integer) --
The total number of query logging associations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigAssociations request. For the total number of associations that were created by the current account in the specified Region, see TotalCount .
ResolverQueryLogConfigAssociations (list) --
A list that contains one ResolverQueryLogConfigAssociations element for each query logging association that matches the values that you specified for Filter .
(dict) --
In the response to an AssociateResolverQueryLogConfig , DisassociateResolverQueryLogConfig , GetResolverQueryLogConfigAssociation , or ListResolverQueryLogConfigAssociations , request, a complex type that contains settings for a specified association between an Amazon VPC and a query logging configuration.
Id (string) --
The ID of the query logging association.
ResolverQueryLogConfigId (string) --
The ID of the query logging configuration that a VPC is associated with.
ResourceId (string) --
The ID of the Amazon VPC that is associated with the query logging configuration.
Status (string) --
The status of the specified query logging association. Valid values include the following:
Error (string) --
If the value of Status is FAILED , the value of Error indicates the cause:
If the value of Status is a value other than FAILED , Error is null.
ErrorMessage (string) --
Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.
CreationTime (string) --
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Lists information about the specified query logging configurations. Each configuration defines where you want Resolver to save DNS query logs and specifies the VPCs that you want to log queries for.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_query_log_configs(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
SortBy='string',
SortOrder='ASCENDING'|'DESCENDING'
)
For the first ListResolverQueryLogConfigs request, omit this value.
If there are more than MaxResults query logging configurations that match the values that you specify for Filters , you can submit another ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, specify the value of NextToken from the previous response.
An optional specification to return a subset of query logging configurations.
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The element that you want Resolver to sort query logging configurations by.
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortBy , if any, as in the previous request.
Valid values include the following elements:
If you specified a value for SortBy , the order that you want query logging configurations to be listed in, ASCENDING or DESCENDING .
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortOrder , if any, as in the previous request.
dict
Response Syntax
{
'NextToken': 'string',
'TotalCount': 123,
'TotalFilteredCount': 123,
'ResolverQueryLogConfigs': [
{
'Id': 'string',
'OwnerId': 'string',
'Status': 'CREATING'|'CREATED'|'DELETING'|'FAILED',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'AssociationCount': 123,
'Arn': 'string',
'Name': 'string',
'DestinationArn': 'string',
'CreatorRequestId': 'string',
'CreationTime': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If there are more than MaxResults query logging configurations, you can submit another ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, specify the value of NextToken from the previous response.
TotalCount (integer) --
The total number of query logging configurations that were created by the current account in the specified Region. This count can differ from the number of query logging configurations that are returned in a ListResolverQueryLogConfigs response, depending on the values that you specify in the request.
TotalFilteredCount (integer) --
The total number of query logging configurations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigs request. For the total number of query logging configurations that were created by the current account in the specified Region, see TotalCount .
ResolverQueryLogConfigs (list) --
A list that contains one ResolverQueryLogConfig element for each query logging configuration that matches the values that you specified for Filter .
(dict) --
In the response to a CreateResolverQueryLogConfig , DeleteResolverQueryLogConfig , GetResolverQueryLogConfig , or ListResolverQueryLogConfigs request, a complex type that contains settings for one query logging configuration.
Id (string) --
The ID for the query logging configuration.
OwnerId (string) --
The AWS account ID for the account that created the query logging configuration.
Status (string) --
The status of the specified query logging configuration. Valid values include the following:
ShareStatus (string) --
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).
AssociationCount (integer) --
The number of VPCs that are associated with the query logging configuration.
Arn (string) --
The ARN for the query logging configuration.
Name (string) --
The name of the query logging configuration.
DestinationArn (string) --
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
CreatorRequestId (string) --
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
CreationTime (string) --
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Lists the associations that were created between Resolver rules and VPCs using the current AWS account.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_rule_associations(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
]
)
For the first ListResolverRuleAssociation request, omit this value.
If you have more than MaxResults rule associations, you can submit another ListResolverRuleAssociation request to get the next group of rule associations. In the next request, specify the value of NextToken from the previous response.
An optional specification to return a subset of Resolver rules, such as Resolver rules that are associated with the same VPC ID.
Note
If you submit a second or subsequent ListResolverRuleAssociations request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
dict
Response Syntax
{
'NextToken': 'string',
'MaxResults': 123,
'ResolverRuleAssociations': [
{
'Id': 'string',
'ResolverRuleId': 'string',
'Name': 'string',
'VPCId': 'string',
'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
'StatusMessage': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If more than MaxResults rule associations match the specified criteria, you can submit another ListResolverRuleAssociation request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverRuleAssociations (list) --
The associations that were created between Resolver rules and VPCs using the current AWS account, and that match the specified filters, if any.
(dict) --
In the response to an AssociateResolverRule , DisassociateResolverRule , or ListResolverRuleAssociations request, provides information about an association between a Resolver rule and a VPC. The association determines which DNS queries that originate in the VPC are forwarded to your network.
Id (string) --
The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
ResolverRuleId (string) --
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
Name (string) --
The name of an association between a Resolver rule and a VPC.
VPCId (string) --
The ID of the VPC that you associated the Resolver rule with.
Status (string) --
A code that specifies the current status of the association between a Resolver rule and a VPC.
StatusMessage (string) --
A detailed description of the status of the association between a Resolver rule and a VPC.
Exceptions
Lists the Resolver rules that were created using the current AWS account.
See also: AWS API Documentation
Request Syntax
response = client.list_resolver_rules(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
]
)
For the first ListResolverRules request, omit this value.
If you have more than MaxResults Resolver rules, you can submit another ListResolverRules request to get the next group of Resolver rules. In the next request, specify the value of NextToken from the previous response.
An optional specification to return a subset of Resolver rules, such as all Resolver rules that are associated with the same Resolver endpoint.
Note
If you submit a second or subsequent ListResolverRules request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
dict
Response Syntax
{
'NextToken': 'string',
'MaxResults': 123,
'ResolverRules': [
{
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
If more than MaxResults Resolver rules match the specified criteria, you can submit another ListResolverRules request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverRules (list) --
The Resolver rules that were created using the current AWS account and that match the specified filters, if any.
(dict) --
For queries that originate in your VPC, detailed information about a Resolver rule, which specifies how to route DNS queries out of the VPC. The ResolverRule parameter appears in the response to a CreateResolverRule , DeleteResolverRule , GetResolverRule , ListResolverRules , or UpdateResolverRule request.
Id (string) --
The ID that Resolver assigned to the Resolver rule when you created it.
CreatorRequestId (string) --
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DomainName (string) --
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
Status (string) --
A code that specifies the current status of the Resolver rule.
StatusMessage (string) --
A detailed description of the status of a Resolver rule.
RuleType (string) --
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
Name (string) --
The name for the Resolver rule, which you specified when you created the Resolver rule.
TargetIps (list) --
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
(dict) --
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
Ip (string) --
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
Port (integer) --
The port at Ip that you want to forward DNS queries to.
ResolverEndpointId (string) --
The ID of the endpoint that the rule is associated with.
OwnerId (string) --
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
ShareStatus (string) --
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
CreationTime (string) --
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Lists the tags that you associated with the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to list tags for.
For the first ListTagsForResource request, omit this value.
If you have more than MaxResults tags, you can submit another ListTagsForResource request to get the next group of tags for the resource. In the next request, specify the value of NextToken from the previous response.
dict
Response Syntax
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Tags (list) --
The tags that are associated with the resource that you specified in the ListTagsForResource request.
(dict) --
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
Key (string) --
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
Value (string) --
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.
NextToken (string) --
If more than MaxResults tags match the specified criteria, you can submit another ListTagsForResource request to get the next group of results. In the next request, specify the value of NextToken from the previous response.
Exceptions
Specifies an AWS account that you want to share a query logging configuration with, the query logging configuration that you want to share, and the operations that you want the account to be able to perform on the configuration.
See also: AWS API Documentation
Request Syntax
response = client.put_resolver_query_log_config_policy(
Arn='string',
ResolverQueryLogConfigPolicy='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the account that you want to share rules with.
[REQUIRED]
An AWS Identity and Access Management policy statement that lists the query logging configurations that you want to share with another AWS account and the operations that you want the account to be able to perform. You can specify the following operations in the Actions section of the statement:
In the Resource section of the statement, you specify the ARNs for the query logging configurations that you want to share with the account that you specified in Arn .
dict
Response Syntax
{
'ReturnValue': True|False
}
Response Structure
(dict) --
The response to a PutResolverQueryLogConfigPolicy request.
ReturnValue (boolean) --
Whether the PutResolverQueryLogConfigPolicy request was successful.
Exceptions
Specifies an AWS account that you want to share rules with, the Resolver rules that you want to share, and the operations that you want the account to be able to perform on those rules.
See also: AWS API Documentation
Request Syntax
response = client.put_resolver_rule_policy(
Arn='string',
ResolverRulePolicy='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the account that you want to share rules with.
[REQUIRED]
An AWS Identity and Access Management policy statement that lists the rules that you want to share with another AWS account and the operations that you want the account to be able to perform. You can specify the following operations in the Actions section of the statement:
In the Resource section of the statement, you specify the ARNs for the rules that you want to share with the account that you specified in Arn .
dict
Response Syntax
{
'ReturnValue': True|False
}
Response Structure
(dict) --
The response to a PutResolverRulePolicy request.
ReturnValue (boolean) --
Whether the PutResolverRulePolicy request was successful.
Exceptions
Adds one or more tags to a specified resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get or List command:
[REQUIRED]
The tags that you want to add to the specified resource.
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.
dict
Response Syntax
{}
Response Structure
Exceptions
Removes one or more tags from a specified resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to remove tags from. To get the ARN for a resource, use the applicable Get or List command:
[REQUIRED]
The tags that you want to remove to the specified resource.
dict
Response Syntax
{}
Response Structure
Exceptions
Updates the name of an inbound or an outbound Resolver endpoint.
See also: AWS API Documentation
Request Syntax
response = client.update_resolver_endpoint(
ResolverEndpointId='string',
Name='string'
)
[REQUIRED]
The ID of the Resolver endpoint that you want to update.
dict
Response Syntax
{
'ResolverEndpoint': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverEndpoint (dict) --
The response to an UpdateResolverEndpoint request.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
Updates settings for a specified Resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.
See also: AWS API Documentation
Request Syntax
response = client.update_resolver_rule(
ResolverRuleId='string',
Config={
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string'
}
)
[REQUIRED]
The ID of the Resolver rule that you want to update.
[REQUIRED]
The new settings for the Resolver rule.
The new name for the Resolver rule. The name that you specify appears in the Resolver dashboard in the Route 53 console.
For DNS queries that originate in your VPC, the new IP addresses that you want to route outbound DNS queries to.
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
The port at Ip that you want to forward DNS queries to.
The ID of the new outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps .
dict
Response Syntax
{
'ResolverRule': {
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
}
}
Response Structure
(dict) --
ResolverRule (dict) --
The response to an UpdateResolverRule request.
Id (string) --
The ID that Resolver assigned to the Resolver rule when you created it.
CreatorRequestId (string) --
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DomainName (string) --
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
Status (string) --
A code that specifies the current status of the Resolver rule.
StatusMessage (string) --
A detailed description of the status of a Resolver rule.
RuleType (string) --
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
Name (string) --
The name for the Resolver rule, which you specified when you created the Resolver rule.
TargetIps (list) --
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
(dict) --
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
Ip (string) --
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
Port (integer) --
The port at Ip that you want to forward DNS queries to.
ResolverEndpointId (string) --
The ID of the endpoint that the rule is associated with.
OwnerId (string) --
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
ShareStatus (string) --
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
CreationTime (string) --
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
Exceptions
The available paginators are:
paginator = client.get_paginator('list_resolver_endpoint_ip_addresses')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_endpoint_ip_addresses().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ResolverEndpointId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the Resolver endpoint that you want to get IP addresses for.
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'MaxResults': 123,
'IpAddresses': [
{
'IpId': 'string',
'SubnetId': 'string',
'Ip': 'string',
'Status': 'CREATING'|'FAILED_CREATION'|'ATTACHING'|'ATTACHED'|'REMAP_DETACHING'|'REMAP_ATTACHING'|'DETACHING'|'FAILED_RESOURCE_GONE'|'DELETING'|'DELETE_FAILED_FAS_EXPIRED',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
MaxResults (integer) --
The value that you specified for MaxResults in the request.
IpAddresses (list) --
Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
(dict) --
In the response to a GetResolverEndpoint request, information about the IP addresses that the Resolver endpoint uses for DNS queries.
IpId (string) --
The ID of one IP address.
SubnetId (string) --
The ID of one subnet.
Ip (string) --
One IP address that the Resolver endpoint uses for DNS queries.
Status (string) --
A status code that gives the current status of the request.
StatusMessage (string) --
A message that provides additional information about the status of the request.
CreationTime (string) --
The date and time that the IP address was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the IP address was last modified, in Unix time format and Coordinated Universal Time (UTC).
paginator = client.get_paginator('list_resolver_endpoints')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_endpoints().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An optional specification to return a subset of Resolver endpoints, such as all inbound Resolver endpoints.
Note
If you submit a second or subsequent ListResolverEndpoints request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'MaxResults': 123,
'ResolverEndpoints': [
{
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'Name': 'string',
'SecurityGroupIds': [
'string',
],
'Direction': 'INBOUND'|'OUTBOUND',
'IpAddressCount': 123,
'HostVPCId': 'string',
'Status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'AUTO_RECOVERING'|'ACTION_NEEDED'|'DELETING',
'StatusMessage': 'string',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverEndpoints (list) --
The Resolver endpoints that were created by using the current AWS account, and that match the specified filters, if any.
(dict) --
In the response to a CreateResolverEndpoint , DeleteResolverEndpoint , GetResolverEndpoint , ListResolverEndpoints , or UpdateResolverEndpoint request, a complex type that contains settings for an existing inbound or outbound Resolver endpoint.
Id (string) --
The ID of the Resolver endpoint.
CreatorRequestId (string) --
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver endpoint.
Name (string) --
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
SecurityGroupIds (list) --
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
Direction (string) --
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
IpAddressCount (integer) --
The number of IP addresses that the Resolver endpoint can use for DNS queries.
HostVPCId (string) --
The ID of the VPC that you want to create the Resolver endpoint in.
Status (string) --
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
StatusMessage (string) --
A detailed description of the status of the Resolver endpoint.
CreationTime (string) --
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
paginator = client.get_paginator('list_resolver_query_log_config_associations')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_query_log_config_associations().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
SortBy='string',
SortOrder='ASCENDING'|'DESCENDING',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An optional specification to return a subset of query logging associations.
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The element that you want Resolver to sort query logging associations by.
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortBy , if any, as in the previous request.
Valid values include the following elements:
If Status is a value other than FAILED , ERROR is null.
If you specified a value for SortBy , the order that you want query logging associations to be listed in, ASCENDING or DESCENDING .
Note
If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortOrder , if any, as in the previous request.
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'TotalCount': 123,
'TotalFilteredCount': 123,
'ResolverQueryLogConfigAssociations': [
{
'Id': 'string',
'ResolverQueryLogConfigId': 'string',
'ResourceId': 'string',
'Status': 'CREATING'|'ACTIVE'|'ACTION_NEEDED'|'DELETING'|'FAILED',
'Error': 'NONE'|'DESTINATION_NOT_FOUND'|'ACCESS_DENIED'|'INTERNAL_SERVICE_ERROR',
'ErrorMessage': 'string',
'CreationTime': 'string'
},
]
}
Response Structure
(dict) --
TotalCount (integer) --
The total number of query logging associations that were created by the current account in the specified Region. This count can differ from the number of associations that are returned in a ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the request.
TotalFilteredCount (integer) --
The total number of query logging associations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigAssociations request. For the total number of associations that were created by the current account in the specified Region, see TotalCount .
ResolverQueryLogConfigAssociations (list) --
A list that contains one ResolverQueryLogConfigAssociations element for each query logging association that matches the values that you specified for Filter .
(dict) --
In the response to an AssociateResolverQueryLogConfig , DisassociateResolverQueryLogConfig , GetResolverQueryLogConfigAssociation , or ListResolverQueryLogConfigAssociations , request, a complex type that contains settings for a specified association between an Amazon VPC and a query logging configuration.
Id (string) --
The ID of the query logging association.
ResolverQueryLogConfigId (string) --
The ID of the query logging configuration that a VPC is associated with.
ResourceId (string) --
The ID of the Amazon VPC that is associated with the query logging configuration.
Status (string) --
The status of the specified query logging association. Valid values include the following:
Error (string) --
If the value of Status is FAILED , the value of Error indicates the cause:
If the value of Status is a value other than FAILED , Error is null.
ErrorMessage (string) --
Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.
CreationTime (string) --
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
paginator = client.get_paginator('list_resolver_query_log_configs')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_query_log_configs().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
SortBy='string',
SortOrder='ASCENDING'|'DESCENDING',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An optional specification to return a subset of query logging configurations.
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The element that you want Resolver to sort query logging configurations by.
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortBy , if any, as in the previous request.
Valid values include the following elements:
If you specified a value for SortBy , the order that you want query logging configurations to be listed in, ASCENDING or DESCENDING .
Note
If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortOrder , if any, as in the previous request.
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'TotalCount': 123,
'TotalFilteredCount': 123,
'ResolverQueryLogConfigs': [
{
'Id': 'string',
'OwnerId': 'string',
'Status': 'CREATING'|'CREATED'|'DELETING'|'FAILED',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'AssociationCount': 123,
'Arn': 'string',
'Name': 'string',
'DestinationArn': 'string',
'CreatorRequestId': 'string',
'CreationTime': 'string'
},
]
}
Response Structure
(dict) --
TotalCount (integer) --
The total number of query logging configurations that were created by the current account in the specified Region. This count can differ from the number of query logging configurations that are returned in a ListResolverQueryLogConfigs response, depending on the values that you specify in the request.
TotalFilteredCount (integer) --
The total number of query logging configurations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigs request. For the total number of query logging configurations that were created by the current account in the specified Region, see TotalCount .
ResolverQueryLogConfigs (list) --
A list that contains one ResolverQueryLogConfig element for each query logging configuration that matches the values that you specified for Filter .
(dict) --
In the response to a CreateResolverQueryLogConfig , DeleteResolverQueryLogConfig , GetResolverQueryLogConfig , or ListResolverQueryLogConfigs request, a complex type that contains settings for one query logging configuration.
Id (string) --
The ID for the query logging configuration.
OwnerId (string) --
The AWS account ID for the account that created the query logging configuration.
Status (string) --
The status of the specified query logging configuration. Valid values include the following:
ShareStatus (string) --
An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).
AssociationCount (integer) --
The number of VPCs that are associated with the query logging configuration.
Arn (string) --
The ARN for the query logging configuration.
Name (string) --
The name of the query logging configuration.
DestinationArn (string) --
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
CreatorRequestId (string) --
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.
CreationTime (string) --
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
paginator = client.get_paginator('list_resolver_rule_associations')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_rule_associations().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An optional specification to return a subset of Resolver rules, such as Resolver rules that are associated with the same VPC ID.
Note
If you submit a second or subsequent ListResolverRuleAssociations request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'MaxResults': 123,
'ResolverRuleAssociations': [
{
'Id': 'string',
'ResolverRuleId': 'string',
'Name': 'string',
'VPCId': 'string',
'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
'StatusMessage': 'string'
},
]
}
Response Structure
(dict) --
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverRuleAssociations (list) --
The associations that were created between Resolver rules and VPCs using the current AWS account, and that match the specified filters, if any.
(dict) --
In the response to an AssociateResolverRule , DisassociateResolverRule , or ListResolverRuleAssociations request, provides information about an association between a Resolver rule and a VPC. The association determines which DNS queries that originate in the VPC are forwarded to your network.
Id (string) --
The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.
ResolverRuleId (string) --
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
Name (string) --
The name of an association between a Resolver rule and a VPC.
VPCId (string) --
The ID of the VPC that you associated the Resolver rule with.
Status (string) --
A code that specifies the current status of the association between a Resolver rule and a VPC.
StatusMessage (string) --
A detailed description of the status of the association between a Resolver rule and a VPC.
paginator = client.get_paginator('list_resolver_rules')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_resolver_rules().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An optional specification to return a subset of Resolver rules, such as all Resolver rules that are associated with the same Resolver endpoint.
Note
If you submit a second or subsequent ListResolverRules request and specify the NextToken parameter, you must use the same values for Filters , if any, as in the previous request.
For Resolver list operations (ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , and ListResolverQueryLogConfigAssociations ), an optional specification to return a subset of objects.
To filter objects, such as Resolver endpoints or Resolver rules, you specify Name and Values . For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
The name of the parameter that you want to use to filter objects.
The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints , ListResolverRules , ListResolverRuleAssociations , ListResolverQueryLogConfigs , or ListResolverQueryLogConfigAssociations .
Note
In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID . Uppercase values for Name are still supported.
ListResolverEndpoints
Valid values for Name include the following:
ListResolverRules
Valid values for Name include the following:
Note
You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType .
ListResolverRuleAssociations
Valid values for Name include the following:
ListResolverQueryLogConfigs
Valid values for Name include the following:
ListResolverQueryLogConfigAssociations
Valid values for Name include the following:
When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values .
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'MaxResults': 123,
'ResolverRules': [
{
'Id': 'string',
'CreatorRequestId': 'string',
'Arn': 'string',
'DomainName': 'string',
'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'FAILED',
'StatusMessage': 'string',
'RuleType': 'FORWARD'|'SYSTEM'|'RECURSIVE',
'Name': 'string',
'TargetIps': [
{
'Ip': 'string',
'Port': 123
},
],
'ResolverEndpointId': 'string',
'OwnerId': 'string',
'ShareStatus': 'NOT_SHARED'|'SHARED_WITH_ME'|'SHARED_BY_ME',
'CreationTime': 'string',
'ModificationTime': 'string'
},
]
}
Response Structure
(dict) --
MaxResults (integer) --
The value that you specified for MaxResults in the request.
ResolverRules (list) --
The Resolver rules that were created using the current AWS account and that match the specified filters, if any.
(dict) --
For queries that originate in your VPC, detailed information about a Resolver rule, which specifies how to route DNS queries out of the VPC. The ResolverRule parameter appears in the response to a CreateResolverRule , DeleteResolverRule , GetResolverRule , ListResolverRules , or UpdateResolverRule request.
Id (string) --
The ID that Resolver assigned to the Resolver rule when you created it.
CreatorRequestId (string) --
A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
Arn (string) --
The ARN (Amazon Resource Name) for the Resolver rule specified by Id .
DomainName (string) --
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps . If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).
Status (string) --
A code that specifies the current status of the Resolver rule.
StatusMessage (string) --
A detailed description of the status of a Resolver rule.
RuleType (string) --
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD .
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM .
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType . To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType .
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType .
Name (string) --
The name for the Resolver rule, which you specified when you created the Resolver rule.
TargetIps (list) --
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.
(dict) --
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
Ip (string) --
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
Port (integer) --
The port at Ip that you want to forward DNS queries to.
ResolverEndpointId (string) --
The ID of the endpoint that the rule is associated with.
OwnerId (string) --
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
ShareStatus (string) --
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
CreationTime (string) --
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
ModificationTime (string) --
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
paginator = client.get_paginator('list_tags_for_resource')
Creates an iterator that will paginate through responses from Route53Resolver.Client.list_tags_for_resource().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ResourceArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to list tags for.
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
}
Response Structure
(dict) --
Tags (list) --
The tags that are associated with the resource that you specified in the ListTagsForResource request.
(dict) --
One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value .
Key (string) --
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id .
Value (string) --
The value for the tag. For example, if Key is account-id , then Value might be the ID of the customer account that you're creating the resource for.