/AWS1/IF_XRA=>PUTENCRYPTIONCONFIG()¶
About PutEncryptionConfig¶
Updates the encryption configuration for X-Ray data.
Method Signature¶
METHODS /AWS1/IF_XRA~PUTENCRYPTIONCONFIG
  IMPORTING
    !IV_KEYID TYPE /AWS1/XRAENCRYPTIONKEYID OPTIONAL
    !IV_TYPE TYPE /AWS1/XRAENCRYPTIONTYPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_xraputencconfigresult
  RAISING
    /AWS1/CX_XRAINVALIDREQUESTEX
    /AWS1/CX_XRATHROTTLEDEXCEPTION
    /AWS1/CX_XRACLIENTEXC
    /AWS1/CX_XRASERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_type TYPE /AWS1/XRAENCRYPTIONTYPE /AWS1/XRAENCRYPTIONTYPE¶
The type of encryption. Set to
KMSto use your own key for encryption. Set toNONEfor default encryption.
Optional arguments:¶
iv_keyid TYPE /AWS1/XRAENCRYPTIONKEYID /AWS1/XRAENCRYPTIONKEYID¶
An Amazon Web Services KMS key in one of the following formats:
Alias - The name of the key. For example,
alias/MyKey.
Key ID - The KMS key ID of the key. For example,
ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Amazon Web Services X-Ray does not support asymmetric KMS keys.
ARN - The full Amazon Resource Name of the key ID or alias. For example,
arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Use this format to specify a key in a different account.Omit this key if you set
TypetoNONE.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_xraputencconfigresult /AWS1/CL_XRAPUTENCCONFIGRESULT¶
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->putencryptionconfig(
  iv_keyid = |string|
  iv_type = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_encryptionconfig = lo_result->get_encryptionconfig( ).
  IF lo_encryptionconfig IS NOT INITIAL.
    lv_string = lo_encryptionconfig->get_keyid( ).
    lv_encryptionstatus = lo_encryptionconfig->get_status( ).
    lv_encryptiontype = lo_encryptionconfig->get_type( ).
  ENDIF.
ENDIF.