public static final class InterfaceVpcEndpointOptions.Builder
extends java.lang.Object
InterfaceVpcEndpointOptions
Constructor and Description |
---|
Builder() |
public InterfaceVpcEndpointOptions.Builder service(IInterfaceVpcEndpointService service)
InterfaceVpcEndpointOptions.getService()
service
- The service to use for this interface VPC endpoint. This parameter is required.this
public InterfaceVpcEndpointOptions.Builder lookupSupportedAzs(java.lang.Boolean lookupSupportedAzs)
InterfaceVpcEndpointOptions.getLookupSupportedAzs()
lookupSupportedAzs
- Limit to only those availability zones where the endpoint service can be created.
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.this
public InterfaceVpcEndpointOptions.Builder open(java.lang.Boolean open)
InterfaceVpcEndpointOptions.getOpen()
open
- Whether to automatically allow VPC traffic to the endpoint.
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.this
public InterfaceVpcEndpointOptions.Builder privateDnsEnabled(java.lang.Boolean privateDnsEnabled)
InterfaceVpcEndpointOptions.getPrivateDnsEnabled()
privateDnsEnabled
- Whether to associate a private hosted zone with the specified VPC.
This
allows you to make requests to the service using its default DNS hostname.this
public InterfaceVpcEndpointOptions.Builder securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
InterfaceVpcEndpointOptions.getSecurityGroups()
securityGroups
- The security groups to associate with this interface VPC endpoint.this
public InterfaceVpcEndpointOptions.Builder subnets(SubnetSelection subnets)
InterfaceVpcEndpointOptions.getSubnets()
subnets
- The subnets in which to create an endpoint network interface.
At most one
per availability zone.this
public InterfaceVpcEndpointOptions build()
InterfaceVpcEndpointOptions
java.lang.NullPointerException
- if any required attribute was not provided