Class InterfaceVpcEndpointProps
Construction properties for an InterfaceVpcEndpoint.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InterfaceVpcEndpointProps : Object, IInterfaceVpcEndpointProps, IInterfaceVpcEndpointOptions
Syntax (vb)
Public Class InterfaceVpcEndpointProps
Inherits Object
Implements IInterfaceVpcEndpointProps, IInterfaceVpcEndpointOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
new InterfaceVpcEndpoint(this, "VPC Endpoint", new InterfaceVpcEndpointProps {
Vpc = vpc,
Service = new InterfaceVpcEndpointService("com.amazonaws.vpce.us-east-1.vpce-svc-uuddlrlrbastrtsvc", 443),
// Choose which availability zones to place the VPC endpoint in, based on
// available AZs
Subnets = new SubnetSelection {
AvailabilityZones = new [] { "us-east-1a", "us-east-1c" }
}
});
Synopsis
Constructors
InterfaceVpcEndpointProps() |
Properties
LookupSupportedAzs | Limit to only those availability zones where the endpoint service can be created. |
Open | Whether to automatically allow VPC traffic to the endpoint. |
PrivateDnsEnabled | Whether to associate a private hosted zone with the specified VPC. |
SecurityGroups | The security groups to associate with this interface VPC endpoint. |
Service | The service to use for this interface VPC endpoint. |
Subnets | The subnets in which to create an endpoint network interface. |
Vpc | The VPC network in which the interface endpoint will be used. |
Constructors
InterfaceVpcEndpointProps()
public InterfaceVpcEndpointProps()
Properties
LookupSupportedAzs
Limit to only those availability zones where the endpoint service can be created.
public Nullable<bool> LookupSupportedAzs { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Setting this to 'true' requires a lookup to be performed at synthesis time. Account and region must be set on the containing stack for this to work.
Default: false
Open
Whether to automatically allow VPC traffic to the endpoint.
public Nullable<bool> Open { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
If enabled, all traffic to the endpoint from within the VPC will be automatically allowed. This is done based on the VPC's CIDR range.
Default: true
PrivateDnsEnabled
Whether to associate a private hosted zone with the specified VPC.
public Nullable<bool> PrivateDnsEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
This allows you to make requests to the service using its default DNS hostname.
Default: set by the instance of IInterfaceVpcEndpointService, or true if not defined by the instance of IInterfaceVpcEndpointService
SecurityGroups
The security groups to associate with this interface VPC endpoint.
public ISecurityGroup[] SecurityGroups { get; set; }
Property Value
Remarks
Default: - a new security group is created
Service
The service to use for this interface VPC endpoint.
public IInterfaceVpcEndpointService Service { get; set; }
Property Value
Subnets
The subnets in which to create an endpoint network interface.
public ISubnetSelection Subnets { get; set; }
Property Value
Remarks
At most one per availability zone.
Default: - private subnets
Vpc
The VPC network in which the interface endpoint will be used.
public IVpc Vpc { get; set; }
Property Value