"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.S3StaticWebsiteOrigin=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var http_origin_1=()=>{var tmp=require("./http-origin");return http_origin_1=()=>tmp,tmp},cloudfront=()=>{var tmp=require("../../aws-cloudfront");return cloudfront=()=>tmp,tmp};class S3StaticWebsiteOrigin extends http_origin_1().HttpOrigin{constructor(bucket,props){super(bucket.bucketWebsiteDomainName,{protocolPolicy:cloudfront().OriginProtocolPolicy.HTTP_ONLY,...props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_s3_IBucket(bucket),jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudfront_origins_S3StaticWebsiteOriginProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,S3StaticWebsiteOrigin),error}}}exports.S3StaticWebsiteOrigin=S3StaticWebsiteOrigin,_a=JSII_RTTI_SYMBOL_1,S3StaticWebsiteOrigin[_a]={fqn:"aws-cdk-lib.aws_cloudfront_origins.S3StaticWebsiteOrigin",version:"2.159.0"};
