Class CfnVPCEndpointPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCEndpointPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:58.745Z") @Stability(Stable) public class CfnVPCEndpointPropsMixin extends Mixin implements software.constructs.IMixin
Specifies a VPC endpoint.

A VPC endpoint provides a private connection between your VPC and an endpoint service. You can use an endpoint service provided by AWS , an AWS Marketplace Partner, or another AWS accounts in your organization. For more information, see the AWS PrivateLink User Guide .

An endpoint of type Interface establishes connections between the subnets in your VPC and an AWS service , your own service, or a service hosted by another AWS account . With an interface VPC endpoint, you specify the subnets in which to create the endpoint and the security groups to associate with the endpoint network interfaces.

An endpoint of type gateway serves as a target for a route in your route table for traffic destined for Amazon S3 or DynamoDB . You can specify an endpoint policy for the endpoint, which controls access to the service from your VPC. You can also specify the VPC route tables that use the endpoint. For more information about connectivity to Amazon S3 , see Why can't I connect to an S3 bucket using a gateway VPC endpoint?

An endpoint of type GatewayLoadBalancer provides private connectivity between your VPC and virtual appliances from a service provider.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 Object policyDocument;
 CfnVPCEndpointPropsMixin cfnVPCEndpointPropsMixin = CfnVPCEndpointPropsMixin.Builder.create(CfnVPCEndpointMixinProps.builder()
         .dnsOptions(DnsOptionsSpecificationProperty.builder()
                 .dnsRecordIpType("dnsRecordIpType")
                 .privateDnsOnlyForInboundResolverEndpoint("privateDnsOnlyForInboundResolverEndpoint")
                 .privateDnsPreference("privateDnsPreference")
                 .privateDnsSpecifiedDomains(List.of("privateDnsSpecifiedDomains"))
                 .build())
         .ipAddressType("ipAddressType")
         .policyDocument(policyDocument)
         .privateDnsEnabled(false)
         .resourceConfigurationArn("resourceConfigurationArn")
         .routeTableIds(List.of("routeTableIds"))
         .securityGroupIds(List.of("securityGroupIds"))
         .serviceName("serviceName")
         .serviceNetworkArn("serviceNetworkArn")
         .serviceRegion("serviceRegion")
         .subnetIds(List.of("subnetIds"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .vpcEndpointType("vpcEndpointType")
         .vpcId("vpcId")
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnVPCEndpointPropsMixin

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

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

      @Stability(Stable) public CfnVPCEndpointPropsMixin(@NotNull CfnVPCEndpointMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::EC2::VPCEndpoint.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnVPCEndpointPropsMixin

      @Stability(Stable) public CfnVPCEndpointPropsMixin(@NotNull CfnVPCEndpointMixinProps props)
      Create a mixin to apply properties to AWS::EC2::VPCEndpoint.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnVPCEndpointMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()