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 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

      @Stability(Stable) public VpcEndpointService.Builder acceptanceRequired(Boolean 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
    • contributorInsights

      @Stability(Stable) public VpcEndpointService.Builder contributorInsights(Boolean contributorInsights)
      Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.

      Default: false

      Parameters:
      contributorInsights - Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public VpcEndpointService build()
      Specified by:
      build in interface software.amazon.jsii.Builder<VpcEndpointService>
      Returns:
      a newly built instance of VpcEndpointService.