Skip to content

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)
    ...
  1. See MutationProtectionStatusType
  2. See TagTypeDef
  3. See AssociateFirewallRuleGroupResponseTypeDef
# associate_firewall_rule_group method usage example with argument unpacking

kwargs: AssociateFirewallRuleGroupRequestRequestTypeDef = {  # (1)
    "CreatorRequestId": ...,
    "FirewallRuleGroupId": ...,
    "VpcId": ...,
    "Priority": ...,
    "Name": ...,
}

parent.associate_firewall_rule_group(**kwargs)
  1. See AssociateFirewallRuleGroupRequestRequestTypeDef

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)
    ...
  1. See IpAddressUpdateTypeDef
  2. See AssociateResolverEndpointIpAddressResponseTypeDef
# associate_resolver_endpoint_ip_address method usage example with argument unpacking

kwargs: AssociateResolverEndpointIpAddressRequestRequestTypeDef = {  # (1)
    "ResolverEndpointId": ...,
    "IpAddress": ...,
}

parent.associate_resolver_endpoint_ip_address(**kwargs)
  1. See AssociateResolverEndpointIpAddressRequestRequestTypeDef

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)
    ...
  1. See AssociateResolverQueryLogConfigResponseTypeDef
# associate_resolver_query_log_config method usage example with argument unpacking

kwargs: AssociateResolverQueryLogConfigRequestRequestTypeDef = {  # (1)
    "ResolverQueryLogConfigId": ...,
    "ResourceId": ...,
}

parent.associate_resolver_query_log_config(**kwargs)
  1. See AssociateResolverQueryLogConfigRequestRequestTypeDef

associate_resolver_rule#

Associates a Resolver rule with a VPC.

Type annotations and code completion for boto3.client("route53resolver").associate_resolver_rule method. boto3 documentation

# associate_resolver_rule method definition

def associate_resolver_rule(
    self,
    *,
    ResolverRuleId: str,
    VPCId: str,
    Name: str = ...,
) -> AssociateResolverRuleResponseTypeDef:  # (1)
    ...
  1. See AssociateResolverRuleResponseTypeDef
# associate_resolver_rule method usage example with argument unpacking

kwargs: AssociateResolverRuleRequestRequestTypeDef = {  # (1)
    "ResolverRuleId": ...,
    "VPCId": ...,
}

parent.associate_resolver_rule(**kwargs)
  1. See AssociateResolverRuleRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("route53resolver").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("route53resolver").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_firewall_domain_list#

Creates an empty firewall domain list for use in DNS Firewall rules.

Type annotations and code completion for boto3.client("route53resolver").create_firewall_domain_list method. boto3 documentation

# create_firewall_domain_list method definition

def create_firewall_domain_list(
    self,
    *,
    CreatorRequestId: str,
    Name: str,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateFirewallDomainListResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateFirewallDomainListResponseTypeDef
# create_firewall_domain_list method usage example with argument unpacking

kwargs: CreateFirewallDomainListRequestRequestTypeDef = {  # (1)
    "CreatorRequestId": ...,
    "Name": ...,
}

parent.create_firewall_domain_list(**kwargs)
  1. See CreateFirewallDomainListRequestRequestTypeDef

create_firewall_rule#

Creates a single DNS Firewall rule in the specified rule group, using the specified domain list.

Type annotations and code completion for boto3.client("route53resolver").create_firewall_rule method. boto3 documentation

# create_firewall_rule method definition

def create_firewall_rule(
    self,
    *,
    CreatorRequestId: str,
    FirewallRuleGroupId: str,
    FirewallDomainListId: str,
    Priority: int,
    Action: ActionType,  # (1)
    Name: str,
    BlockResponse: BlockResponseType = ...,  # (2)
    BlockOverrideDomain: str = ...,
    BlockOverrideDnsType: BlockOverrideDnsTypeType = ...,  # (3)
    BlockOverrideTtl: int = ...,
    FirewallDomainRedirectionAction: FirewallDomainRedirectionActionType = ...,  # (4)
    Qtype: str = ...,
) -> CreateFirewallRuleResponseTypeDef:  # (5)
    ...
  1. See ActionType
  2. See BlockResponseType
  3. See BlockOverrideDnsTypeType
  4. See FirewallDomainRedirectionActionType
  5. See CreateFirewallRuleResponseTypeDef
# create_firewall_rule method usage example with argument unpacking

kwargs: CreateFirewallRuleRequestRequestTypeDef = {  # (1)
    "CreatorRequestId": ...,
    "FirewallRuleGroupId": ...,
    "FirewallDomainListId": ...,
    "Priority": ...,
    "Action": ...,
    "Name": ...,
}

parent.create_firewall_rule(**kwargs)
  1. See