aws ram35 CLI commands available for AWS RAM.
| Command | API Operation | Sample |
|---|---|---|
accept-resource-share-invitationAccepts 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 | |
associate-resource-shareAdds the specified list of principals, resources, and source constraints 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 | |
associate-resource-share-permissionAdds 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 resourc | AssociateResourceSharePermission | |
create-permissionCreates 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. | CreatePermission | |
create-permission-versionCreates 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 version | CreatePermissionVersion | |
create-resource-shareCreates 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, the permissions to grant those principals, and optionally source constraints to enhance security for service princ | CreateResourceShare | |
delete-permissionDeletes 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. | DeletePermission | |
delete-permission-versionDeletes 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 cr | DeletePermissionVersion | |
delete-resource-shareDeletes 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. | DeleteResourceShare | |
disassociate-resource-shareRemoves the specified principals, resources, or source constraints from participating in the specified resource share. | DisassociateResourceShare | |
disassociate-resource-share-permissionRemoves 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. | DisassociateResourceSharePermission | |
enable-sharing-with-aws-organizationEnables 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 | EnableSharingWithAwsOrganization | |
get-permissionRetrieves the contents of a managed permission in JSON format. | GetPermission | |
get-resource-policiesRetrieves the resource policies for the specified resources that you own and have shared. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. T | GetResourcePolicies | |
get-resource-share-associationsRetrieves the lists of resources and principals that associated for resource shares that you own. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results avai | GetResourceShareAssociations | |
get-resource-share-invitationsRetrieves details about invitations that you have received for resource shares. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextTok | GetResourceShareInvitations | |
get-resource-sharesRetrieves details about the resource shares that you own or that are shared with you. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The N | GetResourceShares | |
list-pending-invitation-resourcesLists 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. Always check the NextToken response parameter for a null value when calling a paginated o | ListPendingInvitationResources | |
list-permission-associationsLists 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. Always check the NextToken response parameter for a null value when calling a | ListPermissionAssociations | |
list-permission-versionsLists the available versions of the specified RAM permission. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parame | ListPermissionVersions | |
list-permissionsRetrieves a list of available RAM permissions that you can use for the supported resource types. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results avai | ListPermissions | |
list-principalsLists the principals that you are sharing resources with or that are sharing resources with you. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results avail | ListPrincipals | |
list-replace-permission-associations-workRetrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of resul | ListReplacePermissionAssociationsWork | |
list-resource-share-permissionsLists the RAM permissions that are associated with a resource share. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response | ListResourceSharePermissions | |
list-resource-typesLists the resource types that can be shared by RAM. | ListResourceTypes | |
list-resourcesLists the resources that you added to a resource share or the resources that are shared with you. Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results avai | ListResources | |
list-source-associationsLists source associations for resource shares. Source associations control which sources can be used with service principals in resource shares. This operation provides visibility into source associations for resource share owners. You can filter the results by resource share Amazon Resource Name (A | ListSourceAssociations | |
promote-permission-created-from-policyWhen 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 resou | PromotePermissionCreatedFromPolicy | |
promote-resource-share-created-from-policyWhen 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 resou | PromoteResourceShareCreatedFromPolicy | |
reject-resource-share-invitationRejects an invitation to a resource share from another Amazon Web Services account. | RejectResourceShareInvitation | |
replace-permission-associationsUpdates 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 ena | ReplacePermissionAssociations | |
set-default-permission-versionDesignates 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 t | SetDefaultPermissionVersion | |
tag-resourceAdds 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 permi | TagResource | |
untag-resourceRemoves the specified tag key and value pairs from the specified resource share or managed permission. | UntagResource | |
update-resource-shareModifies some of the properties of the specified resource share. | UpdateResourceShare |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterRAM