Class Connection
Inherited Members
Namespace: Pulumi.AliCloud.Vpn
Assembly: Pulumi.AliCloud.dll
Syntax
public class Connection : CustomResource
Constructors
View SourceConnection(String, ConnectionArgs, CustomResourceOptions)
Create a Connection resource with the given unique name, arguments, and options.
Declaration
public Connection(string name, ConnectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ConnectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCustomerGatewayId
The ID of the customer gateway.
Declaration
public Output<string> CustomerGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EffectImmediately
Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.
Declaration
public Output<bool?> EffectImmediately { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
IkeConfigs
The configurations of phase-one negotiation.
Declaration
public Output<ImmutableArray<ConnectionIkeConfig>> IkeConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ConnectionIkeConfig>> |
IpsecConfigs
The configurations of phase-two negotiation.
Declaration
public Output<ImmutableArray<ConnectionIpsecConfig>> IpsecConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ConnectionIpsecConfig>> |
LocalSubnets
The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
Declaration
public Output<ImmutableArray<string>> LocalSubnets { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name of the IPsec connection.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RemoteSubnets
The CIDR block of the local data center. This parameter is used for phase-two negotiation.
Declaration
public Output<ImmutableArray<string>> RemoteSubnets { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Status
The status of VPN connection.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpnGatewayId
The ID of the VPN gateway.
Declaration
public Output<string> VpnGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ConnectionState, CustomResourceOptions)
Get an existing Connection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Connection Get(string name, Input<string> id, ConnectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ConnectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Connection |