EC2 / Client / modify_transit_gateway_network_function_attachment

modify_transit_gateway_network_function_attachment

EC2.Client.modify_transit_gateway_network_function_attachment(**kwargs)

Adds Availability Zones to or removes Availability Zones from the specified network function attachment. The attachment must be in the available state. You must specify at least one Availability Zone to add or remove, and the attachment must keep at least one Availability Zone.

Adding an Availability Zone provisions a new Gateway Load Balancer endpoint in that Availability Zone. If the endpoint service doesn’t automatically accept connection requests, the endpoint service owner must accept the endpoint connection for each Availability Zone that you add.

See also: AWS API Documentation

Request Syntax

response = client.modify_transit_gateway_network_function_attachment(
    TransitGatewayAttachmentId='string',
    AddAvailabilityZones=[
        'string',
    ],
    AddAvailabilityZoneIds=[
        'string',
    ],
    RemoveAvailabilityZones=[
        'string',
    ],
    RemoveAvailabilityZoneIds=[
        'string',
    ],
    DryRun=True|False
)
Parameters:
  • TransitGatewayAttachmentId (string) –

    [REQUIRED]

    The ID of the network function attachment.

  • AddAvailabilityZones (list) –

    The names of the Availability Zones to add to the attachment. You can’t add and remove the same Availability Zone in a single request.

    • (string) –

  • AddAvailabilityZoneIds (list) –

    The IDs of the Availability Zones to add to the attachment. You can’t add and remove the same Availability Zone in a single request.

    • (string) –

  • RemoveAvailabilityZones (list) –

    The names of the Availability Zones to remove from the attachment. Each Availability Zone must be currently in the attachment.

    • (string) –

  • RemoveAvailabilityZoneIds (list) –

    The IDs of the Availability Zones to remove from the attachment. Each Availability Zone must be currently in the attachment.

    • (string) –

  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Return type:

dict

Returns:

Response Syntax

{
    'TransitGatewayNetworkFunctionAttachment': {
        'TransitGatewayAttachmentId': 'string',
        'TransitGatewayId': 'string',
        'TransitGatewayOwnerId': 'string',
        'ResourceOwnerId': 'string',
        'ResourceId': 'string',
        'AvailabilityZones': [
            'string',
        ],
        'AvailabilityZoneIds': [
            'string',
        ],
        'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing',
        'CreationTime': datetime(2015, 1, 1),
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    • TransitGatewayNetworkFunctionAttachment (dict) –

      Information about the network function attachment.

      • TransitGatewayAttachmentId (string) –

        The ID of the attachment.

      • TransitGatewayId (string) –

        The ID of the transit gateway.

      • TransitGatewayOwnerId (string) –

        The ID of the Amazon Web Services account that owns the transit gateway.

      • ResourceOwnerId (string) –

        The ID of the Amazon Web Services account that owns the attachment.

      • ResourceId (string) –

        The name of the Gateway Load Balancer endpoint service.

      • AvailabilityZones (list) –

        The names of the Availability Zones for the attachment.

        • (string) –

      • AvailabilityZoneIds (list) –

        The IDs of the Availability Zones for the attachment.

        • (string) –

      • State (string) –

        The state of the attachment.

      • CreationTime (datetime) –

        The date and time the attachment was created.

      • Tags (list) –

        The tags for the attachment.

        • (dict) –

          Describes a tag.

          • Key (string) –

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) –

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.