Class: Aws::EC2::Types::CreateVpnConnectionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateVpnConnectionRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass CreateVpnConnectionRequest data as a hash:
{
customer_gateway_id: "String", # required
type: "String", # required
vpn_gateway_id: "String",
transit_gateway_id: "String",
dry_run: false,
options: {
static_routes_only: false,
tunnel_options: [
{
tunnel_inside_cidr: "String",
pre_shared_key: "String",
},
],
},
}
Contains the parameters for CreateVpnConnection.
Instance Attribute Summary collapse
-
#customer_gateway_id ⇒ String
The ID of the customer gateway.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#options ⇒ Types::VpnConnectionOptionsSpecification
The options for the VPN connection.
-
#transit_gateway_id ⇒ String
The ID of the transit gateway.
-
#type ⇒ String
The type of VPN connection (‘ipsec.1`).
-
#vpn_gateway_id ⇒ String
The ID of the virtual private gateway.
Instance Attribute Details
#customer_gateway_id ⇒ String
The ID of the customer gateway.
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ‘DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |
#options ⇒ Types::VpnConnectionOptionsSpecification
The options for the VPN connection.
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |
#transit_gateway_id ⇒ String
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |
#type ⇒ String
The type of VPN connection (‘ipsec.1`).
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |
#vpn_gateway_id ⇒ String
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/aws-sdk-ec2/types.rb', line 7394 class CreateVpnConnectionRequest < Struct.new( :customer_gateway_id, :type, :vpn_gateway_id, :transit_gateway_id, :dry_run, :options) include Aws::Structure end |