Class GatewayVpcEndpointProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.GatewayVpcEndpointProps.Jsii$Proxy
All Implemented Interfaces:
GatewayVpcEndpointOptions, GatewayVpcEndpointProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
GatewayVpcEndpointProps

@Stability(Stable) @Internal public static final class GatewayVpcEndpointProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GatewayVpcEndpointProps
An implementation for GatewayVpcEndpointProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(GatewayVpcEndpointProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the GatewayVpcEndpointProps.Builder.
  • Method Details

    • getVpc

      public final IVpc getVpc()
      Description copied from interface: GatewayVpcEndpointProps
      The VPC network in which the gateway endpoint will be used.
      Specified by:
      getVpc in interface GatewayVpcEndpointProps
    • getService

      public final IGatewayVpcEndpointService getService()
      Description copied from interface: GatewayVpcEndpointOptions
      The service to use for this gateway VPC endpoint.
      Specified by:
      getService in interface GatewayVpcEndpointOptions
    • getSubnets

      public final List<SubnetSelection> getSubnets()
      Description copied from interface: GatewayVpcEndpointOptions
      Where to add endpoint routing.

      By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific.

      Default: - All subnets in the VPC

      Example:

       Vpc vpc;
       vpc.addGatewayEndpoint("DynamoDbEndpoint", GatewayVpcEndpointOptions.builder()
               .service(GatewayVpcEndpointAwsService.DYNAMODB)
               // Add only to ISOLATED subnets
               .subnets(List.of(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_ISOLATED).build()))
               .build());
       
      Specified by:
      getSubnets in interface GatewayVpcEndpointOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object