@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSRAMAsync extends AbstractAWSRAM implements AWSRAMAsync
AWSRAMAsync. Convenient method forms pass through to the corresponding overload
that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException.ENDPOINT_PREFIXacceptResourceShareInvitation, associateResourceShare, associateResourceSharePermission, createPermission, createPermissionVersion, createResourceShare, deletePermission, deletePermissionVersion, deleteResourceShare, disassociateResourceShare, disassociateResourceSharePermission, enableSharingWithAwsOrganization, getCachedResponseMetadata, getPermission, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPendingInvitationResources, listPermissionAssociations, listPermissions, listPermissionVersions, listPrincipals, listReplacePermissionAssociationsWork, listResources, listResourceSharePermissions, listResourceTypes, promotePermissionCreatedFromPolicy, promoteResourceShareCreatedFromPolicy, rejectResourceShareInvitation, replacePermissionAssociations, setDefaultPermissionVersion, shutdown, tagResource, untagResource, updateResourceShareequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptResourceShareInvitation, associateResourceShare, associateResourceSharePermission, createPermission, createPermissionVersion, createResourceShare, deletePermission, deletePermissionVersion, deleteResourceShare, disassociateResourceShare, disassociateResourceSharePermission, enableSharingWithAwsOrganization, getCachedResponseMetadata, getPermission, getResourcePolicies, getResourceShareAssociations, getResourceShareInvitations, getResourceShares, listPendingInvitationResources, listPermissionAssociations, listPermissions, listPermissionVersions, listPrincipals, listReplacePermissionAssociationsWork, listResources, listResourceSharePermissions, listResourceTypes, promotePermissionCreatedFromPolicy, promoteResourceShareCreatedFromPolicy, rejectResourceShareInvitation, replacePermissionAssociations, setDefaultPermissionVersion, shutdown, tagResource, untagResource, updateResourceSharepublic Future<AcceptResourceShareInvitationResult> acceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request)
AWSRAMAsyncAccepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
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. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
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)
AWSRAMAsyncAdds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share.
associateResourceShareAsync in interface AWSRAMAsyncpublic Future<AssociateResourceShareResult> associateResourceShareAsync(AssociateResourceShareRequest request, AsyncHandler<AssociateResourceShareRequest,AssociateResourceShareResult> asyncHandler)
AWSRAMAsyncAdds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share.
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)
AWSRAMAsyncAdds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the resource share.
associateResourceSharePermissionAsync in interface AWSRAMAsyncpublic Future<AssociateResourceSharePermissionResult> associateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest request, AsyncHandler<AssociateResourceSharePermissionRequest,AssociateResourceSharePermissionResult> asyncHandler)
AWSRAMAsyncAdds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the 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<CreatePermissionResult> createPermissionAsync(CreatePermissionRequest request)
AWSRAMAsyncCreates a customer managed permission for a specified resource type that you can attach to resource shares. It is created in the Amazon Web Services Region in which you call the operation.
createPermissionAsync in interface AWSRAMAsyncpublic Future<CreatePermissionResult> createPermissionAsync(CreatePermissionRequest request, AsyncHandler<CreatePermissionRequest,CreatePermissionResult> asyncHandler)
AWSRAMAsyncCreates a customer managed permission for a specified resource type that you can attach to resource shares. It is created in the Amazon Web Services Region in which you call the operation.
createPermissionAsync 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<CreatePermissionVersionResult> createPermissionVersionAsync(CreatePermissionVersionRequest request)
AWSRAMAsyncCreates a new version of the specified customer managed permission. The new version is automatically set as the default version of the customer managed permission. New resource shares automatically use the default permission. Existing resource shares continue to use their original permission versions, but you can use ReplacePermissionAssociations to update them.
If the specified customer managed permission already has the maximum of 5 versions, then you must delete one of the existing versions before you can create a new one.
createPermissionVersionAsync in interface AWSRAMAsyncpublic Future<CreatePermissionVersionResult> createPermissionVersionAsync(CreatePermissionVersionRequest request, AsyncHandler<CreatePermissionVersionRequest,CreatePermissionVersionResult> asyncHandler)
AWSRAMAsyncCreates a new version of the specified customer managed permission. The new version is automatically set as the default version of the customer managed permission. New resource shares automatically use the default permission. Existing resource shares continue to use their original permission versions, but you can use ReplacePermissionAssociations to update them.
If the specified customer managed permission already has the maximum of 5 versions, then you must delete one of the existing versions before you can create a new one.
createPermissionVersionAsync 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 can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
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 can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
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<DeletePermissionResult> deletePermissionAsync(DeletePermissionRequest request)
AWSRAMAsyncDeletes the specified customer managed permission in the Amazon Web Services Region in which you call this operation. You can delete a customer managed permission only if it isn't attached to any resource share. The operation deletes all versions associated with the customer managed permission.
deletePermissionAsync in interface AWSRAMAsyncpublic Future<DeletePermissionResult> deletePermissionAsync(DeletePermissionRequest request, AsyncHandler<DeletePermissionRequest,DeletePermissionResult> asyncHandler)
AWSRAMAsyncDeletes the specified customer managed permission in the Amazon Web Services Region in which you call this operation. You can delete a customer managed permission only if it isn't attached to any resource share. The operation deletes all versions associated with the customer managed permission.
deletePermissionAsync 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<DeletePermissionVersionResult> deletePermissionVersionAsync(DeletePermissionVersionRequest request)
AWSRAMAsyncDeletes one version of a customer managed permission. The version you specify must not be attached to any resource share and must not be the default version for the permission.
If a customer managed permission has the maximum of 5 versions, then you must delete at least one version before you can create another.
deletePermissionVersionAsync in interface AWSRAMAsyncpublic Future<DeletePermissionVersionResult> deletePermissionVersionAsync(DeletePermissionVersionRequest request, AsyncHandler<DeletePermissionVersionRequest,DeletePermissionVersionResult> asyncHandler)
AWSRAMAsyncDeletes one version of a customer managed permission. The version you specify must not be attached to any resource share and must not be the default version for the permission.
If a customer managed permission has the maximum of 5 versions, then you must delete at least one version before you can create another.
deletePermissionVersionAsync 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.
This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources through this resource share.
deleteResourceShareAsync in interface AWSRAMAsyncpublic Future<DeleteResourceShareResult> deleteResourceShareAsync(DeleteResourceShareRequest request, AsyncHandler<DeleteResourceShareRequest,DeleteResourceShareResult> asyncHandler)
AWSRAMAsyncDeletes the specified resource share.
This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources through this 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)
AWSRAMAsyncRemoves the specified principals or resources from participating in the specified resource share.
disassociateResourceShareAsync in interface AWSRAMAsyncpublic Future<DisassociateResourceShareResult> disassociateResourceShareAsync(DisassociateResourceShareRequest request, AsyncHandler<DisassociateResourceShareRequest,DisassociateResourceShareResult> asyncHandler)
AWSRAMAsyncRemoves the specified principals or resources from participating in 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)
AWSRAMAsyncRemoves a managed permission from a resource share. Permission changes take effect immediately. You can remove a managed permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.
disassociateResourceSharePermissionAsync in interface AWSRAMAsyncpublic Future<DisassociateResourceSharePermissionResult> disassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest request, AsyncHandler<DisassociateResourceSharePermissionRequest,DisassociateResourceSharePermissionResult> asyncHandler)
AWSRAMAsyncRemoves a managed permission from a resource share. Permission changes take effect immediately. You can remove a managed permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the 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)
AWSRAMAsync
Enables resource sharing within your organization in Organizations. This operation creates a service-linked role
called AWSServiceRoleForResourceAccessManager that has the IAM managed policy named
AWSResourceAccessManagerServiceRolePolicy attached. This role permits RAM to retrieve information about the
organization and its structure. This lets you share resources with all of the accounts in the calling account's
organization by specifying the organization ID, or all of the accounts in an organizational unit (OU) by
specifying the OU ID. Until you enable sharing within the organization, you can specify only individual Amazon
Web Services accounts, or for supported resource types, IAM roles and users.
You must call this operation from an IAM role or user in the organization's management account.
enableSharingWithAwsOrganizationAsync in interface AWSRAMAsyncpublic Future<EnableSharingWithAwsOrganizationResult> enableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, AsyncHandler<EnableSharingWithAwsOrganizationRequest,EnableSharingWithAwsOrganizationResult> asyncHandler)
AWSRAMAsync
Enables resource sharing within your organization in Organizations. This operation creates a service-linked role
called AWSServiceRoleForResourceAccessManager that has the IAM managed policy named
AWSResourceAccessManagerServiceRolePolicy attached. This role permits RAM to retrieve information about the
organization and its structure. This lets you share resources with all of the accounts in the calling account's
organization by specifying the organization ID, or all of the accounts in an organizational unit (OU) by
specifying the OU ID. Until you enable sharing within the organization, you can specify only individual Amazon
Web Services accounts, or for supported resource types, IAM roles and users.
You must call this operation from an IAM role or user in the organization's management account.
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)
AWSRAMAsyncRetrieves the contents of a managed permission in JSON format.
getPermissionAsync in interface AWSRAMAsyncpublic Future<GetPermissionResult> getPermissionAsync(GetPermissionRequest request, AsyncHandler<GetPermissionRequest,GetPermissionResult> asyncHandler)
AWSRAMAsyncRetrieves the contents of a managed 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)
AWSRAMAsyncRetrieves the resource policies for the specified resources that you own and have shared.
getResourcePoliciesAsync in interface AWSRAMAsyncpublic Future<GetResourcePoliciesResult> getResourcePoliciesAsync(GetResourcePoliciesRequest request, AsyncHandler<GetResourcePoliciesRequest,GetResourcePoliciesResult> asyncHandler)
AWSRAMAsyncRetrieves the resource 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)
AWSRAMAsyncRetrieves the lists of resources and principals that associated for resource shares that you own.
getResourceShareAssociationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareAssociationsResult> getResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, AsyncHandler<GetResourceShareAssociationsRequest,GetResourceShareAssociationsResult> asyncHandler)
AWSRAMAsyncRetrieves the lists of resources and principals that associated for 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)
AWSRAMAsyncRetrieves details about invitations that you have received for resource shares.
getResourceShareInvitationsAsync in interface AWSRAMAsyncpublic Future<GetResourceShareInvitationsResult> getResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, AsyncHandler<GetResourceShareInvitationsRequest,GetResourceShareInvitationsResult> asyncHandler)
AWSRAMAsyncRetrieves details about 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)
AWSRAMAsyncRetrieves details about the resource shares that you own or that are shared with you.
getResourceSharesAsync in interface AWSRAMAsyncpublic Future<GetResourceSharesResult> getResourceSharesAsync(GetResourceSharesRequest request, AsyncHandler<GetResourceSharesRequest,GetResourceSharesResult> asyncHandler)
AWSRAMAsyncRetrieves details about the resource shares that you own or 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)
AWSRAMAsync
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
listPendingInvitationResourcesAsync in interface AWSRAMAsyncpublic Future<ListPendingInvitationResourcesResult> listPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest request, AsyncHandler<ListPendingInvitationResourcesRequest,ListPendingInvitationResourcesResult> asyncHandler)
AWSRAMAsync
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
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<ListPermissionAssociationsResult> listPermissionAssociationsAsync(ListPermissionAssociationsRequest request)
AWSRAMAsyncLists information about the managed permission and its associations to any resource shares that use this managed permission. This lets you see which resource shares use which versions of the specified managed permission.
listPermissionAssociationsAsync in interface AWSRAMAsyncpublic Future<ListPermissionAssociationsResult> listPermissionAssociationsAsync(ListPermissionAssociationsRequest request, AsyncHandler<ListPermissionAssociationsRequest,ListPermissionAssociationsResult> asyncHandler)
AWSRAMAsyncLists information about the managed permission and its associations to any resource shares that use this managed permission. This lets you see which resource shares use which versions of the specified managed permission.
listPermissionAssociationsAsync 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<ListPermissionVersionsResult> listPermissionVersionsAsync(ListPermissionVersionsRequest request)
AWSRAMAsyncLists the available versions of the specified RAM permission.
listPermissionVersionsAsync in interface AWSRAMAsyncpublic Future<ListPermissionVersionsResult> listPermissionVersionsAsync(ListPermissionVersionsRequest request, AsyncHandler<ListPermissionVersionsRequest,ListPermissionVersionsResult> asyncHandler)
AWSRAMAsyncLists the available versions of the specified RAM permission.
listPermissionVersionsAsync 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)
AWSRAMAsyncRetrieves a list of available RAM permissions that you can use for the supported resource types.
listPermissionsAsync in interface AWSRAMAsyncpublic Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request, AsyncHandler<ListPermissionsRequest,ListPermissionsResult> asyncHandler)
AWSRAMAsyncRetrieves a list of available RAM permissions that you can use for the supported resource types.
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 are sharing resources with or that are sharing resources with you.
listPrincipalsAsync in interface AWSRAMAsyncpublic Future<ListPrincipalsResult> listPrincipalsAsync(ListPrincipalsRequest request, AsyncHandler<ListPrincipalsRequest,ListPrincipalsResult> asyncHandler)
AWSRAMAsyncLists the principals that you are sharing resources with or that are sharing 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<ListReplacePermissionAssociationsWorkResult> listReplacePermissionAssociationsWorkAsync(ListReplacePermissionAssociationsWorkRequest request)
AWSRAMAsyncRetrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation.
listReplacePermissionAssociationsWorkAsync in interface AWSRAMAsyncpublic Future<ListReplacePermissionAssociationsWorkResult> listReplacePermissionAssociationsWorkAsync(ListReplacePermissionAssociationsWorkRequest request, AsyncHandler<ListReplacePermissionAssociationsWorkRequest,ListReplacePermissionAssociationsWorkResult> asyncHandler)
AWSRAMAsyncRetrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation.
listReplacePermissionAssociationsWorkAsync 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 resource types that can be shared by RAM.
listResourceTypesAsync in interface AWSRAMAsyncpublic Future<ListResourceTypesResult> listResourceTypesAsync(ListResourceTypesRequest request, AsyncHandler<ListResourceTypesRequest,ListResourceTypesResult> asyncHandler)
AWSRAMAsyncLists the resource types that can be shared 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 share 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 share 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<PromotePermissionCreatedFromPolicyResult> promotePermissionCreatedFromPolicyAsync(PromotePermissionCreatedFromPolicyRequest request)
AWSRAMAsync
When you attach a resource-based policy to a resource, RAM automatically creates a resource share of
featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM
permissions as the original resource-based policy. However, this type of managed permission is visible to only
the resource share owner, and the associated resource share can't be modified by using RAM.
This operation creates a separate, fully manageable customer managed permission that has the same IAM permissions as the original resource-based policy. You can associate this customer managed permission to any resource shares.
Before you use PromoteResourceShareCreatedFromPolicy, you should first run this operation to ensure that you have an appropriate customer managed permission that can be associated with the promoted resource share.
The original CREATED_FROM_POLICY policy isn't deleted, and resource shares using that original
policy aren't automatically updated.
You can't modify a CREATED_FROM_POLICY resource share so you can't associate the new customer
managed permission by using ReplacePermsissionAssociations. However, if you use
PromoteResourceShareCreatedFromPolicy, that operation automatically associates the fully manageable
customer managed permission to the newly promoted STANDARD resource share.
After you promote a resource share, if the original CREATED_FROM_POLICY managed permission has no
other associations to A resource share, then RAM automatically deletes it.
promotePermissionCreatedFromPolicyAsync in interface AWSRAMAsyncpublic Future<PromotePermissionCreatedFromPolicyResult> promotePermissionCreatedFromPolicyAsync(PromotePermissionCreatedFromPolicyRequest request, AsyncHandler<PromotePermissionCreatedFromPolicyRequest,PromotePermissionCreatedFromPolicyResult> asyncHandler)
AWSRAMAsync
When you attach a resource-based policy to a resource, RAM automatically creates a resource share of
featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM
permissions as the original resource-based policy. However, this type of managed permission is visible to only
the resource share owner, and the associated resource share can't be modified by using RAM.
This operation creates a separate, fully manageable customer managed permission that has the same IAM permissions as the original resource-based policy. You can associate this customer managed permission to any resource shares.
Before you use PromoteResourceShareCreatedFromPolicy, you should first run this operation to ensure that you have an appropriate customer managed permission that can be associated with the promoted resource share.
The original CREATED_FROM_POLICY policy isn't deleted, and resource shares using that original
policy aren't automatically updated.
You can't modify a CREATED_FROM_POLICY resource share so you can't associate the new customer
managed permission by using ReplacePermsissionAssociations. However, if you use
PromoteResourceShareCreatedFromPolicy, that operation automatically associates the fully manageable
customer managed permission to the newly promoted STANDARD resource share.
After you promote a resource share, if the original CREATED_FROM_POLICY managed permission has no
other associations to A resource share, then RAM automatically deletes it.
promotePermissionCreatedFromPolicyAsync 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)
AWSRAMAsync
When you attach a resource-based policy to a resource, RAM automatically creates a resource share of
featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM
permissions as the original resource-based policy. However, this type of managed permission is visible to only
the resource share owner, and the associated resource share can't be modified by using RAM.
This operation promotes the resource share to a STANDARD resource share that is fully manageable in
RAM. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to
all of the principals you shared it with.
Before you perform this operation, you should first run PromotePermissionCreatedFromPolicyto ensure that
you have an appropriate customer managed permission that can be associated with this resource share after its is
promoted. If this operation can't find a managed permission that exactly matches the existing
CREATED_FROM_POLICY permission, then this operation fails.
promoteResourceShareCreatedFromPolicyAsync in interface AWSRAMAsyncpublic Future<PromoteResourceShareCreatedFromPolicyResult> promoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest request, AsyncHandler<PromoteResourceShareCreatedFromPolicyRequest,PromoteResourceShareCreatedFromPolicyResult> asyncHandler)
AWSRAMAsync
When you attach a resource-based policy to a resource, RAM automatically creates a resource share of
featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM
permissions as the original resource-based policy. However, this type of managed permission is visible to only
the resource share owner, and the associated resource share can't be modified by using RAM.
This operation promotes the resource share to a STANDARD resource share that is fully manageable in
RAM. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to
all of the principals you shared it with.
Before you perform this operation, you should first run PromotePermissionCreatedFromPolicyto ensure that
you have an appropriate customer managed permission that can be associated with this resource share after its is
promoted. If this operation can't find a managed permission that exactly matches the existing
CREATED_FROM_POLICY permission, then this operation fails.
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<ReplacePermissionAssociationsResult> replacePermissionAssociationsAsync(ReplacePermissionAssociationsRequest request)
AWSRAMAsyncUpdates all resource shares that use a managed permission to a different managed permission. This operation always applies the default version of the target managed permission. You can optionally specify that the update applies to only resource shares that currently use a specified version. This enables you to update to the latest version, without changing the which managed permission is used.
You can use this operation to update all of your resource shares to use the current default version of the
permission by specifying the same value for the fromPermissionArn and toPermissionArn
parameters.
You can use the optional fromPermissionVersion parameter to update only those resources that use a
specified version of the managed permission to the new managed permission.
To successfully perform this operation, you must have permission to update the resource-based policy on all affected resource types.
replacePermissionAssociationsAsync in interface AWSRAMAsyncpublic Future<ReplacePermissionAssociationsResult> replacePermissionAssociationsAsync(ReplacePermissionAssociationsRequest request, AsyncHandler<ReplacePermissionAssociationsRequest,ReplacePermissionAssociationsResult> asyncHandler)
AWSRAMAsyncUpdates all resource shares that use a managed permission to a different managed permission. This operation always applies the default version of the target managed permission. You can optionally specify that the update applies to only resource shares that currently use a specified version. This enables you to update to the latest version, without changing the which managed permission is used.
You can use this operation to update all of your resource shares to use the current default version of the
permission by specifying the same value for the fromPermissionArn and toPermissionArn
parameters.
You can use the optional fromPermissionVersion parameter to update only those resources that use a
specified version of the managed permission to the new managed permission.
To successfully perform this operation, you must have permission to update the resource-based policy on all affected resource types.
replacePermissionAssociationsAsync 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<SetDefaultPermissionVersionResult> setDefaultPermissionVersionAsync(SetDefaultPermissionVersionRequest request)
AWSRAMAsyncDesignates the specified version number as the default version for the specified customer managed permission. New resource shares automatically use this new default permission. Existing resource shares continue to use their original permission version, but you can use ReplacePermissionAssociations to update them.
setDefaultPermissionVersionAsync in interface AWSRAMAsyncpublic Future<SetDefaultPermissionVersionResult> setDefaultPermissionVersionAsync(SetDefaultPermissionVersionRequest request, AsyncHandler<SetDefaultPermissionVersionRequest,SetDefaultPermissionVersionResult> asyncHandler)
AWSRAMAsyncDesignates the specified version number as the default version for the specified customer managed permission. New resource shares automatically use this new default permission. Existing resource shares continue to use their original permission version, but you can use ReplacePermissionAssociations to update them.
setDefaultPermissionVersionAsync 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 tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share.
The tags on a managed permission are the same for all versions of the managed permission.
tagResourceAsync in interface AWSRAMAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSRAMAsyncAdds the specified tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share.
The tags on a managed permission are the same for all versions of the managed permission.
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 tag key and value pairs from the specified resource share or managed permission.
untagResourceAsync in interface AWSRAMAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSRAMAsyncRemoves the specified tag key and value pairs from the specified resource share or managed permission.
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)
AWSRAMAsyncModifies some of the properties of the specified resource share.
updateResourceShareAsync in interface AWSRAMAsyncpublic Future<UpdateResourceShareResult> updateResourceShareAsync(UpdateResourceShareRequest request, AsyncHandler<UpdateResourceShareRequest,UpdateResourceShareResult> asyncHandler)
AWSRAMAsyncModifies some of the properties of 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.