Skip to content

/AWS1/CL_S3C=>CREATEACCPOINTFOROBJLAMBDA()

About CreateAccessPointForObjectLambda

This operation is not supported by directory buckets.

Creates an Object Lambda Access Point. For more information, see Transforming objects with Object Lambda Access Points in the Amazon S3 User Guide.

The following actions are related to CreateAccessPointForObjectLambda:

Method Signature

IMPORTING

Required arguments:

iv_accountid TYPE /AWS1/S3CACCOUNTID /AWS1/S3CACCOUNTID

The Amazon Web Services account ID for owner of the specified Object Lambda Access Point.

iv_name TYPE /AWS1/S3COBJLAMBDAACCPOINTNAME /AWS1/S3COBJLAMBDAACCPOINTNAME

The name you want to assign to this Object Lambda Access Point.

io_configuration TYPE REF TO /AWS1/CL_S3COBJECTLAMBDACONF /AWS1/CL_S3COBJECTLAMBDACONF

Object Lambda Access Point configuration as a JSON document.

RETURNING

oo_output TYPE REF TO /aws1/cl_s3ccreaccptforobjla01 /AWS1/CL_S3CCREACCPTFOROBJLA01

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_s3c~createaccpointforobjlambda(
  io_configuration = new /aws1/cl_s3cobjectlambdaconf(
    it_allowedfeatures = VALUE /aws1/cl_s3cobjlambdaalwedft00=>tt_objlambdaallowedfeatslist(
      ( new /aws1/cl_s3cobjlambdaalwedft00( |string| ) )
    )
    it_transformationconfs = VALUE /aws1/cl_s3cobjlambdatransfm00=>tt_objlambdatransfmtionconfs00(
      (
        new /aws1/cl_s3cobjlambdatransfm00(
          io_contenttransformation = new /aws1/cl_s3cobjlambdaconttra00(
            io_awslambda = new /aws1/cl_s3cawslambdatransfm00(
              iv_functionarn = |string|
              iv_functionpayload = |string|
            )
          )
          it_actions = VALUE /aws1/cl_s3cobjlambdatransfm01=>tt_objlambdatransfmtionconfa00(
            ( new /aws1/cl_s3cobjlambdatransfm01( |string| ) )
          )
        )
      )
    )
    iv_cloudwatchmetricsenabled = ABAP_TRUE
    iv_supportingaccesspoint = |string|
  )
  iv_accountid = |string|
  iv_name = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_objectlambdaaccesspoint = lo_result->get_objlambdaaccesspointarn( ).
  lo_objectlambdaaccesspoint_1 = lo_result->get_alias( ).
  IF lo_objectlambdaaccesspoint_1 IS NOT INITIAL.
    lv_objectlambdaaccesspoint_2 = lo_objectlambdaaccesspoint_1->get_value( ).
    lv_objectlambdaaccesspoint_3 = lo_objectlambdaaccesspoint_1->get_status( ).
  ENDIF.
ENDIF.