Skip to content

/AWS1/IF_GLU=>CREATESECURITYCONFIGURATION()

About CreateSecurityConfiguration

Creates a new security configuration. A security configuration is a set of security properties that can be used by Glue. You can use a security configuration to encrypt data at rest. For information about using security configurations in Glue, see Encrypting Data Written by Crawlers, Jobs, and Development Endpoints.

Method Signature

METHODS /AWS1/IF_GLU~CREATESECURITYCONFIGURATION
  IMPORTING
    !IV_NAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
    !IO_ENCRYPTIONCONFIGURATION TYPE REF TO /AWS1/CL_GLUENCRYPTIONCONF OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucreatesecconfrsp
  RAISING
    /AWS1/CX_GLUALREADYEXISTSEX
    /AWS1/CX_GLUINTERNALSERVICEEX
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUOPERATIONTIMEOUTEX
    /AWS1/CX_GLURESRCNUMLMTEXCDEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_name TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

The name for the new security configuration.

io_encryptionconfiguration TYPE REF TO /AWS1/CL_GLUENCRYPTIONCONF /AWS1/CL_GLUENCRYPTIONCONF

The encryption configuration for the new security configuration.

RETURNING

oo_output TYPE REF TO /aws1/cl_glucreatesecconfrsp /AWS1/CL_GLUCREATESECCONFRSP

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->createsecurityconfiguration(
  io_encryptionconfiguration = new /aws1/cl_gluencryptionconf(
    io_cloudwatchencryption = new /aws1/cl_glucloudwatchenc(
      iv_cloudwatchencryptionmode = |string|
      iv_kmskeyarn = |string|
    )
    io_dataqualityencryption = new /aws1/cl_gludataqualityenc(
      iv_dataqualityencryptionmode = |string|
      iv_kmskeyarn = |string|
    )
    io_jobbookmarksencryption = new /aws1/cl_glujobbookmarksenc(
      iv_jobbookmarksencmode = |string|
      iv_kmskeyarn = |string|
    )
    it_s3encryption = VALUE /aws1/cl_glus3encryption=>tt_s3encryptionlist(
      (
        new /aws1/cl_glus3encryption(
          iv_kmskeyarn = |string|
          iv_s3encryptionmode = |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_namestring = lo_result->get_name( ).
  lv_timestampvalue = lo_result->get_createdtimestamp( ).
ENDIF.