Skip to content

/AWS1/IF_FNT=>UPDATETRUSTSTORE()

About UpdateTrustStore

Updates a trust store.

Method Signature

METHODS /AWS1/IF_FNT~UPDATETRUSTSTORE
  IMPORTING
    !IV_ID TYPE /AWS1/FNTRESOURCEID OPTIONAL
    !IO_CACERTSBUNDLESOURCE TYPE REF TO /AWS1/CL_FNTCACERTSBNDLSOURCE OPTIONAL
    !IV_IFMATCH TYPE /AWS1/FNTSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fntupdtruststorerslt
  RAISING
    /AWS1/CX_FNTACCESSDENIED
    /AWS1/CX_FNTENTITYNOTFOUND
    /AWS1/CX_FNTINVALIDARGUMENT
    /AWS1/CX_FNTINVALIDIFMATCHVRS
    /AWS1/CX_FNTPRECONDITIONFAILED
    /AWS1/CX_FNTCLIENTEXC
    /AWS1/CX_FNTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_id TYPE /AWS1/FNTRESOURCEID /AWS1/FNTRESOURCEID

The trust store ID.

io_cacertsbundlesource TYPE REF TO /AWS1/CL_FNTCACERTSBNDLSOURCE /AWS1/CL_FNTCACERTSBNDLSOURCE

The CA certificates bundle source.

iv_ifmatch TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The current version (ETag value) of the trust store you are updating.

RETURNING

oo_output TYPE REF TO /aws1/cl_fntupdtruststorerslt /AWS1/CL_FNTUPDTRUSTSTORERSLT

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->updatetruststore(
  io_cacertsbundlesource = new /aws1/cl_fntcacertsbndlsource(
    io_cacertsbundles3location = new /aws1/cl_fntcacertsbundles3loc(
      iv_bucket = |string|
      iv_key = |string|
      iv_region = |string|
      iv_version = |string|
    )
  )
  iv_id = |string|
  iv_ifmatch = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_truststore = lo_result->get_truststore( ).
  IF lo_truststore IS NOT INITIAL.
    lv_string = lo_truststore->get_id( ).
    lv_string = lo_truststore->get_arn( ).
    lv_string = lo_truststore->get_name( ).
    lv_truststorestatus = lo_truststore->get_status( ).
    lv_integer = lo_truststore->get_numberofcacertificates( ).
    lv_timestamp = lo_truststore->get_lastmodifiedtime( ).
    lv_string = lo_truststore->get_reason( ).
  ENDIF.
  lv_string = lo_result->get_etag( ).
ENDIF.