Class GatewayVpcEndpointOptions.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class GatewayVpcEndpointOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GatewayVpcEndpointOptions
An implementation for GatewayVpcEndpointOptions
  • 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(GatewayVpcEndpointOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the GatewayVpcEndpointOptions.Builder.
  • Method Details

    • 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