Skip to content

/AWS1/CL_RAM=>PROMOTERESRCSHARECREDFROMPLY()

About PromoteResourceShareCreatedFromPolicy

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.

Method Signature

IMPORTING

Required arguments:

iv_resourcesharearn TYPE /AWS1/RAMSTRING /AWS1/RAMSTRING

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

RETURNING

oo_output TYPE REF TO /aws1/cl_rampromoteresrcshar01 /AWS1/CL_RAMPROMOTERESRCSHAR01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_ram~promoteresrcsharecredfromply( |string| ).

This is an example of reading all possible response values

lv_boolean = lo_result->get_returnvalue( ).