Skip to content

/AWS1/IF_BIC=>CREATEBILLINGGROUP()

About CreateBillingGroup

Creates a billing group that resembles a consolidated billing family that Amazon Web Services charges, based off of the predefined pricing plan computation.

Method Signature

METHODS /AWS1/IF_BIC~CREATEBILLINGGROUP
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/BICCLIENTTOKEN OPTIONAL
    !IV_NAME TYPE /AWS1/BICBILLINGGROUPNAME OPTIONAL
    !IO_ACCOUNTGROUPING TYPE REF TO /AWS1/CL_BICACCOUNTGROUPING OPTIONAL
    !IO_COMPUTATIONPREFERENCE TYPE REF TO /AWS1/CL_BICCOMPUTATIONPREFE00 OPTIONAL
    !IV_PRIMARYACCOUNTID TYPE /AWS1/BICACCOUNTID OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/BICBILLINGGROUPDESC OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_BICTAGMAP_W=>TT_TAGMAP OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_biccrebllnggroupout
  RAISING
    /AWS1/CX_BICACCESSDENIEDEX
    /AWS1/CX_BICCONFLICTEXCEPTION
    /AWS1/CX_BICINTERNALSERVEREX
    /AWS1/CX_BICSERVICELIMITEXCDEX
    /AWS1/CX_BICTHROTTLINGEX
    /AWS1/CX_BICVALIDATIONEX
    /AWS1/CX_BICCLIENTEXC
    /AWS1/CX_BICSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_name TYPE /AWS1/BICBILLINGGROUPNAME /AWS1/BICBILLINGGROUPNAME

The billing group name. The names must be unique.

io_accountgrouping TYPE REF TO /AWS1/CL_BICACCOUNTGROUPING /AWS1/CL_BICACCOUNTGROUPING

The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family.

io_computationpreference TYPE REF TO /AWS1/CL_BICCOMPUTATIONPREFE00 /AWS1/CL_BICCOMPUTATIONPREFE00

The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.

Optional arguments:

iv_clienttoken TYPE /AWS1/BICCLIENTTOKEN /AWS1/BICCLIENTTOKEN

A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.

iv_primaryaccountid TYPE /AWS1/BICACCOUNTID /AWS1/BICACCOUNTID

The account ID that serves as the main account in a billing group.

iv_description TYPE /AWS1/BICBILLINGGROUPDESC /AWS1/BICBILLINGGROUPDESC

The description of the billing group.

it_tags TYPE /AWS1/CL_BICTAGMAP_W=>TT_TAGMAP TT_TAGMAP

A map that contains tag keys and tag values that are attached to a billing group. This feature isn't available during the beta.

RETURNING

oo_output TYPE REF TO /aws1/cl_biccrebllnggroupout /AWS1/CL_BICCREBLLNGGROUPOUT

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->createbillinggroup(
  io_accountgrouping = new /aws1/cl_bicaccountgrouping(
    it_linkedaccountids = VALUE /aws1/cl_bicaccountidlist_w=>tt_accountidlist(
      ( new /aws1/cl_bicaccountidlist_w( |string| ) )
    )
    iv_autoassociate = ABAP_TRUE
    iv_responsibilitytransferarn = |string|
  )
  io_computationpreference = new /aws1/cl_biccomputationprefe00( |string| )
  it_tags = VALUE /aws1/cl_bictagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_bictagmap_w=>ts_tagmap_maprow(
        key = |string|
        value = new /aws1/cl_bictagmap_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_description = |string|
  iv_name = |string|
  iv_primaryaccountid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_billinggrouparn = lo_result->get_arn( ).
ENDIF.