VpnConnectionAttributes Struct
Attributes of an imported VpnConnection.
| Source | aws-ec2/lib/vpn.ts |
|---|---|
| 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 vpnConnectionAttributes: ec2.VpnConnectionAttributes = {
customerGatewayAsn: 123,
customerGatewayId: 'customerGatewayId',
customerGatewayIp: 'customerGatewayIp',
vpnId: 'vpnId',
};
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_connection_attributes = ec2.VpnConnectionAttributes(
customer_gateway_asn=123,
customer_gateway_id="customerGatewayId",
customer_gateway_ip="customerGatewayIp",
vpn_id="vpnId"
)
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.*;
VpnConnectionAttributes vpnConnectionAttributes = VpnConnectionAttributes.builder()
.customerGatewayAsn(123)
.customerGatewayId("customerGatewayId")
.customerGatewayIp("customerGatewayIp")
.vpnId("vpnId")
.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 vpnConnectionAttributes = new VpnConnectionAttributes {
CustomerGatewayAsn = 123,
CustomerGatewayId = "customerGatewayId",
CustomerGatewayIp = "customerGatewayIp",
VpnId = "vpnId"
};
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"
vpnConnectionAttributes := &VpnConnectionAttributes{
CustomerGatewayAsn: jsii.Number(123),
CustomerGatewayId: jsii.String("customerGatewayId"),
CustomerGatewayIp: jsii.String("customerGatewayIp"),
VpnId: jsii.String("vpnId"),
}
Properties
customerGatewayAsnnumbercustomer_gateway_asnint | floatcustomerGatewayAsnNumberCustomerGatewayAsndoubleCustomerGatewayAsn*float64 required #The ASN of the customer gateway.
customerGatewayIdstringcustomer_gateway_idstrcustomerGatewayIdStringCustomerGatewayIdstringCustomerGatewayId*string required #The id of the customer gateway.
customerGatewayIpstringcustomer_gateway_ipstrcustomerGatewayIpStringCustomerGatewayIpstringCustomerGatewayIp*string required #The ip address of the customer gateway.
The id of the VPN connection.