@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSRAM
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSRAM
instead.
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. If you have multiple Amazon Web Services accounts, you can use RAM to share those resources with other accounts. If you use Organizations to manage your accounts, then you share your resources with your organization or organizational units (OUs). For supported resource types, you can also share resources with individual Identity and Access Management (IAM) roles an users.
To learn more about RAM, see the following resources:
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
AcceptResourceShareInvitationResult |
acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another Amazon Web Services account.
|
AssociateResourceShareResult |
associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Adds the specified list of principals and list of resources to a resource share.
|
AssociateResourceSharePermissionResult |
associateResourceSharePermission(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest)
Adds or replaces the RAM permission for a resource type included in a resource share.
|
CreateResourceShareResult |
createResourceShare(CreateResourceShareRequest createResourceShareRequest)
Creates a resource share.
|
DeleteResourceShareResult |
deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes the specified resource share.
|
DisassociateResourceShareResult |
disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
|
DisassociateResourceSharePermissionResult |
disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest)
Disassociates an RAM permission from a resource share.
|
EnableSharingWithAwsOrganizationResult |
enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization in Organizations.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetPermissionResult |
getPermission(GetPermissionRequest getPermissionRequest)
Gets the contents of an RAM permission in JSON format.
|
GetResourcePoliciesResult |
getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
|
GetResourceShareAssociationsResult |
getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
|
GetResourceShareInvitationsResult |
getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
|
GetResourceSharesResult |
getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
|
ListPendingInvitationResourcesResult |
listPendingInvitationResources(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING . |
ListPermissionsResult |
listPermissions(ListPermissionsRequest listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
ListPermissionVersionsResult |
listPermissionVersions(ListPermissionVersionsRequest listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
|
ListPrincipalsResult |
listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
ListResourcesResult |
listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
ListResourceSharePermissionsResult |
listResourceSharePermissions(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
|
ListResourceTypesResult |
listResourceTypes(ListResourceTypesRequest listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
|
PromoteResourceShareCreatedFromPolicyResult |
promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest)
When you attach a resource-based permission policy to a resource, it automatically creates a resource share.
|
RejectResourceShareInvitationResult |
rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another Amazon Web Services account.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tag keys and values to the specified resource share.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tag key and value pairs from the specified resource share.
|
UpdateResourceShareResult |
updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Modifies some of the properties of the specified resource share.
|
static final String ENDPOINT_PREFIX
AcceptResourceShareInvitationResult acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts 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.
acceptResourceShareInvitationRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The specified invitation was already rejected.ResourceShareInvitationExpiredException
- The specified invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.InvalidClientTokenException
- The client token is not valid.IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.AssociateResourceShareResult associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Adds 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.
associateResourceShareRequest
- IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.UnknownResourceException
- A specified resource was not found.InvalidStateTransitionException
- The requested state transition is not valid.ResourceShareLimitExceededException
- This request would exceed the limit for resource shares for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- The client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.ThrottlingException
- You exceeded the rate at which you are allowed to perform this operation. Please try again later.AssociateResourceSharePermissionResult associateResourceSharePermission(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest)
Adds 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.
associateResourceSharePermissionRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidParameterException
- A parameter is not valid.InvalidClientTokenException
- The client token is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.CreateResourceShareResult createResourceShare(CreateResourceShareRequest createResourceShareRequest)
Creates 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.
createResourceShareRequest
- IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- The client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareLimitExceededException
- This request would exceed the limit for resource shares for your account.TagPolicyViolationException
- The specified tag key is a reserved word and can't be used.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.DeleteResourceShareResult deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes 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 outside of the Amazon Web Services account that created them.
deleteResourceShareRequest
- OperationNotPermittedException
- The requested operation is not permitted.IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- The client token is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.DisassociateResourceShareResult disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareRequest
- IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.ResourceShareLimitExceededException
- This request would exceed the limit for resource shares for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- The client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.DisassociateResourceSharePermissionResult disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest)
Disassociates an RAM permission from a resource share. Permission changes take effect immediately. You can remove a RAM permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.
disassociateResourceSharePermissionRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidParameterException
- A parameter is not valid.InvalidClientTokenException
- The client token is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.InvalidStateTransitionException
- The requested state transition is not valid.EnableSharingWithAwsOrganizationResult enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
enableSharingWithAwsOrganizationRequest
- OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.GetPermissionResult getPermission(GetPermissionRequest getPermissionRequest)
Gets the contents of an RAM permission in JSON format.
getPermissionRequest
- InvalidParameterException
- A parameter is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.GetResourcePoliciesResult getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
getResourcePoliciesRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ResourceArnNotFoundException
- The specified Amazon Resource Name (ARN) was not found.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.GetResourceShareAssociationsResult getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
getResourceShareAssociationsRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.GetResourceShareInvitationsResult getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
getResourceShareInvitationsRequest
- ResourceShareInvitationArnNotFoundException
- The specified Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults
is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.GetResourceSharesResult getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
getResourceSharesRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.ListPendingInvitationResourcesResult listPendingInvitationResources(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest)
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.
listPendingInvitationResourcesRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.ResourceShareInvitationArnNotFoundException
- The specified Amazon Resource Name (ARN) for an invitation was not found.MissingRequiredParameterException
- A required input parameter is missing.ResourceShareInvitationAlreadyRejectedException
- The specified invitation was already rejected.ResourceShareInvitationExpiredException
- The specified invitation is expired.ListPermissionVersionsResult listPermissionVersions(ListPermissionVersionsRequest listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
listPermissionVersionsRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken
is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.InvalidParameterException
- A parameter is not valid.ListPermissionsResult listPermissions(ListPermissionsRequest listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
listPermissionsRequest
- InvalidParameterException
- A parameter is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.ListPrincipalsResult listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
listPrincipalsRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.ListResourceSharePermissionsResult listResourceSharePermissions(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
listResourceSharePermissionsRequest
- InvalidParameterException
- A parameter is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken
is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.OperationNotPermittedException
- The requested operation is not permitted.ListResourceTypesResult listResourceTypes(ListResourceTypesRequest listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
listResourceTypesRequest
- InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.ListResourcesResult listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
listResourcesRequest
- InvalidResourceTypeException
- The specified resource type is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken
is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.PromoteResourceShareCreatedFromPolicyResult promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest)
When you attach a resource-based permission policy to a resource, it automatically creates a resource share. However, resource shares created this way are visible only to the resource share owner, and the resource share can't be modified in RAM.
You can use this operation to promote the resource share to a full RAM resource share. 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.
promoteResourceShareCreatedFromPolicyRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.ResourceShareLimitExceededException
- This request would exceed the limit for resource shares for your account.OperationNotPermittedException
- The requested operation is not permitted.InvalidParameterException
- A parameter is not valid.MissingRequiredParameterException
- A required input parameter is missing.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.RejectResourceShareInvitationResult rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another Amazon Web Services account.
rejectResourceShareInvitationRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The specified invitation was already rejected.ResourceShareInvitationExpiredException
- The specified invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.InvalidClientTokenException
- The client token is not valid.IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tag keys and values to the specified resource share. The tags are attached only to the resource share, not to the resources that are in the resource share.
tagResourceRequest
- InvalidParameterException
- A parameter is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.TagLimitExceededException
- This request would exceed the limit for tags for your account.ResourceArnNotFoundException
- The specified Amazon Resource Name (ARN) was not found.TagPolicyViolationException
- The specified tag key is a reserved word and can't be used.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tag key and value pairs from the specified resource share.
untagResourceRequest
- InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UpdateResourceShareResult updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Modifies some of the properties of the specified resource share.
updateResourceShareRequest
- IdempotentParameterMismatchException
- The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.MissingRequiredParameterException
- A required input parameter is missing.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- The client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.