1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. TransitGatewayNetworkFunctionAttachment

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    The AWS::EC2::TransitGatewayNetworkFunctionAttachment type

    Create TransitGatewayNetworkFunctionAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TransitGatewayNetworkFunctionAttachment(name: string, args: TransitGatewayNetworkFunctionAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def TransitGatewayNetworkFunctionAttachment(resource_name: str,
                                                args: TransitGatewayNetworkFunctionAttachmentArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitGatewayNetworkFunctionAttachment(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                transit_gateway_id: Optional[str] = None,
                                                availability_zone_ids: Optional[Sequence[str]] = None,
                                                availability_zones: Optional[Sequence[str]] = None,
                                                service_name: Optional[str] = None,
                                                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewTransitGatewayNetworkFunctionAttachment(ctx *Context, name string, args TransitGatewayNetworkFunctionAttachmentArgs, opts ...ResourceOption) (*TransitGatewayNetworkFunctionAttachment, error)
    public TransitGatewayNetworkFunctionAttachment(string name, TransitGatewayNetworkFunctionAttachmentArgs args, CustomResourceOptions? opts = null)
    public TransitGatewayNetworkFunctionAttachment(String name, TransitGatewayNetworkFunctionAttachmentArgs args)
    public TransitGatewayNetworkFunctionAttachment(String name, TransitGatewayNetworkFunctionAttachmentArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:TransitGatewayNetworkFunctionAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ec2_transit_gateway_network_function_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TransitGatewayNetworkFunctionAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TransitGatewayNetworkFunctionAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TransitGatewayNetworkFunctionAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitGatewayNetworkFunctionAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitGatewayNetworkFunctionAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TransitGatewayNetworkFunctionAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TransitGatewayNetworkFunctionAttachment resource accepts the following input properties:

    TransitGatewayId string
    The ID of the transit gateway.
    AvailabilityZoneIds List<string>
    The Availability Zone IDs for the attachment.
    AvailabilityZones List<string>
    The Availability Zones for the attachment.
    ServiceName string
    The name of the network function service.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags for the attachment.
    TransitGatewayId string
    The ID of the transit gateway.
    AvailabilityZoneIds []string
    The Availability Zone IDs for the attachment.
    AvailabilityZones []string
    The Availability Zones for the attachment.
    ServiceName string
    The name of the network function service.
    Tags TagArgs
    The tags for the attachment.
    transit_gateway_id string
    The ID of the transit gateway.
    availability_zone_ids list(string)
    The Availability Zone IDs for the attachment.
    availability_zones list(string)
    The Availability Zones for the attachment.
    service_name string
    The name of the network function service.
    tags list(object)
    The tags for the attachment.
    transitGatewayId String
    The ID of the transit gateway.
    availabilityZoneIds List<String>
    The Availability Zone IDs for the attachment.
    availabilityZones List<String>
    The Availability Zones for the attachment.
    serviceName String
    The name of the network function service.
    tags List<Tag>
    The tags for the attachment.
    transitGatewayId string
    The ID of the transit gateway.
    availabilityZoneIds string[]
    The Availability Zone IDs for the attachment.
    availabilityZones string[]
    The Availability Zones for the attachment.
    serviceName string
    The name of the network function service.
    tags Tag[]
    The tags for the attachment.
    transit_gateway_id str
    The ID of the transit gateway.
    availability_zone_ids Sequence[str]
    The Availability Zone IDs for the attachment.
    availability_zones Sequence[str]
    The Availability Zones for the attachment.
    service_name str
    The name of the network function service.
    tags Sequence[TagArgs]
    The tags for the attachment.
    transitGatewayId String
    The ID of the transit gateway.
    availabilityZoneIds List<String>
    The Availability Zone IDs for the attachment.
    availabilityZones List<String>
    The Availability Zones for the attachment.
    serviceName String
    The name of the network function service.
    tags List<Property Map>
    The tags for the attachment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitGatewayNetworkFunctionAttachment resource produces the following output properties:

    CreationTime string
    The creation time of the attachment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The resource ID of the network function.
    State string
    The state of the attachment.
    TransitGatewayAttachmentId string
    The ID of the network function attachment.
    CreationTime string
    The creation time of the attachment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The resource ID of the network function.
    State string
    The state of the attachment.
    TransitGatewayAttachmentId string
    The ID of the network function attachment.
    creation_time string
    The creation time of the attachment.
    id string
    The provider-assigned unique ID for this managed resource.
    resource_id string
    The resource ID of the network function.
    state string
    The state of the attachment.
    transit_gateway_attachment_id string
    The ID of the network function attachment.
    creationTime String
    The creation time of the attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The resource ID of the network function.
    state String
    The state of the attachment.
    transitGatewayAttachmentId String
    The ID of the network function attachment.
    creationTime string
    The creation time of the attachment.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    The resource ID of the network function.
    state string
    The state of the attachment.
    transitGatewayAttachmentId string
    The ID of the network function attachment.
    creation_time str
    The creation time of the attachment.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    The resource ID of the network function.
    state str
    The state of the attachment.
    transit_gateway_attachment_id str
    The ID of the network function attachment.
    creationTime String
    The creation time of the attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The resource ID of the network function.
    state String
    The state of the attachment.
    transitGatewayAttachmentId String
    The ID of the network function attachment.

    Look up Existing TransitGatewayNetworkFunctionAttachment Resource

    Get an existing TransitGatewayNetworkFunctionAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): TransitGatewayNetworkFunctionAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> TransitGatewayNetworkFunctionAttachment
    func GetTransitGatewayNetworkFunctionAttachment(ctx *Context, name string, id IDInput, state *TransitGatewayNetworkFunctionAttachmentState, opts ...ResourceOption) (*TransitGatewayNetworkFunctionAttachment, error)
    public static TransitGatewayNetworkFunctionAttachment Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static TransitGatewayNetworkFunctionAttachment get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingTransitGatewayNetworkFunctionAttachment:    type: aws-native:ec2:TransitGatewayNetworkFunctionAttachment    get:      id: ${id}
    import {
      to = aws-native_ec2_transit_gateway_network_function_attachment.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state TransitGatewayNetworkFunctionAttachmentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial