/AWS1/IF_RAM=>LISTPERMISSIONASSOCIATIONS()¶
About ListPermissionAssociations¶
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.
Method Signature¶
METHODS /AWS1/IF_RAM~LISTPERMISSIONASSOCIATIONS
IMPORTING
!IV_PERMISSIONARN TYPE /AWS1/RAMSTRING OPTIONAL
!IV_PERMISSIONVERSION TYPE /AWS1/RAMINTEGER OPTIONAL
!IV_ASSOCIATIONSTATUS TYPE /AWS1/RAMRESRCSHAREASSOCIATI01 OPTIONAL
!IV_RESOURCETYPE TYPE /AWS1/RAMSTRING OPTIONAL
!IV_FEATURESET TYPE /AWS1/RAMPERMISSIONFEATURESET OPTIONAL
!IV_DEFAULTVERSION TYPE /AWS1/RAMBOOLEAN OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/RAMSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/RAMMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ramlstpermassociati01
RAISING
/AWS1/CX_RAMINVALIDNEXTTOKENEX
/AWS1/CX_RAMINVALIDPARAMETEREX
/AWS1/CX_RAMMALFORMEDARNEX
/AWS1/CX_RAMSERVERINTERNALEX
/AWS1/CX_RAMSERVICEUNAVAILEX
/AWS1/CX_RAMCLIENTEXC
/AWS1/CX_RAMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_permissionarn TYPE /AWS1/RAMSTRING /AWS1/RAMSTRING¶
Specifies the Amazon Resource Name (ARN) of the managed permission.
iv_permissionversion TYPE /AWS1/RAMINTEGER /AWS1/RAMINTEGER¶
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.
iv_associationstatus TYPE /AWS1/RAMRESRCSHAREASSOCIATI01 /AWS1/RAMRESRCSHAREASSOCIATI01¶
Specifies that you want to list only those associations with resource shares that match this status.
iv_resourcetype TYPE /AWS1/RAMSTRING /AWS1/RAMSTRING¶
Specifies that you want to list only those associations with resource shares that include at least one resource of this resource type.
iv_featureset TYPE /AWS1/RAMPERMISSIONFEATURESET /AWS1/RAMPERMISSIONFEATURESET¶
Specifies that you want to list only those associations with resource shares that have a
featureSetwith this value.
iv_defaultversion TYPE /AWS1/RAMBOOLEAN /AWS1/RAMBOOLEAN¶
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.
iv_nexttoken TYPE /AWS1/RAMSTRING /AWS1/RAMSTRING¶
Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse 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'sNextTokenresponse to request the next page of results.
iv_maxresults TYPE /AWS1/RAMMAXRESULTS /AWS1/RAMMAXRESULTS¶
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
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest 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 checkNextTokenafter every operation to ensure that you receive all of the results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ramlstpermassociati01 /AWS1/CL_RAMLSTPERMASSOCIATI01¶
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->listpermissionassociations(
iv_associationstatus = |string|
iv_defaultversion = ABAP_TRUE
iv_featureset = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_permissionarn = |string|
iv_permissionversion = 123
iv_resourcetype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_permissions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_arn( ).
lv_string = lo_row_1->get_permissionversion( ).
lv_boolean = lo_row_1->get_defaultversion( ).
lv_string = lo_row_1->get_resourcetype( ).
lv_string = lo_row_1->get_status( ).
lv_permissionfeatureset = lo_row_1->get_featureset( ).
lv_datetime = lo_row_1->get_lastupdatedtime( ).
lv_string = lo_row_1->get_resourcesharearn( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.