Skip to content
v2.273.0

VpnConnectionAttributes Struct ​

Attributes of an imported VpnConnection.

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',
};

Properties ​

customerGatewayAsnnumbercustomer_gateway_asnint | floatcustomerGatewayAsnNumberCustomerGatewayAsndoubleCustomerGatewayAsn*float64required#
The ASN of the customer gateway.
customerGatewayIdstringcustomer_gateway_idstrcustomerGatewayIdStringCustomerGatewayIdstringCustomerGatewayId*stringrequired#
The id of the customer gateway.
customerGatewayIpstringcustomer_gateway_ipstrcustomerGatewayIpStringCustomerGatewayIpstringCustomerGatewayIp*stringrequired#
The ip address of the customer gateway.
vpnIdstringvpn_idstrvpnIdStringVpnIdstringVpnId*stringrequired#
The id of the VPN connection.