Skip to content

/AWS1/IF_NWF=>REJNETFIREWALLTGWATTACHMENT()

About RejectNetworkFirewallTransitGatewayAttachment

Rejects a transit gateway attachment request for Network Firewall. When you reject the attachment request, Network Firewall cancels the creation of routing components between the transit gateway and firewall endpoints.

Only the transit gateway owner can reject the attachment. After rejection, no traffic will flow through the firewall endpoints for this attachment.

Use DescribeFirewall to monitor the rejection status. To accept the attachment instead of rejecting it, use AcceptNetworkFirewallTransitGatewayAttachment.

Once rejected, you cannot reverse this action. To establish connectivity, you must create a new transit gateway-attached firewall.

Method Signature

IMPORTING

Required arguments:

iv_tgwattachmentid TYPE /AWS1/NWFTGWATTACHMENTID /AWS1/NWFTGWATTACHMENTID

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

RETURNING

oo_output TYPE REF TO /aws1/cl_nwfrejnetfirewalltg01 /AWS1/CL_NWFREJNETFIREWALLTG01

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_nwf~rejnetfirewalltgwattachment( |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.