Skip to content
v2.278.0

VpnGatewayProps Struct ​

The VpnGateway Properties.

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 vpnGatewayProps: ec2.VpnGatewayProps = {
  type: 'type',

  // the properties below are optional
  amazonSideAsn: 123,
};
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

vpn_gateway_props = ec2.VpnGatewayProps(
    type="type",

    # the properties below are optional
    amazon_side_asn=123
)
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.*;

VpnGatewayProps vpnGatewayProps = VpnGatewayProps.builder()
        .type("type")

        // the properties below are optional
        .amazonSideAsn(123)
        .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 vpnGatewayProps = new VpnGatewayProps {
    Type = "type",

    // the properties below are optional
    AmazonSideAsn = 123
};
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"

vpnGatewayProps := &VpnGatewayProps{
	Type: jsii.String("type"),

	// the properties below are optional
	AmazonSideAsn: jsii.Number(123),
}

Properties ​

amazonSideAsnoptionalnumberamazon_side_asnoptionalint | floatamazonSideAsnoptionalNumberAmazonSideAsnoptionaldoubleAmazonSideAsnoptional*float64 = 65000 #
Explicitly specify an Asn or let aws pick an Asn for you.
typestringtypestrtypeStringTypestringType*string required #
Default type ipsec.1.