Skip to content

/AWS1/IF_RSH=>DEREGISTERNAMESPACE()

About DeregisterNamespace

Deregisters a cluster or serverless namespace from the Amazon Web Services Glue Data Catalog.

Method Signature

METHODS /AWS1/IF_RSH~DEREGISTERNAMESPACE
  IMPORTING
    !IO_NAMESPACEIDENTIFIER TYPE REF TO /AWS1/CL_RSHNAMESPACEIDUNION OPTIONAL
    !IT_CONSUMERIDENTIFIERS TYPE /AWS1/CL_RSHCONSUMERIDLIST_W=>TT_CONSUMERIDENTIFIERLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rshderegnamespaceou00
  RAISING
    /AWS1/CX_RSHCLUSTNOTFOUNDFAULT
    /AWS1/CX_RSHINVCLUSTSTATEFAULT
    /AWS1/CX_RSHINVNAMESPACEFAULT
    /AWS1/CX_RSHCLIENTEXC
    /AWS1/CX_RSHSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_namespaceidentifier TYPE REF TO /AWS1/CL_RSHNAMESPACEIDUNION /AWS1/CL_RSHNAMESPACEIDUNION

The unique identifier of the cluster or serverless namespace that you want to deregister.

it_consumeridentifiers TYPE /AWS1/CL_RSHCONSUMERIDLIST_W=>TT_CONSUMERIDENTIFIERLIST TT_CONSUMERIDENTIFIERLIST

An array containing the ID of the consumer account that you want to deregister the cluster or serverless namespace from.

RETURNING

oo_output TYPE REF TO /aws1/cl_rshderegnamespaceou00 /AWS1/CL_RSHDEREGNAMESPACEOU00

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->deregisternamespace(
  io_namespaceidentifier = new /aws1/cl_rshnamespaceidunion(
    io_provisionedidentifier = new /aws1/cl_rshprovidentifier( |string| )
    io_serverlessidentifier = new /aws1/cl_rshserverlessid(
      iv_namespaceidentifier = |string|
      iv_workgroupidentifier = |string|
    )
  )
  it_consumeridentifiers = VALUE /aws1/cl_rshconsumeridlist_w=>tt_consumeridentifierlist(
    ( new /aws1/cl_rshconsumeridlist_w( |string| ) )
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_namespaceregistrationst = lo_result->get_status( ).
ENDIF.