/AWS1/IF_NWM=>REGISTERTRANSITGATEWAY()¶
About RegisterTransitGateway¶
Registers a transit gateway in your global network. Not all Regions support transit gateways for global networks. For a list of the supported Regions, see Region Availability in the Amazon Web Services Transit Gateways for Global Networks User Guide. The transit gateway can be in any of the supported Amazon Web Services Regions, but it must be owned by the same Amazon Web Services account that owns the global network. You cannot register a transit gateway in more than one global network.
Method Signature¶
METHODS /AWS1/IF_NWM~REGISTERTRANSITGATEWAY
IMPORTING
!IV_GLOBALNETWORKID TYPE /AWS1/NWMGLOBALNETWORKID OPTIONAL
!IV_TRANSITGATEWAYARN TYPE /AWS1/NWMTRANSITGATEWAYARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwmregtgwresponse
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_globalnetworkid TYPE /AWS1/NWMGLOBALNETWORKID /AWS1/NWMGLOBALNETWORKID¶
The ID of the global network.
iv_transitgatewayarn TYPE /AWS1/NWMTRANSITGATEWAYARN /AWS1/NWMTRANSITGATEWAYARN¶
The Amazon Resource Name (ARN) of the transit gateway.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwmregtgwresponse /AWS1/CL_NWMREGTGWRESPONSE¶
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->registertransitgateway(
iv_globalnetworkid = |string|
iv_transitgatewayarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_transitgatewayregistrat = lo_result->get_tgwregistration( ).
IF lo_transitgatewayregistrat IS NOT INITIAL.
lv_globalnetworkid = lo_transitgatewayregistrat->get_globalnetworkid( ).
lv_transitgatewayarn = lo_transitgatewayregistrat->get_transitgatewayarn( ).
lo_transitgatewayregistrat_1 = lo_transitgatewayregistrat->get_state( ).
IF lo_transitgatewayregistrat_1 IS NOT INITIAL.
lv_transitgatewayregistrat_2 = lo_transitgatewayregistrat_1->get_code( ).
lv_constrainedstring = lo_transitgatewayregistrat_1->get_message( ).
ENDIF.
ENDIF.
ENDIF.