Skip to content

/AWS1/IF_BDO=>UPDATECONFIGURATIONBUNDLE()

About UpdateConfigurationBundle

Updates a configuration bundle by creating a new version with the specified changes. Each update creates a new version in the version history.

Method Signature

METHODS /AWS1/IF_BDO~UPDATECONFIGURATIONBUNDLE
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/BDOCLIENTTOKEN OPTIONAL
    !IV_BUNDLEID TYPE /AWS1/BDOCONFIGURATIONBUNDLEID OPTIONAL
    !IV_BUNDLENAME TYPE /AWS1/BDOCONFBUNDLENAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/BDOCONFBUNDLEDESCRIPTION OPTIONAL
    !IT_COMPONENTS TYPE /AWS1/CL_BDOCOMPONENTCONF=>TT_COMPONENTCONFIGURATIONMAP OPTIONAL
    !IT_PARENTVERSIONIDS TYPE /AWS1/CL_BDOCONFBNDLVRSLIST_W=>TT_CONFBUNDLEVERSIONLIST OPTIONAL
    !IV_BRANCHNAME TYPE /AWS1/BDOBRANCHNAME OPTIONAL
    !IV_COMMITMESSAGE TYPE /AWS1/BDOSTRING OPTIONAL
    !IO_CREATEDBY TYPE REF TO /AWS1/CL_BDOVRSCREATEDBYSOURCE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdoupdateconfbndlrsp
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOCONFLICTEXCEPTION
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDORESOURCENOTFOUNDEX
    /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_bundleid TYPE /AWS1/BDOCONFIGURATIONBUNDLEID /AWS1/BDOCONFIGURATIONBUNDLEID

The unique identifier of the configuration bundle to update.

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_bundlename TYPE /AWS1/BDOCONFBUNDLENAME /AWS1/BDOCONFBUNDLENAME

The updated name for the configuration bundle.

iv_description TYPE /AWS1/BDOCONFBUNDLEDESCRIPTION /AWS1/BDOCONFBUNDLEDESCRIPTION

The updated description for the configuration bundle.

it_components TYPE /AWS1/CL_BDOCOMPONENTCONF=>TT_COMPONENTCONFIGURATIONMAP TT_COMPONENTCONFIGURATIONMAP

The updated component configurations. Creates a new version of the bundle.

it_parentversionids TYPE /AWS1/CL_BDOCONFBNDLVRSLIST_W=>TT_CONFBUNDLEVERSIONLIST TT_CONFBUNDLEVERSIONLIST

A list of parent version identifiers for lineage tracking. Regular commits have a single parent. Merge commits have two parents: the target branch parent and the source branch parent. If the branch already exists, the first parent must be the latest version on that branch.

iv_branchname TYPE /AWS1/BDOBRANCHNAME /AWS1/BDOBRANCHNAME

The branch name for this version. If not specified, inherits the parent's branch or defaults to mainline.

iv_commitmessage TYPE /AWS1/BDOSTRING /AWS1/BDOSTRING

A commit message describing the changes in this version.

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

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

RETURNING

oo_output TYPE REF TO /aws1/cl_bdoupdateconfbndlrsp /AWS1/CL_BDOUPDATECONFBNDLRSP

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->updateconfigurationbundle(
  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_parentversionids = VALUE /aws1/cl_bdoconfbndlvrslist_w=>tt_confbundleversionlist(
    ( new /aws1/cl_bdoconfbndlvrslist_w( |string| ) )
  )
  iv_branchname = |string|
  iv_bundleid = |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_updatedat( ).
ENDIF.