java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.OriginBase
software.amazon.awscdk.services.cloudfront.origins.RestApiOrigin
All Implemented Interfaces:
IOrigin, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:27.716Z") @Stability(Stable) public class RestApiOrigin extends OriginBase
An Origin for an API Gateway REST API.

Example:

 RestApi api;
 Distribution.Builder.create(this, "Distribution")
         .defaultBehavior(BehaviorOptions.builder().origin(new RestApiOrigin(api)).build())
         .build();
 
  • Constructor Details

    • RestApiOrigin

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

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

      @Stability(Stable) public RestApiOrigin(@NotNull RestApiBase restApi, @Nullable RestApiOriginProps props)
      Parameters:
      restApi - This parameter is required.
      props -
    • RestApiOrigin

      @Stability(Stable) public RestApiOrigin(@NotNull RestApiBase restApi)
      Parameters:
      restApi - This parameter is required.
  • Method Details