Skip to content

/AWS1/CL_NEP=>CREATEDBCLUSTERENDPOINT()

About CreateDBClusterEndpoint

Creates a new custom endpoint and associates it with an Amazon Neptune DB cluster.

Method Signature

IMPORTING

Required arguments:

iv_dbclusteridentifier TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING

The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

iv_dbclusterendpointid TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING

The identifier to use for the new endpoint. This parameter is stored as a lowercase string.

iv_endpointtype TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING

The type of the endpoint. One of: READER, WRITER, ANY.

Optional arguments:

it_staticmembers TYPE /AWS1/CL_NEPSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

List of DB instance identifiers that are part of the custom endpoint group.

it_excludedmembers TYPE /AWS1/CL_NEPSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

it_tags TYPE /AWS1/CL_NEPTAG=>TT_TAGLIST TT_TAGLIST

The tags to be assigned to the Amazon Neptune resource.

RETURNING

oo_output TYPE REF TO /aws1/cl_nepcredbclustendptout /AWS1/CL_NEPCREDBCLUSTENDPTOUT

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_nep~createdbclusterendpoint(
  it_excludedmembers = VALUE /aws1/cl_nepstringlist_w=>tt_stringlist(
    ( new /aws1/cl_nepstringlist_w( |string| ) )
  )
  it_staticmembers = VALUE /aws1/cl_nepstringlist_w=>tt_stringlist(
    ( new /aws1/cl_nepstringlist_w( |string| ) )
  )
  it_tags = VALUE /aws1/cl_neptag=>tt_taglist(
    (
      new /aws1/cl_neptag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_dbclusterendpointid = |string|
  iv_dbclusteridentifier = |string|
  iv_endpointtype = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_dbclusterendpointid( ).
  lv_string = lo_result->get_dbclusteridentifier( ).
  lv_string = lo_result->get_dbclusterendptresourceid( ).
  lv_string = lo_result->get_endpoint( ).
  lv_string = lo_result->get_status( ).
  lv_string = lo_result->get_endpointtype( ).
  lv_string = lo_result->get_customendpointtype( ).
  LOOP AT lo_result->get_staticmembers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_excludedmembers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_dbclusterendpointarn( ).
ENDIF.