Skip to content

/AWS1/IF_GLU=>PUTDATACATALOGEXPORTCONF()

About PutDataCatalogExportConfiguration

Creates or updates the export configuration for the Glue Data Catalog. Use this operation to enable or disable the export of catalog metadata to S3 Tables.

Method Signature

METHODS /AWS1/IF_GLU~PUTDATACATALOGEXPORTCONF
  IMPORTING
    !IV_EXPORTSETTING TYPE /AWS1/GLUEXPORTSETTING OPTIONAL
    !IO_ENCRYPTIONCONFIGURATION TYPE REF TO /AWS1/CL_GLUEXPORTENCCONF OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/GLUHASHSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gluputdatcatexpconf01
  RAISING
    /AWS1/CX_GLUACCESSDENIEDEX
    /AWS1/CX_GLUCONFLICTEXCEPTION
    /AWS1/CX_GLUINTERNALSERVICEEX
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUTHROTTLINGEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_exportsetting TYPE /AWS1/GLUEXPORTSETTING /AWS1/GLUEXPORTSETTING

The export setting for the data catalog. Specify ENABLED to start exporting catalog metadata to S3 Tables, or DISABLED to stop exporting. This field is required.

Optional arguments:

io_encryptionconfiguration TYPE REF TO /AWS1/CL_GLUEXPORTENCCONF /AWS1/CL_GLUEXPORTENCCONF

The encryption configuration for the exported data. If not specified, the default encryption settings are used.

iv_clienttoken TYPE /AWS1/GLUHASHSTRING /AWS1/GLUHASHSTRING

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_gluputdatcatexpconf01 /AWS1/CL_GLUPUTDATCATEXPCONF01

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->putdatacatalogexportconf(
  io_encryptionconfiguration = new /aws1/cl_gluexportencconf(
    iv_kmskeyarn = |string|
    iv_ssealgorithm = |string|
  )
  iv_clienttoken = |string|
  iv_exportsetting = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_exportsetting = lo_result->get_exportsetting( ).
  lo_exportencryptionconfigu = lo_result->get_encryptionconfiguration( ).
  IF lo_exportencryptionconfigu IS NOT INITIAL.
    lv_ssealgorithm = lo_exportencryptionconfigu->get_ssealgorithm( ).
    lv_kmskeyarnstring = lo_exportencryptionconfigu->get_kmskeyarn( ).
  ENDIF.
ENDIF.