RAM / Client / promote_resource_share_created_from_policy

promote_resource_share_created_from_policy#

RAM.Client.promote_resource_share_created_from_policy(**kwargs)#

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.

Warning

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.

See also: AWS API Documentation

Request Syntax

response = client.promote_resource_share_created_from_policy(
    resourceShareArn='string'
)
Parameters:

resourceShareArn (string) –

[REQUIRED]

Specifies the Amazon Resource Name (ARN) of the resource share to promote.

Return type:

dict

Returns:

Response Syntax

{
    'returnValue': True|False
}

Response Structure

  • (dict) –

    • returnValue (boolean) –

      A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

Exceptions