/AWS1/IF_CWO=>UPDATECENTRALIZATIONRULE4ORG()¶
About UpdateCentralizationRuleForOrganization¶
Updates an existing centralization rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.
Method Signature¶
METHODS /AWS1/IF_CWO~UPDATECENTRALIZATIONRULE4ORG
IMPORTING
!IV_RULEIDENTIFIER TYPE /AWS1/CWORULEIDENTIFIER OPTIONAL
!IO_RULE TYPE REF TO /AWS1/CL_CWOCENTRALIZATIONRULE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwoupcenizationrl4o01
RAISING
/AWS1/CX_CWOACCESSDENIEDEX
/AWS1/CX_CWOINTERNALSERVEREX
/AWS1/CX_CWORESOURCENOTFOUNDEX
/AWS1/CX_CWOSERVICEQUOTAEXCDEX
/AWS1/CX_CWOTOOMANYREQUESTSEX
/AWS1/CX_CWOVALIDATIONEX
/AWS1/CX_CWOCLIENTEXC
/AWS1/CX_CWOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_ruleidentifier TYPE /AWS1/CWORULEIDENTIFIER /AWS1/CWORULEIDENTIFIER¶
The identifier (name or ARN) of the organization centralization rule to update.
io_rule TYPE REF TO /AWS1/CL_CWOCENTRALIZATIONRULE /AWS1/CL_CWOCENTRALIZATIONRULE¶
The configuration details for the organization-wide centralization rule, including the source configuration and the destination configuration to centralize telemetry data across the organization.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwoupcenizationrl4o01 /AWS1/CL_CWOUPCENIZATIONRL4O01¶
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->updatecentralizationrule4org(
io_rule = new /aws1/cl_cwocentralizationrule(
io_destination = new /aws1/cl_cwocenizationruledst(
io_destinationlogsconf = new /aws1/cl_cwodstlogsconf(
io_backupconfiguration = new /aws1/cl_cwologsbackupconf(
iv_kmskeyarn = |string|
iv_region = |string|
)
io_loggroupnameconfiguration = new /aws1/cl_cwologgroupnameconf( |string| )
io_logsencryptionconf = new /aws1/cl_cwologsencryptionconf(
iv_encconflictresolstrategy = |string|
iv_encryptionstrategy = |string|
iv_kmskeyarn = |string|
)
)
iv_account = |string|
iv_region = |string|
)
io_source = new /aws1/cl_cwocenizationrulesrc(
io_sourcelogsconfiguration = new /aws1/cl_cwosourcelogsconf(
iv_datasourceselectioncrit = |string|
iv_encryptedloggroupstrategy = |string|
iv_loggroupselectioncriteria = |string|
)
it_regions = VALUE /aws1/cl_cworegions_w=>tt_regions(
( new /aws1/cl_cworegions_w( |string| ) )
)
iv_scope = |string|
)
)
iv_ruleidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourcearn = lo_result->get_rulearn( ).
ENDIF.