ARCZonalShiftClient#
Index > ARCZonalShift > ARCZonalShiftClient
Auto-generated documentation for ARCZonalShift type annotations stubs module types-aiobotocore-arc-zonal-shift.
ARCZonalShiftClient#
Type annotations and code completion for session.create_client("arc-zonal-shift")
boto3 documentation
ARCZonalShiftClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_arc_zonal_shift.client import ARCZonalShiftClient
session = get_session()
async with session.create_client("arc-zonal-shift") as client:
client: ARCZonalShiftClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("arc-zonal-shift").exceptions
structure.
ARCZonalShiftClient.exceptions usage example
async with session.create_client("arc-zonal-shift") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
ARCZonalShiftClient usage type checking example
from types_aiobotocore_arc_zonal_shift.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("arc-zonal-shift").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
cancel_zonal_shift#
Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region.
Type annotations and code completion for session.create_client("arc-zonal-shift").cancel_zonal_shift
method.
boto3 documentation
# cancel_zonal_shift method definition
await def cancel_zonal_shift(
self,
*,
zonalShiftId: str,
) -> ZonalShiftTypeDef: # (1)
...
# cancel_zonal_shift method usage example with argument unpacking
kwargs: CancelZonalShiftRequestRequestTypeDef = { # (1)
"zonalShiftId": ...,
}
parent.cancel_zonal_shift(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("arc-zonal-shift").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("arc-zonal-shift").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_managed_resource#
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region.
Type annotations and code completion for session.create_client("arc-zonal-shift").get_managed_resource
method.
boto3 documentation
# get_managed_resource method definition
await def get_managed_resource(
self,
*,
resourceIdentifier: str,
) -> GetManagedResourceResponseTypeDef: # (1)
...
# get_managed_resource method usage example with argument unpacking
kwargs: GetManagedResourceRequestRequestTypeDef = { # (1)
"resourceIdentifier": ...,
}
parent.get_managed_resource(**kwargs)
list_managed_resources#
Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information about them.
Type annotations and code completion for session.create_client("arc-zonal-shift").list_managed_resources
method.
boto3 documentation
# list_managed_resources method definition
await def list_managed_resources(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListManagedResourcesResponseTypeDef: # (1)
...
# list_managed_resources method usage example with argument unpacking
kwargs: ListManagedResourcesRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_managed_resources(**kwargs)
list_zonal_shifts#
Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.
Type annotations and code completion for session.create_client("arc-zonal-shift").list_zonal_shifts
method.
boto3 documentation
# list_zonal_shifts method definition
await def list_zonal_shifts(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
status: ZonalShiftStatusType = ..., # (1)
) -> ListZonalShiftsResponseTypeDef: # (2)
...
# list_zonal_shifts method usage example with argument unpacking
kwargs: ListZonalShiftsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_zonal_shifts(**kwargs)
start_zonal_shift#
You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region, to help your application recover immediately, for example, from a developer's bad code deployment or from an AWS infrastructure failure in a single Availability Zone.
Type annotations and code completion for session.create_client("arc-zonal-shift").start_zonal_shift
method.
boto3 documentation
# start_zonal_shift method definition
await def start_zonal_shift(
self,
*,
awayFrom: str,
comment: str,
expiresIn: str,
resourceIdentifier: str,
) -> ZonalShiftTypeDef: # (1)
...
# start_zonal_shift method usage example with argument unpacking
kwargs: StartZonalShiftRequestRequestTypeDef = { # (1)
"awayFrom": ...,
"comment": ...,
"expiresIn": ...,
"resourceIdentifier": ...,
}
parent.start_zonal_shift(**kwargs)
update_zonal_shift#
Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account.
Type annotations and code completion for session.create_client("arc-zonal-shift").update_zonal_shift
method.
boto3 documentation
# update_zonal_shift method definition
await def update_zonal_shift(
self,
*,
zonalShiftId: str,
comment: str = ...,
expiresIn: str = ...,
) -> ZonalShiftTypeDef: # (1)
...
# update_zonal_shift method usage example with argument unpacking
kwargs: UpdateZonalShiftRequestRequestTypeDef = { # (1)
"zonalShiftId": ...,
}
parent.update_zonal_shift(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("arc-zonal-shift").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> ARCZonalShiftClient:
...
__aexit__#
Type annotations and code completion for session.create_client("arc-zonal-shift").__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("arc-zonal-shift").get_paginator
method with overloads.
client.get_paginator("list_managed_resources")
-> ListManagedResourcesPaginatorclient.get_paginator("list_zonal_shifts")
-> ListZonalShiftsPaginator