class CfnVPNConnectionPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnVPNConnectionPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnVPNConnectionPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnVPNConnectionPropsMixin |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnVPNConnectionPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnVPNConnectionPropsMixin |
Implements
IMixin
Extends
Mixin
Specifies a VPN connection between a virtual private gateway and a VPN customer gateway or a transit gateway and a VPN customer gateway.
To specify a VPN connection between a transit gateway and customer gateway, use the TransitGatewayId and CustomerGatewayId properties.
To specify a VPN connection between a virtual private gateway and customer gateway, use the VpnGatewayId and CustomerGatewayId properties.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const cfnVPNConnectionPropsMixin = new ec2_mixins.CfnVPNConnectionPropsMixin({
customerGatewayId: 'customerGatewayId',
enableAcceleration: false,
localIpv4NetworkCidr: 'localIpv4NetworkCidr',
localIpv6NetworkCidr: 'localIpv6NetworkCidr',
outsideIpAddressType: 'outsideIpAddressType',
preSharedKeyStorage: 'preSharedKeyStorage',
remoteIpv4NetworkCidr: 'remoteIpv4NetworkCidr',
remoteIpv6NetworkCidr: 'remoteIpv6NetworkCidr',
staticRoutesOnly: false,
tags: [{
key: 'key',
value: 'value',
}],
transitGatewayId: 'transitGatewayId',
transportTransitGatewayAttachmentId: 'transportTransitGatewayAttachmentId',
tunnelBandwidth: 'tunnelBandwidth',
tunnelInsideIpVersion: 'tunnelInsideIpVersion',
type: 'type',
vpnConcentratorId: 'vpnConcentratorId',
vpnGatewayId: 'vpnGatewayId',
vpnTunnelOptionsSpecifications: [{
dpdTimeoutAction: 'dpdTimeoutAction',
dpdTimeoutSeconds: 123,
enableTunnelLifecycleControl: false,
ikeVersions: [{
value: 'value',
}],
logOptions: {
cloudwatchLogOptions: {
bgpLogEnabled: false,
bgpLogGroupArn: 'bgpLogGroupArn',
bgpLogOutputFormat: 'bgpLogOutputFormat',
logEnabled: false,
logGroupArn: 'logGroupArn',
logOutputFormat: 'logOutputFormat',
},
},
phase1DhGroupNumbers: [{
value: 123,
}],
phase1EncryptionAlgorithms: [{
value: 'value',
}],
phase1IntegrityAlgorithms: [{
value: 'value',
}],
phase1LifetimeSeconds: 123,
phase2DhGroupNumbers: [{
value: 123,
}],
phase2EncryptionAlgorithms: [{
value: 'value',
}],
phase2IntegrityAlgorithms: [{
value: 'value',
}],
phase2LifetimeSeconds: 123,
preSharedKey: 'preSharedKey',
rekeyFuzzPercentage: 123,
rekeyMarginTimeSeconds: 123,
replayWindowSize: 123,
startupAction: 'startupAction',
tunnelInsideCidr: 'tunnelInsideCidr',
tunnelInsideIpv6Cidr: 'tunnelInsideIpv6Cidr',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnVPNConnectionPropsMixin(props: CfnVPNConnectionMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.VPNConnection Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::EC2::VPNConnection.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript