@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSRAMAsync extends AWSRAM
AsyncHandler
can be used to receive notification when
an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSRAMAsync
instead.
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.
ENDPOINT_PREFIX
acceptResourceShareInvitation, associateResourceShare, associateResourceSharePermission, createResourceShare, deleteResourceShare, disassociateResourceShare, disassociateResourceSharePermission, enableSharingWithAwsOrganization, getCachedResponseMetadata, getPermission, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPendingInvitationResources, listPermissions, listPrincipals, listResources, listResourceSharePermissions, listResourceTypes, promoteResourceShareCreatedFromPolicy, rejectResourceShareInvitation, shutdown, tagResource, untagResource, updateResourceShare
Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationRequest
- Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest, AsyncHandler<AcceptResourceShareInvitationRequest,AcceptResourceShareInvitationResult> asyncHandler)
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationRequest
- 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.Future<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
associateResourceShareRequest
- Future<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest associateResourceShareRequest, AsyncHandler<AssociateResourceShareRequest,AssociateResourceShareResult> asyncHandler)
Associates the specified resource share with the specified principals and resources.
associateResourceShareRequest
- 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.Future<AssociateResourceSharePermissionResult> associateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest)
Associates a permission with a resource share.
associateResourceSharePermissionRequest
- Future<AssociateResourceSharePermissionResult> associateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest, AsyncHandler<AssociateResourceSharePermissionRequest,AssociateResourceSharePermissionResult> asyncHandler)
Associates a permission with a resource share.
associateResourceSharePermissionRequest
- 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.Future<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest createResourceShareRequest)
Creates a resource share.
createResourceShareRequest
- Future<CreateResourceShareResult> createResourceShareAsync(CreateResourceShareRequest createResourceShareRequest, AsyncHandler<CreateResourceShareRequest,CreateResourceShareResult> asyncHandler)
Creates a resource share.
createResourceShareRequest
- 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.Future<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes the specified resource share.
deleteResourceShareRequest
- Future<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest deleteResourceShareRequest, AsyncHandler<DeleteResourceShareRequest,DeleteResourceShareResult> asyncHandler)
Deletes the specified resource share.
deleteResourceShareRequest
- 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.Future<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareRequest
- Future<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest disassociateResourceShareRequest, AsyncHandler<DisassociateResourceShareRequest,DisassociateResourceShareResult> asyncHandler)
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareRequest
- 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.Future<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest)
Disassociates an AWS RAM permission from a resource share.
disassociateResourceSharePermissionRequest
- Future<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest, AsyncHandler<DisassociateResourceSharePermissionRequest,DisassociateResourceSharePermissionResult> asyncHandler)
Disassociates an AWS RAM permission from a resource share.
disassociateResourceSharePermissionRequest
- 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.Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your AWS Organization.
The caller must be the master account for the AWS Organization.
enableSharingWithAwsOrganizationRequest
- Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
Enables resource sharing within your AWS Organization.
The caller must be the master account for the AWS Organization.
enableSharingWithAwsOrganizationRequest
- 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.Future<GetPermissionResult> getPermissionAsync(GetPermissionRequest getPermissionRequest)
Gets the contents of an AWS RAM permission in JSON format.
getPermissionRequest
- Future<GetPermissionResult> getPermissionAsync(GetPermissionRequest getPermissionRequest, AsyncHandler<GetPermissionRequest,GetPermissionResult> asyncHandler)
Gets the contents of an AWS RAM permission in JSON format.
getPermissionRequest
- 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.Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specified resources that you own and have shared.
getResourcePoliciesRequest
- Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest getResourcePoliciesRequest, AsyncHandler<GetResourcePoliciesRequest,GetResourcePoliciesResult> asyncHandler)
Gets the policies for the specified resources that you own and have shared.
getResourcePoliciesRequest
- 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.Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the resources or principals for the resource shares that you own.
getResourceShareAssociationsRequest
- Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest, AsyncHandler<GetResourceShareAssociationsRequest,GetResourceShareAssociationsResult> asyncHandler)
Gets the resources or principals for the resource shares that you own.
getResourceShareAssociationsRequest
- 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.Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the invitations for resource sharing that you've received.
getResourceShareInvitationsRequest
- Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
Gets the invitations for resource sharing that you've received.
getResourceShareInvitationsRequest
- 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.Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest getResourceSharesRequest)
Gets the resource shares that you own or the resource shares that are shared with you.
getResourceSharesRequest
- Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest getResourceSharesRequest, AsyncHandler<GetResourceSharesRequest,GetResourceSharesResult> asyncHandler)
Gets the resource shares that you own or the resource shares that are shared with you.
getResourceSharesRequest
- 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.Future<ListPendingInvitationResourcesResult> listPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
listPendingInvitationResourcesRequest
- Future<ListPendingInvitationResourcesResult> listPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest, AsyncHandler<ListPendingInvitationResourcesRequest,ListPendingInvitationResourcesResult> asyncHandler)
Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
listPendingInvitationResourcesRequest
- 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.Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest listPermissionsRequest)
Lists the AWS RAM permissions.
listPermissionsRequest
- Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest listPermissionsRequest, AsyncHandler<ListPermissionsRequest,ListPermissionsResult> asyncHandler)
Lists the AWS RAM permissions.
listPermissionsRequest
- 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.Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals that you have shared resources with or that have shared resources with you.
listPrincipalsRequest
- Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest listPrincipalsRequest, AsyncHandler<ListPrincipalsRequest,ListPrincipalsResult> asyncHandler)
Lists the principals that you have shared resources with or that have shared resources with you.
listPrincipalsRequest
- 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.Future<ListResourceSharePermissionsResult> listResourceSharePermissionsAsync(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest)
Lists the AWS RAM permissions that are associated with a resource share.
listResourceSharePermissionsRequest
- Future<ListResourceSharePermissionsResult> listResourceSharePermissionsAsync(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest, AsyncHandler<ListResourceSharePermissionsRequest,ListResourceSharePermissionsResult> asyncHandler)
Lists the AWS RAM permissions that are associated with a resource share.
listResourceSharePermissionsRequest
- 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.Future<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest listResourceTypesRequest)
Lists the shareable resource types supported by AWS RAM.
listResourceTypesRequest
- Future<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest listResourceTypesRequest, AsyncHandler<ListResourceTypesRequest,ListResourceTypesResult> asyncHandler)
Lists the shareable resource types supported by AWS RAM.
listResourceTypesRequest
- 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.Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest listResourcesRequest)
Lists the resources that you added to a resource shares or the resources that are shared with you.
listResourcesRequest
- Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest listResourcesRequest, AsyncHandler<ListResourcesRequest,ListResourcesResult> asyncHandler)
Lists the resources that you added to a resource shares or the resources that are shared with you.
listResourcesRequest
- 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.Future<PromoteResourceShareCreatedFromPolicyResult> promoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest)
Resource 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.
promoteResourceShareCreatedFromPolicyRequest
- Future<PromoteResourceShareCreatedFromPolicyResult> promoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest, AsyncHandler<PromoteResourceShareCreatedFromPolicyRequest,PromoteResourceShareCreatedFromPolicyResult> asyncHandler)
Resource 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.
promoteResourceShareCreatedFromPolicyRequest
- 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.Future<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationRequest
- Future<RejectResourceShareInvitationResult> rejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest, AsyncHandler<RejectResourceShareInvitationRequest,RejectResourceShareInvitationResult> asyncHandler)
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationRequest
- 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.Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource share that you own.
tagResourceRequest
- Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds the specified tags to the specified resource share that you own.
tagResourceRequest
- 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.Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource share that you own.
untagResourceRequest
- Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes the specified tags from the specified resource share that you own.
untagResourceRequest
- 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.Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest updateResourceShareRequest)
Updates the specified resource share that you own.
updateResourceShareRequest
- Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest updateResourceShareRequest, AsyncHandler<UpdateResourceShareRequest,UpdateResourceShareResult> asyncHandler)
Updates the specified resource share that you own.
updateResourceShareRequest
- 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.