Show / Hide Table of Contents

Interface IVpc

Inherited Members
IResource.ApplyRemovalPolicy(RemovalPolicy)
IResource.Env
IResource.Stack
IConstruct.Node
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IVpc : IResource, IConstruct, IConstruct, IDependable
Syntax (vb)
Public Interface IVpc
    Inherits IResource, IConstruct, IConstruct, IDependable

Synopsis

Properties

AvailabilityZones

AZs for this VPC.

InternetConnectivityEstablished

Dependable that can be depended upon to force internet connectivity established on the VPC.

IsolatedSubnets

List of isolated subnets in this VPC.

PrivateSubnets

List of private subnets in this VPC.

PublicSubnets

List of public subnets in this VPC.

VpcArn

ARN for this VPC.

VpcCidrBlock

CIDR range for this VPC.

VpcId

Identifier for this VPC.

VpnGatewayId

Identifier for the VPN gateway.

Methods

AddClientVpnEndpoint(String, IClientVpnEndpointOptions)

Adds a new client VPN endpoint to this VPC.

AddFlowLog(String, IFlowLogOptions)

Adds a new Flow Log to this VPC.

AddGatewayEndpoint(String, IGatewayVpcEndpointOptions)

Adds a new gateway endpoint to this VPC.

AddInterfaceEndpoint(String, IInterfaceVpcEndpointOptions)

Adds a new interface endpoint to this VPC.

AddVpnConnection(String, IVpnConnectionOptions)

Adds a new VPN connection to this VPC.

EnableVpnGateway(IEnableVpnGatewayOptions)

Adds a VPN Gateway to this VPC.

SelectSubnets(ISubnetSelection)

Return information on the subnets appropriate for the given selection strategy.

Properties

AvailabilityZones

AZs for this VPC.

string[] AvailabilityZones { get; }
Property Value

System.String[]

InternetConnectivityEstablished

Dependable that can be depended upon to force internet connectivity established on the VPC.

IDependable InternetConnectivityEstablished { get; }
Property Value

IDependable

IsolatedSubnets

List of isolated subnets in this VPC.

ISubnet[] IsolatedSubnets { get; }
Property Value

ISubnet[]

PrivateSubnets

List of private subnets in this VPC.

ISubnet[] PrivateSubnets { get; }
Property Value

ISubnet[]

PublicSubnets

List of public subnets in this VPC.

ISubnet[] PublicSubnets { get; }
Property Value

ISubnet[]

VpcArn

ARN for this VPC.

string VpcArn { get; }
Property Value

System.String

Remarks

Attribute: true

VpcCidrBlock

CIDR range for this VPC.

string VpcCidrBlock { get; }
Property Value

System.String

Remarks

Attribute: true

VpcId

Identifier for this VPC.

string VpcId { get; }
Property Value

System.String

Remarks

Attribute: true

VpnGatewayId

Identifier for the VPN gateway.

virtual string VpnGatewayId { get; }
Property Value

System.String

Methods

AddClientVpnEndpoint(String, IClientVpnEndpointOptions)

Adds a new client VPN endpoint to this VPC.

ClientVpnEndpoint AddClientVpnEndpoint(string id, IClientVpnEndpointOptions options)
Parameters
id System.String
options IClientVpnEndpointOptions
Returns

ClientVpnEndpoint

AddFlowLog(String, IFlowLogOptions)

Adds a new Flow Log to this VPC.

FlowLog AddFlowLog(string id, IFlowLogOptions options = null)
Parameters
id System.String
options IFlowLogOptions
Returns

FlowLog

AddGatewayEndpoint(String, IGatewayVpcEndpointOptions)

Adds a new gateway endpoint to this VPC.

GatewayVpcEndpoint AddGatewayEndpoint(string id, IGatewayVpcEndpointOptions options)
Parameters
id System.String
options IGatewayVpcEndpointOptions
Returns

GatewayVpcEndpoint

AddInterfaceEndpoint(String, IInterfaceVpcEndpointOptions)

Adds a new interface endpoint to this VPC.

InterfaceVpcEndpoint AddInterfaceEndpoint(string id, IInterfaceVpcEndpointOptions options)
Parameters
id System.String
options IInterfaceVpcEndpointOptions
Returns

InterfaceVpcEndpoint

AddVpnConnection(String, IVpnConnectionOptions)

Adds a new VPN connection to this VPC.

VpnConnection AddVpnConnection(string id, IVpnConnectionOptions options)
Parameters
id System.String
options IVpnConnectionOptions
Returns

VpnConnection

EnableVpnGateway(IEnableVpnGatewayOptions)

Adds a VPN Gateway to this VPC.

void EnableVpnGateway(IEnableVpnGatewayOptions options)
Parameters
options IEnableVpnGatewayOptions

SelectSubnets(ISubnetSelection)

Return information on the subnets appropriate for the given selection strategy.

ISelectedSubnets SelectSubnets(ISubnetSelection selection = null)
Parameters
selection ISubnetSelection
Returns

ISelectedSubnets

Remarks

Requires that at least one subnet is matched, throws a descriptive error message otherwise.

Back to top Generated by DocFX