# OptionsProperty

Describes the VPC attachment options.

- Source: Generated at build time
- Type last changed: v2.161.0 · 4 Oct 2024

## 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 optionsProperty: ec2.CfnTransitGatewayAttachment.OptionsProperty = {
  applianceModeSupport: 'applianceModeSupport',
  dnsSupport: 'dnsSupport',
  ipv6Support: 'ipv6Support',
  securityGroupReferencingSupport: 'securityGroupReferencingSupport',
};
```

Python:

```python
# 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

options_property = ec2.CfnTransitGatewayAttachment.OptionsProperty(
    appliance_mode_support="applianceModeSupport",
    dns_support="dnsSupport",
    ipv6_support="ipv6Support",
    security_group_referencing_support="securityGroupReferencingSupport"
)
```

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.*;

OptionsProperty optionsProperty = OptionsProperty.builder()
        .applianceModeSupport("applianceModeSupport")
        .dnsSupport("dnsSupport")
        .ipv6Support("ipv6Support")
        .securityGroupReferencingSupport("securityGroupReferencingSupport")
        .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 optionsProperty = new OptionsProperty {
    ApplianceModeSupport = "applianceModeSupport",
    DnsSupport = "dnsSupport",
    Ipv6Support = "ipv6Support",
    SecurityGroupReferencingSupport = "securityGroupReferencingSupport"
};
```

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"

optionsProperty := &OptionsProperty{
	ApplianceModeSupport: jsii.String("applianceModeSupport"),
	DnsSupport: jsii.String("dnsSupport"),
	Ipv6Support: jsii.String("ipv6Support"),
	SecurityGroupReferencingSupport: jsii.String("securityGroupReferencingSupport"),
}
```

## Properties

- `applianceModeSupport`: string — Enable or disable appliance mode support.

  The default is `disable` .

- `dnsSupport`: string — Enable or disable DNS support.

  The default is `disable` .

- `ipv6Support`: string — Enable or disable IPv6 support.

  The default is `disable` .

- `securityGroupReferencingSupport`: string — Enables you to reference a security group across VPCs attached to a transit gateway (TGW).

  Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

  For important information about this feature, see [Create a transit gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) in the *AWS Transit Gateway Guide* .
