Skip to content

/AWS1/CL_FNT=>CREATEKEYGROUP()

About CreateKeyGroup

Creates a key group that you can use with CloudFront signed URLs and signed cookies.

To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.

Method Signature

IMPORTING

Required arguments:

io_keygroupconfig TYPE REF TO /AWS1/CL_FNTKEYGROUPCONFIG /AWS1/CL_FNTKEYGROUPCONFIG

A key group configuration.

RETURNING

oo_output TYPE REF TO /aws1/cl_fntcreatekeygrouprslt /AWS1/CL_FNTCREATEKEYGROUPRSLT

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_fnt~createkeygroup(
  io_keygroupconfig = new /aws1/cl_fntkeygroupconfig(
    it_items = VALUE /aws1/cl_fntpublickeyidlist_w=>tt_publickeyidlist(
      ( new /aws1/cl_fntpublickeyidlist_w( |string| ) )
    )
    iv_comment = |string|
    iv_name = |string|
  )
).

This is an example of reading all possible response values

lv_string = lo_keygroup->get_id( ).
lv_timestamp = lo_keygroup->get_lastmodifiedtime( ).
lv_string = lo_keygroupconfig->get_name( ).
LOOP AT lo_keygroupconfig->get_items( ) into lo_row.
  lv_string = lo_row_1->get_value( ).
ENDLOOP.
lv_string = lo_keygroupconfig->get_comment( ).
lv_string = lo_result->get_location( ).
lv_string = lo_result->get_etag( ).