/AWS1/IF_FNT=>CREATECLOUDFRONTORIGINACCID()¶
About CreateCloudFrontOriginAccessIdentity¶
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
Method Signature¶
METHODS /AWS1/IF_FNT~CREATECLOUDFRONTORIGINACCID
IMPORTING
!IO_CLOUDFRONTORIGINACCIDCFG TYPE REF TO /AWS1/CL_FNTCLOUDFRONTORIGIN00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fntcrecloudfrontori01
RAISING
/AWS1/CX_FNTCLOUDFRONTORIGIN01
/AWS1/CX_FNTINCONSISTENTQUAN00
/AWS1/CX_FNTINVALIDARGUMENT
/AWS1/CX_FNTMISSINGBODY
/AWS1/CX_FNTTOOMANYCLOUDFRON00
/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 current configuration information for the identity.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fntcrecloudfrontori01 /AWS1/CL_FNTCRECLOUDFRONTORI01¶
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->createcloudfrontoriginaccid(
io_cloudfrontoriginaccidcfg = new /aws1/cl_fntcloudfrontorigin00(
iv_callerreference = |string|
iv_comment = |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_location( ).
lv_string = lo_result->get_etag( ).
ENDIF.