OptionsProperty Struct
Describes the VPC attachment options.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
applianceModeSupportoptionalstringappliance_mode_supportoptionalstrapplianceModeSupportoptionalStringApplianceModeSupportoptionalstringApplianceModeSupportoptional*string #Enable or disable appliance mode support.
The default is disable .
dnsSupportoptionalstringdns_supportoptionalstrdnsSupportoptionalStringDnsSupportoptionalstringDnsSupportoptional*string #Enable or disable DNS support.
The default is disable .
ipv6Supportoptionalstringipv6_supportoptionalstripv6SupportoptionalStringIpv6SupportoptionalstringIpv6Supportoptional*string #Enable or disable IPv6 support.
The default is disable .
securityGroupReferencingSupportoptionalstringsecurity_group_referencing_supportoptionalstrsecurityGroupReferencingSupportoptionalStringSecurityGroupReferencingSupportoptionalstringSecurityGroupReferencingSupportoptional*string #Enables you to reference a security group across VPCs attached to a transit gateway (TGW).
notes
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 in the AWS Transit Gateway Guide .