NetworkFirewall / Client / accept_network_firewall_transit_gateway_attachment

accept_network_firewall_transit_gateway_attachment

NetworkFirewall.Client.accept_network_firewall_transit_gateway_attachment(**kwargs)

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.

Note

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

See also: AWS API Documentation

Request Syntax

response = client.accept_network_firewall_transit_gateway_attachment(
    TransitGatewayAttachmentId='string'
)
Parameters:

TransitGatewayAttachmentId (string) –

[REQUIRED]

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.

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 accepted.

    • TransitGatewayAttachmentStatus (string) –

      The current status of the transit gateway attachment. Valid values are:

      • CREATING - The attachment is being created

      • DELETING - The attachment is being deleted

      • DELETED - The attachment has been deleted

      • FAILED - The attachment creation has failed and cannot be recovered

      • ERROR - The attachment is in an error state that might be recoverable

      • READY - The attachment is active and processing traffic

      • PENDING_ACCEPTANCE - The attachment is waiting to be accepted

      • REJECTING - The attachment is in the process of being rejected

      • REJECTED - The attachment has been rejected

Exceptions

  • NetworkFirewall.Client.exceptions.InvalidRequestException

  • NetworkFirewall.Client.exceptions.InternalServerError

  • NetworkFirewall.Client.exceptions.ResourceNotFoundException

  • NetworkFirewall.Client.exceptions.ThrottlingException