@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_METRIC
ENDPOINT_PREFIX
acceptResourceShareInvitation, associateResourceShare, builder, createResourceShare, deleteResourceShare, disassociateResourceShare, enableSharingWithAwsOrganization, getCachedResponseMetadata, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPrincipals, listResources, rejectResourceShareInvitation, tagResource, untagResource, updateResourceShare
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
acceptResourceShareInvitation, associateResourceShare, createResourceShare, deleteResourceShare, disassociateResourceShare, enableSharingWithAwsOrganization, getCachedResponseMetadata, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPrincipals, listResources, rejectResourceShareInvitation, tagResource, untagResource, updateResourceShare
public static AWSRAMAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request)
AWSRAMAsync
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationAsync
in interface AWSRAMAsync
public Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request, AsyncHandler<AcceptResourceShareInvitationRequest,AcceptResourceShareInvitationResult> asyncHandler)
AWSRAMAsync
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationAsync
in interface AWSRAMAsync
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<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest request)
AWSRAMAsync
Associates the specified resource share with the specified principals and resources.
associateResourceShareAsync
in interface AWSRAMAsync
public Future<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest request, AsyncHandler<AssociateResourceShareRequest,AssociateResourceShareResult> asyncHandler)
AWSRAMAsync
Associates the specified resource share with the specified principals and resources.
associateResourceShareAsync
in interface AWSRAMAsync
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<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest request)
AWSRAMAsync
Creates a resource share.
createResourceShareAsync
in interface AWSRAMAsync
public Future<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest request, AsyncHandler<CreateResourceShareRequest,CreateResourceShareResult> asyncHandler)
AWSRAMAsync
Creates a resource share.
createResourceShareAsync
in interface AWSRAMAsync
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<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest request)
AWSRAMAsync
Deletes the specified resource share.
deleteResourceShareAsync
in interface AWSRAMAsync
public Future<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest request, AsyncHandler<DeleteResourceShareRequest,DeleteResourceShareResult> asyncHandler)
AWSRAMAsync
Deletes the specified resource share.
deleteResourceShareAsync
in interface AWSRAMAsync
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<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest request)
AWSRAMAsync
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareAsync
in interface AWSRAMAsync
public Future<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest request, AsyncHandler<DisassociateResourceShareRequest,DisassociateResourceShareResult> asyncHandler)
AWSRAMAsync
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareAsync
in interface AWSRAMAsync
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<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request)
AWSRAMAsync
Enables resource sharing within your organization.
enableSharingWithAwsOrganizationAsync
in interface AWSRAMAsync
public Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
AWSRAMAsync
Enables resource sharing within your organization.
enableSharingWithAwsOrganizationAsync
in interface AWSRAMAsync
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<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request)
AWSRAMAsync
Gets the policies for the specifies resources.
getResourcePoliciesAsync
in interface AWSRAMAsync
public Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request, AsyncHandler<GetResourcePoliciesRequest,GetResourcePoliciesResult> asyncHandler)
AWSRAMAsync
Gets the policies for the specifies resources.
getResourcePoliciesAsync
in interface AWSRAMAsync
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<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request)
AWSRAMAsync
Gets the associations for the specified resource share.
getResourceShareAssociationsAsync
in interface AWSRAMAsync
public Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, AsyncHandler<GetResourceShareAssociationsRequest,GetResourceShareAssociationsResult> asyncHandler)
AWSRAMAsync
Gets the associations for the specified resource share.
getResourceShareAssociationsAsync
in interface AWSRAMAsync
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<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request)
AWSRAMAsync
Gets the specified invitations for resource sharing.
getResourceShareInvitationsAsync
in interface AWSRAMAsync
public Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
AWSRAMAsync
Gets the specified invitations for resource sharing.
getResourceShareInvitationsAsync
in interface AWSRAMAsync
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<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request)
AWSRAMAsync
Gets the specified resource shares or all of your resource shares.
getResourceSharesAsync
in interface AWSRAMAsync
public Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request, AsyncHandler<GetResourceSharesRequest,GetResourceSharesResult> asyncHandler)
AWSRAMAsync
Gets the specified resource shares or all of your resource shares.
getResourceSharesAsync
in interface AWSRAMAsync
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<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request)
AWSRAMAsync
Lists the principals with access to the specified resource.
listPrincipalsAsync
in interface AWSRAMAsync
public Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request, AsyncHandler<ListPrincipalsRequest,ListPrincipalsResult> asyncHandler)
AWSRAMAsync
Lists the principals with access to the specified resource.
listPrincipalsAsync
in interface AWSRAMAsync
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<ListResourcesResult> listResourcesAsync(ListResourcesRequest request)
AWSRAMAsync
Lists the resources that the specified principal can access.
listResourcesAsync
in interface AWSRAMAsync
public Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest request, AsyncHandler<ListResourcesRequest,ListResourcesResult> asyncHandler)
AWSRAMAsync
Lists the resources that the specified principal can access.
listResourcesAsync
in interface AWSRAMAsync
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<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request)
AWSRAMAsync
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationAsync
in interface AWSRAMAsync
public Future<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request, AsyncHandler<RejectResourceShareInvitationRequest,RejectResourceShareInvitationResult> asyncHandler)
AWSRAMAsync
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationAsync
in interface AWSRAMAsync
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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSRAMAsync
Adds the specified tags to the specified resource share.
tagResourceAsync
in interface AWSRAMAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSRAMAsync
Adds the specified tags to the specified resource share.
tagResourceAsync
in interface AWSRAMAsync
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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSRAMAsync
Removes the specified tags from the specified resource share.
untagResourceAsync
in interface AWSRAMAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSRAMAsync
Removes the specified tags from the specified resource share.
untagResourceAsync
in interface AWSRAMAsync
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<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request)
AWSRAMAsync
Updates the specified resource share.
updateResourceShareAsync
in interface AWSRAMAsync
public Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request, AsyncHandler<UpdateResourceShareRequest,UpdateResourceShareResult> asyncHandler)
AWSRAMAsync
Updates the specified resource share.
updateResourceShareAsync
in interface AWSRAMAsync
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 AWSRAM
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.