Skip to content

/AWS1/IF_FNT=>UPDATECLOUDFRONTORIGINACCID()

About UpdateCloudFrontOriginAccessIdentity

Update an origin access identity.

Method Signature

METHODS /AWS1/IF_FNT~UPDATECLOUDFRONTORIGINACCID
  IMPORTING
    !IO_CLOUDFRONTORIGINACCIDCFG TYPE REF TO /AWS1/CL_FNTCLOUDFRONTORIGIN00 OPTIONAL
    !IV_ID TYPE /AWS1/FNTSTRING OPTIONAL
    !IV_IFMATCH TYPE /AWS1/FNTSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fntupcloudfrontorig01
  RAISING
    /AWS1/CX_FNTACCESSDENIED
    /AWS1/CX_FNTILLEGALUPDATE
    /AWS1/CX_FNTINCONSISTENTQUAN00
    /AWS1/CX_FNTINVALIDARGUMENT
    /AWS1/CX_FNTINVALIDIFMATCHVRS
    /AWS1/CX_FNTMISSINGBODY
    /AWS1/CX_FNTNOSUCHCLOUDFRONT00
    /AWS1/CX_FNTPRECONDITIONFAILED
    /AWS1/CX_FNTCLIENTEXC
    /AWS1/CX_FNTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_cloudfrontoriginaccidcfg TYPE REF TO /AWS1/CL_FNTCLOUDFRONTORIGIN00 /AWS1/CL_FNTCLOUDFRONTORIGIN00

The identity's configuration information.

iv_id TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The identity's id.

Optional arguments:

iv_ifmatch TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The value of the ETag header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.

RETURNING

oo_output TYPE REF TO /aws1/cl_fntupcloudfrontorig01 /AWS1/CL_FNTUPCLOUDFRONTORIG01

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->updatecloudfrontoriginaccid(
  io_cloudfrontoriginaccidcfg = new /aws1/cl_fntcloudfrontorigin00(
    iv_callerreference = |string|
    iv_comment = |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_cloudfrontoriginaccessi = lo_result->get_cloudfrontoriginaccessid( ).
  IF lo_cloudfrontoriginaccessi IS NOT INITIAL.
    lv_string = lo_cloudfrontoriginaccessi->get_id( ).
    lv_string = lo_cloudfrontoriginaccessi->get_s3canonicaluserid( ).
    lo_cloudfrontoriginaccessi_1 = lo_cloudfrontoriginaccessi->get_cloudfrontoriginaccidcfg( ).
    IF lo_cloudfrontoriginaccessi_1 IS NOT INITIAL.
      lv_string = lo_cloudfrontoriginaccessi_1->get_callerreference( ).
      lv_string = lo_cloudfrontoriginaccessi_1->get_comment( ).
    ENDIF.
  ENDIF.
  lv_string = lo_result->get_etag( ).
ENDIF.