Skip to content

/AWS1/IF_BDO=>CREATECONFIGURATIONBUNDLE()

About CreateConfigurationBundle

Creates a new configuration bundle resource. A configuration bundle stores versioned component configurations for agent evaluation workflows.

Method Signature

METHODS /AWS1/IF_BDO~CREATECONFIGURATIONBUNDLE
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/BDOCLIENTTOKEN OPTIONAL
    !IV_BUNDLENAME TYPE /AWS1/BDOCONFBUNDLENAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/BDOCONFBUNDLEDESCRIPTION OPTIONAL
    !IT_COMPONENTS TYPE /AWS1/CL_BDOCOMPONENTCONF=>TT_COMPONENTCONFIGURATIONMAP OPTIONAL
    !IV_BRANCHNAME TYPE /AWS1/BDOBRANCHNAME OPTIONAL
    !IV_COMMITMESSAGE TYPE /AWS1/BDOSTRING OPTIONAL
    !IO_CREATEDBY TYPE REF TO /AWS1/CL_BDOVRSCREATEDBYSOURCE OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_BDOTAGSMAP_W=>TT_TAGSMAP OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdocreateconfbndlrsp
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOCONFLICTEXCEPTION
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDOSERVICEQUOTAEXCDEX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_bundlename TYPE /AWS1/BDOCONFBUNDLENAME /AWS1/BDOCONFBUNDLENAME

The name for the configuration bundle. Names must be unique within your account.

it_components TYPE /AWS1/CL_BDOCOMPONENTCONF=>TT_COMPONENTCONFIGURATIONMAP TT_COMPONENTCONFIGURATIONMAP

A map of component identifiers to their configurations. Each component represents a configurable element within the bundle.

Optional arguments:

iv_clienttoken TYPE /AWS1/BDOCLIENTTOKEN /AWS1/BDOCLIENTTOKEN

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

iv_description TYPE /AWS1/BDOCONFBUNDLEDESCRIPTION /AWS1/BDOCONFBUNDLEDESCRIPTION

The description for the configuration bundle.

iv_branchname TYPE /AWS1/BDOBRANCHNAME /AWS1/BDOBRANCHNAME

The branch name for version tracking. Defaults to mainline if not specified.

iv_commitmessage TYPE /AWS1/BDOSTRING /AWS1/BDOSTRING

A commit message describing the initial version of the configuration bundle.

io_createdby TYPE REF TO /AWS1/CL_BDOVRSCREATEDBYSOURCE /AWS1/CL_BDOVRSCREATEDBYSOURCE

The source that created this version, including the source name and optional ARN.

it_tags TYPE /AWS1/CL_BDOTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP

A map of tag keys and values to assign to the configuration bundle. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdocreateconfbndlrsp /AWS1/CL_BDOCREATECONFBNDLRSP

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->createconfigurationbundle(
  io_createdby = new /aws1/cl_bdovrscreatedbysource(
    iv_arn = |string|
    iv_name = |string|
  )
  it_components = VALUE /aws1/cl_bdocomponentconf=>tt_componentconfigurationmap(
    (
      VALUE /aws1/cl_bdocomponentconf=>ts_componentconfmap_maprow(
        value = new /aws1/cl_bdocomponentconf(
          io_configuration = /AWS1/CL_RT_DOCUMENT=>FROM_JSON_STR( |\{"foo":"this is a JSON object..."\}| )
        )
        key = |string|
      )
    )
  )
  it_tags = VALUE /aws1/cl_bdotagsmap_w=>tt_tagsmap(
    (
      VALUE /aws1/cl_bdotagsmap_w=>ts_tagsmap_maprow(
        key = |string|
        value = new /aws1/cl_bdotagsmap_w( |string| )
      )
    )
  )
  iv_branchname = |string|
  iv_bundlename = |string|
  iv_clienttoken = |string|
  iv_commitmessage = |string|
  iv_description = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_configurationbundlearn = lo_result->get_bundlearn( ).
  lv_configurationbundleid = lo_result->get_bundleid( ).
  lv_configurationbundlevers = lo_result->get_versionid( ).
  lv_timestamp = lo_result->get_createdat( ).
ENDIF.