AWS Native is in preview. AWS Classic is fully supported.
aws-native.ec2.VpnConnection
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::EC2::VPNConnection
Create VpnConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnConnection(name: string, args: VpnConnectionArgs, opts?: CustomResourceOptions);
@overload
def VpnConnection(resource_name: str,
args: VpnConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
customer_gateway_id: Optional[str] = None,
type: Optional[str] = None,
static_routes_only: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
transit_gateway_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
vpn_tunnel_options_specifications: Optional[Sequence[VpnConnectionVpnTunnelOptionsSpecificationArgs]] = None)
func NewVpnConnection(ctx *Context, name string, args VpnConnectionArgs, opts ...ResourceOption) (*VpnConnection, error)
public VpnConnection(string name, VpnConnectionArgs args, CustomResourceOptions? opts = null)
public VpnConnection(String name, VpnConnectionArgs args)
public VpnConnection(String name, VpnConnectionArgs args, CustomResourceOptions options)
type: aws-native:ec2:VpnConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpnConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VpnConnection resource accepts the following input properties:
- Customer
Gateway stringId - The ID of the customer gateway at your end of the VPN connection.
- Type string
- The type of VPN connection.
- Static
Routes boolOnly - Indicates whether the VPN connection uses static routes only.
- List<Pulumi.
Aws Native. Inputs. Tag> - Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
- Vpn
Tunnel List<Pulumi.Options Specifications Aws Native. Ec2. Inputs. 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.
- Type string
- The type of VPN connection.
- Static
Routes boolOnly - Indicates whether the VPN connection uses static routes only.
- Tag
Args - Any tags assigned to the VPN connection.
- Transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
- Vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
- Vpn
Tunnel []VpnOptions Specifications Connection Vpn Tunnel Options Specification Args - The tunnel options for the VPN connection.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- type String
- The type of VPN connection.
- static
Routes BooleanOnly - Indicates whether the VPN connection uses static routes only.
- List<Tag>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
- 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.
- type string
- The type of VPN connection.
- static
Routes booleanOnly - Indicates whether the VPN connection uses static routes only.
- Tag[]
- Any tags assigned to the VPN connection.
- transit
Gateway stringId - The ID of the transit gateway associated with the VPN connection.
- vpn
Gateway stringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
- 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.
- type str
- The type of VPN connection.
- static_
routes_ boolonly - Indicates whether the VPN connection uses static routes only.
- Sequence[Tag
Args] - Any tags assigned to the VPN connection.
- transit_
gateway_ strid - The ID of the transit gateway associated with the VPN connection.
- vpn_
gateway_ strid - The ID of the virtual private gateway at the AWS side of the VPN connection.
- vpn_
tunnel_ Sequence[Vpnoptions_ specifications Connection Vpn Tunnel Options Specification Args] - The tunnel options for the VPN connection.
- customer
Gateway StringId - The ID of the customer gateway at your end of the VPN connection.
- type String
- The type of VPN connection.
- static
Routes BooleanOnly - Indicates whether the VPN connection uses static routes only.
- List<Property Map>
- Any tags assigned to the VPN connection.
- transit
Gateway StringId - The ID of the transit gateway associated with the VPN connection.
- vpn
Gateway StringId - The ID of the virtual private gateway at the AWS side of the VPN connection.
- vpn
Tunnel List<Property Map>Options Specifications - The tunnel options for the VPN connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpn
Connection stringId - The provider-assigned unique ID for this managed resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpn
Connection stringId - The provider-assigned unique ID for this managed resource
- id String
- The provider-assigned unique ID for this managed resource.
- vpn
Connection StringId - The provider-assigned unique ID for this managed resource
- id string
- The provider-assigned unique ID for this managed resource.
- vpn
Connection stringId - The provider-assigned unique ID for this managed resource
- id str
- The provider-assigned unique ID for this managed resource.
- vpn_
connection_ strid - The provider-assigned unique ID for this managed resource
- id String
- The provider-assigned unique ID for this managed resource.
- vpn
Connection StringId - The provider-assigned unique ID for this managed resource
Supporting Types
Tag, TagArgs
VpnConnectionVpnTunnelOptionsSpecification, VpnConnectionVpnTunnelOptionsSpecificationArgs
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
- 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).
- 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/16
range. The following CIDR blocks are reserved and cannot be used:169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.