Skip to content

/AWS1/IF_NWF=>ACCNETFIREWALLTGWATTACHMENT()

About AcceptNetworkFirewallTransitGatewayAttachment

Accepts a transit gateway attachment request for Network Firewall. When you accept the attachment request, Network Firewall creates the necessary routing components to enable traffic flow between the transit gateway and firewall endpoints.

You must accept a transit gateway attachment to complete the creation of a transit gateway-attached firewall, unless auto-accept is enabled on the transit gateway. After acceptance, use DescribeFirewall to verify the firewall status.

To reject an attachment instead of accepting it, use RejectNetworkFirewallTransitGatewayAttachment.

It can take several minutes for the attachment acceptance to complete and the firewall to become available.

Method Signature

METHODS /AWS1/IF_NWF~ACCNETFIREWALLTGWATTACHMENT
  IMPORTING
    !IV_TGWATTACHMENTID TYPE /AWS1/NWFTGWATTACHMENTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfaccnetfirewalltg01
  RAISING
    /AWS1/CX_NWFINTERNALSERVERERR
    /AWS1/CX_NWFINVALIDREQUESTEX
    /AWS1/CX_NWFRESOURCENOTFOUNDEX
    /AWS1/CX_NWFTHROTTLINGEX
    /AWS1/CX_NWFCLIENTEXC
    /AWS1/CX_NWFSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_tgwattachmentid TYPE /AWS1/NWFTGWATTACHMENTID /AWS1/NWFTGWATTACHMENTID

Required. The unique identifier of the transit gateway attachment to accept. This ID is returned in the response when creating a transit gateway-attached firewall.

RETURNING

oo_output TYPE REF TO /aws1/cl_nwfaccnetfirewalltg01 /AWS1/CL_NWFACCNETFIREWALLTG01

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->accnetfirewalltgwattachment( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_transitgatewayattachmen = lo_result->get_tgwattachmentid( ).
  lv_transitgatewayattachmen_1 = lo_result->get_tgwattachmentstatus( ).
ENDIF.