Skip to content

Route53Client#

Index > Route53 > Route53Client

Auto-generated documentation for Route53 type annotations stubs module mypy-boto3-route53.

Route53Client#

Type annotations and code completion for boto3.client("route53"). boto3 documentation

# Route53Client usage example

from boto3.session import Session
from mypy_boto3_route53.client import Route53Client

def get_route53_client() -> Route53Client:
    return Session().client("route53")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("route53").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("route53")

try:
    do_something(client)
except (
    client.exceptions.CidrBlockInUseException,
    client.exceptions.CidrCollectionAlreadyExistsException,
    client.exceptions.CidrCollectionInUseException,
    client.exceptions.CidrCollectionVersionMismatchException,
    client.exceptions.ClientError,
    client.exceptions.ConcurrentModification,
    client.exceptions.ConflictingDomainExists,
    client.exceptions.ConflictingTypes,
    client.exceptions.DNSSECNotFound,
    client.exceptions.DelegationSetAlreadyCreated,
    client.exceptions.DelegationSetAlreadyReusable,
    client.exceptions.DelegationSetInUse,
    client.exceptions.DelegationSetNotAvailable,
    client.exceptions.DelegationSetNotReusable,
    client.exceptions.HealthCheckAlreadyExists,
    client.exceptions.HealthCheckInUse,
    client.exceptions.HealthCheckVersionMismatch,
    client.exceptions.HostedZoneAlreadyExists,
    client.exceptions.HostedZoneNotEmpty,
    client.exceptions.HostedZoneNotFound,
    client.exceptions.HostedZoneNotPrivate,
    client.exceptions.HostedZonePartiallyDelegated,
    client.exceptions.IncompatibleVersion,
    client.exceptions.InsufficientCloudWatchLogsResourcePolicy,
    client.exceptions.InvalidArgument,
    client.exceptions.InvalidChangeBatch,
    client.exceptions.InvalidDomainName,
    client.exceptions.InvalidInput,
    client.exceptions.InvalidKMSArn,
    client.exceptions.InvalidKeySigningKeyName,
    client.exceptions.InvalidKeySigningKeyStatus,
    client.exceptions.InvalidPaginationToken,
    client.exceptions.InvalidSigningStatus,
    client.exceptions.InvalidTrafficPolicyDocument,
    client.exceptions.InvalidVPCId,
    client.exceptions.KeySigningKeyAlreadyExists,
    client.exceptions.KeySigningKeyInParentDSRecord,
    client.exceptions.KeySigningKeyInUse,
    client.exceptions.KeySigningKeyWithActiveStatusNotFound,
    client.exceptions.LastVPCAssociation,
    client.exceptions.LimitsExceeded,
    client.exceptions.NoSuchChange,
    client.exceptions.NoSuchCidrCollectionException,
    client.exceptions.NoSuchCidrLocationException,
    client.exceptions.NoSuchCloudWatchLogsLogGroup,
    client.exceptions.NoSuchDelegationSet,
    client.exceptions.NoSuchGeoLocation,
    client.exceptions.NoSuchHealthCheck,
    client.exceptions.NoSuchHostedZone,
    client.exceptions.NoSuchKeySigningKey,
    client.exceptions.NoSuchQueryLoggingConfig,
    client.exceptions.NoSuchTrafficPolicy,
    client.exceptions.NoSuchTrafficPolicyInstance,
    client.exceptions.NotAuthorizedException,
    client.exceptions.PriorRequestNotComplete,
    client.exceptions.PublicZoneVPCAssociation,
    client.exceptions.QueryLoggingConfigAlreadyExists,
    client.exceptions.ThrottlingException,
    client.exceptions.TooManyHealthChecks,
    client.exceptions.TooManyHostedZones,
    client.exceptions.TooManyKeySigningKeys,
    client.exceptions.TooManyTrafficPolicies,
    client.exceptions.TooManyTrafficPolicyInstances,
    client.exceptions.TooManyTrafficPolicyVersionsForCurrentPolicy,
    client.exceptions.TooManyVPCAssociationAuthorizations,
    client.exceptions.TrafficPolicyAlreadyExists,
    client.exceptions.TrafficPolicyInUse,
    client.exceptions.TrafficPolicyInstanceAlreadyExists,
    client.exceptions.VPCAssociationAuthorizationNotFound,
    client.exceptions.VPCAssociationNotFound,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_route53.client import Exceptions

def handle_error(exc: Exceptions.CidrBlockInUseException) -> None:
    ...

Methods#

activate_key_signing_key#

Activates a key-signing key (KSK) so that it can be used for signing by DNSSEC.

Type annotations and code completion for boto3.client("route53").activate_key_signing_key method. boto3 documentation

# activate_key_signing_key method definition

def activate_key_signing_key(
    self,
    *,
    HostedZoneId: str,
    Name: str,
) -> ActivateKeySigningKeyResponseTypeDef:  # (1)
    ...
  1. See ActivateKeySigningKeyResponseTypeDef
# activate_key_signing_key method usage example with argument unpacking

kwargs: ActivateKeySigningKeyRequestRequestTypeDef = {  # (1)
    "HostedZoneId": ...,
    "Name": ...,
}

parent.activate_key_signing_key(**kwargs)
  1. See ActivateKeySigningKeyRequestRequestTypeDef

associate_vpc_with_hosted_zone#

Associates an Amazon VPC with a private hosted zone.

Type annotations and code completion for boto3.client("route53").associate_vpc_with_hosted_zone method. boto3 documentation

# associate_vpc_with_hosted_zone method definition

def associate_vpc_with_hosted_zone(
    self,
    *,
    HostedZoneId: str,
    VPC: VPCTypeDef,  # (1)
    Comment: str = ...,
) -> AssociateVPCWithHostedZoneResponseTypeDef:  # (2)
    ...
  1. See VPCTypeDef
  2. See AssociateVPCWithHostedZoneResponseTypeDef
# associate_vpc_with_hosted_zone method usage example with argument unpacking

kwargs: AssociateVPCWithHostedZoneRequestRequestTypeDef = {  # (1)
    "HostedZoneId": ...,
    "VPC": ...,
}

parent.associate_vpc_with_hosted_zone(**kwargs)
  1. See AssociateVPCWithHostedZoneRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

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