Route53ResolverClient#
Index > Route53Resolver > Route53ResolverClient
Auto-generated documentation for Route53Resolver type annotations stubs module mypy-boto3-route53resolver.
Route53ResolverClient#
Type annotations and code completion for boto3.client("route53resolver")
.
boto3 documentation
# Route53ResolverClient usage example
from boto3.session import Session
from mypy_boto3_route53resolver.client import Route53ResolverClient
def get_route53resolver_client() -> Route53ResolverClient:
return Session().client("route53resolver")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("route53resolver").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("route53resolver")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServiceErrorException,
client.exceptions.InvalidNextTokenException,
client.exceptions.InvalidParameterException,
client.exceptions.InvalidPolicyDocument,
client.exceptions.InvalidRequestException,
client.exceptions.InvalidTagException,
client.exceptions.LimitExceededException,
client.exceptions.ResourceExistsException,
client.exceptions.ResourceInUseException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ResourceUnavailableException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.UnknownResourceException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_route53resolver.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_firewall_rule_group#
Associates a FirewallRuleGroup with a VPC, to provide DNS filtering for the VPC.
Type annotations and code completion for boto3.client("route53resolver").associate_firewall_rule_group
method.
boto3 documentation
# associate_firewall_rule_group method definition
def associate_firewall_rule_group(
self,
*,
CreatorRequestId: str,
FirewallRuleGroupId: str,
VpcId: str,
Priority: int,
Name: str,
MutationProtection: MutationProtectionStatusType = ..., # (1)
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> AssociateFirewallRuleGroupResponseTypeDef: # (3)
...
# associate_firewall_rule_group method usage example with argument unpacking
kwargs: AssociateFirewallRuleGroupRequestRequestTypeDef = { # (1)
"CreatorRequestId": ...,
"FirewallRuleGroupId": ...,
"VpcId": ...,
"Priority": ...,
"Name": ...,
}
parent.associate_firewall_rule_group(**kwargs)
associate_resolver_endpoint_ip_address#
Adds IP addresses to an inbound or an outbound Resolver endpoint.
Type annotations and code completion for boto3.client("route53resolver").associate_resolver_endpoint_ip_address
method.
boto3 documentation
# associate_resolver_endpoint_ip_address method definition
def associate_resolver_endpoint_ip_address(
self,
*,
ResolverEndpointId: str,
IpAddress: IpAddressUpdateTypeDef, # (1)
) -> AssociateResolverEndpointIpAddressResponseTypeDef: # (2)
...
# associate_resolver_endpoint_ip_address method usage example with argument unpacking
kwargs: AssociateResolverEndpointIpAddressRequestRequestTypeDef = { # (1)
"ResolverEndpointId": ...,
"IpAddress": ...,
}
parent.associate_resolver_endpoint_ip_address(**kwargs)
associate_resolver_query_log_config#
Associates an Amazon VPC with a specified query logging configuration.
Type annotations and code completion for boto3.client("route53resolver").associate_resolver_query_log_config
method.
boto3 documentation
# associate_resolver_query_log_config method definition
def associate_resolver_query_log_config(
self,
*,
ResolverQueryLogConfigId: str,
ResourceId: str,
) -> AssociateResolverQueryLogConfigResponseTypeDef: # (1)
...
# associate_resolver_query_log_config method usage example