Skip to content

/AWS1/IF_BDO=>SETTOKENVAULTCMK()

About SetTokenVaultCMK

Sets the customer master key (CMK) for a token vault.

Method Signature

IMPORTING

Required arguments:

io_kmsconfiguration TYPE REF TO /AWS1/CL_BDOKMSCONFIGURATION /AWS1/CL_BDOKMSCONFIGURATION

The KMS configuration for the token vault, including the key type and KMS key ARN.

Optional arguments:

iv_tokenvaultid TYPE /AWS1/BDOTOKENVAULTIDTYPE /AWS1/BDOTOKENVAULTIDTYPE

The unique identifier of the token vault to update.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdosettokvaultcmkrsp /AWS1/CL_BDOSETTOKVAULTCMKRSP

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_bdo~settokenvaultcmk(
  io_kmsconfiguration = new /aws1/cl_bdokmsconfiguration(
    iv_keytype = |string|
    iv_kmskeyarn = |string|
  )
  iv_tokenvaultid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_tokenvaultidtype = lo_result->get_tokenvaultid( ).
  lo_kmsconfiguration = lo_result->get_kmsconfiguration( ).
  IF lo_kmsconfiguration IS NOT INITIAL.
    lv_keytype = lo_kmsconfiguration->get_keytype( ).
    lv_kmskeyarn = lo_kmsconfiguration->get_kmskeyarn( ).
  ENDIF.
  lv_timestamp = lo_result->get_lastmodifieddate( ).
ENDIF.