"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.OriginGroup=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class OriginGroup{constructor(props){this.props=props,jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudfront_origins_OriginGroupProps(props)}bind(scope,options){jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudfront_OriginBindOptions(options);const primaryOriginConfig=this.props.primaryOrigin.bind(scope,options);if(primaryOriginConfig.failoverConfig)throw new Error("An OriginGroup cannot use an Origin with its own failover configuration as its primary origin!");return{originProperty:primaryOriginConfig.originProperty,failoverConfig:{failoverOrigin:this.props.fallbackOrigin,statusCodes:this.props.fallbackStatusCodes}}}}exports.OriginGroup=OriginGroup,_a=JSII_RTTI_SYMBOL_1,OriginGroup[_a]={fqn:"aws-cdk-lib.aws_cloudfront_origins.OriginGroup",version:"2.13.0"};
//# sourceMappingURL=origin-group.js.map
