@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 resources associated with the resource share. The following principals are supported: AWS accounts, organizational units (OU) from AWS Organizations, and organizations from AWS Organizations.
For more information, see the AWS Resource Access Manager User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXacceptResourceShareInvitation, associateResourceShare, associateResourceSharePermission, builder, createResourceShare, deleteResourceShare, disassociateResourceShare, disassociateResourceSharePermission, enableSharingWithAwsOrganization, getCachedResponseMetadata, getPermission, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPendingInvitationResources, listPermissions, listPrincipals, listResources, listResourceSharePermissions, listResourceTypes, promoteResourceShareCreatedFromPolicy, 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, associateResourceSharePermission, createResourceShare, deleteResourceShare, disassociateResourceShare, disassociateResourceSharePermission, enableSharingWithAwsOrganization, getCachedResponseMetadata, getPermission, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPendingInvitationResources, listPermissions, listPrincipals, listResources, listResourceSharePermissions, listResourceTypes, promoteResourceShareCreatedFromPolicy, 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<AssociateResourceSharePermissionResult> associateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest request)
AWSRAMAsyncAssociates a permission with a resource share.
associateResourceSharePermissionAsync in interface AWSRAMAsyncpublic Future<AssociateResourceSharePermissionResult> associateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest request, AsyncHandler<AssociateResourceSharePermissionRequest,AssociateResourceSharePermissionResult> asyncHandler)
AWSRAMAsyncAssociates a permission with a resource share.
associateResourceSharePermissionAsync 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<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest request)
AWSRAMAsyncDisassociates an AWS RAM permission from a resource share.
disassociateResourceSharePermissionAsync in interface AWSRAMAsyncpublic Future<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest request, AsyncHandler<DisassociateResourceSharePermissionRequest,DisassociateResourceSharePermissionResult> asyncHandler)
AWSRAMAsyncDisassociates an AWS RAM permission from a resource share.
disassociateResourceSharePermissionAsync 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 AWS Organization.
The caller must be the master account for the AWS Organization.
enableSharingWithAwsOrganizationAsync in interface AWSRAMAsyncpublic Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
AWSRAMAsyncEnables resource sharing within your AWS Organization.
The caller must be the master account for the AWS 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<GetPermissionResult> getPermissionAsync(GetPermissionRequest request)
AWSRAMAsyncGets the contents of an AWS RAM permission in JSON format.
getPermissionAsync in interface AWSRAMAsyncpublic Future<GetPermissionResult> getPermissionAsync(GetPermissionRequest request, AsyncHandler<GetPermissionRequest,GetPermissionResult> asyncHandler)
AWSRAMAsyncGets the contents of an AWS RAM permission in JSON format.
getPermissionAsync 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 specified resources that you own and have shared.
getResourcePoliciesAsync in interface AWSRAMAsyncpublic Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request, AsyncHandler<GetResourcePoliciesRequest,GetResourcePoliciesResult> asyncHandler)
AWSRAMAsyncGets the policies for the specified resources that you own and have shared.
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 resources or principals for the resource shares that you own.
getResourceShareAssociationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, AsyncHandler<GetResourceShareAssociationsRequest,GetResourceShareAssociationsResult> asyncHandler)
AWSRAMAsyncGets the resources or principals for the resource shares that you own.
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 invitations for resource sharing that you've received.
getResourceShareInvitationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
AWSRAMAsyncGets the invitations for resource sharing that you've received.
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 resource shares that you own or the resource shares that are shared with you.
getResourceSharesAsync in interface AWSRAMAsyncpublic Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request, AsyncHandler<GetResourceSharesRequest,GetResourceSharesResult> asyncHandler)
AWSRAMAsyncGets the resource shares that you own or the resource shares that are shared with you.
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<ListPendingInvitationResourcesResult> listPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest request)
AWSRAMAsyncLists the resources in a resource share that is shared with you but that the invitation is still pending for.
listPendingInvitationResourcesAsync in interface AWSRAMAsyncpublic Future<ListPendingInvitationResourcesResult> listPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest request, AsyncHandler<ListPendingInvitationResourcesRequest,ListPendingInvitationResourcesResult> asyncHandler)
AWSRAMAsyncLists the resources in a resource share that is shared with you but that the invitation is still pending for.
listPendingInvitationResourcesAsync 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<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request)
AWSRAMAsyncLists the AWS RAM permissions.
listPermissionsAsync in interface AWSRAMAsyncpublic Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request, AsyncHandler<ListPermissionsRequest,ListPermissionsResult> asyncHandler)
AWSRAMAsyncLists the AWS RAM permissions.
listPermissionsAsync 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 that you have shared resources with or that have shared resources with you.
listPrincipalsAsync in interface AWSRAMAsyncpublic Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request, AsyncHandler<ListPrincipalsRequest,ListPrincipalsResult> asyncHandler)
AWSRAMAsyncLists the principals that you have shared resources with or that have shared resources with you.
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<ListResourceSharePermissionsResult> listResourceSharePermissionsAsync(ListResourceSharePermissionsRequest request)
AWSRAMAsyncLists the AWS RAM permissions that are associated with a resource share.
listResourceSharePermissionsAsync in interface AWSRAMAsyncpublic Future<ListResourceSharePermissionsResult> listResourceSharePermissionsAsync(ListResourceSharePermissionsRequest request, AsyncHandler<ListResourceSharePermissionsRequest,ListResourceSharePermissionsResult> asyncHandler)
AWSRAMAsyncLists the AWS RAM permissions that are associated with a resource share.
listResourceSharePermissionsAsync 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<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest request)
AWSRAMAsyncLists the shareable resource types supported by AWS RAM.
listResourceTypesAsync in interface AWSRAMAsyncpublic Future<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest request, AsyncHandler<ListResourceTypesRequest,ListResourceTypesResult> asyncHandler)
AWSRAMAsyncLists the shareable resource types supported by AWS RAM.
listResourceTypesAsync 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 you added to a resource shares or the resources that are shared with you.
listResourcesAsync in interface AWSRAMAsyncpublic Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest request, AsyncHandler<ListResourcesRequest,ListResourcesResult> asyncHandler)
AWSRAMAsyncLists the resources that you added to a resource shares or the resources that are shared with you.
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<PromoteResourceShareCreatedFromPolicyResult> promoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest request)
AWSRAMAsyncResource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM.
Use this API action to promote the resource share. When you promote the resource share, it becomes:
Visible to all principals that it is shared with.
Modifiable in AWS RAM.
promoteResourceShareCreatedFromPolicyAsync in interface AWSRAMAsyncpublic Future<PromoteResourceShareCreatedFromPolicyResult> promoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest request, AsyncHandler<PromoteResourceShareCreatedFromPolicyRequest,PromoteResourceShareCreatedFromPolicyResult> asyncHandler)
AWSRAMAsyncResource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM.
Use this API action to promote the resource share. When you promote the resource share, it becomes:
Visible to all principals that it is shared with.
Modifiable in AWS RAM.
promoteResourceShareCreatedFromPolicyAsync 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 that you own.
tagResourceAsync in interface AWSRAMAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSRAMAsyncAdds the specified tags to the specified resource share that you own.
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 that you own.
untagResourceAsync in interface AWSRAMAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSRAMAsyncRemoves the specified tags from the specified resource share that you own.
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 that you own.
updateResourceShareAsync in interface AWSRAMAsyncpublic Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request, AsyncHandler<UpdateResourceShareRequest,UpdateResourceShareResult> asyncHandler)
AWSRAMAsyncUpdates the specified resource share that you own.
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 AWSRAMClient