Interface IVpc
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IVpc : IResource, IConstruct, IDependable
Syntax (vb)
Public Interface IVpc
Inherits IResource, IConstruct, IConstruct, IDependable
Synopsis
Properties
Availability |
AZs for this VPC. |
Internet |
Dependable that can be depended upon to force internet connectivity established on the VPC. |
Isolated |
List of isolated subnets in this VPC. |
Private |
List of private subnets in this VPC. |
Public |
List of public subnets in this VPC. |
Vpc |
ARN for this VPC. |
Vpc |
CIDR range for this VPC. |
Vpc |
Identifier for this VPC. |
Vpn |
Identifier for the VPN gateway. |
Methods
Add |
Adds a new client VPN endpoint to this VPC. |
Add |
Adds a new Flow Log to this VPC. |
Add |
Adds a new gateway endpoint to this VPC. |
Add |
Adds a new interface endpoint to this VPC. |
Add |
Adds a new VPN connection to this VPC. |
Enable |
Adds a VPN Gateway to this VPC. |
Select |
Return information on the subnets appropriate for the given selection strategy. |
Properties
AvailabilityZones
AZs for this VPC.
string[] AvailabilityZones { get; }
Property Value
System.
InternetConnectivityEstablished
Dependable that can be depended upon to force internet connectivity established on the VPC.
IDependable InternetConnectivityEstablished { get; }
Property Value
IsolatedSubnets
PrivateSubnets
PublicSubnets
VpcArn
ARN for this VPC.
string VpcArn { get; }
Property Value
System.
Remarks
Attribute: true
VpcCidrBlock
CIDR range for this VPC.
string VpcCidrBlock { get; }
Property Value
System.
Remarks
Attribute: true
VpcId
Identifier for this VPC.
string VpcId { get; }
Property Value
System.
Remarks
Attribute: true
VpnGatewayId
Identifier for the VPN gateway.
virtual string VpnGatewayId { get; }
Property Value
System.
Methods
AddClientVpnEndpoint(String, IClientVpnEndpointOptions)
Adds a new client VPN endpoint to this VPC.
ClientVpnEndpoint AddClientVpnEndpoint(string id, IClientVpnEndpointOptions options)
Parameters
- id System.
String - options IClient
Vpn Endpoint Options
Returns
AddFlowLog(String, IFlowLogOptions)
Adds a new Flow Log to this VPC.
FlowLog AddFlowLog(string id, IFlowLogOptions options = null)
Parameters
- id System.
String - options IFlow
Log Options
Returns
AddGatewayEndpoint(String, IGatewayVpcEndpointOptions)
Adds a new gateway endpoint to this VPC.
GatewayVpcEndpoint AddGatewayEndpoint(string id, IGatewayVpcEndpointOptions options)
Parameters
- id System.
String - options IGateway
Vpc Endpoint Options
Returns
AddInterfaceEndpoint(String, IInterfaceVpcEndpointOptions)
Adds a new interface endpoint to this VPC.
InterfaceVpcEndpoint AddInterfaceEndpoint(string id, IInterfaceVpcEndpointOptions options)
Parameters
- id System.
String - options IInterface
Vpc Endpoint Options
Returns
AddVpnConnection(String, IVpnConnectionOptions)
Adds a new VPN connection to this VPC.
VpnConnection AddVpnConnection(string id, IVpnConnectionOptions options)
Parameters
- id System.
String - options IVpn
Connection Options
Returns
EnableVpnGateway(IEnableVpnGatewayOptions)
Adds a VPN Gateway to this VPC.
void EnableVpnGateway(IEnableVpnGatewayOptions options)
Parameters
- options IEnable
Vpn Gateway Options
SelectSubnets(ISubnetSelection)
Return information on the subnets appropriate for the given selection strategy.
ISelectedSubnets SelectSubnets(ISubnetSelection selection = null)
Parameters
- selection ISubnet
Selection
Returns
Remarks
Requires that at least one subnet is matched, throws a descriptive error message otherwise.