Class NetworkAssociation
Provides network associations for AWS Client VPN endpoints. For more information on usage, please see the AWS Client VPN Administrator's Guide.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2ClientVpn.NetworkAssociation("example", new Aws.Ec2ClientVpn.NetworkAssociationArgs
{
ClientVpnEndpointId = aws_ec2_client_vpn_endpoint.Example.Id,
SubnetId = aws_subnet.Example.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2ClientVpn
Assembly: Pulumi.Aws.dll
Syntax
public class NetworkAssociation : CustomResource
Constructors
View SourceNetworkAssociation(String, NetworkAssociationArgs, CustomResourceOptions)
Create a NetworkAssociation resource with the given unique name, arguments, and options.
Declaration
public NetworkAssociation(string name, NetworkAssociationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NetworkAssociationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceClientVpnEndpointId
The ID of the Client VPN endpoint.
Declaration
public Output<string> ClientVpnEndpointId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecurityGroups
The IDs of the security groups applied to the target network association.
Declaration
public Output<ImmutableArray<string>> SecurityGroups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Status
The current state of the target network association.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
The ID of the subnet to associate with the Client VPN endpoint.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcId
The ID of the VPC in which the target network (subnet) is located.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NetworkAssociationState, CustomResourceOptions)
Get an existing NetworkAssociation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NetworkAssociation Get(string name, Input<string> id, NetworkAssociationState 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. |
| NetworkAssociationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NetworkAssociation |