@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:06.612Z") @Stability(value=Experimental) public interface InterfaceVpcEndpointOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
InterfaceVpcEndpointService interfaceVpcEndpointService;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
InterfaceVpcEndpointOptions interfaceVpcEndpointOptions = InterfaceVpcEndpointOptions.builder()
.service(interfaceVpcEndpointService)
// the properties below are optional
.lookupSupportedAzs(false)
.open(false)
.privateDnsEnabled(false)
.securityGroups(List.of(securityGroup))
.subnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
InterfaceVpcEndpointOptions.Builder
A builder for
InterfaceVpcEndpointOptions |
static class |
InterfaceVpcEndpointOptions.Jsii$Proxy
An implementation for
InterfaceVpcEndpointOptions |
| Modifier and Type | Method and Description |
|---|---|
static InterfaceVpcEndpointOptions.Builder |
builder() |
default Boolean |
getLookupSupportedAzs()
(experimental) Limit to only those availability zones where the endpoint service can be created.
|
default Boolean |
getOpen()
(experimental) Whether to automatically allow VPC traffic to the endpoint.
|
default Boolean |
getPrivateDnsEnabled()
(experimental) Whether to associate a private hosted zone with the specified VPC.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) The security groups to associate with this interface VPC endpoint.
|
IInterfaceVpcEndpointService |
getService()
(experimental) The service to use for this interface VPC endpoint.
|
default SubnetSelection |
getSubnets()
(experimental) The subnets in which to create an endpoint network interface.
|
@Stability(value=Experimental) @NotNull IInterfaceVpcEndpointService getService()
@Stability(value=Experimental) @Nullable default Boolean getLookupSupportedAzs()
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
@Stability(value=Experimental) @Nullable default Boolean getOpen()
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
@Stability(value=Experimental) @Nullable default Boolean getPrivateDnsEnabled()
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
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - a new security group is created
@Stability(value=Experimental) @Nullable default SubnetSelection getSubnets()
At most one per availability zone.
Default: - private subnets
@Stability(value=Experimental) static InterfaceVpcEndpointOptions.Builder builder()
Copyright © 2022. All rights reserved.