@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.
This is the Resource Access Manager API Reference. This documentation provides descriptions and syntax for each of the actions and data types in RAM. RAM is a service that helps you securely share your Amazon Web Services resources across Amazon Web Services accounts and within your organization or organizational units (OUs) in Organizations. For supported resource types, you can also share resources with IAM roles and IAM users. If you have multiple Amazon Web Services accounts, you can use RAM to share those resources with other accounts.
To learn more about RAM, see the following resources:
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 Amazon Web Services account.
acceptResourceShareInvitationAsync in interface AWSRAMAsyncpublic Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request, AsyncHandler<AcceptResourceShareInvitationRequest,AcceptResourceShareInvitationResult> asyncHandler)
AWSRAMAsyncAccepts an invitation to a resource share from another Amazon Web Services 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. You must provide a list of the Amazon Resource Names (ARNs) for the resources you want to share. You must also specify who you want to share the resources with, and the permissions that you grant them.
Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
createResourceShareAsync in interface AWSRAMAsyncpublic Future<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest request, AsyncHandler<CreateResourceShareRequest,CreateResourceShareResult> asyncHandler)
AWSRAMAsyncCreates a resource share. You must provide a list of the Amazon Resource Names (ARNs) for the resources you want to share. You must also specify who you want to share the resources with, and the permissions that you grant them.
Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
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 RAM permission from a resource share.
disassociateResourceSharePermissionAsync in interface AWSRAMAsyncpublic Future<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest request, AsyncHandler<DisassociateResourceSharePermissionRequest,DisassociateResourceSharePermissionResult> asyncHandler)
AWSRAMAsyncDisassociates an 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 organization in Organizations.
The caller must be the master account for the organization.
enableSharingWithAwsOrganizationAsync in interface AWSRAMAsyncpublic Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
AWSRAMAsyncEnables resource sharing within your organization in Organizations.
The caller must be the master account for the 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 RAM permission in JSON format.
getPermissionAsync in interface AWSRAMAsyncpublic Future<GetPermissionResult> getPermissionAsync(GetPermissionRequest request, AsyncHandler<GetPermissionRequest,GetPermissionResult> asyncHandler)
AWSRAMAsyncGets the contents of an 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 that you have received for resource shares.
getResourceShareInvitationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
AWSRAMAsyncGets the invitations that you have received for resource shares.
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 RAM permissions.
listPermissionsAsync in interface AWSRAMAsyncpublic Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request, AsyncHandler<ListPermissionsRequest,ListPermissionsResult> asyncHandler)
AWSRAMAsyncLists the 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 RAM permissions that are associated with a resource share.
listResourceSharePermissionsAsync in interface AWSRAMAsyncpublic Future<ListResourceSharePermissionsResult> listResourceSharePermissionsAsync(ListResourceSharePermissionsRequest request, AsyncHandler<ListResourceSharePermissionsRequest,ListResourceSharePermissionsResult> asyncHandler)
AWSRAMAsyncLists the 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 RAM.
listResourceTypesAsync in interface AWSRAMAsyncpublic Future<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest request, AsyncHandler<ListResourceTypesRequest,ListResourceTypesResult> asyncHandler)
AWSRAMAsyncLists the shareable resource types supported by 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 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 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 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 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 Amazon Web Services account.
rejectResourceShareInvitationAsync in interface AWSRAMAsyncpublic Future<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request, AsyncHandler<RejectResourceShareInvitationRequest,RejectResourceShareInvitationResult> asyncHandler)
AWSRAMAsyncRejects an invitation to a resource share from another Amazon Web Services 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