Skip to content

Route53RecoveryClusterClient#

Index > Route53RecoveryCluster > Route53RecoveryClusterClient

Auto-generated documentation for Route53RecoveryCluster type annotations stubs module types-aiobotocore-route53-recovery-cluster.

Route53RecoveryClusterClient#

Type annotations and code completion for session.create_client("route53-recovery-cluster") boto3 documentation

Route53RecoveryClusterClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_route53_recovery_cluster.client import Route53RecoveryClusterClient

session = get_session()
async with session.create_client("route53-recovery-cluster") as client:
    client: Route53RecoveryClusterClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("route53-recovery-cluster").exceptions structure.

Route53RecoveryClusterClient.exceptions usage example

async with session.create_client("route53-recovery-cluster") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ConflictException,
        client.EndpointTemporarilyUnavailableException,
        client.InternalServerException,
        client.ResourceNotFoundException,
        client.ServiceLimitExceededException,
        client.ThrottlingException,
        client.ValidationException,
    ) as e:
        print(e)
Route53RecoveryClusterClient usage type checking example

from types_aiobotocore_route53_recovery_cluster.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("route53-recovery-cluster").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 session.create_client("route53-recovery-cluster").close method. boto3 documentation

# close method definition

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

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("route53-recovery-cluster").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_routing_control_state#

Get the state for a routing control.

Type annotations and code completion for session.create_client("route53-recovery-cluster").get_routing_control_state method. boto3 documentation

# get_routing_control_state method definition

await def get_routing_control_state(
    self,
    *,
    RoutingControlArn: str,
) -> GetRoutingControlStateResponseTypeDef:  # (1)
    ...
  1. See GetRoutingControlStateResponseTypeDef
# get_routing_control_state method usage example with argument unpacking

kwargs: GetRoutingControlStateRequestRequestTypeDef = {  # (1)
    "RoutingControlArn": ...,
}

parent.get_routing_control_state(**kwargs)
  1. See GetRoutingControlStateRequestRequestTypeDef

list_routing_controls#

List routing control names and Amazon Resource Names (ARNs), as well as the routing control state for each routing control, along with the control panel name and control panel ARN for the routing controls.

Type annotations and code completion for session.create_client("route53-recovery-cluster").list_routing_controls method. boto3 documentation

# list_routing_controls method definition

await def list_routing_controls(
    self,
    *,
    ControlPanelArn: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListRoutingControlsResponseTypeDef:  # (1)
    ...
  1. See ListRoutingControlsResponseTypeDef
# list_routing_controls method usage example with argument unpacking

kwargs: ListRoutingControlsRequestRequestTypeDef = {  # (1)
    "ControlPanelArn": ...,
}

parent.list_routing_controls(**kwargs)
  1. See ListRoutingControlsRequestRequestTypeDef

update_routing_control_state#

Set the state of the routing control to reroute traffic.

Type annotations and code completion for session.create_client("route53-recovery-cluster").update_routing_control_state method. boto3 documentation

# update_routing_control_state method definition

await def update_routing_control_state(
    self,
    *,
    RoutingControlArn: str,
    RoutingControlState: RoutingControlStateType,  # (1)
    SafetyRulesToOverride: Sequence[str] = ...,
) -> Dict[str, Any]:
    ...
  1. See RoutingControlStateType
# update_routing_control_state method usage example with argument unpacking

kwargs: UpdateRoutingControlStateRequestRequestTypeDef = {  # (1)
    "RoutingControlArn": ...,
    "RoutingControlState": ...,
}

parent.update_routing_control_state(**kwargs)
  1. See UpdateRoutingControlStateRequestRequestTypeDef

update_routing_control_states#

Set multiple routing control states.

Type annotations and code completion for session.create_client("route53-recovery-cluster").update_routing_control_states method. boto3 documentation

# update_routing_control_states method definition

await def update_routing_control_states(
    self,
    *,
    UpdateRoutingControlStateEntries: Sequence[UpdateRoutingControlStateEntryTypeDef],  # (1)
    SafetyRulesToOverride: Sequence[str] = ...,
) -> Dict[str, Any]:
    ...
  1. See UpdateRoutingControlStateEntryTypeDef
# update_routing_control_states method usage example with argument unpacking

kwargs: UpdateRoutingControlStatesRequestRequestTypeDef = {  # (1)
    "UpdateRoutingControlStateEntries": ...,
}

parent.update_routing_control_states(**kwargs)
  1. See UpdateRoutingControlStatesRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("route53-recovery-cluster").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> Route53RecoveryClusterClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("route53-recovery-cluster").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("route53-recovery-cluster").get_paginator method with overloads.