Connection
Create a Connection Resource
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);def Connection(resource_name, opts=None, customer_gateway_id=None, effect_immediately=None, ike_configs=None, ipsec_configs=None, local_subnets=None, name=None, remote_subnets=None, vpn_gateway_id=None, __props__=None);func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Connection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Connection resource accepts the following input properties:
- Customer
Gateway stringId The ID of the customer gateway.
- Local
Subnets List<string> The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- Remote
Subnets List<string> The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- Vpn
Gateway stringId The ID of the VPN gateway.
- Effect
Immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- Ike
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Connection Ike Config Args> The configurations of phase-one negotiation.
- Ipsec
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Connection Ipsec Config Args> The configurations of phase-two negotiation.
- Name string
The name of the IPsec connection.
- Customer
Gateway stringId The ID of the customer gateway.
- Local
Subnets []string The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- Remote
Subnets []string The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- Vpn
Gateway stringId The ID of the VPN gateway.
- Effect
Immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- Ike
Configs []ConnectionIke Config The configurations of phase-one negotiation.
- Ipsec
Configs []ConnectionIpsec Config The configurations of phase-two negotiation.
- Name string
The name of the IPsec connection.
- customer
Gateway stringId The ID of the customer gateway.
- local
Subnets string[] The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- remote
Subnets string[] The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- vpn
Gateway stringId The ID of the VPN gateway.
- effect
Immediately boolean Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- ike
Configs ConnectionIke Config[] The configurations of phase-one negotiation.
- ipsec
Configs ConnectionIpsec Config[] The configurations of phase-two negotiation.
- name string
The name of the IPsec connection.
- customer_
gateway_ strid The ID of the customer gateway.
- local_
subnets List[str] The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- remote_
subnets List[str] The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- vpn_
gateway_ strid The ID of the VPN gateway.
- effect_
immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- ike_
configs List[ConnectionIke Config] The configurations of phase-one negotiation.
- ipsec_
configs List[ConnectionIpsec Config] The configurations of phase-two negotiation.
- name str
The name of the IPsec connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
Look up an Existing Connection Resource
Get an existing Connection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectionState, opts?: CustomResourceOptions): Connectionstatic get(resource_name, id, opts=None, customer_gateway_id=None, effect_immediately=None, ike_configs=None, ipsec_configs=None, local_subnets=None, name=None, remote_subnets=None, status=None, vpn_gateway_id=None, __props__=None);func GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Customer
Gateway stringId The ID of the customer gateway.
- Effect
Immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- Ike
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Connection Ike Config Args> The configurations of phase-one negotiation.
- Ipsec
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Connection Ipsec Config Args> The configurations of phase-two negotiation.
- Local
Subnets List<string> The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- Name string
The name of the IPsec connection.
- Remote
Subnets List<string> The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- Status string
The status of VPN connection.
- Vpn
Gateway stringId The ID of the VPN gateway.
- Customer
Gateway stringId The ID of the customer gateway.
- Effect
Immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- Ike
Configs []ConnectionIke Config The configurations of phase-one negotiation.
- Ipsec
Configs []ConnectionIpsec Config The configurations of phase-two negotiation.
- Local
Subnets []string The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- Name string
The name of the IPsec connection.
- Remote
Subnets []string The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- Status string
The status of VPN connection.
- Vpn
Gateway stringId The ID of the VPN gateway.
- customer
Gateway stringId The ID of the customer gateway.
- effect
Immediately boolean Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- ike
Configs ConnectionIke Config[] The configurations of phase-one negotiation.
- ipsec
Configs ConnectionIpsec Config[] The configurations of phase-two negotiation.
- local
Subnets string[] The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- name string
The name of the IPsec connection.
- remote
Subnets string[] The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- status string
The status of VPN connection.
- vpn
Gateway stringId The ID of the VPN gateway.
- customer_
gateway_ strid The ID of the customer gateway.
- effect_
immediately bool Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
- ike_
configs List[ConnectionIke Config] The configurations of phase-one negotiation.
- ipsec_
configs List[ConnectionIpsec Config] The configurations of phase-two negotiation.
- local_
subnets List[str] The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
- name str
The name of the IPsec connection.
- remote_
subnets List[str] The CIDR block of the local data center. This parameter is used for phase-two negotiation.
- status str
The status of VPN connection.
- vpn_
gateway_ strid The ID of the VPN gateway.
Supporting Types
ConnectionIkeConfig
- Ike
Auth stringAlg The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- Ike
Enc stringAlg The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes
- Ike
Lifetime int The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.
- Ike
Local stringId The identification of the VPN gateway.
- Ike
Mode string The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main
- Ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2
- Ike
Remote stringId The identification of the customer gateway.
- Ike
Version string The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1
- Psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- Ike
Auth stringAlg The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- Ike
Enc stringAlg The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes
- Ike
Lifetime int The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.
- Ike
Local stringId The identification of the VPN gateway.
- Ike
Mode string The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main
- Ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2
- Ike
Remote stringId The identification of the customer gateway.
- Ike
Version string The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1
- Psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- ike
Auth stringAlg The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- ike
Enc stringAlg The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes
- ike
Lifetime number The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.
- ike
Local stringId The identification of the VPN gateway.
- ike
Mode string The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main
- ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2
- ike
Remote stringId The identification of the customer gateway.
- ike
Version string The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1
- psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- ike
Auth strAlg The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- ike
Enc strAlg The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes
- ike
Lifetime float The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.
- ike
Local strId The identification of the VPN gateway.
- ike
Mode str The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main
- ike
Pfs str The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2
- ike
Remote strId The identification of the customer gateway.
- ike
Version str The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1
- psk str
Used for authentication between the IPsec VPN gateway and the customer gateway.
ConnectionIpsecConfig
- Ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- Ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes
- Ipsec
Lifetime int The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.
- Ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2
- Ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- Ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes
- Ipsec
Lifetime int The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.
- Ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2
- ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes
- ipsec
Lifetime number The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.
- ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2
- ipsec
Auth strAlg The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1
- ipsec
Enc strAlg The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes
- ipsec
Lifetime float The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.
- ipsec
Pfs str The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.