@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSARCZonalShiftAsyncClient extends AWSARCZonalShiftClient implements AWSARCZonalShiftAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about zonal shift API actions, data types, and errors.
Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.
Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue in one zone.
Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region. At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially. If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
For more information about using zonal shift, see the Amazon Route 53 Application Recovery Controller Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSARCZonalShiftAsyncClientBuilder |
asyncBuilder() |
Future<CancelZonalShiftResult> |
cancelZonalShiftAsync(CancelZonalShiftRequest request)
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.
|
Future<CancelZonalShiftResult> |
cancelZonalShiftAsync(CancelZonalShiftRequest request,
AsyncHandler<CancelZonalShiftRequest,CancelZonalShiftResult> asyncHandler)
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.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetManagedResourceResult> |
getManagedResourceAsync(GetManagedResourceRequest request)
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application
Recovery Controller in this AWS Region.
|
Future<GetManagedResourceResult> |
getManagedResourceAsync(GetManagedResourceRequest request,
AsyncHandler<GetManagedResourceRequest,GetManagedResourceResult> asyncHandler)
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application
Recovery Controller in this AWS Region.
|
Future<ListManagedResourcesResult> |
listManagedResourcesAsync(ListManagedResourcesRequest request)
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.
|
Future<ListManagedResourcesResult> |
listManagedResourcesAsync(ListManagedResourcesRequest request,
AsyncHandler<ListManagedResourcesRequest,ListManagedResourcesResult> asyncHandler)
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.
|
Future<ListZonalShiftsResult> |
listZonalShiftsAsync(ListZonalShiftsRequest request)
Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this
AWS Region.
|
Future<ListZonalShiftsResult> |
listZonalShiftsAsync(ListZonalShiftsRequest request,
AsyncHandler<ListZonalShiftsRequest,ListZonalShiftsResult> asyncHandler)
Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this
AWS Region.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartZonalShiftResult> |
startZonalShiftAsync(StartZonalShiftRequest request)
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.
|
Future<StartZonalShiftResult> |
startZonalShiftAsync(StartZonalShiftRequest request,
AsyncHandler<StartZonalShiftRequest,StartZonalShiftResult> asyncHandler)
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.
|
Future<UpdateZonalShiftResult> |
updateZonalShiftAsync(UpdateZonalShiftRequest request)
Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account.
|
Future<UpdateZonalShiftResult> |
updateZonalShiftAsync(UpdateZonalShiftRequest request,
AsyncHandler<UpdateZonalShiftRequest,UpdateZonalShiftResult> asyncHandler)
Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account.
|
builder, cancelZonalShift, getCachedResponseMetadata, getManagedResource, listManagedResources, listZonalShifts, startZonalShift, updateZonalShift
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelZonalShift, getCachedResponseMetadata, getManagedResource, listManagedResources, listZonalShifts, startZonalShift, updateZonalShift
public static AWSARCZonalShiftAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelZonalShiftResult> cancelZonalShiftAsync(CancelZonalShiftRequest request)
AWSARCZonalShiftAsync
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.
cancelZonalShiftAsync
in interface AWSARCZonalShiftAsync
public Future<CancelZonalShiftResult> cancelZonalShiftAsync(CancelZonalShiftRequest request, AsyncHandler<CancelZonalShiftRequest,CancelZonalShiftResult> asyncHandler)
AWSARCZonalShiftAsync
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.
cancelZonalShiftAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetManagedResourceResult> getManagedResourceAsync(GetManagedResourceRequest request)
AWSARCZonalShiftAsync
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
getManagedResourceAsync
in interface AWSARCZonalShiftAsync
public Future<GetManagedResourceResult> getManagedResourceAsync(GetManagedResourceRequest request, AsyncHandler<GetManagedResourceRequest,GetManagedResourceResult> asyncHandler)
AWSARCZonalShiftAsync
Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
getManagedResourceAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListManagedResourcesResult> listManagedResourcesAsync(ListManagedResourcesRequest request)
AWSARCZonalShiftAsync
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. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and the resource name.
listManagedResourcesAsync
in interface AWSARCZonalShiftAsync
public Future<ListManagedResourcesResult> listManagedResourcesAsync(ListManagedResourcesRequest request, AsyncHandler<ListManagedResourcesRequest,ListManagedResourcesResult> asyncHandler)
AWSARCZonalShiftAsync
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. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and the resource name.
listManagedResourcesAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListZonalShiftsResult> listZonalShiftsAsync(ListZonalShiftsRequest request)
AWSARCZonalShiftAsync
Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.
listZonalShiftsAsync
in interface AWSARCZonalShiftAsync
public Future<ListZonalShiftsResult> listZonalShiftsAsync(ListZonalShiftsRequest request, AsyncHandler<ListZonalShiftsRequest,ListZonalShiftsResult> asyncHandler)
AWSARCZonalShiftAsync
Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.
listZonalShiftsAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartZonalShiftResult> startZonalShiftAsync(StartZonalShiftRequest request)
AWSARCZonalShiftAsync
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. You can start a zonal shift in Route 53 ARC only for managed resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes, for existing, in-progress connections in the Availability Zone to complete.
For more information, see Zonal shift in the Amazon Route 53 Application Recovery Controller Developer Guide.
startZonalShiftAsync
in interface AWSARCZonalShiftAsync
public Future<StartZonalShiftResult> startZonalShiftAsync(StartZonalShiftRequest request, AsyncHandler<StartZonalShiftRequest,StartZonalShiftResult> asyncHandler)
AWSARCZonalShiftAsync
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. You can start a zonal shift in Route 53 ARC only for managed resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.
At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes, for existing, in-progress connections in the Availability Zone to complete.
For more information, see Zonal shift in the Amazon Route 53 Application Recovery Controller Developer Guide.
startZonalShiftAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateZonalShiftResult> updateZonalShiftAsync(UpdateZonalShiftRequest request)
AWSARCZonalShiftAsync
Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.
updateZonalShiftAsync
in interface AWSARCZonalShiftAsync
public Future<UpdateZonalShiftResult> updateZonalShiftAsync(UpdateZonalShiftRequest request, AsyncHandler<UpdateZonalShiftRequest,UpdateZonalShiftResult> asyncHandler)
AWSARCZonalShiftAsync
Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.
updateZonalShiftAsync
in interface AWSARCZonalShiftAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSARCZonalShift
shutdown
in class AWSARCZonalShiftClient