NetworkFirewall / Client / reject_network_firewall_transit_gateway_attachment
reject_network_firewall_transit_gateway_attachment¶
- NetworkFirewall.Client.reject_network_firewall_transit_gateway_attachment(**kwargs)¶
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 firewall 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.
Note
Once rejected, you cannot reverse this action. To establish connectivity, you must create a new transit gateway-attached firewall.
See also: AWS API Documentation
Request Syntax
response = client.reject_network_firewall_transit_gateway_attachment( TransitGatewayAttachmentId='string' )
- Parameters:
TransitGatewayAttachmentId (string) –
[REQUIRED]
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'TransitGatewayAttachmentId': 'string', 'TransitGatewayAttachmentStatus': 'CREATING'|'DELETING'|'DELETED'|'FAILED'|'ERROR'|'READY'|'PENDING_ACCEPTANCE'|'REJECTING'|'REJECTED' }
Response Structure
(dict) –
TransitGatewayAttachmentId (string) –
The unique identifier of the transit gateway attachment that was rejected.
TransitGatewayAttachmentStatus (string) –
The current status of the transit gateway attachment. Valid values are:
CREATING
- The attachment is being createdDELETING
- The attachment is being deletedDELETED
- The attachment has been deletedFAILED
- The attachment creation has failed and cannot be recoveredERROR
- The attachment is in an error state that might be recoverableREADY
- The attachment is active and processing trafficPENDING_ACCEPTANCE
- The attachment is waiting to be acceptedREJECTING
- The attachment is in the process of being rejectedREJECTED
- The attachment has been rejected
For information about troubleshooting endpoint failures, see Troubleshooting firewall endpoint failures in the Network Firewall Developer Guide.
Exceptions
NetworkFirewall.Client.exceptions.InvalidRequestException
NetworkFirewall.Client.exceptions.InternalServerError
NetworkFirewall.Client.exceptions.ResourceNotFoundException
NetworkFirewall.Client.exceptions.ThrottlingException