Skip to content

/AWS1/IF_VL=>CRESVCNETWORKRESRCASSOCIAT00()

About CreateServiceNetworkResourceAssociation

Associates the specified service network with the specified resource configuration. This allows the resource configuration to receive connections through the service network, including through a service network VPC endpoint.

Method Signature

METHODS /AWS1/IF_VL~CRESVCNETWORKRESRCASSOCIAT00
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/VL_CLIENTTOKEN OPTIONAL
    !IV_RESOURCECONFIDENTIFIER TYPE /AWS1/VL_RESOURCECONFID OPTIONAL
    !IV_SERVICENETWORKIDENTIFIER TYPE /AWS1/VL_SVCNETWORKIDWOUTREGEX OPTIONAL
    !IV_PRIVATEDNSENABLED TYPE /AWS1/VL_BOOLEAN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_VL_TAGMAP_W=>TT_TAGMAP OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_vl_cresvcnetworkres01
  RAISING
    /AWS1/CX_VL_ACCESSDENIEDEX
    /AWS1/CX_VL_CONFLICTEXCEPTION
    /AWS1/CX_VL_INTERNALSERVEREX
    /AWS1/CX_VL_RESOURCENOTFOUNDEX
    /AWS1/CX_VL_SERVICEQUOTAEXCDEX
    /AWS1/CX_VL_THROTTLINGEX
    /AWS1/CX_VL_VALIDATIONEX
    /AWS1/CX_VL_CLIENTEXC
    /AWS1/CX_VL_SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_resourceconfidentifier TYPE /AWS1/VL_RESOURCECONFID /AWS1/VL_RESOURCECONFID

The ID of the resource configuration to associate with the service network.

iv_servicenetworkidentifier TYPE /AWS1/VL_SVCNETWORKIDWOUTREGEX /AWS1/VL_SVCNETWORKIDWOUTREGEX

The ID of the service network to associate with the resource configuration.

Optional arguments:

iv_clienttoken TYPE /AWS1/VL_CLIENTTOKEN /AWS1/VL_CLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

iv_privatednsenabled TYPE /AWS1/VL_BOOLEAN /AWS1/VL_BOOLEAN

Indicates if private DNS is enabled for the service network resource association.

it_tags TYPE /AWS1/CL_VL_TAGMAP_W=>TT_TAGMAP TT_TAGMAP

A key-value pair to associate with a resource.

RETURNING

oo_output TYPE REF TO /aws1/cl_vl_cresvcnetworkres01 /AWS1/CL_VL_CRESVCNETWORKRES01

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->cresvcnetworkresrcassociat00(
  it_tags = VALUE /aws1/cl_vl_tagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_vl_tagmap_w=>ts_tagmap_maprow(
        value = new /aws1/cl_vl_tagmap_w( |string| )
        key = |string|
      )
    )
  )
  iv_clienttoken = |string|
  iv_privatednsenabled = ABAP_TRUE
  iv_resourceconfidentifier = |string|
  iv_servicenetworkidentifier = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_servicenetworkresourcea = lo_result->get_id( ).
  lv_servicenetworkresourcea_1 = lo_result->get_arn( ).
  lv_servicenetworkresourcea_2 = lo_result->get_status( ).
  lv_accountid = lo_result->get_createdby( ).
  lv_boolean = lo_result->get_privatednsenabled( ).
ENDIF.