Interface IVpc
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IVpc : IResource
Syntax (vb)
Public Interface IVpc
Inherits IResource, 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
Constructs.IDependable
IsolatedSubnets
PrivateSubnets
PublicSubnets
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
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
AddGatewayEndpoint(String, IGatewayVpcEndpointOptions)
Adds a new gateway endpoint to this VPC.
GatewayVpcEndpoint AddGatewayEndpoint(string id, IGatewayVpcEndpointOptions options)
Parameters
- id System.String
- options IGatewayVpcEndpointOptions
Returns
AddInterfaceEndpoint(String, IInterfaceVpcEndpointOptions)
Adds a new interface endpoint to this VPC.
InterfaceVpcEndpoint AddInterfaceEndpoint(string id, IInterfaceVpcEndpointOptions options)
Parameters
- id System.String
- options IInterfaceVpcEndpointOptions
Returns
AddVpnConnection(String, IVpnConnectionOptions)
Adds a new VPN connection to this VPC.
VpnConnection AddVpnConnection(string id, IVpnConnectionOptions options)
Parameters
- id System.String
- options IVpnConnectionOptions
Returns
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
Remarks
Requires that at least one subnet is matched, throws a descriptive error message otherwise.