Class S3StaticWebsiteOrigin

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IOrigin, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:27.722Z") @Stability(Stable) public class S3StaticWebsiteOrigin extends HttpOrigin
An Origin for a S3 bucket configured as a website endpoint.

Example:

 Bucket myBucket = new Bucket(this, "myBucket");
 Distribution.Builder.create(this, "myDist")
         .defaultBehavior(BehaviorOptions.builder().origin(new S3StaticWebsiteOrigin(myBucket)).build())
         .build();
 
  • Constructor Details

    • S3StaticWebsiteOrigin

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

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

      @Stability(Stable) public S3StaticWebsiteOrigin(@NotNull IBucket bucket, @Nullable S3StaticWebsiteOriginProps props)
      Parameters:
      bucket - This parameter is required.
      props -
    • S3StaticWebsiteOrigin

      @Stability(Stable) public S3StaticWebsiteOrigin(@NotNull IBucket bucket)
      Parameters:
      bucket - This parameter is required.