# CfnTransitGatewayNetworkFunctionAttachmentProps

Properties for defining a `CfnTransitGatewayNetworkFunctionAttachment`.

Used as props by: [CfnTransitGatewayNetworkFunctionAttachment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnTransitGatewayNetworkFunctionAttachment.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTransitGatewayNetworkFunctionAttachmentProps: ec2.CfnTransitGatewayNetworkFunctionAttachmentProps = {
  transitGatewayId: 'transitGatewayId',

  // the properties below are optional
  availabilityZoneIds: ['availabilityZoneIds'],
  availabilityZones: ['availabilityZones'],
  serviceName: 'serviceName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_transit_gateway_network_function_attachment_props = ec2.CfnTransitGatewayNetworkFunctionAttachmentProps(
    transit_gateway_id="transitGatewayId",

    # the properties below are optional
    availability_zone_ids=["availabilityZoneIds"],
    availability_zones=["availabilityZones"],
    service_name="serviceName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnTransitGatewayNetworkFunctionAttachmentProps cfnTransitGatewayNetworkFunctionAttachmentProps = CfnTransitGatewayNetworkFunctionAttachmentProps.builder()
        .transitGatewayId("transitGatewayId")

        // the properties below are optional
        .availabilityZoneIds(List.of("availabilityZoneIds"))
        .availabilityZones(List.of("availabilityZones"))
        .serviceName("serviceName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnTransitGatewayNetworkFunctionAttachmentProps = new CfnTransitGatewayNetworkFunctionAttachmentProps {
    TransitGatewayId = "transitGatewayId",

    // the properties below are optional
    AvailabilityZoneIds = new [] { "availabilityZoneIds" },
    AvailabilityZones = new [] { "availabilityZones" },
    ServiceName = "serviceName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnTransitGatewayNetworkFunctionAttachmentProps := &CfnTransitGatewayNetworkFunctionAttachmentProps{
	TransitGatewayId: jsii.String("transitGatewayId"),

	// the properties below are optional
	AvailabilityZoneIds: []*string{
		jsii.String("availabilityZoneIds"),
	},
	AvailabilityZones: []*string{
		jsii.String("availabilityZones"),
	},
	ServiceName: jsii.String("serviceName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `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`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the attachment.

- `transitGatewayId`: string (required) — The ID of the transit gateway.
