@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSRAMAsyncClient extends AWSRAMClient implements AWSRAMAsync
AsyncHandler can be used to receive notification when an
asynchronous operation completes.
Use AWS Resource Access Manager to share AWS resources between AWS accounts. To share a resource, you create a resource share, associate the resource with the resource share, and specify the principals that can access the resource. The following principals are supported:
The ID of an AWS account
The Amazon Resource Name (ARN) of an OU from AWS Organizations
The Amazon Resource Name (ARN) of an organization from AWS Organizations
If you specify an AWS account that doesn't exist in the same organization as the account that owns the resource share, the owner of the specified account receives an invitation to accept the resource share. After the owner accepts the invitation, they can access the resources in the resource share. An administrator of the specified account can use IAM policies to restrict access resources in the resource share.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXacceptResourceShareInvitation, associateResourceShare, builder, createResourceShare, deleteResourceShare, disassociateResourceShare, enableSharingWithAwsOrganization, getCachedResponseMetadata, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPrincipals, listResources, rejectResourceShareInvitation, tagResource, untagResource, updateResourceShareaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptResourceShareInvitation, associateResourceShare, createResourceShare, deleteResourceShare, disassociateResourceShare, enableSharingWithAwsOrganization, getCachedResponseMetadata, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPrincipals, listResources, rejectResourceShareInvitation, tagResource, untagResource, updateResourceSharepublic static AWSRAMAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request)
AWSRAMAsyncAccepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationAsync in interface AWSRAMAsyncpublic Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request, AsyncHandler<AcceptResourceShareInvitationRequest,AcceptResourceShareInvitationResult> asyncHandler)
AWSRAMAsyncAccepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationAsync in interface AWSRAMAsyncasyncHandler - 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<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest request)
AWSRAMAsyncAssociates the specified resource share with the specified principals and resources.
associateResourceShareAsync in interface AWSRAMAsyncpublic Future<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest request, AsyncHandler<AssociateResourceShareRequest,AssociateResourceShareResult> asyncHandler)
AWSRAMAsyncAssociates the specified resource share with the specified principals and resources.
associateResourceShareAsync in interface AWSRAMAsyncasyncHandler - 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<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest request)
AWSRAMAsyncCreates a resource share.
createResourceShareAsync in interface AWSRAMAsyncpublic Future<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest request, AsyncHandler<CreateResourceShareRequest,CreateResourceShareResult> asyncHandler)
AWSRAMAsyncCreates a resource share.
createResourceShareAsync in interface AWSRAMAsyncasyncHandler - 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<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest request)
AWSRAMAsyncDeletes the specified resource share.
deleteResourceShareAsync in interface AWSRAMAsyncpublic Future<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest request, AsyncHandler<DeleteResourceShareRequest,DeleteResourceShareResult> asyncHandler)
AWSRAMAsyncDeletes the specified resource share.
deleteResourceShareAsync in interface AWSRAMAsyncasyncHandler - 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<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest request)
AWSRAMAsyncDisassociates the specified principals or resources from the specified resource share.
disassociateResourceShareAsync in interface AWSRAMAsyncpublic Future<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest request, AsyncHandler<DisassociateResourceShareRequest,DisassociateResourceShareResult> asyncHandler)
AWSRAMAsyncDisassociates the specified principals or resources from the specified resource share.
disassociateResourceShareAsync in interface AWSRAMAsyncasyncHandler - 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<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request)
AWSRAMAsyncEnables resource sharing within your organization.
enableSharingWithAwsOrganizationAsync in interface AWSRAMAsyncpublic Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
AWSRAMAsyncEnables resource sharing within your organization.
enableSharingWithAwsOrganizationAsync in interface AWSRAMAsyncasyncHandler - 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<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request)
AWSRAMAsyncGets the policies for the specifies resources.
getResourcePoliciesAsync in interface AWSRAMAsyncpublic Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request, AsyncHandler<GetResourcePoliciesRequest,GetResourcePoliciesResult> asyncHandler)
AWSRAMAsyncGets the policies for the specifies resources.
getResourcePoliciesAsync in interface AWSRAMAsyncasyncHandler - 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<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request)
AWSRAMAsyncGets the associations for the specified resource share.
getResourceShareAssociationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, AsyncHandler<GetResourceShareAssociationsRequest,GetResourceShareAssociationsResult> asyncHandler)
AWSRAMAsyncGets the associations for the specified resource share.
getResourceShareAssociationsAsync in interface AWSRAMAsyncasyncHandler - 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<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request)
AWSRAMAsyncGets the specified invitations for resource sharing.
getResourceShareInvitationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
AWSRAMAsyncGets the specified invitations for resource sharing.
getResourceShareInvitationsAsync in interface AWSRAMAsyncasyncHandler - 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<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request)
AWSRAMAsyncGets the specified resource shares or all of your resource shares.
getResourceSharesAsync in interface AWSRAMAsyncpublic Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request, AsyncHandler<GetResourceSharesRequest,GetResourceSharesResult> asyncHandler)
AWSRAMAsyncGets the specified resource shares or all of your resource shares.
getResourceSharesAsync in interface AWSRAMAsyncasyncHandler - 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<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request)
AWSRAMAsyncLists the principals with access to the specified resource.
listPrincipalsAsync in interface AWSRAMAsyncpublic Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request, AsyncHandler<ListPrincipalsRequest,ListPrincipalsResult> asyncHandler)
AWSRAMAsyncLists the principals with access to the specified resource.
listPrincipalsAsync in interface AWSRAMAsyncasyncHandler - 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<ListResourcesResult> listResourcesAsync(ListResourcesRequest request)
AWSRAMAsyncLists the resources that the specified principal can access.
listResourcesAsync in interface AWSRAMAsyncpublic Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest request, AsyncHandler<ListResourcesRequest,ListResourcesResult> asyncHandler)
AWSRAMAsyncLists the resources that the specified principal can access.
listResourcesAsync in interface AWSRAMAsyncasyncHandler - 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<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request)
AWSRAMAsyncRejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationAsync in interface AWSRAMAsyncpublic Future<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request, AsyncHandler<RejectResourceShareInvitationRequest,RejectResourceShareInvitationResult> asyncHandler)
AWSRAMAsyncRejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationAsync in interface AWSRAMAsyncasyncHandler - 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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSRAMAsyncAdds the specified tags to the specified resource share.
tagResourceAsync in interface AWSRAMAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSRAMAsyncAdds the specified tags to the specified resource share.
tagResourceAsync in interface AWSRAMAsyncasyncHandler - 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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSRAMAsyncRemoves the specified tags from the specified resource share.
untagResourceAsync in interface AWSRAMAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSRAMAsyncRemoves the specified tags from the specified resource share.
untagResourceAsync in interface AWSRAMAsyncasyncHandler - 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<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request)
AWSRAMAsyncUpdates the specified resource share.
updateResourceShareAsync in interface AWSRAMAsyncpublic Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request, AsyncHandler<UpdateResourceShareRequest,UpdateResourceShareResult> asyncHandler)
AWSRAMAsyncUpdates the specified resource share.
updateResourceShareAsync in interface AWSRAMAsyncasyncHandler - 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 AWSRAMshutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.