Class VpcEndpointService.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpcEndpointService.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcEndpointService>
- Enclosing class:
- VpcEndpointService
@Stability(Stable)
public static final class VpcEndpointService.Builder
extends Object
implements software.amazon.jsii.Builder<VpcEndpointService>
A fluent builder for
VpcEndpointService
.-
Method Summary
Modifier and TypeMethodDescriptionacceptanceRequired
(Boolean acceptanceRequired) Whether requests from service consumers to connect to the service through an endpoint must be accepted.allowedPrincipals
(List<? extends ArnPrincipal> allowedPrincipals) IAM users, IAM roles, or AWS accounts to allow inbound connections from.build()
static VpcEndpointService.Builder
vpcEndpointServiceLoadBalancers
(List<? extends IVpcEndpointServiceLoadBalancer> vpcEndpointServiceLoadBalancers) One or more load balancers to host the VPC Endpoint Service.vpcEndpointServiceName
(String vpcEndpointServiceName) Deprecated.This property is not usedwhitelistedPrincipals
(List<? extends ArnPrincipal> whitelistedPrincipals) Deprecated.useallowedPrincipals
-
Method Details
-
create
@Stability(Stable) public static VpcEndpointService.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VpcEndpointService.Builder
.
-
vpcEndpointServiceLoadBalancers
@Stability(Stable) public VpcEndpointService.Builder vpcEndpointServiceLoadBalancers(List<? extends IVpcEndpointServiceLoadBalancer> vpcEndpointServiceLoadBalancers) One or more load balancers to host the VPC Endpoint Service.- Parameters:
vpcEndpointServiceLoadBalancers
- One or more load balancers to host the VPC Endpoint Service. This parameter is required.- Returns:
this
-
acceptanceRequired
Whether requests from service consumers to connect to the service through an endpoint must be accepted.Default: true
- Parameters:
acceptanceRequired
- Whether requests from service consumers to connect to the service through an endpoint must be accepted. This parameter is required.- Returns:
this
-
allowedPrincipals
@Stability(Stable) public VpcEndpointService.Builder allowedPrincipals(List<? extends ArnPrincipal> allowedPrincipals) IAM users, IAM roles, or AWS accounts to allow inbound connections from.These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal.
Default: - no principals
- Parameters:
allowedPrincipals
- IAM users, IAM roles, or AWS accounts to allow inbound connections from. This parameter is required.- Returns:
this
-
vpcEndpointServiceName
@Stability(Deprecated) @Deprecated public VpcEndpointService.Builder vpcEndpointServiceName(String vpcEndpointServiceName) Deprecated.This property is not used(deprecated) Name of the Vpc Endpoint Service.Default: - CDK generated name
- Parameters:
vpcEndpointServiceName
- Name of the Vpc Endpoint Service. This parameter is required.- Returns:
this
-
whitelistedPrincipals
@Stability(Deprecated) @Deprecated public VpcEndpointService.Builder whitelistedPrincipals(List<? extends ArnPrincipal> whitelistedPrincipals) Deprecated.useallowedPrincipals
(deprecated) IAM users, IAM roles, or AWS accounts to allow inbound connections from.These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal.
Default: - no principals
- Parameters:
whitelistedPrincipals
- IAM users, IAM roles, or AWS accounts to allow inbound connections from. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcEndpointService>
- Returns:
- a newly built instance of
VpcEndpointService
.
-