Skip to content

/AWS1/IF_CWO=>UPDATETELEMETRYRULE4ORG()

About UpdateTelemetryRuleForOrganization

Updates an existing telemetry 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

IMPORTING

Required arguments:

iv_ruleidentifier TYPE /AWS1/CWORULEIDENTIFIER /AWS1/CWORULEIDENTIFIER

The identifier (name or ARN) of the organization telemetry rule to update.

io_rule TYPE REF TO /AWS1/CL_CWOTELEMETRYRULE /AWS1/CL_CWOTELEMETRYRULE

The new configuration details for the organization telemetry rule, including resource type, telemetry type, and destination configuration.

RETURNING

oo_output TYPE REF TO /aws1/cl_cwoupdtelrule4orgout /AWS1/CL_CWOUPDTELRULE4ORGOUT

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~updatetelemetryrule4org(
  io_rule = new /aws1/cl_cwotelemetryrule(
    io_destinationconfiguration = new /aws1/cl_cwotelemetrydstconf(
      io_vpcflowlogparameters = new /aws1/cl_cwovpcflowlogparams(
        iv_logformat = |string|
        iv_maxaggregationinterval = 123
        iv_traffictype = |string|
      )
      iv_destinationpattern = |string|
      iv_destinationtype = |string|
      iv_retentionindays = 123
    )
    iv_resourcetype = |string|
    iv_scope = |string|
    iv_selectioncriteria = |string|
    iv_telemetrytype = |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.