AWS Resource Access Manager 2018-01-04
- Client: Aws\RAM\RAMClient
- Service ID: ram
- Version: 2018-01-04
This page describes the parameters and results for the operations of the AWS Resource Access Manager (2018-01-04), and shows how to use the Aws\RAM\RAMClient object to call the described operations. This documentation is specific to the 2018-01-04 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- AcceptResourceShareInvitation ( array $params = [] )
- Accepts an invitation to a resource share from another Amazon Web Services account.
- AssociateResourceShare ( array $params = [] )
- Adds the specified list of principals and list of resources to a resource share.
- AssociateResourceSharePermission ( array $params = [] )
- Adds or replaces the RAM permission for a resource type included in a resource share.
- CreatePermission ( array $params = [] )
- Creates a customer managed permission for a specified resource type that you can attach to resource shares.
- CreatePermissionVersion ( array $params = [] )
- Creates a new version of the specified customer managed permission.
- CreateResourceShare ( array $params = [] )
- Creates a resource share.
- DeletePermission ( array $params = [] )
- Deletes the specified customer managed permission in the Amazon Web Services Region in which you call this operation.
- DeletePermissionVersion ( array $params = [] )
- Deletes one version of a customer managed permission.
- DeleteResourceShare ( array $params = [] )
- Deletes the specified resource share.
- DisassociateResourceShare ( array $params = [] )
- Removes the specified principals or resources from participating in the specified resource share.
- DisassociateResourceSharePermission ( array $params = [] )
- Removes a managed permission from a resource share.
- EnableSharingWithAwsOrganization ( array $params = [] )
- Enables resource sharing within your organization in Organizations.
- GetPermission ( array $params = [] )
- Retrieves the contents of a managed permission in JSON format.
- GetResourcePolicies ( array $params = [] )
- Retrieves the resource policies for the specified resources that you own and have shared.
- GetResourceShareAssociations ( array $params = [] )
- Retrieves the lists of resources and principals that associated for resource shares that you own.
- GetResourceShareInvitations ( array $params = [] )
- Retrieves details about invitations that you have received for resource shares.
- GetResourceShares ( array $params = [] )
- Retrieves details about the resource shares that you own or that are shared with you.
- ListPendingInvitationResources ( array $params = [] )
- Lists the resources in a resource share that is shared with you but for which the invitation is still PENDING.
- ListPermissionAssociations ( array $params = [] )
- Lists information about the managed permission and its associations to any resource shares that use this managed permission.
- ListPermissionVersions ( array $params = [] )
- Lists the available versions of the specified RAM permission.
- ListPermissions ( array $params = [] )
- Retrieves a list of available RAM permissions that you can use for the supported resource types.
- ListPrincipals ( array $params = [] )
- Lists the principals that you are sharing resources with or that are sharing resources with you.
- ListReplacePermissionAssociationsWork ( array $params = [] )
- Retrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation.
- ListResourceSharePermissions ( array $params = [] )
- Lists the RAM permissions that are associated with a resource share.
- ListResourceTypes ( array $params = [] )
- Lists the resource types that can be shared by RAM.
- ListResources ( array $params = [] )
- Lists the resources that you added to a resource share or the resources that are shared with you.
- PromotePermissionCreatedFromPolicy ( array $params = [] )
- 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.
- PromoteResourceShareCreatedFromPolicy ( array $params = [] )
- 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.
- RejectResourceShareInvitation ( array $params = [] )
- Rejects an invitation to a resource share from another Amazon Web Services account.
- ReplacePermissionAssociations ( array $params = [] )
- Updates all resource shares that use a managed permission to a different managed permission.
- SetDefaultPermissionVersion ( array $params = [] )
- Designates the specified version number as the default version for the specified customer managed permission.
- TagResource ( array $params = [] )
- Adds the specified tag keys and values to a resource share or managed permission.
- UntagResource ( array $params = [] )
- Removes the specified tag key and value pairs from the specified resource share or managed permission.
- UpdateResourceShare ( array $params = [] )
- Modifies some of the properties of the specified resource share.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
- GetResourcePolicies
- GetResourceShareAssociations
- GetResourceShareInvitations
- GetResourceShares
- ListPendingInvitationResources
- ListPermissionAssociations
- ListPermissionVersions
- ListPermissions
- ListPrincipals
- ListReplacePermissionAssociationsWork
- ListResourceSharePermissions
- ListResourceTypes
- ListResources
Operations
AcceptResourceShareInvitation
$result = $client->acceptResourceShareInvitation
([/* ... */]); $promise = $client->acceptResourceShareInvitationAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->acceptResourceShareInvitation([ 'clientToken' => '<string>', 'resourceShareInvitationArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - resourceShareInvitationArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the invitation that you want to accept.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShareInvitation' => [ 'invitationTimestamp' => <DateTime>, 'receiverAccountId' => '<string>', 'receiverArn' => '<string>', 'resourceShareArn' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], 'resourceShareInvitationArn' => '<string>', 'resourceShareName' => '<string>', 'senderAccountId' => '<string>', 'status' => 'PENDING|ACCEPTED|REJECTED|EXPIRED', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShareInvitation
-
- Type: ResourceShareInvitation structure
An object that contains information about the specified invitation.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ResourceShareInvitationArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
- ResourceShareInvitationAlreadyAcceptedException:
The operation failed because the specified invitation was already accepted.
- ResourceShareInvitationAlreadyRejectedException:
The operation failed because the specified invitation was already rejected.
- ResourceShareInvitationExpiredException:
The operation failed because the specified invitation is past its expiration date and time.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
AssociateResourceShare
$result = $client->associateResourceShare
([/* ... */]); $promise = $client->associateResourceShareAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->associateResourceShare([ 'clientToken' => '<string>', 'principals' => ['<string>', ...], 'resourceArns' => ['<string>', ...], 'resourceShareArn' => '<string>', // REQUIRED 'sources' => ['<string>', ...], ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - principals
-
- Type: Array of strings
Specifies a list of principals to whom you want to the resource share. This can be
null
if you want to add only resources.What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
- resourceArns
-
- Type: Array of strings
Specifies a list of Amazon Resource Names (ARNs) of the resources that you want to share. This can be
null
if you want to add only principals. - resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share that you want to add principals or resources to.
- sources
-
- Type: Array of strings
Specifies from which source accounts the service principal has access to the resources in this resource share.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShareAssociations
-
- Type: Array of ResourceShareAssociation structures
An array of objects that contain information about the associations.
Errors
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidStateTransitionException:
The operation failed because the requested operation isn't valid for the resource share in its current state.
- ResourceShareLimitExceededException:
The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidStateTransitionException:
The operation failed because the requested operation isn't valid for the resource share in its current state.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- ThrottlingException:
The operation failed because it exceeded the rate at which you are allowed to perform this operation. Please try again later.
AssociateResourceSharePermission
$result = $client->associateResourceSharePermission
([/* ... */]); $promise = $client->associateResourceSharePermissionAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->associateResourceSharePermission([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED 'permissionVersion' => <integer>, 'replace' => true || false, 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
- permissionVersion
-
- Type: int
Specifies the version of the RAM permission to associate with the resource share. You can specify only the version that is currently set as the default version for the permission. If you also set the
replace
pararameter totrue
, then this operation updates an outdated version of the permission to the current default version.You don't need to specify this parameter because the default behavior is to use the version that is currently set as the default version for the permission. This parameter is supported for backwards compatibility.
- replace
-
- Type: boolean
Specifies whether the specified permission should replace the existing permission associated with the resource share. Use
true
to replace the current permissions. Usefalse
to add the permission to a resource share that currently doesn't have a permission. The default value isfalse
.A resource share can have only one permission per resource type. If a resource share already has a permission for the specified resource type and you don't set
replace
totrue
then the operation returns an error. This helps prevent accidental overwriting of a permission. - resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share to which you want to add or replace permissions.
Result Syntax
[ 'clientToken' => '<string>', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - returnValue
-
- Type: boolean
A return value of
true
indicates that the request succeeded. A value offalse
indicates that the request failed.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
CreatePermission
$result = $client->createPermission
([/* ... */]); $promise = $client->createPermissionAsync
([/* ... */]);
Creates 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.
Parameter Syntax
$result = $client->createPermission([ 'clientToken' => '<string>', 'name' => '<string>', // REQUIRED 'policyTemplate' => '<string>', // REQUIRED 'resourceType' => '<string>', // REQUIRED 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - name
-
- Required: Yes
- Type: string
Specifies the name of the customer managed permission. The name must be unique within the Amazon Web Services Region.
- policyTemplate
-
- Required: Yes
- Type: string
A string in JSON format string that contains the following elements of a resource-based policy:
-
Effect: must be set to
ALLOW
. -
Action: specifies the actions that are allowed by this customer managed permission. The list must contain only actions that are supported by the specified resource type. For a list of all actions supported by each resource type, see Actions, resources, and condition keys for Amazon Web Services services in the Identity and Access Management User Guide.
-
Condition: (optional) specifies conditional parameters that must evaluate to true when a user attempts an action for that action to be allowed. For more information about the Condition element, see IAM policies: Condition element in the Identity and Access Management User Guide.
This template can't include either the
Resource
orPrincipal
elements. Those are both filled in by RAM when it instantiates the resource-based policy on each resource shared using this managed permission. TheResource
comes from the ARN of the specific resource that you are sharing. ThePrincipal
comes from the list of identities added to the resource share. - resourceType
-
- Required: Yes
- Type: string
Specifies the name of the resource type that this customer managed permission applies to.
The format is
<service-code>:<resource-type>
and is not case sensitive. For example, to specify an Amazon EC2 Subnet, you can use the stringec2:subnet
. To see the list of valid values for this parameter, query the ListResourceTypes operation. - tags
-
- Type: Array of Tag structures
Specifies a list of one or more tag key and value pairs to attach to the permission.
Result Syntax
[ 'clientToken' => '<string>', 'permission' => [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - permission
-
- Type: ResourceSharePermissionSummary structure
A structure with information about this customer managed permission.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- InvalidPolicyException:
The operation failed because a policy you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- PermissionAlreadyExistsException:
The operation failed because a permission with the specified name already exists in the requested Amazon Web Services Region. Choose a different name.
- MalformedPolicyTemplateException:
The operation failed because the policy template that you provided isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- PermissionLimitExceededException:
The operation failed because it would exceed the maximum number of permissions you can create in each Amazon Web Services Region. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
CreatePermissionVersion
$result = $client->createPermissionVersion
([/* ... */]); $promise = $client->createPermissionVersionAsync
([/* ... */]);
Creates 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.
Parameter Syntax
$result = $client->createPermissionVersion([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED 'policyTemplate' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the customer managed permission you're creating a new version for.
- policyTemplate
-
- Required: Yes
- Type: string
A string in JSON format string that contains the following elements of a resource-based policy:
-
Effect: must be set to
ALLOW
. -
Action: specifies the actions that are allowed by this customer managed permission. The list must contain only actions that are supported by the specified resource type. For a list of all actions supported by each resource type, see Actions, resources, and condition keys for Amazon Web Services services in the Identity and Access Management User Guide.
-
Condition: (optional) specifies conditional parameters that must evaluate to true when a user attempts an action for that action to be allowed. For more information about the Condition element, see IAM policies: Condition element in the Identity and Access Management User Guide.
This template can't include either the
Resource
orPrincipal
elements. Those are both filled in by RAM when it instantiates the resource-based policy on each resource shared using this managed permission. TheResource
comes from the ARN of the specific resource that you are sharing. ThePrincipal
comes from the list of identities added to the resource share.
Result Syntax
[ 'clientToken' => '<string>', 'permission' => [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permission' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => 'ATTACHABLE|UNATTACHABLE|DELETING|DELETED', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - permission
-
- Type: ResourceSharePermissionDetail structure
Information about a RAM managed permission.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- InvalidPolicyException:
The operation failed because a policy you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedPolicyTemplateException:
The operation failed because the policy template that you provided isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
- PermissionVersionsLimitExceededException:
The operation failed because it would exceed the limit for the number of versions you can have for a permission. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
CreateResourceShare
$result = $client->createResourceShare
([/* ... */]); $promise = $client->createResourceShareAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->createResourceShare([ 'allowExternalPrincipals' => true || false, 'clientToken' => '<string>', 'name' => '<string>', // REQUIRED 'permissionArns' => ['<string>', ...], 'principals' => ['<string>', ...], 'resourceArns' => ['<string>', ...], 'sources' => ['<string>', ...], 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]);
Parameter Details
Members
- allowExternalPrincipals
-
- Type: boolean
Specifies whether principals outside your organization in Organizations can be associated with a resource share. A value of
true
lets you share with individual Amazon Web Services accounts that are not in your organization. A value offalse
only has meaning if your account is a member of an Amazon Web Services Organization. The default value istrue
. - clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - name
-
- Required: Yes
- Type: string
Specifies the name of the resource share.
- permissionArns
-
- Type: Array of strings
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
- principals
-
- Type: Array of strings
Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
- resourceArns
-
- Type: Array of strings
Specifies a list of one or more ARNs of the resources to associate with the resource share.
- sources
-
- Type: Array of strings
Specifies from which source accounts the service principal has access to the resources in this resource share.
- tags
-
- Type: Array of Tag structures
Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShare' => [ 'allowExternalPrincipals' => true || false, 'creationTime' => <DateTime>, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'owningAccountId' => '<string>', 'resourceShareArn' => '<string>', 'status' => 'PENDING|ACTIVE|FAILED|DELETING|DELETED', 'statusMessage' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShare
-
- Type: ResourceShare structure
An object with information about the new resource share.
Errors
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was 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 operation failed because the requested operation isn't valid for the resource share in its current state.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ResourceShareLimitExceededException:
The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
- TagPolicyViolationException:
The operation failed because the specified tag key is a reserved word and can't be used.
- TagLimitExceededException:
The operation failed because it would exceed the limit for tags for your Amazon Web Services account.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
DeletePermission
$result = $client->deletePermission
([/* ... */]); $promise = $client->deletePermissionAsync
([/* ... */]);
Deletes 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.
Parameter Syntax
$result = $client->deletePermission([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the customer managed permission that you want to delete.
Result Syntax
[ 'clientToken' => '<string>', 'permissionStatus' => 'ATTACHABLE|UNATTACHABLE|DELETING|DELETED', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - permissionStatus
-
- Type: string
This operation is performed asynchronously, and this response parameter indicates the current status.
- returnValue
-
- Type: boolean
A boolean that indicates whether the delete operations succeeded.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
DeletePermissionVersion
$result = $client->deletePermissionVersion
([/* ... */]); $promise = $client->deletePermissionVersionAsync
([/* ... */]);
Deletes 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.
Parameter Syntax
$result = $client->deletePermissionVersion([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED 'permissionVersion' => <integer>, // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the permission with the version you want to delete.
- permissionVersion
-
- Required: Yes
- Type: int
Specifies the version number to delete.
You can't delete the default version for a customer managed permission.
You can't delete a version if it's the only version of the permission. You must either first create another version, or delete the permission completely.
You can't delete a version if it is attached to any resource shares. If the version is the default, you must first use SetDefaultPermissionVersion to set a different version as the default for the customer managed permission, and then use AssociateResourceSharePermission to update your resource shares to use the new default version.
Result Syntax
[ 'clientToken' => '<string>', 'permissionStatus' => 'ATTACHABLE|UNATTACHABLE|DELETING|DELETED', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - permissionStatus
-
- Type: string
This operation is performed asynchronously, and this response parameter indicates the current status.
- returnValue
-
- Type: boolean
A boolean value that indicates whether the operation is successful.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
DeleteResourceShare
$result = $client->deleteResourceShare
([/* ... */]); $promise = $client->deleteResourceShareAsync
([/* ... */]);
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 through this resource share.
Parameter Syntax
$result = $client->deleteResourceShare([ 'clientToken' => '<string>', 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share to delete.
Result Syntax
[ 'clientToken' => '<string>', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - returnValue
-
- Type: boolean
A return value of
true
indicates that the request succeeded. A value offalse
indicates that the request failed.
Errors
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was 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 operation failed because the requested operation isn't valid for the resource share in its current state.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
DisassociateResourceShare
$result = $client->disassociateResourceShare
([/* ... */]); $promise = $client->disassociateResourceShareAsync
([/* ... */]);
Removes the specified principals or resources from participating in the specified resource share.
Parameter Syntax
$result = $client->disassociateResourceShare([ 'clientToken' => '<string>', 'principals' => ['<string>', ...], 'resourceArns' => ['<string>', ...], 'resourceShareArn' => '<string>', // REQUIRED 'sources' => ['<string>', ...], ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - principals
-
- Type: Array of strings
Specifies a list of one or more principals that no longer are to have access to the resources in this resource share.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
- resourceArns
-
- Type: Array of strings
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated with the resource share.
- resourceShareArn
-
- Required: Yes
- Type: string
Specifies Amazon Resource Name (ARN) of the resource share that you want to remove resources or principals from.
- sources
-
- Type: Array of strings
Specifies from which source accounts the service principal no longer has access to the resources in this resource share.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShareAssociations
-
- Type: Array of ResourceShareAssociation structures
An array of objects with information about the updated associations for this resource share.
Errors
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
- ResourceShareLimitExceededException:
The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidStateTransitionException:
The operation failed because the requested operation isn't valid for the resource share in its current state.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
DisassociateResourceSharePermission
$result = $client->disassociateResourceSharePermission
([/* ... */]); $promise = $client->disassociateResourceSharePermissionAsync
([/* ... */]);
Removes 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.
Parameter Syntax
$result = $client->disassociateResourceSharePermission([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the managed permission to disassociate from the resource share. Changes to permissions take effect immediately.
- resourceShareArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the resource share that you want to remove the managed permission from.
Result Syntax
[ 'clientToken' => '<string>', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - returnValue
-
- Type: boolean
A return value of
true
indicates that the request succeeded. A value offalse
indicates that the request failed.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- InvalidStateTransitionException:
The operation failed because the requested operation isn't valid for the resource share in its current state.
EnableSharingWithAwsOrganization
$result = $client->enableSharingWithAwsOrganization
([/* ... */]); $promise = $client->enableSharingWithAwsOrganizationAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->enableSharingWithAwsOrganization([ ]);
Parameter Details
Members
Result Syntax
[ 'returnValue' => true || false, ]
Result Details
Members
- returnValue
-
- Type: boolean
A return value of
true
indicates that the request succeeded. A value offalse
indicates that the request failed.
Errors
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
GetPermission
$result = $client->getPermission
([/* ... */]); $promise = $client->getPermissionAsync
([/* ... */]);
Retrieves the contents of a managed permission in JSON format.
Parameter Syntax
$result = $client->getPermission([ 'permissionArn' => '<string>', // REQUIRED 'permissionVersion' => <integer>, ]);
Parameter Details
Members
- permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
- permissionVersion
-
- Type: int
Specifies the version number of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.
To see the list of available versions, use ListPermissionVersions.
Result Syntax
[ 'permission' => [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permission' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => 'ATTACHABLE|UNATTACHABLE|DELETING|DELETED', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], ]
Result Details
Members
- permission
-
- Type: ResourceSharePermissionDetail structure
An object with details about the permission.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
GetResourcePolicies
$result = $client->getResourcePolicies
([/* ... */]); $promise = $client->getResourcePoliciesAsync
([/* ... */]);
Retrieves the resource policies for the specified resources that you own and have shared.
Parameter Syntax
$result = $client->getResourcePolicies([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'principal' => '<string>', 'resourceArns' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - principal
-
- Type: string
Specifies the principal.
- resourceArns
-
- Required: Yes
- Type: Array of strings
Specifies the Amazon Resource Names (ARNs) of the resources whose policies you want to retrieve.
Result Syntax
[ 'nextToken' => '<string>', 'policies' => ['<string>', ...], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - policies
-
- Type: Array of strings
An array of resource policy documents in JSON format.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ResourceArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) was not found.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
GetResourceShareAssociations
$result = $client->getResourceShareAssociations
([/* ... */]); $promise = $client->getResourceShareAssociationsAsync
([/* ... */]);
Retrieves the lists of resources and principals that associated for resource shares that you own.
Parameter Syntax
$result = $client->getResourceShareAssociations([ 'associationStatus' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'associationType' => 'PRINCIPAL|RESOURCE', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', 'principal' => '<string>', 'resourceArn' => '<string>', 'resourceShareArns' => ['<string>', ...], ]);
Parameter Details
Members
- associationStatus
-
- Type: string
Specifies that you want to retrieve only associations that have this status.
- associationType
-
- Required: Yes
- Type: string
Specifies whether you want to retrieve the associations that involve a specified resource or principal.
-
PRINCIPAL
– list the principals whose associations you want to see. -
RESOURCE
– list the resources whose associations you want to see.
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - principal
-
- Type: string
Specifies the ID of the principal whose resource shares you want to retrieve. This can be an Amazon Web Services account ID, an organization ID, an organizational unit ID, or the Amazon Resource Name (ARN) of an individual IAM role or user.
You cannot specify this parameter if the association type is
RESOURCE
. - resourceArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of a resource whose resource shares you want to retrieve.
You cannot specify this parameter if the association type is
PRINCIPAL
. - resourceShareArns
-
- Type: Array of strings
Specifies a list of Amazon Resource Names (ARNs) of the resource share whose associations you want to retrieve.
Result Syntax
[ 'nextToken' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resourceShareAssociations
-
- Type: Array of ResourceShareAssociation structures
An array of objects that contain the details about the associations.
Errors
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
GetResourceShareInvitations
$result = $client->getResourceShareInvitations
([/* ... */]); $promise = $client->getResourceShareInvitationsAsync
([/* ... */]);
Retrieves details about invitations that you have received for resource shares.
Parameter Syntax
$result = $client->getResourceShareInvitations([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'resourceShareArns' => ['<string>', ...], 'resourceShareInvitationArns' => ['<string>', ...], ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - resourceShareArns
-
- Type: Array of strings
Specifies that you want details about invitations only for the resource shares described by this list of Amazon Resource Names (ARNs)
- resourceShareInvitationArns
-
- Type: Array of strings
Specifies the Amazon Resource Names (ARNs) of the resource share invitations you want information about.
Result Syntax
[ 'nextToken' => '<string>', 'resourceShareInvitations' => [ [ 'invitationTimestamp' => <DateTime>, 'receiverAccountId' => '<string>', 'receiverArn' => '<string>', 'resourceShareArn' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], 'resourceShareInvitationArn' => '<string>', 'resourceShareName' => '<string>', 'senderAccountId' => '<string>', 'status' => 'PENDING|ACCEPTED|REJECTED|EXPIRED', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resourceShareInvitations
-
- Type: Array of ResourceShareInvitation structures
An array of objects that contain the details about the invitations.
Errors
- ResourceShareInvitationArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
- InvalidMaxResultsException:
The operation failed because the specified value for
MaxResults
isn't valid.- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
GetResourceShares
$result = $client->getResourceShares
([/* ... */]); $promise = $client->getResourceSharesAsync
([/* ... */]);
Retrieves details about the resource shares that you own or that are shared with you.
Parameter Syntax
$result = $client->getResourceShares([ 'maxResults' => <integer>, 'name' => '<string>', 'nextToken' => '<string>', 'permissionArn' => '<string>', 'permissionVersion' => <integer>, 'resourceOwner' => 'SELF|OTHER-ACCOUNTS', // REQUIRED 'resourceShareArns' => ['<string>', ...], 'resourceShareStatus' => 'PENDING|ACTIVE|FAILED|DELETING|DELETED', 'tagFilters' => [ [ 'tagKey' => '<string>', 'tagValues' => ['<string>', ...], ], // ... ], ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - name
-
- Type: string
Specifies the name of an individual resource share that you want to retrieve details about.
- nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - permissionArn
-
- Type: string
Specifies that you want to retrieve details of only those resource shares that use the managed permission with this Amazon Resource Name (ARN).
- permissionVersion
-
- Type: int
Specifies that you want to retrieve details for only those resource shares that use the specified version of the managed permission.
- resourceOwner
-
- Required: Yes
- Type: string
Specifies that you want to retrieve details of only those resource shares that match the following:
-
SELF
– resource shares that your account shares with other accounts -
OTHER-ACCOUNTS
– resource shares that other accounts share with your account
- resourceShareArns
-
- Type: Array of strings
Specifies the Amazon Resource Names (ARNs) of individual resource shares that you want information about.
- resourceShareStatus
-
- Type: string
Specifies that you want to retrieve details of only those resource shares that have this status.
- tagFilters
-
- Type: Array of TagFilter structures
Specifies that you want to retrieve details of only those resource shares that match the specified tag keys and values.
Result Syntax
[ 'nextToken' => '<string>', 'resourceShares' => [ [ 'allowExternalPrincipals' => true || false, 'creationTime' => <DateTime>, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'owningAccountId' => '<string>', 'resourceShareArn' => '<string>', 'status' => 'PENDING|ACTIVE|FAILED|DELETING|DELETED', 'statusMessage' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resourceShares
-
- Type: Array of ResourceShare structures
An array of objects that contain the information about the resource shares.
Errors
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
ListPendingInvitationResources
$result = $client->listPendingInvitationResources
([/* ... */]); $promise = $client->listPendingInvitationResourcesAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->listPendingInvitationResources([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'resourceRegionScope' => 'ALL|REGIONAL|GLOBAL', 'resourceShareInvitationArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - resourceRegionScope
-
- Type: string
Specifies that you want the results to include only resources that have the specified scope.
-
ALL
– the results include both global and regional resources or resource types. -
GLOBAL
– the results include only global resources or resource types. -
REGIONAL
– the results include only regional resources or resource types.
The default value is
ALL
. - resourceShareInvitationArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the invitation. You can use GetResourceShareInvitations to find the ARN of the invitation.
Result Syntax
[ 'nextToken' => '<string>', 'resources' => [ [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'lastUpdatedTime' => <DateTime>, 'resourceGroupArn' => '<string>', 'resourceRegionScope' => 'REGIONAL|GLOBAL', 'resourceShareArn' => '<string>', 'status' => 'AVAILABLE|ZONAL_RESOURCE_INACCESSIBLE|LIMIT_EXCEEDED|UNAVAILABLE|PENDING', 'statusMessage' => '<string>', 'type' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resources
-
- Type: Array of Resource structures
An array of objects that contain the information about the resources included the specified resource share.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- ResourceShareInvitationArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
- MissingRequiredParameterException:
The operation failed because a required input parameter is missing.
- ResourceShareInvitationAlreadyRejectedException:
The operation failed because the specified invitation was already rejected.
- ResourceShareInvitationExpiredException:
The operation failed because the specified invitation is past its expiration date and time.
ListPermissionAssociations
$result = $client->listPermissionAssociations
([/* ... */]); $promise = $client->listPermissionAssociationsAsync
([/* ... */]);
Lists 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.
Parameter Syntax
$result = $client->listPermissionAssociations([ 'associationStatus' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'maxResults' => <integer>, 'nextToken' => '<string>', 'permissionArn' => '<string>', 'permissionVersion' => <integer>, 'resourceType' => '<string>', ]);
Parameter Details
Members
- associationStatus
-
- Type: string
Specifies that you want to list only those associations with resource shares that match this status.
- defaultVersion
-
- Type: boolean
When
true
, specifies that you want to list only those associations with resource shares that use the default version of the specified managed permission.When
false
(the default value), lists associations with resource shares that use any version of the specified managed permission. - featureSet
-
- Type: string
Specifies that you want to list only those associations with resource shares that have a
featureSet
with this value. - maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - permissionArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of the managed permission.
- permissionVersion
-
- Type: int
Specifies that you want to list only those associations with resource shares that use this version of the managed permission. If you don't provide a value for this parameter, then the operation returns information about associations with resource shares that use any version of the managed permission.
- resourceType
-
- Type: string
Specifies that you want to list only those associations with resource shares that include at least one resource of this resource type.
Result Syntax
[ 'nextToken' => '<string>', 'permissions' => [ [ 'arn' => '<string>', 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'lastUpdatedTime' => <DateTime>, 'permissionVersion' => '<string>', 'resourceShareArn' => '<string>', 'resourceType' => '<string>', 'status' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - permissions
-
- Type: Array of AssociatedPermission structures
A structure with information about this customer managed permission.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
ListPermissionVersions
$result = $client->listPermissionVersions
([/* ... */]); $promise = $client->listPermissionVersionsAsync
([/* ... */]);
Lists the available versions of the specified RAM permission.
Parameter Syntax
$result = $client->listPermissionVersions([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the RAM permission whose versions you want to list. You can use the
permissionVersion
parameter on the AssociateResourceSharePermission operation to specify a non-default version to attach.
Result Syntax
[ 'nextToken' => '<string>', 'permissions' => [ [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - permissions
-
- Type: Array of ResourceSharePermissionSummary structures
An array of objects that contain details for each of the available versions.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
ListPermissions
$result = $client->listPermissions
([/* ... */]); $promise = $client->listPermissionsAsync
([/* ... */]);
Retrieves a list of available RAM permissions that you can use for the supported resource types.
Parameter Syntax
$result = $client->listPermissions([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'permissionType' => 'ALL|AWS_MANAGED|CUSTOMER_MANAGED', 'resourceType' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - permissionType
-
- Type: string
Specifies that you want to list only permissions of this type:
-
AWS
– returns only Amazon Web Services managed permissions. -
LOCAL
– returns only customer managed permissions -
ALL
– returns both Amazon Web Services managed permissions and customer managed permissions.
If you don't specify this parameter, the default is
All
. - resourceType
-
- Type: string
Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.
For example, to list only permissions that apply to Amazon EC2 subnets, specify
ec2:subnet
. You can use the ListResourceTypes operation to get the specific string required.
Result Syntax
[ 'nextToken' => '<string>', 'permissions' => [ [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - permissions
-
- Type: Array of ResourceSharePermissionSummary structures
An array of objects with information about the permissions.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
ListPrincipals
$result = $client->listPrincipals
([/* ... */]); $promise = $client->listPrincipalsAsync
([/* ... */]);
Lists the principals that you are sharing resources with or that are sharing resources with you.
Parameter Syntax
$result = $client->listPrincipals([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'principals' => ['<string>', ...], 'resourceArn' => '<string>', 'resourceOwner' => 'SELF|OTHER-ACCOUNTS', // REQUIRED 'resourceShareArns' => ['<string>', ...], 'resourceType' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - principals
-
- Type: Array of strings
Specifies that you want to list information for only the listed principals.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
- resourceArn
-
- Type: string
Specifies that you want to list principal information for the resource share with the specified Amazon Resource Name (ARN).
- resourceOwner
-
- Required: Yes
- Type: string
Specifies that you want to list information for only resource shares that match the following:
-
SELF
– principals that your account is sharing resources with -
OTHER-ACCOUNTS
– principals that are sharing resources with your account
- resourceShareArns
-
- Type: Array of strings
Specifies that you want to list information for only principals associated with the resource shares specified by a list the Amazon Resource Names (ARNs).
- resourceType
-
- Type: string
Specifies that you want to list information for only principals associated with resource shares that include the specified resource type.
For a list of valid values, query the ListResourceTypes operation.
Result Syntax
[ 'nextToken' => '<string>', 'principals' => [ [ 'creationTime' => <DateTime>, 'external' => true || false, 'id' => '<string>', 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - principals
-
- Type: Array of Principal structures
An array of objects that contain the details about the principals.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
ListReplacePermissionAssociationsWork
$result = $client->listReplacePermissionAssociationsWork
([/* ... */]); $promise = $client->listReplacePermissionAssociationsWorkAsync
([/* ... */]);
Retrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation.
Parameter Syntax
$result = $client->listReplacePermissionAssociationsWork([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'status' => 'IN_PROGRESS|COMPLETED|FAILED', 'workIds' => ['<string>', ...], ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - status
-
- Type: string
Specifies that you want to see only the details about requests with a status that matches this value.
- workIds
-
- Type: Array of strings
A list of IDs. These values come from the
id
field of thereplacePermissionAssociationsWork
structure returned by the ReplacePermissionAssociations operation.
Result Syntax
[ 'nextToken' => '<string>', 'replacePermissionAssociationsWorks' => [ [ 'creationTime' => <DateTime>, 'fromPermissionArn' => '<string>', 'fromPermissionVersion' => '<string>', 'id' => '<string>', 'lastUpdatedTime' => <DateTime>, 'status' => 'IN_PROGRESS|COMPLETED|FAILED', 'statusMessage' => '<string>', 'toPermissionArn' => '<string>', 'toPermissionVersion' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - replacePermissionAssociationsWorks
-
- Type: Array of ReplacePermissionAssociationsWork structures
An array of data structures that provide details of the matching work IDs.
Errors
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
ListResourceSharePermissions
$result = $client->listResourceSharePermissions
([/* ... */]); $promise = $client->listResourceSharePermissionsAsync
([/* ... */]);
Lists the RAM permissions that are associated with a resource share.
Parameter Syntax
$result = $client->listResourceSharePermissions([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share for which you want to retrieve the associated permissions.
Result Syntax
[ 'nextToken' => '<string>', 'permissions' => [ [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - permissions
-
- Type: Array of ResourceSharePermissionSummary structures
An array of objects that describe the permissions associated with the resource share.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
ListResourceTypes
$result = $client->listResourceTypes
([/* ... */]); $promise = $client->listResourceTypesAsync
([/* ... */]);
Lists the resource types that can be shared by RAM.
Parameter Syntax
$result = $client->listResourceTypes([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'resourceRegionScope' => 'ALL|REGIONAL|GLOBAL', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - resourceRegionScope
-
- Type: string
Specifies that you want the results to include only resources that have the specified scope.
-
ALL
– the results include both global and regional resources or resource types. -
GLOBAL
– the results include only global resources or resource types. -
REGIONAL
– the results include only regional resources or resource types.
The default value is
ALL
.
Result Syntax
[ 'nextToken' => '<string>', 'resourceTypes' => [ [ 'resourceRegionScope' => 'REGIONAL|GLOBAL', 'resourceType' => '<string>', 'serviceName' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resourceTypes
-
- Type: Array of ServiceNameAndResourceType structures
An array of objects that contain information about the resource types that can be shared using RAM.
Errors
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
ListResources
$result = $client->listResources
([/* ... */]); $promise = $client->listResourcesAsync
([/* ... */]);
Lists the resources that you added to a resource share or the resources that are shared with you.
Parameter Syntax
$result = $client->listResources([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'principal' => '<string>', 'resourceArns' => ['<string>', ...], 'resourceOwner' => 'SELF|OTHER-ACCOUNTS', // REQUIRED 'resourceRegionScope' => 'ALL|REGIONAL|GLOBAL', 'resourceShareArns' => ['<string>', ...], 'resourceType' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results. - nextToken
-
- Type: string
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - principal
-
- Type: string
Specifies that you want to list only the resource shares that are associated with the specified principal.
- resourceArns
-
- Type: Array of strings
Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).
- resourceOwner
-
- Required: Yes
- Type: string
Specifies that you want to list only the resource shares that match the following:
-
SELF
– resources that your account shares with other accounts -
OTHER-ACCOUNTS
– resources that other accounts share with your account
- resourceRegionScope
-
- Type: string
Specifies that you want the results to include only resources that have the specified scope.
-
ALL
– the results include both global and regional resources or resource types. -
GLOBAL
– the results include only global resources or resource types. -
REGIONAL
– the results include only regional resources or resource types.
The default value is
ALL
. - resourceShareArns
-
- Type: Array of strings
Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).
- resourceType
-
- Type: string
Specifies that you want to list only the resource shares that include resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
Result Syntax
[ 'nextToken' => '<string>', 'resources' => [ [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'lastUpdatedTime' => <DateTime>, 'resourceGroupArn' => '<string>', 'resourceRegionScope' => 'REGIONAL|GLOBAL', 'resourceShareArn' => '<string>', 'status' => 'AVAILABLE|ZONAL_RESOURCE_INACCESSIBLE|LIMIT_EXCEEDED|UNAVAILABLE|PENDING', 'statusMessage' => '<string>', 'type' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results. - resources
-
- Type: Array of Resource structures
An array of objects that contain information about the resources.
Errors
- InvalidResourceTypeException:
The operation failed because the specified resource type isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidNextTokenException:
The operation failed because the specified value for
NextToken
isn't valid. You must specify a value you received in theNextToken
response of a previous call to this operation.- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
PromotePermissionCreatedFromPolicy
$result = $client->promotePermissionCreatedFromPolicy
([/* ... */]); $promise = $client->promotePermissionCreatedFromPolicyAsync
([/* ... */]);
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 usingReplacePermsissionAssociations
. However, if you use PromoteResourceShareCreatedFromPolicy, that operation automatically associates the fully manageable customer managed permission to the newly promotedSTANDARD
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.
Parameter Syntax
$result = $client->promotePermissionCreatedFromPolicy([ 'clientToken' => '<string>', 'name' => '<string>', // REQUIRED 'permissionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - name
-
- Required: Yes
- Type: string
Specifies a name for the promoted customer managed permission.
- permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the
CREATED_FROM_POLICY
permission that you want to promote. You can get this Amazon Resource Name (ARN) by calling the ListResourceSharePermissions operation.
Result Syntax
[ 'clientToken' => '<string>', 'permission' => [ 'arn' => '<string>', 'creationTime' => <DateTime>, 'defaultVersion' => true || false, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'isResourceTypeDefault' => true || false, 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'permissionType' => 'CUSTOMER_MANAGED|AWS_MANAGED', 'resourceType' => '<string>', 'status' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'version' => '<string>', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - permission
-
- Type: ResourceSharePermissionSummary structure
Information about an RAM permission.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MissingRequiredParameterException:
The operation failed because a required input parameter is missing.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
PromoteResourceShareCreatedFromPolicy
$result = $client->promoteResourceShareCreatedFromPolicy
([/* ... */]); $promise = $client->promoteResourceShareCreatedFromPolicyAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->promoteResourceShareCreatedFromPolicy([ 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share to promote.
Result Syntax
[ 'returnValue' => true || false, ]
Result Details
Members
- returnValue
-
- Type: boolean
A return value of
true
indicates that the request succeeded. A value offalse
indicates that the request failed.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- ResourceShareLimitExceededException:
The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MissingRequiredParameterException:
The operation failed because a required input parameter is missing.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidStateTransitionException:
The operation failed because the requested operation isn't valid for the resource share in its current state.
- UnmatchedPolicyPermissionException:
There isn't an existing managed permission defined in RAM that has the same IAM permissions as the resource-based policy attached to the resource. You should first run PromotePermissionCreatedFromPolicy to create that managed permission.
RejectResourceShareInvitation
$result = $client->rejectResourceShareInvitation
([/* ... */]); $promise = $client->rejectResourceShareInvitationAsync
([/* ... */]);
Rejects an invitation to a resource share from another Amazon Web Services account.
Parameter Syntax
$result = $client->rejectResourceShareInvitation([ 'clientToken' => '<string>', 'resourceShareInvitationArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - resourceShareInvitationArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the invitation that you want to reject.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShareInvitation' => [ 'invitationTimestamp' => <DateTime>, 'receiverAccountId' => '<string>', 'receiverArn' => '<string>', 'resourceShareArn' => '<string>', 'resourceShareAssociations' => [ [ 'associatedEntity' => '<string>', 'associationType' => 'PRINCIPAL|RESOURCE', 'creationTime' => <DateTime>, 'external' => true || false, 'lastUpdatedTime' => <DateTime>, 'resourceShareArn' => '<string>', 'resourceShareName' => '<string>', 'status' => 'ASSOCIATING|ASSOCIATED|FAILED|DISASSOCIATING|DISASSOCIATED', 'statusMessage' => '<string>', ], // ... ], 'resourceShareInvitationArn' => '<string>', 'resourceShareName' => '<string>', 'senderAccountId' => '<string>', 'status' => 'PENDING|ACCEPTED|REJECTED|EXPIRED', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShareInvitation
-
- Type: ResourceShareInvitation structure
An object that contains the details about the rejected invitation.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ResourceShareInvitationArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
- ResourceShareInvitationAlreadyAcceptedException:
The operation failed because the specified invitation was already accepted.
- ResourceShareInvitationAlreadyRejectedException:
The operation failed because the specified invitation was already rejected.
- ResourceShareInvitationExpiredException:
The operation failed because the specified invitation is past its expiration date and time.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
ReplacePermissionAssociations
$result = $client->replacePermissionAssociations
([/* ... */]); $promise = $client->replacePermissionAssociationsAsync
([/* ... */]);
Updates 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.
Parameter Syntax
$result = $client->replacePermissionAssociations([ 'clientToken' => '<string>', 'fromPermissionArn' => '<string>', // REQUIRED 'fromPermissionVersion' => <integer>, 'toPermissionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - fromPermissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to replace.
- fromPermissionVersion
-
- Type: int
Specifies that you want to updated the permissions for only those resource shares that use the specified version of the managed permission.
- toPermissionArn
-
- Required: Yes
- Type: string
Specifies the ARN of the managed permission that you want to associate with resource shares in place of the one specified by
fromPerssionArn
andfromPermissionVersion
.The operation always associates the version that is currently the default for the specified managed permission.
Result Syntax
[ 'clientToken' => '<string>', 'replacePermissionAssociationsWork' => [ 'creationTime' => <DateTime>, 'fromPermissionArn' => '<string>', 'fromPermissionVersion' => '<string>', 'id' => '<string>', 'lastUpdatedTime' => <DateTime>, 'status' => 'IN_PROGRESS|COMPLETED|FAILED', 'statusMessage' => '<string>', 'toPermissionArn' => '<string>', 'toPermissionVersion' => '<string>', ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - replacePermissionAssociationsWork
-
- Type: ReplacePermissionAssociationsWork structure
Specifies a data structure that you can use to track the asynchronous tasks that RAM performs to complete this operation. You can use the ListReplacePermissionAssociationsWork operation and pass the
id
value returned in this structure.
Errors
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
SetDefaultPermissionVersion
$result = $client->setDefaultPermissionVersion
([/* ... */]); $promise = $client->setDefaultPermissionVersionAsync
([/* ... */]);
Designates 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.
Parameter Syntax
$result = $client->setDefaultPermissionVersion([ 'clientToken' => '<string>', 'permissionArn' => '<string>', // REQUIRED 'permissionVersion' => <integer>, // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - permissionArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the customer managed permission whose default version you want to change.
- permissionVersion
-
- Required: Yes
- Type: int
Specifies the version number that you want to designate as the default for customer managed permission. To see a list of all available version numbers, use ListPermissionVersions.
Result Syntax
[ 'clientToken' => '<string>', 'returnValue' => true || false, ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - returnValue
-
- Type: boolean
A boolean value that indicates whether the operation was successful.
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Adds 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.
Parameter Syntax
$result = $client->tagResource([ 'resourceArn' => '<string>', 'resourceShareArn' => '<string>', 'tags' => [ // REQUIRED [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]);
Parameter Details
Members
- resourceArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either
resourceArn
, orresourceShareArn
, but not both. - resourceShareArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn
, orresourceArn
, but not both. - tags
-
- Required: Yes
- Type: Array of Tag structures
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
Result Syntax
[]
Result Details
Errors
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- TagLimitExceededException:
The operation failed because it would exceed the limit for tags for your Amazon Web Services account.
- ResourceArnNotFoundException:
The operation failed because the specified Amazon Resource Name (ARN) was not found.
- TagPolicyViolationException:
The operation failed because the specified tag key is a reserved word and can't be used.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Removes the specified tag key and value pairs from the specified resource share or managed permission.
Parameter Syntax
$result = $client->untagResource([ 'resourceArn' => '<string>', 'resourceShareArn' => '<string>', 'tagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to remove tags from. You must specify either
resourceArn
, orresourceShareArn
, but not both. - resourceShareArn
-
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share that you want to remove tags from. The tags are removed from the resource share, not the resources in the resource share. You must specify either
resourceShareArn
, orresourceArn
, but not both. - tagKeys
-
- Required: Yes
- Type: Array of strings
Specifies a list of one or more tag keys that you want to remove.
Result Syntax
[]
Result Details
Errors
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
UpdateResourceShare
$result = $client->updateResourceShare
([/* ... */]); $promise = $client->updateResourceShareAsync
([/* ... */]);
Modifies some of the properties of the specified resource share.
Parameter Syntax
$result = $client->updateResourceShare([ 'allowExternalPrincipals' => true || false, 'clientToken' => '<string>', 'name' => '<string>', 'resourceShareArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- allowExternalPrincipals
-
- Type: boolean
Specifies whether principals outside your organization in Organizations can be associated with a resource share.
- clientToken
-
- Type: string
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken
, but with different parameters, the retry fails with anIdempotentParameterMismatch
error. - name
-
- Type: string
If specified, the new name that you want to attach to the resource share.
- resourceShareArn
-
- Required: Yes
- Type: string
Specifies the Amazon Resource Name (ARN) of the resource share that you want to modify.
Result Syntax
[ 'clientToken' => '<string>', 'resourceShare' => [ 'allowExternalPrincipals' => true || false, 'creationTime' => <DateTime>, 'featureSet' => 'CREATED_FROM_POLICY|PROMOTING_TO_STANDARD|STANDARD', 'lastUpdatedTime' => <DateTime>, 'name' => '<string>', 'owningAccountId' => '<string>', 'resourceShareArn' => '<string>', 'status' => 'PENDING|ACTIVE|FAILED|DELETING|DELETED', 'statusMessage' => '<string>', 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ], ]
Result Details
Members
- clientToken
-
- Type: string
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call. - resourceShare
-
- Type: ResourceShare structure
Information about the resource share.
Errors
- IdempotentParameterMismatchException:
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
- MissingRequiredParameterException:
The operation failed because a required input parameter is missing.
- UnknownResourceException:
The operation failed because a specified resource couldn't be found.
- MalformedArnException:
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
- InvalidClientTokenException:
The operation failed because the specified client token isn't valid.
- InvalidParameterException:
The operation failed because a parameter you specified isn't valid.
- OperationNotPermittedException:
The operation failed because the requested operation isn't permitted.
- ServerInternalException:
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
- ServiceUnavailableException:
The operation failed because the service isn't available. Try again later.
Shapes
AssociatedPermission
Description
An object that describes a managed permission associated with a resource share.
Members
- arn
-
- Type: string
The Amazon Resource Name (ARN) of the associated managed permission.
- defaultVersion
-
- Type: boolean
Indicates whether the associated resource share is using the default version of the permission.
- featureSet
-
- Type: string
Indicates what features are available for this resource share. This parameter can have one of the following values:
-
STANDARD – A resource share that supports all functionality. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
-
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
-
PROMOTING_TO_STANDARD – This resource share was originally
CREATED_FROM_POLICY
, but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value changes toSTANDARD
when complete.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the association between the permission and the resource share was last updated.
- permissionVersion
-
- Type: string
The version of the permission currently associated with the resource share.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of a resource share associated with this permission.
- resourceType
-
- Type: string
The resource type to which this permission applies.
- status
-
- Type: string
The current status of the association between the permission and the resource share. The following are the possible values:
-
ATTACHABLE
– This permission or version can be associated with resource shares. -
UNATTACHABLE
– This permission or version can't currently be associated with resource shares. -
DELETING
– This permission or version is in the process of being deleted. -
DELETED
– This permission or version is deleted.
IdempotentParameterMismatchException
Description
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
Members
- message
-
- Required: Yes
- Type: string
InvalidClientTokenException
Description
The operation failed because the specified client token isn't valid.
Members
- message
-
- Required: Yes
- Type: string
InvalidMaxResultsException
Description
The operation failed because the specified value for MaxResults
isn't valid.
Members
- message
-
- Required: Yes
- Type: string
InvalidNextTokenException
Description
The operation failed because the specified value for NextToken
isn't valid. You must specify a value you received in the NextToken
response of a previous call to this operation.
Members
- message
-
- Required: Yes
- Type: string
InvalidParameterException
Description
The operation failed because a parameter you specified isn't valid.
Members
- message
-
- Required: Yes
- Type: string
InvalidPolicyException
Description
The operation failed because a policy you specified isn't valid.
Members
- message
-
- Required: Yes
- Type: string
InvalidResourceTypeException
Description
The operation failed because the specified resource type isn't valid.
Members
- message
-
- Required: Yes
- Type: string
InvalidStateTransitionException
Description
The operation failed because the requested operation isn't valid for the resource share in its current state.
Members
- message
-
- Required: Yes
- Type: string
MalformedArnException
Description
The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
Members
- message
-
- Required: Yes
- Type: string
MalformedPolicyTemplateException
Description
The operation failed because the policy template that you provided isn't valid.
Members
- message
-
- Required: Yes
- Type: string
MissingRequiredParameterException
Description
The operation failed because a required input parameter is missing.
Members
- message
-
- Required: Yes
- Type: string
OperationNotPermittedException
Description
The operation failed because the requested operation isn't permitted.
Members
- message
-
- Required: Yes
- Type: string
PermissionAlreadyExistsException
Description
The operation failed because a permission with the specified name already exists in the requested Amazon Web Services Region. Choose a different name.
Members
- message
-
- Required: Yes
- Type: string
PermissionLimitExceededException
Description
The operation failed because it would exceed the maximum number of permissions you can create in each Amazon Web Services Region. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
Members
- message
-
- Required: Yes
- Type: string
PermissionVersionsLimitExceededException
Description
The operation failed because it would exceed the limit for the number of versions you can have for a permission. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
Members
- message
-
- Required: Yes
- Type: string
Principal
Description
Describes a principal for use with Resource Access Manager.
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the principal was associated with the resource share.
- external
-
- Type: boolean
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True
– The two accounts belong to same organization. -
False
– The two accounts do not belong to the same organization.
- id
-
- Type: string
The ID of the principal that can be associated with a resource share.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the association between the resource share and the principal was last updated.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
ReplacePermissionAssociationsWork
Description
A structure that represents the background work that RAM performs when you invoke the ReplacePermissionAssociations operation.
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when this asynchronous background task was created.
- fromPermissionArn
-
- Type: string
The Amazon Resource Name (ARN) of the managed permission that this background task is replacing.
- fromPermissionVersion
-
- Type: string
The version of the managed permission that this background task is replacing.
- id
-
- Type: string
The unique identifier for the background task associated with one ReplacePermissionAssociations request.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the status of this background task was last updated.
- status
-
- Type: string
Specifies the current status of the background tasks for the specified ID. The output is one of the following strings:
-
IN_PROGRESS
-
COMPLETED
-
FAILED
- statusMessage
-
- Type: string
Specifies the reason for a
FAILED
status. This field is present only when therestatus
isFAILED
. - toPermissionArn
-
- Type: string
The ARN of the managed permission that this background task is associating with the resource shares in place of the managed permission and version specified in
fromPermissionArn
andfromPermissionVersion
. - toPermissionVersion
-
- Type: string
The version of the managed permission that this background task is associating with the resource shares. This is always the version that is currently the default for this managed permission.
Resource
Description
Describes a resource associated with a resource share in RAM.
Members
- arn
-
- Type: string
The Amazon Resource Name (ARN) of the resource.
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the resource was associated with the resource share.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date an time when the association between the resource and the resource share was last updated.
- resourceGroupArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
- resourceRegionScope
-
- Type: string
Specifies the scope of visibility of this resource:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
- status
-
- Type: string
The current status of the resource.
- statusMessage
-
- Type: string
A message about the status of the resource.
- type
-
- Type: string
The resource type. This takes the form of:
service-code
:resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the stringec2:subnet
.
ResourceArnNotFoundException
Description
The operation failed because the specified Amazon Resource Name (ARN) was not found.
Members
- message
-
- Required: Yes
- Type: string
ResourceShare
Description
Describes a resource share in RAM.
Members
- allowExternalPrincipals
-
- Type: boolean
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
-
True
– the resource share can be shared with any Amazon Web Services account. -
False
– the resource share can be shared with only accounts in the same organization as the account that owns the resource share.
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the resource share was created.
- featureSet
-
- Type: string
Indicates what features are available for this resource share. This parameter can have one of the following values:
-
STANDARD – A resource share that supports all functionality. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
-
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
-
PROMOTING_TO_STANDARD – This resource share was originally
CREATED_FROM_POLICY
, but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value changes toSTANDARD
when complete.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the resource share was last updated.
- name
-
- Type: string
The name of the resource share.
- owningAccountId
-
- Type: string
The ID of the Amazon Web Services account that owns the resource share.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource share
- status
-
- Type: string
The current status of the resource share.
- statusMessage
-
- Type: string
A message about the status of the resource share.
- tags
-
- Type: Array of Tag structures
The tag key and value pairs attached to the resource share.
ResourceShareAssociation
Description
Describes an association between a resource share and either a principal or a resource.
Members
- associatedEntity
-
- Type: string
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
- associationType
-
- Type: string
The type of entity included in this association.
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the association was created.
- external
-
- Type: boolean
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the association was last updated.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource share.
- resourceShareName
-
- Type: string
The name of the resource share.
- status
-
- Type: string
The current status of the association.
- statusMessage
-
- Type: string
A message about the status of the association.
ResourceShareInvitation
Description
Describes an invitation for an Amazon Web Services account to join a resource share.
Members
- invitationTimestamp
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the invitation was sent.
- receiverAccountId
-
- Type: string
The ID of the Amazon Web Services account that received the invitation.
- receiverArn
-
- Type: string
The Amazon Resource Name (ARN) of the IAM user or role that received the invitation.
- resourceShareArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource share
- resourceShareAssociations
-
- Type: Array of ResourceShareAssociation structures
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
- resourceShareInvitationArn
-
- Type: string
The Amazon Resource Name (ARN) of the invitation.
- resourceShareName
-
- Type: string
The name of the resource share.
- senderAccountId
-
- Type: string
The ID of the Amazon Web Services account that sent the invitation.
- status
-
- Type: string
The current status of the invitation.
ResourceShareInvitationAlreadyAcceptedException
Description
The operation failed because the specified invitation was already accepted.
Members
- message
-
- Required: Yes
- Type: string
ResourceShareInvitationAlreadyRejectedException
Description
The operation failed because the specified invitation was already rejected.
Members
- message
-
- Required: Yes
- Type: string
ResourceShareInvitationArnNotFoundException
Description
The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
Members
- message
-
- Required: Yes
- Type: string
ResourceShareInvitationExpiredException
Description
The operation failed because the specified invitation is past its expiration date and time.
Members
- message
-
- Required: Yes
- Type: string
ResourceShareLimitExceededException
Description
The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
Members
- message
-
- Required: Yes
- Type: string
ResourceSharePermissionDetail
Description
Information about a RAM managed permission.
Members
- arn
-
- Type: string
The Amazon Resource Name (ARN) of this RAM managed permission.
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the permission was created.
- defaultVersion
-
- Type: boolean
Specifies whether the version of the permission represented in this response is the default version for this permission.
- featureSet
-
- Type: string
Indicates what features are available for this resource share. This parameter can have one of the following values:
-
STANDARD – A resource share that supports all functionality. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
-
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
-
PROMOTING_TO_STANDARD – This resource share was originally
CREATED_FROM_POLICY
, but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value changes toSTANDARD
when complete.
- isResourceTypeDefault
-
- Type: boolean
Specifies whether the version of the permission represented in this response is the default version for all resources of this resource type.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the permission was last updated.
- name
-
- Type: string
The name of this permission.
- permission
-
- Type: string
The permission's effect and actions in JSON format. The
effect
indicates whether the specified actions are allowed or denied. Theactions
list the operations to which the principal is granted or denied access. - permissionType
-
- Type: string
The type of managed permission. This can be one of the following values:
-
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it with your resource shares, but you can't modify it. -
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
- resourceType
-
- Type: string
The resource type to which this permission applies.
- status
-
- Type: string
The current status of the association between the permission and the resource share. The following are the possible values:
-
ATTACHABLE
– This permission or version can be associated with resource shares. -
UNATTACHABLE
– This permission or version can't currently be associated with resource shares. -
DELETING
– This permission or version is in the process of being deleted. -
DELETED
– This permission or version is deleted.
- tags
-
- Type: Array of Tag structures
The tag key and value pairs attached to the resource share.
- version
-
- Type: string
The version of the permission described in this response.
ResourceSharePermissionSummary
Description
Information about an RAM permission.
Members
- arn
-
- Type: string
The Amazon Resource Name (ARN) of the permission you want information about.
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the permission was created.
- defaultVersion
-
- Type: boolean
Specifies whether the version of the managed permission used by this resource share is the default version for this managed permission.
- featureSet
-
- Type: string
Indicates what features are available for this resource share. This parameter can have one of the following values:
-
STANDARD – A resource share that supports all functionality. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs. This resource share might have been created by RAM, or it might have been CREATED_FROM_POLICY and then promoted.
-
CREATED_FROM_POLICY – The customer manually shared a resource by attaching a resource-based policy. That policy did not match any existing managed permissions, so RAM created this customer managed permission automatically on the customer's behalf based on the attached policy document. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
-
PROMOTING_TO_STANDARD – This resource share was originally
CREATED_FROM_POLICY
, but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation is still in progress. This value changes toSTANDARD
when complete.
- isResourceTypeDefault
-
- Type: boolean
Specifies whether the managed permission associated with this resource share is the default managed permission for all resources of this resource type.
- lastUpdatedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the permission was last updated.
- name
-
- Type: string
The name of this managed permission.
- permissionType
-
- Type: string
The type of managed permission. This can be one of the following values:
-
AWS_MANAGED
– Amazon Web Services created and manages this managed permission. You can associate it with your resource shares, but you can't modify it. -
CUSTOMER_MANAGED
– You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
- resourceType
-
- Type: string
The type of resource to which this permission applies. This takes the form of:
service-code
:resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the stringec2:subnet
. - status
-
- Type: string
The current status of the permission.
- tags
-
- Type: Array of Tag structures
A list of the tag key value pairs currently attached to the permission.
- version
-
- Type: string
The version of the permission associated with this resource share.
ServerInternalException
Description
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
Members
- message
-
- Required: Yes
- Type: string
ServiceNameAndResourceType
Description
Information about a shareable resource type and the Amazon Web Services service to which resources of that type belong.
Members
- resourceRegionScope
-
- Type: string
Specifies the scope of visibility of resources of this type:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
- resourceType
-
- Type: string
The type of the resource. This takes the form of:
service-code
:resource-code
, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the stringec2:subnet
. - serviceName
-
- Type: string
The name of the Amazon Web Services service to which resources of this type belong.
ServiceUnavailableException
Description
The operation failed because the service isn't available. Try again later.
Members
- message
-
- Required: Yes
- Type: string
Tag
Description
A structure containing a tag. A tag is metadata that you can attach to your resources to help organize and categorize them. You can also use them to help you secure your resources. For more information, see Controlling access to Amazon Web Services resources using tags.
For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
Members
- key
-
- Type: string
The key, or name, attached to the tag. Every tag must have a key. Key names are case sensitive.
- value
-
- Type: string
The string value attached to the tag. The value can be an empty string. Key values are case sensitive.
TagFilter
Description
A tag key and optional list of possible values that you can use to filter results for tagged resources.
Members
- tagKey
-
- Type: string
The tag key. This must have a valid string value and can't be empty.
- tagValues
-
- Type: Array of strings
A list of zero or more tag values. If no values are provided, then the filter matches any tag with the specified key, regardless of its value.
TagLimitExceededException
Description
The operation failed because it would exceed the limit for tags for your Amazon Web Services account.
Members
- message
-
- Required: Yes
- Type: string
TagPolicyViolationException
Description
The operation failed because the specified tag key is a reserved word and can't be used.
Members
- message
-
- Required: Yes
- Type: string
ThrottlingException
Description
The operation failed because it exceeded the rate at which you are allowed to perform this operation. Please try again later.
Members
- message
-
- Required: Yes
- Type: string
UnknownResourceException
Description
The operation failed because a specified resource couldn't be found.
Members
- message
-
- Required: Yes
- Type: string
UnmatchedPolicyPermissionException
Description
There isn't an existing managed permission defined in RAM that has the same IAM permissions as the resource-based policy attached to the resource. You should first run PromotePermissionCreatedFromPolicy to create that managed permission.
Members
- message
-
- Required: Yes
- Type: string