aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 112 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnOriginEndpointPolicy=exports.CfnOriginEndpoint=exports.CfnChannelPolicy=exports.CfnChannelGroup=exports.CfnChannel=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannel",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::Channel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannel(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannel.CFN_RESOURCE_TYPE_NAME}static arnForChannel(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediapackagev2_IChannelRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForChannel),error}return resource.channelRef.channelArn}cdkTagManager;_channelGroupName;_channelName;_description;_inputSwitchConfiguration;_inputType;_outputHeaderConfiguration;_tags;cfnPropertyNames={tags:"Tags",channelGroupName:"ChannelGroupName",channelName:"ChannelName",description:"Description",inputSwitchConfiguration:"InputSwitchConfiguration",inputType:"InputType",outputHeaderConfiguration:"OutputHeaderConfiguration"};constructor(scope,id,props){super(scope,id,{type:CfnChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::Channel",void 0,{tagPropertyName:"tags"}),this._channelGroupName=props.channelGroupName,this._channelName=props.channelName,this._description=props.description,this._inputSwitchConfiguration=props.inputSwitchConfiguration,this._inputType=props.inputType,this._outputHeaderConfiguration=props.outputHeaderConfiguration,this._tags=props.tags}get channelRef(){return{channelArn:this.ref}}get channelGroupName(){return this._channelGroupName}set channelGroupName(value){cdk().traceProperty(this.node,"ChannelGroupName"),this._channelGroupName=value}get channelName(){return this._channelName}set channelName(value){cdk().traceProperty(this.node,"ChannelName"),this._channelName=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get inputSwitchConfiguration(){return this._inputSwitchConfiguration}set inputSwitchConfiguration(value){cdk().traceProperty(this.node,"InputSwitchConfiguration"),this._inputSwitchConfiguration=value}get inputType(){return this._inputType}set inputType(value){cdk().traceProperty(this.node,"InputType"),this._inputType=value}get outputHeaderConfiguration(){return this._outputHeaderConfiguration}set outputHeaderConfiguration(value){cdk().traceProperty(this.node,"OutputHeaderConfiguration"),this._outputHeaderConfiguration=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrIngestEndpoints(){return this.getAtt("IngestEndpoints")}get attrIngestEndpointUrls(){return cdk().Token.asList(this.getAtt("IngestEndpointUrls",cdk().ResolutionTypeHint.STRING_LIST))}get attrModifiedAt(){return cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),channelGroupName:this._channelGroupName,channelName:this._channelName,description:this._description,inputSwitchConfiguration:this._inputSwitchConfiguration,inputType:this._inputType,outputHeaderConfiguration:this._outputHeaderConfiguration}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPropsToCloudFormation(props)}}exports.CfnChannel=CfnChannel;function CfnChannelInputSwitchConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("mqcsInputSwitching",cdk().validateBoolean)(properties.mqcsInputSwitching)),errors.collect(cdk().propertyValidator("preferredInput",cdk().validateNumber)(properties.preferredInput)),errors.wrap('supplied properties not correct for "InputSwitchConfigurationProperty"')}function convertCfnChannelInputSwitchConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelInputSwitchConfigurationPropertyValidator(properties).assertSuccess(),{MQCSInputSwitching:cdk().booleanToCloudFormation(properties.mqcsInputSwitching),PreferredInput:cdk().numberToCloudFormation(properties.preferredInput)}):properties}function CfnChannelInputSwitchConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("mqcsInputSwitching","MQCSInputSwitching",properties.MQCSInputSwitching!=null?cfn_parse().FromCloudFormation.getBoolean(properties.MQCSInputSwitching):void 0),ret.addPropertyResult("preferredInput","PreferredInput",properties.PreferredInput!=null?cfn_parse().FromCloudFormation.getNumber(properties.PreferredInput):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelOutputHeaderConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("publishMqcs",cdk().validateBoolean)(properties.publishMqcs)),errors.wrap('supplied properties not correct for "OutputHeaderConfigurationProperty"')}function convertCfnChannelOutputHeaderConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelOutputHeaderConfigurationPropertyValidator(properties).assertSuccess(),{PublishMQCS:cdk().booleanToCloudFormation(properties.publishMqcs)}):properties}function CfnChannelOutputHeaderConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("publishMqcs","PublishMQCS",properties.PublishMQCS!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PublishMQCS):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelIngestEndpointPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "IngestEndpointProperty"')}function convertCfnChannelIngestEndpointPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelIngestEndpointPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnChannelIngestEndpointPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelName",cdk().requiredValidator)(properties.channelName)),errors.collect(cdk().propertyValidator("channelName",cdk().validateString)(properties.channelName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("inputSwitchConfiguration",CfnChannelInputSwitchConfigurationPropertyValidator)(properties.inputSwitchConfiguration)),errors.collect(cdk().propertyValidator("inputType",cdk().validateString)(properties.inputType)),errors.collect(cdk().propertyValidator("outputHeaderConfiguration",CfnChannelOutputHeaderConfigurationPropertyValidator)(properties.outputHeaderConfiguration)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnChannelProps"')}function convertCfnChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelPropsValidator(properties).assertSuccess(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),ChannelName:cdk().stringToCloudFormation(properties.channelName),Description:cdk().stringToCloudFormation(properties.description),InputSwitchConfiguration:convertCfnChannelInputSwitchConfigurationPropertyToCloudFormation(properties.inputSwitchConfiguration),InputType:cdk().stringToCloudFormation(properties.inputType),OutputHeaderConfiguration:convertCfnChannelOutputHeaderConfigurationPropertyToCloudFormation(properties.outputHeaderConfiguration),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnChannelPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),ret.addPropertyResult("channelName","ChannelName",properties.ChannelName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("inputSwitchConfiguration","InputSwitchConfiguration",properties.InputSwitchConfiguration!=null?CfnChannelInputSwitchConfigurationPropertyFromCloudFormation(properties.InputSwitchConfiguration):void 0),ret.addPropertyResult("inputType","InputType",properties.InputType!=null?cfn_parse().FromCloudFormation.getString(properties.InputType):void 0),ret.addPropertyResult("outputHeaderConfiguration","OutputHeaderConfiguration",properties.OutputHeaderConfiguration!=null?CfnChannelOutputHeaderConfigurationPropertyFromCloudFormation(properties.OutputHeaderConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnChannelGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannelGroup",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::ChannelGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannelGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnChannelGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannelGroup.CFN_RESOURCE_TYPE_NAME}static arnForChannelGroup(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediapackagev2_IChannelGroupRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForChannelGroup),error}return resource.channelGroupRef.channelGroupArn}cdkTagManager;_channelGroupName;_description;_tags;cfnPropertyNames={tags:"Tags",channelGroupName:"ChannelGroupName",description:"Description"};constructor(scope,id,props){super(scope,id,{type:CfnChannelGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelGroup),error}cdk().requireProperty(props,"channelGroupName",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::ChannelGroup",void 0,{tagPropertyName:"tags"}),this._channelGroupName=props.channelGroupName,this._description=props.description,this._tags=props.tags}get channelGroupRef(){return{channelGroupArn:this.ref}}get channelGroupName(){return this._channelGroupName}set channelGroupName(value){cdk().traceProperty(this.node,"ChannelGroupName"),this._channelGroupName=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrEgressDomain(){return cdk().Token.asString(this.getAtt("EgressDomain",cdk().ResolutionTypeHint.STRING))}get attrModifiedAt(){return cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),channelGroupName:this._channelGroupName,description:this._description}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannelGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelGroupPropsToCloudFormation(props)}}exports.CfnChannelGroup=CfnChannelGroup;function CfnChannelGroupPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnChannelGroupProps"')}function convertCfnChannelGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelGroupPropsValidator(properties).assertSuccess(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),Description:cdk().stringToCloudFormation(properties.description),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnChannelGroupPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnChannelPolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannelPolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::ChannelPolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannelPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnChannelPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME}_channelGroupName;_channelName;_policy;cfnPropertyNames={channelGroupName:"ChannelGroupName",channelName:"ChannelName",policy:"Policy"};constructor(scope,id,props){super(scope,id,{type:CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelPolicy),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"policy",this),this._channelGroupName=props.channelGroupName,this._channelName=props.channelName,this._policy=props.policy}get channelPolicyRef(){return{channelGroupName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),channelName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get channelGroupName(){return this._channelGroupName}set channelGroupName(value){cdk().traceProperty(this.node,"ChannelGroupName"),this._channelGroupName=value}get channelName(){return this._channelName}set channelName(value){cdk().traceProperty(this.node,"ChannelName"),this._channelName=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get cfnProperties(){return{channelGroupName:this._channelGroupName,channelName:this._channelName,policy:this._policy}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPolicyPropsToCloudFormation(props)}}exports.CfnChannelPolicy=CfnChannelPolicy;function CfnChannelPolicyPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelName",cdk().requiredValidator)(properties.channelName)),errors.collect(cdk().propertyValidator("channelName",cdk().validateString)(properties.channelName)),errors.collect(cdk().propertyValidator("policy",cdk().requiredValidator)(properties.policy)),errors.collect(cdk().propertyValidator("policy",cdk().validateObject)(properties.policy)),errors.wrap('supplied properties not correct for "CfnChannelPolicyProps"')}function convertCfnChannelPolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelPolicyPropsValidator(properties).assertSuccess(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),ChannelName:cdk().stringToCloudFormation(properties.channelName),Policy:cdk().objectToCloudFormation(properties.policy)}):properties}function CfnChannelPolicyPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),ret.addPropertyResult("channelName","ChannelName",properties.ChannelName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelName):void 0),ret.addPropertyResult("policy","Policy",properties.Policy!=null?cfn_parse().FromCloudFormation.getAny(properties.Policy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnOriginEndpoint extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnOriginEndpoint",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::OriginEndpoint";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOriginEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnOriginEndpoint(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnOriginEndpoint(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME}static arnForOriginEndpoint(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediapackagev2_IOriginEndpointRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForOriginEndpoint),error}return resource.originEndpointRef.originEndpointArn}cdkTagManager;_channelGroupName;_channelName;_containerType;_dashManifests;_description;_forceEndpointErrorConfiguration;_hlsManifests;_lowLatencyHlsManifests;_mssManifests;_originEndpointName;_segment;_startoverWindowSeconds;_tags;cfnPropertyNames={tags:"Tags",channelGroupName:"ChannelGroupName",channelName:"ChannelName",containerType:"ContainerType",dashManifests:"DashManifests",description:"Description",forceEndpointErrorConfiguration:"ForceEndpointErrorConfiguration",hlsManifests:"HlsManifests",lowLatencyHlsManifests:"LowLatencyHlsManifests",mssManifests:"MssManifests",originEndpointName:"OriginEndpointName",segment:"Segment",startoverWindowSeconds:"StartoverWindowSeconds"};constructor(scope,id,props){super(scope,id,{type:CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnOriginEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOriginEndpoint),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"containerType",this),cdk().requireProperty(props,"originEndpointName",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::OriginEndpoint",void 0,{tagPropertyName:"tags"}),this._channelGroupName=props.channelGroupName,this._channelName=props.channelName,this._containerType=props.containerType,this._dashManifests=props.dashManifests,this._description=props.description,this._forceEndpointErrorConfiguration=props.forceEndpointErrorConfiguration,this._hlsManifests=props.hlsManifests,this._lowLatencyHlsManifests=props.lowLatencyHlsManifests,this._mssManifests=props.mssManifests,this._originEndpointName=props.originEndpointName,this._segment=props.segment,this._startoverWindowSeconds=props.startoverWindowSeconds,this._tags=props.tags}get originEndpointRef(){return{originEndpointArn:this.ref}}get channelGroupName(){return this._channelGroupName}set channelGroupName(value){cdk().traceProperty(this.node,"ChannelGroupName"),this._channelGroupName=value}get channelName(){return this._channelName}set channelName(value){cdk().traceProperty(this.node,"ChannelName"),this._channelName=value}get containerType(){return this._containerType}set containerType(value){cdk().traceProperty(this.node,"ContainerType"),this._containerType=value}get dashManifests(){return this._dashManifests}set dashManifests(value){cdk().traceProperty(this.node,"DashManifests"),this._dashManifests=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get forceEndpointErrorConfiguration(){return this._forceEndpointErrorConfiguration}set forceEndpointErrorConfiguration(value){cdk().traceProperty(this.node,"ForceEndpointErrorConfiguration"),this._forceEndpointErrorConfiguration=value}get hlsManifests(){return this._hlsManifests}set hlsManifests(value){cdk().traceProperty(this.node,"HlsManifests"),this._hlsManifests=value}get lowLatencyHlsManifests(){return this._lowLatencyHlsManifests}set lowLatencyHlsManifests(value){cdk().traceProperty(this.node,"LowLatencyHlsManifests"),this._lowLatencyHlsManifests=value}get mssManifests(){return this._mssManifests}set mssManifests(value){cdk().traceProperty(this.node,"MssManifests"),this._mssManifests=value}get originEndpointName(){return this._originEndpointName}set originEndpointName(value){cdk().traceProperty(this.node,"OriginEndpointName"),this._originEndpointName=value}get segment(){return this._segment}set segment(value){cdk().traceProperty(this.node,"Segment"),this._segment=value}get startoverWindowSeconds(){return this._startoverWindowSeconds}set startoverWindowSeconds(value){cdk().traceProperty(this.node,"StartoverWindowSeconds"),this._startoverWindowSeconds=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrDashManifestUrls(){return cdk().Token.asList(this.getAtt("DashManifestUrls",cdk().ResolutionTypeHint.STRING_LIST))}get attrHlsManifestUrls(){return cdk().Token.asList(this.getAtt("HlsManifestUrls",cdk().ResolutionTypeHint.STRING_LIST))}get attrLowLatencyHlsManifestUrls(){return cdk().Token.asList(this.getAtt("LowLatencyHlsManifestUrls",cdk().ResolutionTypeHint.STRING_LIST))}get attrModifiedAt(){return cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING))}get attrMssManifestUrls(){return cdk().Token.asList(this.getAtt("MssManifestUrls",cdk().ResolutionTypeHint.STRING_LIST))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),channelGroupName:this._channelGroupName,channelName:this._channelName,containerType:this._containerType,dashManifests:this._dashManifests,description:this._description,forceEndpointErrorConfiguration:this._forceEndpointErrorConfiguration,hlsManifests:this._hlsManifests,lowLatencyHlsManifests:this._lowLatencyHlsManifests,mssManifests:this._mssManifests,originEndpointName:this._originEndpointName,segment:this._segment,startoverWindowSeconds:this._startoverWindowSeconds}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOriginEndpointPropsToCloudFormation(props)}}exports.CfnOriginEndpoint=CfnOriginEndpoint;function CfnOriginEndpointScteHlsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("adMarkerHls",cdk().validateString)(properties.adMarkerHls)),errors.wrap('supplied properties not correct for "ScteHlsProperty"')}function convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointScteHlsPropertyValidator(properties).assertSuccess(),{AdMarkerHls:cdk().stringToCloudFormation(properties.adMarkerHls)}):properties}function CfnOriginEndpointScteHlsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("adMarkerHls","AdMarkerHls",properties.AdMarkerHls!=null?cfn_parse().FromCloudFormation.getString(properties.AdMarkerHls):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointFilterConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("clipStartTime",cdk().validateString)(properties.clipStartTime)),errors.collect(cdk().propertyValidator("drmSettings",cdk().validateString)(properties.drmSettings)),errors.collect(cdk().propertyValidator("end",cdk().validateString)(properties.end)),errors.collect(cdk().propertyValidator("manifestFilter",cdk().validateString)(properties.manifestFilter)),errors.collect(cdk().propertyValidator("start",cdk().validateString)(properties.start)),errors.collect(cdk().propertyValidator("timeDelaySeconds",cdk().validateNumber)(properties.timeDelaySeconds)),errors.wrap('supplied properties not correct for "FilterConfigurationProperty"')}function convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointFilterConfigurationPropertyValidator(properties).assertSuccess(),{ClipStartTime:cdk().stringToCloudFormation(properties.clipStartTime),DrmSettings:cdk().stringToCloudFormation(properties.drmSettings),End:cdk().stringToCloudFormation(properties.end),ManifestFilter:cdk().stringToCloudFormation(properties.manifestFilter),Start:cdk().stringToCloudFormation(properties.start),TimeDelaySeconds:cdk().numberToCloudFormation(properties.timeDelaySeconds)}):properties}function CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("clipStartTime","ClipStartTime",properties.ClipStartTime!=null?cfn_parse().FromCloudFormation.getString(properties.ClipStartTime):void 0),ret.addPropertyResult("drmSettings","DrmSettings",properties.DrmSettings!=null?cfn_parse().FromCloudFormation.getString(properties.DrmSettings):void 0),ret.addPropertyResult("end","End",properties.End!=null?cfn_parse().FromCloudFormation.getString(properties.End):void 0),ret.addPropertyResult("manifestFilter","ManifestFilter",properties.ManifestFilter!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestFilter):void 0),ret.addPropertyResult("start","Start",properties.Start!=null?cfn_parse().FromCloudFormation.getString(properties.Start):void 0),ret.addPropertyResult("timeDelaySeconds","TimeDelaySeconds",properties.TimeDelaySeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeDelaySeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointStartTagPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("precise",cdk().validateBoolean)(properties.precise)),errors.collect(cdk().propertyValidator("timeOffset",cdk().requiredValidator)(properties.timeOffset)),errors.collect(cdk().propertyValidator("timeOffset",cdk().validateNumber)(properties.timeOffset)),errors.wrap('supplied properties not correct for "StartTagProperty"')}function convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointStartTagPropertyValidator(properties).assertSuccess(),{Precise:cdk().booleanToCloudFormation(properties.precise),TimeOffset:cdk().numberToCloudFormation(properties.timeOffset)}):properties}function CfnOriginEndpointStartTagPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("precise","Precise",properties.Precise!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Precise):void 0),ret.addPropertyResult("timeOffset","TimeOffset",properties.TimeOffset!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeOffset):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("childManifestName",cdk().validateString)(properties.childManifestName)),errors.collect(cdk().propertyValidator("filterConfiguration",CfnOriginEndpointFilterConfigurationPropertyValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("manifestName",cdk().requiredValidator)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.collect(cdk().propertyValidator("programDateTimeIntervalSeconds",cdk().validateNumber)(properties.programDateTimeIntervalSeconds)),errors.collect(cdk().propertyValidator("scteHls",CfnOriginEndpointScteHlsPropertyValidator)(properties.scteHls)),errors.collect(cdk().propertyValidator("startTag",CfnOriginEndpointStartTagPropertyValidator)(properties.startTag)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.collect(cdk().propertyValidator("urlEncodeChildManifest",cdk().validateBoolean)(properties.urlEncodeChildManifest)),errors.wrap('supplied properties not correct for "LowLatencyHlsManifestConfigurationProperty"')}function convertCfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyValidator(properties).assertSuccess(),{ChildManifestName:cdk().stringToCloudFormation(properties.childManifestName),FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),ProgramDateTimeIntervalSeconds:cdk().numberToCloudFormation(properties.programDateTimeIntervalSeconds),ScteHls:convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties.scteHls),StartTag:convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties.startTag),Url:cdk().stringToCloudFormation(properties.url),UrlEncodeChildManifest:cdk().booleanToCloudFormation(properties.urlEncodeChildManifest)}):properties}function CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("childManifestName","ChildManifestName",properties.ChildManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ChildManifestName):void 0),ret.addPropertyResult("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties.FilterConfiguration):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addPropertyResult("programDateTimeIntervalSeconds","ProgramDateTimeIntervalSeconds",properties.ProgramDateTimeIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramDateTimeIntervalSeconds):void 0),ret.addPropertyResult("scteHls","ScteHls",properties.ScteHls!=null?CfnOriginEndpointScteHlsPropertyFromCloudFormation(properties.ScteHls):void 0),ret.addPropertyResult("startTag","StartTag",properties.StartTag!=null?CfnOriginEndpointStartTagPropertyFromCloudFormation(properties.StartTag):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addPropertyResult("urlEncodeChildManifest","UrlEncodeChildManifest",properties.UrlEncodeChildManifest!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UrlEncodeChildManifest):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointHlsManifestConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("childManifestName",cdk().validateString)(properties.childManifestName)),errors.collect(cdk().propertyValidator("filterConfiguration",CfnOriginEndpointFilterConfigurationPropertyValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("manifestName",cdk().requiredValidator)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.collect(cdk().propertyValidator("programDateTimeIntervalSeconds",cdk().validateNumber)(properties.programDateTimeIntervalSeconds)),errors.collect(cdk().propertyValidator("scteHls",CfnOriginEndpointScteHlsPropertyValidator)(properties.scteHls)),errors.collect(cdk().propertyValidator("startTag",CfnOriginEndpointStartTagPropertyValidator)(properties.startTag)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.collect(cdk().propertyValidator("urlEncodeChildManifest",cdk().validateBoolean)(properties.urlEncodeChildManifest)),errors.wrap('supplied properties not correct for "HlsManifestConfigurationProperty"')}function convertCfnOriginEndpointHlsManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointHlsManifestConfigurationPropertyValidator(properties).assertSuccess(),{ChildManifestName:cdk().stringToCloudFormation(properties.childManifestName),FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),ProgramDateTimeIntervalSeconds:cdk().numberToCloudFormation(properties.programDateTimeIntervalSeconds),ScteHls:convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties.scteHls),StartTag:convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties.startTag),Url:cdk().stringToCloudFormation(properties.url),UrlEncodeChildManifest:cdk().booleanToCloudFormation(properties.urlEncodeChildManifest)}):properties}function CfnOriginEndpointHlsManifestConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("childManifestName","ChildManifestName",properties.ChildManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ChildManifestName):void 0),ret.addPropertyResult("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties.FilterConfiguration):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addPropertyResult("programDateTimeIntervalSeconds","ProgramDateTimeIntervalSeconds",properties.ProgramDateTimeIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramDateTimeIntervalSeconds):void 0),ret.addPropertyResult("scteHls","ScteHls",properties.ScteHls!=null?CfnOriginEndpointScteHlsPropertyFromCloudFormation(properties.ScteHls):void 0),ret.addPropertyResult("startTag","StartTag",properties.StartTag!=null?CfnOriginEndpointStartTagPropertyFromCloudFormation(properties.StartTag):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addPropertyResult("urlEncodeChildManifest","UrlEncodeChildManifest",properties.UrlEncodeChildManifest!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UrlEncodeChildManifest):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointSctePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("scteFilter",cdk().listValidator(cdk().validateString))(properties.scteFilter)),errors.collect(cdk().propertyValidator("scteInSegments",cdk().validateString)(properties.scteInSegments)),errors.wrap('supplied properties not correct for "ScteProperty"')}function convertCfnOriginEndpointSctePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointSctePropertyValidator(properties).assertSuccess(),{ScteFilter:cdk().listMapper(cdk().stringToCloudFormation)(properties.scteFilter),ScteInSegments:cdk().stringToCloudFormation(properties.scteInSegments)}):properties}function CfnOriginEndpointSctePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("scteFilter","ScteFilter",properties.ScteFilter!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ScteFilter):void 0),ret.addPropertyResult("scteInS