/AWS1/IF_CWO=>GETCENTRALIZATIONRULE4ORG()
¶
About GetCentralizationRuleForOrganization¶
Retrieves the details of a specific organization centralization rule. This operation can only be called by the organization's management account or a delegated administrator account.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_ruleidentifier
TYPE /AWS1/CWORULEIDENTIFIER
/AWS1/CWORULEIDENTIFIER
¶
The identifier (name or ARN) of the organization centralization rule to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_cwogetcenizationrl401
/AWS1/CL_CWOGETCENIZATIONRL401
¶
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_cwo~getcentralizationrule4org( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_rulename = lo_result->get_rulename( ).
lv_resourcearn = lo_result->get_rulearn( ).
lv_string = lo_result->get_creatoraccountid( ).
lv_long = lo_result->get_createdtimestamp( ).
lv_region = lo_result->get_createdregion( ).
lv_long = lo_result->get_lastupdatetimestamp( ).
lv_rulehealth = lo_result->get_rulehealth( ).
lv_centralizationfailurere = lo_result->get_failurereason( ).
lo_centralizationrule = lo_result->get_centralizationrule( ).
IF lo_centralizationrule IS NOT INITIAL.
lo_centralizationrulesourc = lo_centralizationrule->get_source( ).
IF lo_centralizationrulesourc IS NOT INITIAL.
LOOP AT lo_centralizationrulesourc->get_regions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_region = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_sourcefilterstring = lo_centralizationrulesourc->get_scope( ).
lo_sourcelogsconfiguration = lo_centralizationrulesourc->get_sourcelogsconfiguration( ).
IF lo_sourcelogsconfiguration IS NOT INITIAL.
lv_logsfilterstring = lo_sourcelogsconfiguration->get_loggroupselectioncrit( ).
lv_encryptedloggroupstrate = lo_sourcelogsconfiguration->get_encloggroupstrategy( ).
ENDIF.
ENDIF.
lo_centralizationruledesti = lo_centralizationrule->get_destination( ).
IF lo_centralizationruledesti IS NOT INITIAL.
lv_region = lo_centralizationruledesti->get_region( ).
lv_accountidentifier = lo_centralizationruledesti->get_account( ).
lo_destinationlogsconfigur = lo_centralizationruledesti->get_destinationlogsconf( ).
IF lo_destinationlogsconfigur IS NOT INITIAL.
lo_logsencryptionconfigura = lo_destinationlogsconfigur->get_logsencryptionconf( ).
IF lo_logsencryptionconfigura IS NOT INITIAL.
lv_encryptionstrategy = lo_logsencryptionconfigura->get_encryptionstrategy( ).
lv_resourcearn = lo_logsencryptionconfigura->get_kmskeyarn( ).
lv_encryptionconflictresol = lo_logsencryptionconfigura->get_encconflictresolstrategy( ).
ENDIF.
lo_logsbackupconfiguration = lo_destinationlogsconfigur->get_backupconfiguration( ).
IF lo_logsbackupconfiguration IS NOT INITIAL.
lv_region = lo_logsbackupconfiguration->get_region( ).
lv_resourcearn = lo_logsbackupconfiguration->get_kmskeyarn( ).
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.