/AWS1/IF_NWM=>CREATEDIRECTCNCTGWATTACHMENT()¶
About CreateDirectConnectGatewayAttachment¶
Creates an Amazon Web Services Direct Connect gateway attachment
Method Signature¶
METHODS /AWS1/IF_NWM~CREATEDIRECTCNCTGWATTACHMENT
IMPORTING
!IV_CORENETWORKID TYPE /AWS1/NWMCORENETWORKID OPTIONAL
!IV_DIRECTCONNECTGATEWAYARN TYPE /AWS1/NWMDIRECTCNCTGATEWAYARN OPTIONAL
!IV_ROUTINGPOLICYLABEL TYPE /AWS1/NWMCONSTRAINEDSTRING OPTIONAL
!IT_EDGELOCATIONS TYPE /AWS1/CL_NWMEXTERNALREGIONCO00=>TT_EXTERNALREGIONCODELIST OPTIONAL
!IT_TAGS TYPE /AWS1/CL_NWMTAG=>TT_TAGLIST OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/NWMCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwmcredirectcnctgwa01
RAISING
/AWS1/CX_NWMACCESSDENIEDEX
/AWS1/CX_NWMCONFLICTEXCEPTION
/AWS1/CX_NWMINTERNALSERVEREX
/AWS1/CX_NWMRESOURCENOTFOUNDEX
/AWS1/CX_NWMTHROTTLINGEX
/AWS1/CX_NWMVALIDATIONEX
/AWS1/CX_NWMCLIENTEXC
/AWS1/CX_NWMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_corenetworkid TYPE /AWS1/NWMCORENETWORKID /AWS1/NWMCORENETWORKID¶
The ID of the Cloud WAN core network that the Direct Connect gateway attachment should be attached to.
iv_directconnectgatewayarn TYPE /AWS1/NWMDIRECTCNCTGATEWAYARN /AWS1/NWMDIRECTCNCTGATEWAYARN¶
The ARN of the Direct Connect gateway attachment.
it_edgelocations TYPE /AWS1/CL_NWMEXTERNALREGIONCO00=>TT_EXTERNALREGIONCODELIST TT_EXTERNALREGIONCODELIST¶
One or more core network edge locations that the Direct Connect gateway attachment is associated with.
Optional arguments:¶
iv_routingpolicylabel TYPE /AWS1/NWMCONSTRAINEDSTRING /AWS1/NWMCONSTRAINEDSTRING¶
The routing policy label to apply to the Direct Connect Gateway attachment for traffic routing decisions.
it_tags TYPE /AWS1/CL_NWMTAG=>TT_TAGLIST TT_TAGLIST¶
The key value tags to apply to the Direct Connect gateway attachment during creation.
iv_clienttoken TYPE /AWS1/NWMCLIENTTOKEN /AWS1/NWMCLIENTTOKEN¶
client token
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwmcredirectcnctgwa01 /AWS1/CL_NWMCREDIRECTCNCTGWA01¶
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->createdirectcnctgwattachment(
it_edgelocations = VALUE /aws1/cl_nwmexternalregionco00=>tt_externalregioncodelist(
( new /aws1/cl_nwmexternalregionco00( |string| ) )
)
it_tags = VALUE /aws1/cl_nwmtag=>tt_taglist(
(
new /aws1/cl_nwmtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clienttoken = |string|
iv_corenetworkid = |string|
iv_directconnectgatewayarn = |string|
iv_routingpolicylabel = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_directconnectgatewayatt = lo_result->get_directcnctgwattachment( ).
IF lo_directconnectgatewayatt IS NOT INITIAL.
lo_attachment = lo_directconnectgatewayatt->get_attachment( ).
IF lo_attachment IS NOT INITIAL.
lv_corenetworkid = lo_attachment->get_corenetworkid( ).
lv_corenetworkarn = lo_attachment->get_corenetworkarn( ).
lv_attachmentid = lo_attachment->get_attachmentid( ).
lv_awsaccountid = lo_attachment->get_owneraccountid( ).
lv_attachmenttype = lo_attachment->get_attachmenttype( ).
lv_attachmentstate = lo_attachment->get_state( ).
lv_externalregioncode = lo_attachment->get_edgelocation( ).
LOOP AT lo_attachment->get_edgelocations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_externalregioncode = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_resourcearn = lo_attachment->get_resourcearn( ).
lv_integer = lo_attachment->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_attachment->get_segmentname( ).
lv_networkfunctiongroupnam = lo_attachment->get_networkfunctiongroupname( ).
LOOP AT lo_attachment->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_proposedsegmentchange = lo_attachment->get_proposedsegmentchange( ).
IF lo_proposedsegmentchange IS NOT INITIAL.
LOOP AT lo_proposedsegmentchange->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_integer = lo_proposedsegmentchange->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_proposedsegmentchange->get_segmentname( ).
ENDIF.
lo_proposednetworkfunction = lo_attachment->get_proposednetworkfuncgrp00( ).
IF lo_proposednetworkfunction IS NOT INITIAL.
LOOP AT lo_proposednetworkfunction->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_integer = lo_proposednetworkfunction->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_proposednetworkfunction->get_networkfunctiongroupname( ).
ENDIF.
lv_datetime = lo_attachment->get_createdat( ).
lv_datetime = lo_attachment->get_updatedat( ).
LOOP AT lo_attachment->get_lastmodificationerrors( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_attachmenterrorcode = lo_row_5->get_code( ).
lv_serversidestring = lo_row_5->get_message( ).
lv_resourcearn = lo_row_5->get_resourcearn( ).
lv_serversidestring = lo_row_5->get_requestid( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_directconnectgatewayarn = lo_directconnectgatewayatt->get_directconnectgatewayarn( ).
ENDIF.
ENDIF.