@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSRAM extends Object implements AWSRAM
AWSRAM
. Convenient method forms pass through to the corresponding overload that
takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AcceptResourceShareInvitationResult |
acceptResourceShareInvitation(AcceptResourceShareInvitationRequest request)
Accepts an invitation to a resource share from another Amazon Web Services account.
|
AssociateResourceShareResult |
associateResourceShare(AssociateResourceShareRequest request)
Adds the specified list of principals and list of resources to a resource share.
|
AssociateResourceSharePermissionResult |
associateResourceSharePermission(AssociateResourceSharePermissionRequest request)
Adds or replaces the RAM permission for a resource type included in a resource share.
|
CreateResourceShareResult |
createResourceShare(CreateResourceShareRequest request)
Creates a resource share.
|
DeleteResourceShareResult |
deleteResourceShare(DeleteResourceShareRequest request)
Deletes the specified resource share.
|
DisassociateResourceShareResult |
disassociateResourceShare(DisassociateResourceShareRequest request)
Disassociates the specified principals or resources from the specified resource share.
|
DisassociateResourceSharePermissionResult |
disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest request)
Disassociates an RAM permission from a resource share.
|
EnableSharingWithAwsOrganizationResult |
enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest request)
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 request)
Gets the contents of an RAM permission in JSON format.
|
GetResourcePoliciesResult |
getResourcePolicies(GetResourcePoliciesRequest request)
Retrieves the resource policies for the specified resources that you own and have shared.
|
GetResourceShareAssociationsResult |
getResourceShareAssociations(GetResourceShareAssociationsRequest request)
Retrieves the resource and principal associations for resource shares that you own.
|
GetResourceShareInvitationsResult |
getResourceShareInvitations(GetResourceShareInvitationsRequest request)
Retrieves details about invitations that you have received for resource shares.
|
GetResourceSharesResult |
getResourceShares(GetResourceSharesRequest request)
Retrieves details about the resource shares that you own or that are shared with you.
|
ListPendingInvitationResourcesResult |
listPendingInvitationResources(ListPendingInvitationResourcesRequest request)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING . |
ListPermissionsResult |
listPermissions(ListPermissionsRequest request)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
ListPermissionVersionsResult |
listPermissionVersions(ListPermissionVersionsRequest request)
Lists the available versions of the specified RAM permission.
|
ListPrincipalsResult |
listPrincipals(ListPrincipalsRequest request)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
ListResourcesResult |
listResources(ListResourcesRequest request)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
ListResourceSharePermissionsResult |
listResourceSharePermissions(ListResourceSharePermissionsRequest request)
Lists the RAM permissions that are associated with a resource share.
|
ListResourceTypesResult |
listResourceTypes(ListResourceTypesRequest request)
Lists the resource types that can be shared by RAM.
|
PromoteResourceShareCreatedFromPolicyResult |
promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest request)
When you attach a resource-based permission policy to a resource, it automatically creates a resource share.
|
RejectResourceShareInvitationResult |
rejectResourceShareInvitation(RejectResourceShareInvitationRequest request)
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 request)
Adds the specified tag keys and values to the specified resource share.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the specified tag key and value pairs from the specified resource share.
|
UpdateResourceShareResult |
updateResourceShare(UpdateResourceShareRequest request)
Modifies some of the properties of the specified resource share.
|
public AcceptResourceShareInvitationResult acceptResourceShareInvitation(AcceptResourceShareInvitationRequest request)
AWSRAM
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.
acceptResourceShareInvitation
in interface AWSRAM
public AssociateResourceShareResult associateResourceShare(AssociateResourceShareRequest request)
AWSRAM
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.
associateResourceShare
in interface AWSRAM
public AssociateResourceSharePermissionResult associateResourceSharePermission(AssociateResourceSharePermissionRequest request)
AWSRAM
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.
associateResourceSharePermission
in interface AWSRAM
public CreateResourceShareResult createResourceShare(CreateResourceShareRequest request)
AWSRAM
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.
createResourceShare
in interface AWSRAM
public DeleteResourceShareResult deleteResourceShare(DeleteResourceShareRequest request)
AWSRAM
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.
deleteResourceShare
in interface AWSRAM
public DisassociateResourceShareResult disassociateResourceShare(DisassociateResourceShareRequest request)
AWSRAM
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShare
in interface AWSRAM
public DisassociateResourceSharePermissionResult disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest request)
AWSRAM
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.
disassociateResourceSharePermission
in interface AWSRAM
public EnableSharingWithAwsOrganizationResult enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest request)
AWSRAM
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.
enableSharingWithAwsOrganization
in interface AWSRAM
public GetPermissionResult getPermission(GetPermissionRequest request)
AWSRAM
Gets the contents of an RAM permission in JSON format.
getPermission
in interface AWSRAM
public GetResourcePoliciesResult getResourcePolicies(GetResourcePoliciesRequest request)
AWSRAM
Retrieves the resource policies for the specified resources that you own and have shared.
getResourcePolicies
in interface AWSRAM
public GetResourceShareAssociationsResult getResourceShareAssociations(GetResourceShareAssociationsRequest request)
AWSRAM
Retrieves the resource and principal associations for resource shares that you own.
getResourceShareAssociations
in interface AWSRAM
public GetResourceShareInvitationsResult getResourceShareInvitations(GetResourceShareInvitationsRequest request)
AWSRAM
Retrieves details about invitations that you have received for resource shares.
getResourceShareInvitations
in interface AWSRAM
public GetResourceSharesResult getResourceShares(GetResourceSharesRequest request)
AWSRAM
Retrieves details about the resource shares that you own or that are shared with you.
getResourceShares
in interface AWSRAM
public ListPendingInvitationResourcesResult listPendingInvitationResources(ListPendingInvitationResourcesRequest request)
AWSRAM
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.
listPendingInvitationResources
in interface AWSRAM
public ListPermissionVersionsResult listPermissionVersions(ListPermissionVersionsRequest request)
AWSRAM
Lists the available versions of the specified RAM permission.
listPermissionVersions
in interface AWSRAM
public ListPermissionsResult listPermissions(ListPermissionsRequest request)
AWSRAM
Retrieves a list of available RAM permissions that you can use for the supported resource types.
listPermissions
in interface AWSRAM
public ListPrincipalsResult listPrincipals(ListPrincipalsRequest request)
AWSRAM
Lists the principals that you are sharing resources with or that are sharing resources with you.
listPrincipals
in interface AWSRAM
public ListResourceSharePermissionsResult listResourceSharePermissions(ListResourceSharePermissionsRequest request)
AWSRAM
Lists the RAM permissions that are associated with a resource share.
listResourceSharePermissions
in interface AWSRAM
public ListResourceTypesResult listResourceTypes(ListResourceTypesRequest request)
AWSRAM
Lists the resource types that can be shared by RAM.
listResourceTypes
in interface AWSRAM
public ListResourcesResult listResources(ListResourcesRequest request)
AWSRAM
Lists the resources that you added to a resource share or the resources that are shared with you.
listResources
in interface AWSRAM
public PromoteResourceShareCreatedFromPolicyResult promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest request)
AWSRAM
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.
promoteResourceShareCreatedFromPolicy
in interface AWSRAM
public RejectResourceShareInvitationResult rejectResourceShareInvitation(RejectResourceShareInvitationRequest request)
AWSRAM
Rejects an invitation to a resource share from another Amazon Web Services account.
rejectResourceShareInvitation
in interface AWSRAM
public TagResourceResult tagResource(TagResourceRequest request)
AWSRAM
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.
tagResource
in interface AWSRAM
public UntagResourceResult untagResource(UntagResourceRequest request)
AWSRAM
Removes the specified tag key and value pairs from the specified resource share.
untagResource
in interface AWSRAM
public UpdateResourceShareResult updateResourceShare(UpdateResourceShareRequest request)
AWSRAM
Modifies some of the properties of the specified resource share.
updateResourceShare
in interface AWSRAM
public void shutdown()
AWSRAM
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AWSRAM
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.
getCachedResponseMetadata
in interface AWSRAM
request
- The originally executed request.