We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
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 in the User Guide.
Using getVpnConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpnConnection(args: GetVpnConnectionArgs, opts?: InvokeOptions): Promise<GetVpnConnectionResult>
function getVpnConnectionOutput(args: GetVpnConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpnConnectionResult>def get_vpn_connection(vpn_connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpnConnectionResult
def get_vpn_connection_output(vpn_connection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpnConnectionResult]func LookupVpnConnection(ctx *Context, args *LookupVpnConnectionArgs, opts ...InvokeOption) (*LookupVpnConnectionResult, error)
func LookupVpnConnectionOutput(ctx *Context, args *LookupVpnConnectionOutputArgs, opts ...InvokeOption) LookupVpnConnectionResultOutput> Note: This function is named LookupVpnConnection in the Go SDK.
public static class GetVpnConnection
{
public static Task<GetVpnConnectionResult> InvokeAsync(GetVpnConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetVpnConnectionResult> Invoke(GetVpnConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
public static Output<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ec2:getVpnConnection
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Connection stringId - The ID of the VPN connection.
- vpn
Connection StringId - The ID of the VPN connection.
- vpn
Connection stringId - The ID of the VPN connection.
- vpn_
connection_ strid - The ID of the VPN connection.
- vpn
Connection StringId - The ID of the VPN connection.
getVpnConnection Result
The following output properties are available:
- Customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
-
List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Tunnel List<Pulumi.Options Specifications Aws Native. Ec2. Outputs. Vpn Connection Vpn Tunnel Options Specification> - The tunnel options for the VPN connection.
- Customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
- Tag
- Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Connection stringId - The ID of the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - Vpn
Tunnel []VpnOptions Specifications Connection Vpn Tunnel Options Specification - The tunnel options for the VPN connection.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- List<Tag>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection StringId - The ID of the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Tunnel List<VpnOptions Specifications Connection Vpn Tunnel Options Specification> - The tunnel options for the VPN connection.
- customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
- Tag[]
- Any tags assigned to the VPN connection.
- transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection stringId - The ID of the VPN connection.
- vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Tunnel VpnOptions Specifications Connection Vpn Tunnel Options Specification[] - The tunnel options for the VPN connection.
- customer_
gateway_ strid - The ID of the customer gateway at your end of the VPN connection.
- Sequence[root_Tag]
- Any tags assigned to the VPN connection.
- transit_
gateway_ strid - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn_
connection_ strid - The ID of the VPN connection.
- vpn_
gateway_ strid - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn_
tunnel_ Sequence[Vpnoptions_ specifications Connection Vpn Tunnel Options Specification] - The tunnel options for the VPN connection.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- List<Property Map>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Connection StringId - The ID of the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayIdorVpnGatewayId, but not both. - vpn
Tunnel List<Property Map>Options Specifications - The tunnel options for the VPN connection.
Supporting Types
Tag
VpnConnectionCloudwatchLogOptionsSpecification
- Bgp
Log boolEnabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - Bgp
Log stringGroup Arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- Bgp
Log Pulumi.Output Format Aws Native. Ec2. Vpn Connection Cloudwatch Log Options Specification Bgp Log Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - Log
Enabled bool - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - Log
Group stringArn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- Log
Output Pulumi.Format Aws Native. Ec2. Vpn Connection Cloudwatch Log Options Specification Log Output Format - Set log format. Default format is
json. Valid values:json|text
- Bgp
Log boolEnabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - Bgp
Log stringGroup Arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- Bgp
Log VpnOutput Format Connection Cloudwatch Log Options Specification Bgp Log Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - Log
Enabled bool - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - Log
Group stringArn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- Log
Output VpnFormat Connection Cloudwatch Log Options Specification Log Output Format - Set log format. Default format is
json. Valid values:json|text
- bgp
Log BooleanEnabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - bgp
Log StringGroup Arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- bgp
Log VpnOutput Format Connection Cloudwatch Log Options Specification Bgp Log Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - log
Enabled Boolean - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - log
Group StringArn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- log
Output VpnFormat Connection Cloudwatch Log Options Specification Log Output Format - Set log format. Default format is
json. Valid values:json|text
- bgp
Log booleanEnabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - bgp
Log stringGroup Arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- bgp
Log VpnOutput Format Connection Cloudwatch Log Options Specification Bgp Log Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - log
Enabled boolean - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - log
Group stringArn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- log
Output VpnFormat Connection Cloudwatch Log Options Specification Log Output Format - Set log format. Default format is
json. Valid values:json|text
- bgp_
log_ boolenabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - bgp_
log_ strgroup_ arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- bgp_
log_ Vpnoutput_ format Connection Cloudwatch Log Options Specification Bgp Log Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - log_
enabled bool - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - log_
group_ strarn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- log_
output_ Vpnformat Connection Cloudwatch Log Options Specification Log Output Format - Set log format. Default format is
json. Valid values:json|text
- bgp
Log BooleanEnabled - Specifies whether to enable BGP logging for the VPN connection. Default value is
False. Valid values:True|False - bgp
Log StringGroup Arn - The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
- bgp
Log "json" | "text"Output Format - The desired output format for BGP logs to be sent to CloudWatch. Default format is
json. Valid values:json|text - log
Enabled Boolean - Enable or disable VPN tunnel logging feature. Default value is
False. Valid values:True|False - log
Group StringArn - The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
- log
Output "json" | "text"Format - Set log format. Default format is
json. Valid values:json|text
VpnConnectionCloudwatchLogOptionsSpecificationBgpLogOutputFormat
VpnConnectionCloudwatchLogOptionsSpecificationLogOutputFormat
VpnConnectionIkeVersionsRequestListValue
- Value
Vpn
Connection Ike Versions Request List Value Value - The IKE version.
- value
Vpn
Connection Ike Versions Request List Value Value - The IKE version.
- value
Vpn
Connection Ike Versions Request List Value Value - The IKE version.
- value
Vpn
Connection Ike Versions Request List Value Value - The IKE version.
- value "ikev1" | "ikev2"
- The IKE version.
VpnConnectionIkeVersionsRequestListValueValue
VpnConnectionPhase1EncryptionAlgorithmsRequestListValue
- Value
Pulumi.
Aws Native. Ec2. Vpn Connection Phase1Encryption Algorithms Request List Value Value - The value for the encryption algorithm.
- Value
Vpn
Connection Phase1Encryption Algorithms Request List Value Value - The value for the encryption algorithm.
- value
Vpn
Connection Phase1Encryption Algorithms Request List Value Value - The value for the encryption algorithm.
- value
Vpn
Connection Phase1Encryption Algorithms Request List Value Value - The value for the encryption algorithm.
- value
Vpn
Connection Phase1Encryption Algorithms Request List Value Value - The value for the encryption algorithm.
- value "AES128" | "AES256" | "AES128-GCM-16" | "AES256-GCM-16"
- The value for the encryption algorithm.
VpnConnectionPhase1EncryptionAlgorithmsRequestListValueValue
VpnConnectionPhase1IntegrityAlgorithmsRequestListValue
- Value
Pulumi.
Aws Native. Ec2. Vpn Connection Phase1Integrity Algorithms Request List Value Value - The value for the integrity algorithm.
- Value
Vpn
Connection Phase1Integrity Algorithms Request List Value Value - The value for the integrity algorithm.
- value
Vpn
Connection Phase1Integrity Algorithms Request List Value Value - The value for the integrity algorithm.
- value
Vpn
Connection Phase1Integrity Algorithms Request List Value Value - The value for the integrity algorithm.
- value
Vpn
Connection Phase1Integrity Algorithms Request List Value Value - The value for the integrity algorithm.
- value "SHA1" | "SHA2-256" | "SHA2-384" | "SHA2-512"
- The value for the integrity algorithm.
VpnConnectionPhase1IntegrityAlgorithmsRequestListValueValue
VpnConnectionPhase1dhGroupNumbersRequestListValue
- Value int
- The Diffie-Hellmann group number.
- Value int
- The Diffie-Hellmann group number.
- value Integer
- The Diffie-Hellmann group number.
- value number
- The Diffie-Hellmann group number.
- value int
- The Diffie-Hellmann group number.
- value Number
- The Diffie-Hellmann group number.
VpnConnectionPhase2EncryptionAlgorithmsRequestListValue
- Value
Pulumi.
Aws Native. Ec2. Vpn Connection Phase2Encryption Algorithms Request List Value Value - The encryption algorithm.
- Value
Vpn
Connection Phase2Encryption Algorithms Request List Value Value - The encryption algorithm.
- value
Vpn
Connection Phase2Encryption Algorithms Request List Value Value - The encryption algorithm.
- value
Vpn
Connection Phase2Encryption Algorithms Request List Value Value - The encryption algorithm.
- value
Vpn
Connection Phase2Encryption Algorithms Request List Value Value - The encryption algorithm.
- value "AES128" | "AES256" | "AES128-GCM-16" | "AES256-GCM-16"
- The encryption algorithm.
VpnConnectionPhase2EncryptionAlgorithmsRequestListValueValue
VpnConnectionPhase2IntegrityAlgorithmsRequestListValue
- Value
Pulumi.
Aws Native. Ec2. Vpn Connection Phase2Integrity Algorithms Request List Value Value - The integrity algorithm.
- Value
Vpn
Connection Phase2Integrity Algorithms Request List Value Value - The integrity algorithm.
- value
Vpn
Connection Phase2Integrity Algorithms Request List Value Value - The integrity algorithm.
- value
Vpn
Connection Phase2Integrity Algorithms Request List Value Value - The integrity algorithm.
- value
Vpn
Connection Phase2Integrity Algorithms Request List Value Value - The integrity algorithm.
- value "SHA1" | "SHA2-256" | "SHA2-384" | "SHA2-512"
- The integrity algorithm.
VpnConnectionPhase2IntegrityAlgorithmsRequestListValueValue
VpnConnectionPhase2dhGroupNumbersRequestListValue
- Value int
- The Diffie-Hellmann group number.
- Value int
- The Diffie-Hellmann group number.
- value Integer
- The Diffie-Hellmann group number.
- value number
- The Diffie-Hellmann group number.
- value int
- The Diffie-Hellmann group number.
- value Number
- The Diffie-Hellmann group number.
VpnConnectionVpnTunnelLogOptionsSpecification
- Cloudwatch
Log Pulumi.Options Aws Native. Ec2. Inputs. Vpn Connection Cloudwatch Log Options Specification - Options for sending VPN tunnel logs to CloudWatch.
- Cloudwatch
Log VpnOptions Connection Cloudwatch Log Options Specification - Options for sending VPN tunnel logs to CloudWatch.
- cloudwatch
Log VpnOptions Connection Cloudwatch Log Options Specification - Options for sending VPN tunnel logs to CloudWatch.
- cloudwatch
Log VpnOptions Connection Cloudwatch Log Options Specification - Options for sending VPN tunnel logs to CloudWatch.
- cloudwatch_
log_ Vpnoptions Connection Cloudwatch Log Options Specification - Options for sending VPN tunnel logs to CloudWatch.
- cloudwatch
Log Property MapOptions - Options for sending VPN tunnel logs to CloudWatch.
VpnConnectionVpnTunnelOptionsSpecification
- Dpd
Timeout Pulumi.Action Aws Native. Ec2. Vpn Connection Vpn Tunnel Options Specification Dpd Timeout Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - Dpd
Timeout intSeconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - Enable
Tunnel boolLifecycle Control - Turn on or off tunnel endpoint lifecycle control feature.
- Ike
Versions List<Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Ike Versions Request List Value> - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - Log
Options Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Vpn Tunnel Log Options Specification - Options for logging VPN tunnel activity.
- Phase1Encryption
Algorithms List<Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Phase1Encryption Algorithms Request List Value> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - Phase1Integrity
Algorithms List<Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Phase1Integrity Algorithms Request List Value> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - Phase1Lifetime
Seconds int - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - Phase1dh
Group List<Pulumi.Numbers Aws Native. Ec2. Inputs. Vpn Connection Phase1dh Group Numbers Request List Value> - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - Phase2Encryption
Algorithms List<Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Phase2Encryption Algorithms Request List Value> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - Phase2Integrity
Algorithms List<Pulumi.Aws Native. Ec2. Inputs. Vpn Connection Phase2Integrity Algorithms Request List Value> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - Phase2Lifetime
Seconds int - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - Phase2dh
Group List<Pulumi.Numbers Aws Native. Ec2. Inputs. Vpn Connection Phase2dh Group Numbers Request List Value> - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - string
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- Rekey
Fuzz intPercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - Rekey
Margin intTime Seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - Replay
Window intSize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - Startup
Action Pulumi.Aws Native. Ec2. Vpn Connection Vpn Tunnel Options Specification Startup Action - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - Tunnel
Inside stringCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- Tunnel
Inside stringIpv6Cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
- Dpd
Timeout VpnAction Connection Vpn Tunnel Options Specification Dpd Timeout Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - Dpd
Timeout intSeconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - Enable
Tunnel boolLifecycle Control - Turn on or off tunnel endpoint lifecycle control feature.
- Ike
Versions []VpnConnection Ike Versions Request List Value - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - Log
Options VpnConnection Vpn Tunnel Log Options Specification - Options for logging VPN tunnel activity.
- Phase1Encryption
Algorithms []VpnConnection Phase1Encryption Algorithms Request List Value - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - Phase1Integrity
Algorithms []VpnConnection Phase1Integrity Algorithms Request List Value - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - Phase1Lifetime
Seconds int - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - Phase1dh
Group []VpnNumbers Connection Phase1dh Group Numbers Request List Value - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - Phase2Encryption
Algorithms []VpnConnection Phase2Encryption Algorithms Request List Value - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - Phase2Integrity
Algorithms []VpnConnection Phase2Integrity Algorithms Request List Value - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - Phase2Lifetime
Seconds int - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - Phase2dh
Group []VpnNumbers Connection Phase2dh Group Numbers Request List Value - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - string
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- Rekey
Fuzz intPercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - Rekey
Margin intTime Seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - Replay
Window intSize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - Startup
Action VpnConnection Vpn Tunnel Options Specification Startup Action - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - Tunnel
Inside stringCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- Tunnel
Inside stringIpv6Cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
- dpd
Timeout VpnAction Connection Vpn Tunnel Options Specification Dpd Timeout Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - dpd
Timeout IntegerSeconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - enable
Tunnel BooleanLifecycle Control - Turn on or off tunnel endpoint lifecycle control feature.
- ike
Versions List<VpnConnection Ike Versions Request List Value> - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - log
Options VpnConnection Vpn Tunnel Log Options Specification - Options for logging VPN tunnel activity.
- phase1Encryption
Algorithms List<VpnConnection Phase1Encryption Algorithms Request List Value> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase1Integrity
Algorithms List<VpnConnection Phase1Integrity Algorithms Request List Value> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase1Lifetime
Seconds Integer - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - phase1dh
Group List<VpnNumbers Connection Phase1dh Group Numbers Request List Value> - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - phase2Encryption
Algorithms List<VpnConnection Phase2Encryption Algorithms Request List Value> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase2Integrity
Algorithms List<VpnConnection Phase2Integrity Algorithms Request List Value> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase2Lifetime
Seconds Integer - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - phase2dh
Group List<VpnNumbers Connection Phase2dh Group Numbers Request List Value> - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - String
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- rekey
Fuzz IntegerPercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - rekey
Margin IntegerTime Seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - replay
Window IntegerSize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - startup
Action VpnConnection Vpn Tunnel Options Specification Startup Action - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - tunnel
Inside StringCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- tunnel
Inside StringIpv6Cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
- dpd
Timeout VpnAction Connection Vpn Tunnel Options Specification Dpd Timeout Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - dpd
Timeout numberSeconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - enable
Tunnel booleanLifecycle Control - Turn on or off tunnel endpoint lifecycle control feature.
- ike
Versions VpnConnection Ike Versions Request List Value[] - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - log
Options VpnConnection Vpn Tunnel Log Options Specification - Options for logging VPN tunnel activity.
- phase1Encryption
Algorithms VpnConnection Phase1Encryption Algorithms Request List Value[] - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase1Integrity
Algorithms VpnConnection Phase1Integrity Algorithms Request List Value[] - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase1Lifetime
Seconds number - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - phase1dh
Group VpnNumbers Connection Phase1dh Group Numbers Request List Value[] - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - phase2Encryption
Algorithms VpnConnection Phase2Encryption Algorithms Request List Value[] - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase2Integrity
Algorithms VpnConnection Phase2Integrity Algorithms Request List Value[] - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase2Lifetime
Seconds number - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - phase2dh
Group VpnNumbers Connection Phase2dh Group Numbers Request List Value[] - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - string
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- rekey
Fuzz numberPercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - rekey
Margin numberTime Seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - replay
Window numberSize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - startup
Action VpnConnection Vpn Tunnel Options Specification Startup Action - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - tunnel
Inside stringCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- tunnel
Inside stringIpv6Cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
- dpd_
timeout_ Vpnaction Connection Vpn Tunnel Options Specification Dpd Timeout Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - dpd_
timeout_ intseconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - enable_
tunnel_ boollifecycle_ control - Turn on or off tunnel endpoint lifecycle control feature.
- ike_
versions Sequence[VpnConnection Ike Versions Request List Value] - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - log_
options VpnConnection Vpn Tunnel Log Options Specification - Options for logging VPN tunnel activity.
- phase1_
encryption_ Sequence[Vpnalgorithms Connection Phase1Encryption Algorithms Request List Value] - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase1_
integrity_ Sequence[Vpnalgorithms Connection Phase1Integrity Algorithms Request List Value] - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase1_
lifetime_ intseconds - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - phase1dh_
group_ Sequence[Vpnnumbers Connection Phase1dh Group Numbers Request List Value] - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - phase2_
encryption_ Sequence[Vpnalgorithms Connection Phase2Encryption Algorithms Request List Value] - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase2_
integrity_ Sequence[Vpnalgorithms Connection Phase2Integrity Algorithms Request List Value] - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase2_
lifetime_ intseconds - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - phase2dh_
group_ Sequence[Vpnnumbers Connection Phase2dh Group Numbers Request List Value] - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - str
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- rekey_
fuzz_ intpercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - rekey_
margin_ inttime_ seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - replay_
window_ intsize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - startup_
action VpnConnection Vpn Tunnel Options Specification Startup Action - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - tunnel_
inside_ strcidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- tunnel_
inside_ stripv6_ cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
- dpd
Timeout "clear" | "none" | "restart"Action - The action to take after DPD timeout occurs. Specify
restartto restart the IKE initiation. Specifyclearto end the IKE session. Valid Values:clear|none|restartDefault:clear - dpd
Timeout NumberSeconds - The number of seconds after which a DPD timeout occurs.
Constraints: A value greater than or equal to 30.
Default:
30 - enable
Tunnel BooleanLifecycle Control - Turn on or off tunnel endpoint lifecycle control feature.
- ike
Versions List<Property Map> - The IKE versions that are permitted for the VPN tunnel.
Valid values:
ikev1|ikev2 - log
Options Property Map - Options for logging VPN tunnel activity.
- phase1Encryption
Algorithms List<Property Map> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase1Integrity
Algorithms List<Property Map> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase1Lifetime
Seconds Number - The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default:
28800 - phase1dh
Group List<Property Map>Numbers - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values:
2|14|15|16|17|18|19|20|21|22|23|24 - phase2Encryption
Algorithms List<Property Map> - One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
AES128|AES256|AES128-GCM-16|AES256-GCM-16 - phase2Integrity
Algorithms List<Property Map> - One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
SHA1|SHA2-256|SHA2-384|SHA2-512 - phase2Lifetime
Seconds Number - The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds. Default:3600 - phase2dh
Group List<Property Map>Numbers - One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values:
2|5|14|15|16|17|18|19|20|21|22|23|24 - String
- The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
- rekey
Fuzz NumberPercentage - The percentage of the rekey window (determined by
RekeyMarginTimeSeconds) during which the rekey time is randomly selected. Constraints: A value between 0 and 100. Default:100 - rekey
Margin NumberTime Seconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage. Constraints: A value between 60 and half ofPhase2LifetimeSeconds. Default:270 - replay
Window NumberSize - The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default:
1024 - startup
Action "add" | "start" - The action to take when the establishing the tunnel for the VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify
startfor AWS to initiate the IKE negotiation. Valid Values:add|startDefault:add - tunnel
Inside StringCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the
169.254.0.0/16range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
- tunnel
Inside StringIpv6Cidr - The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local
fd00::/8range.
VpnConnectionVpnTunnelOptionsSpecificationDpdTimeoutAction
VpnConnectionVpnTunnelOptionsSpecificationStartupAction
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
