Class VpcEndpointService

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.VpcEndpointService
All Implemented Interfaces:
IResource, IVpcEndpointService, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.150Z") @Stability(Stable) public class VpcEndpointService extends Resource implements IVpcEndpointService
A VPC endpoint service.

Example:

 NetworkLoadBalancer networkLoadBalancer1;
 NetworkLoadBalancer networkLoadBalancer2;
 VpcEndpointService.Builder.create(this, "EndpointService")
         .vpcEndpointServiceLoadBalancers(List.of(networkLoadBalancer1, networkLoadBalancer2))
         .acceptanceRequired(true)
         .allowedPrincipals(List.of(new ArnPrincipal("arn:aws:iam::123456789012:root")))
         .contributorInsights(true)
         .build();
 
  • Constructor Details

    • VpcEndpointService

      protected VpcEndpointService(software.amazon.jsii.JsiiObjectRef objRef)
    • VpcEndpointService

      protected VpcEndpointService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • VpcEndpointService

      @Stability(Stable) public VpcEndpointService(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcEndpointServiceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • getAcceptanceRequired

      @Stability(Stable) @NotNull public Boolean getAcceptanceRequired()
      Whether to require manual acceptance of new connections to the service.
    • getAllowedPrincipals

      @Stability(Stable) @NotNull public List<ArnPrincipal> getAllowedPrincipals()
      One or more Principal ARNs to allow inbound connections to.
    • getVpcEndpointServiceId

      @Stability(Stable) @NotNull public String getVpcEndpointServiceId()
      The id of the VPC Endpoint Service, like vpce-svc-xxxxxxxxxxxxxxxx.
      Specified by:
      getVpcEndpointServiceId in interface IVpcEndpointService
    • getVpcEndpointServiceLoadBalancers

      @Stability(Stable) @NotNull public List<IVpcEndpointServiceLoadBalancer> getVpcEndpointServiceLoadBalancers()
      One or more network load balancers to host the service.
    • getVpcEndpointServiceName

      @Stability(Stable) @NotNull public String getVpcEndpointServiceName()
      The service name of the VPC Endpoint Service that clients use to connect to, like com.amazonaws.vpce..vpce-svc-xxxxxxxxxxxxxxxx.
      Specified by:
      getVpcEndpointServiceName in interface IVpcEndpointService
    • getContributorInsightsEnabled

      @Stability(Stable) @Nullable public Boolean getContributorInsightsEnabled()
      Whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.