Skip to content

/AWS1/IF_CFS=>PUTCONFIGURATIONRECORDER()

About PutConfigurationRecorder

Creates or updates the customer managed configuration recorder.

You can use this operation to create a new customer managed configuration recorder or to update the roleARN and the recordingGroup for an existing customer managed configuration recorder.

To start the customer managed configuration recorder and begin recording configuration changes for the resource types you specify, use the StartConfigurationRecorder operation.

For more information, see Working with the Configuration Recorder in the Config Developer Guide.

One customer managed configuration recorder per account per Region

You can create only one customer managed configuration recorder for each account for each Amazon Web Services Region.

Default is to record all supported resource types, excluding the global IAM resource types

If you have not specified values for the recordingGroup field, the default for the customer managed configuration recorder is to record all supported resource types, excluding the global IAM resource types: AWS::IAM::Group, AWS::IAM::Policy, AWS::IAM::Role, and AWS::IAM::User.

Tags are added at creation and cannot be updated

PutConfigurationRecorder is an idempotent API. Subsequent requests won’t create a duplicate resource if one was already created. If a following request has different tags values, Config will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different.

Use TagResource and UntagResource to update tags after creation.

Method Signature

IMPORTING

Required arguments:

io_configurationrecorder TYPE REF TO /AWS1/CL_CFSCONFRECORDER /AWS1/CL_CFSCONFRECORDER

An object for the configuration recorder. A configuration recorder records configuration changes for the resource types in scope.

Optional arguments:

it_tags TYPE /AWS1/CL_CFSTAG=>TT_TAGSLIST TT_TAGSLIST

The tags for the customer managed configuration recorder. Each tag consists of a key and an optional value, both of which you define.

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.

lo_client->/aws1/if_cfs~putconfigurationrecorder(
  io_configurationrecorder = new /aws1/cl_cfsconfrecorder(
    io_recordinggroup = new /aws1/cl_cfsrecordinggroup(
      io_exclusionbyresourcetypes = new /aws1/cl_cfsexclusionbyresrc00(
        it_resourcetypes = VALUE /aws1/cl_cfsresourcetypelist_w=>tt_resourcetypelist(
          ( new /aws1/cl_cfsresourcetypelist_w( |string| ) )
        )
      )
      io_recordingstrategy = new /aws1/cl_cfsrecordingstrategy( |string| )
      it_resourcetypes = VALUE /aws1/cl_cfsresourcetypelist_w=>tt_resourcetypelist(
        ( new /aws1/cl_cfsresourcetypelist_w( |string| ) )
      )
      iv_allsupported = ABAP_TRUE
      iv_inclglobalresourcetypes = ABAP_TRUE
    )
    io_recordingmode = new /aws1/cl_cfsrecordingmode(
      it_recordingmodeoverrides = VALUE /aws1/cl_cfsrecingmodeoverride=>tt_recordingmodeoverrides(
        (
          new /aws1/cl_cfsrecingmodeoverride(
            it_resourcetypes = VALUE /aws1/cl_cfsrcingmderesrctyp00=>tt_recingmoderesourcetypeslist(
              ( new /aws1/cl_cfsrcingmderesrctyp00( |string| ) )
            )
            iv_description = |string|
            iv_recordingfrequency = |string|
          )
        )
      )
      iv_recordingfrequency = |string|
    )
    iv_arn = |string|
    iv_name = |string|
    iv_recordingscope = |string|
    iv_rolearn = |string|
    iv_serviceprincipal = |string|
  )
  it_tags = VALUE /aws1/cl_cfstag=>tt_tagslist(
    (
      new /aws1/cl_cfstag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
).