/AWS1/IF_CWO=>GETTELEMETRYRULE4ORG()
¶
About GetTelemetryRuleForOrganization¶
Retrieves the details of a specific organization telemetry 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 telemetry rule to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_cwogettelrule4orgout
/AWS1/CL_CWOGETTELRULE4ORGOUT
¶
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~gettelemetryrule4org( |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_long = lo_result->get_createdtimestamp( ).
lv_long = lo_result->get_lastupdatetimestamp( ).
lo_telemetryrule = lo_result->get_telemetryrule( ).
IF lo_telemetryrule IS NOT INITIAL.
lv_resourcetype = lo_telemetryrule->get_resourcetype( ).
lv_telemetrytype = lo_telemetryrule->get_telemetrytype( ).
lo_telemetrydestinationcon = lo_telemetryrule->get_destinationconfiguration( ).
IF lo_telemetrydestinationcon IS NOT INITIAL.
lv_destinationtype = lo_telemetrydestinationcon->get_destinationtype( ).
lv_string = lo_telemetrydestinationcon->get_destinationpattern( ).
lv_retentionperiodindays = lo_telemetrydestinationcon->get_retentionindays( ).
lo_vpcflowlogparameters = lo_telemetrydestinationcon->get_vpcflowlogparameters( ).
IF lo_vpcflowlogparameters IS NOT INITIAL.
lv_string = lo_vpcflowlogparameters->get_logformat( ).
lv_string = lo_vpcflowlogparameters->get_traffictype( ).
lv_integer = lo_vpcflowlogparameters->get_maxaggregationinterval( ).
ENDIF.
ENDIF.
lv_string = lo_telemetryrule->get_scope( ).
lv_string = lo_telemetryrule->get_selectioncriteria( ).
ENDIF.
ENDIF.