Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-mediapackagev2/lib/mediapackagev2.generated.js
2026-05-06 18:55:16 -05:00

2 lines
110 KiB
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("scteInSegments","ScteInSegments",properties.ScteInSegments!=null?cfn_parse().FromCloudFormation.getString(properties.ScteInSegments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionContractConfigurationPropertyValidator(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("presetSpeke20Audio",cdk().requiredValidator)(properties.presetSpeke20Audio)),errors.collect(cdk().propertyValidator("presetSpeke20Audio",cdk().validateString)(properties.presetSpeke20Audio)),errors.collect(cdk().propertyValidator("presetSpeke20Video",cdk().requiredValidator)(properties.presetSpeke20Video)),errors.collect(cdk().propertyValidator("presetSpeke20Video",cdk().validateString)(properties.presetSpeke20Video)),errors.wrap('supplied properties not correct for "EncryptionContractConfigurationProperty"')}function convertCfnOriginEndpointEncryptionContractConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointEncryptionContractConfigurationPropertyValidator(properties).assertSuccess(),{PresetSpeke20Audio:cdk().stringToCloudFormation(properties.presetSpeke20Audio),PresetSpeke20Video:cdk().stringToCloudFormation(properties.presetSpeke20Video)}):properties}function CfnOriginEndpointEncryptionContractConfigurationPropertyFromCloudFormation(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("presetSpeke20Audio","PresetSpeke20Audio",properties.PresetSpeke20Audio!=null?cfn_parse().FromCloudFormation.getString(properties.PresetSpeke20Audio):void 0),ret.addPropertyResult("presetSpeke20Video","PresetSpeke20Video",properties.PresetSpeke20Video!=null?cfn_parse().FromCloudFormation.getString(properties.PresetSpeke20Video):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointSpekeKeyProviderPropertyValidator(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("certificateArn",cdk().validateString)(properties.certificateArn)),errors.collect(cdk().propertyValidator("drmSystems",cdk().requiredValidator)(properties.drmSystems)),errors.collect(cdk().propertyValidator("drmSystems",cdk().listValidator(cdk().validateString))(properties.drmSystems)),errors.collect(cdk().propertyValidator("encryptionContractConfiguration",cdk().requiredValidator)(properties.encryptionContractConfiguration)),errors.collect(cdk().propertyValidator("encryptionContractConfiguration",CfnOriginEndpointEncryptionContractConfigurationPropertyValidator)(properties.encryptionContractConfiguration)),errors.collect(cdk().propertyValidator("resourceId",cdk().requiredValidator)(properties.resourceId)),errors.collect(cdk().propertyValidator("resourceId",cdk().validateString)(properties.resourceId)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "SpekeKeyProviderProperty"')}function convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointSpekeKeyProviderPropertyValidator(properties).assertSuccess(),{CertificateArn:cdk().stringToCloudFormation(properties.certificateArn),DrmSystems:cdk().listMapper(cdk().stringToCloudFormation)(properties.drmSystems),EncryptionContractConfiguration:convertCfnOriginEndpointEncryptionContractConfigurationPropertyToCloudFormation(properties.encryptionContractConfiguration),ResourceId:cdk().stringToCloudFormation(properties.resourceId),RoleArn:cdk().stringToCloudFormation(properties.roleArn),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnOriginEndpointSpekeKeyProviderPropertyFromCloudFormation(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("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addPropertyResult("drmSystems","DrmSystems",properties.DrmSystems!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DrmSystems):void 0),ret.addPropertyResult("encryptionContractConfiguration","EncryptionContractConfiguration",properties.EncryptionContractConfiguration!=null?CfnOriginEndpointEncryptionContractConfigurationPropertyFromCloudFormation(properties.EncryptionContractConfiguration):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceId):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionMethodPropertyValidator(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("cmafEncryptionMethod",cdk().validateString)(properties.cmafEncryptionMethod)),errors.collect(cdk().propertyValidator("ismEncryptionMethod",cdk().validateString)(properties.ismEncryptionMethod)),errors.collect(cdk().propertyValidator("tsEncryptionMethod",cdk().validateString)(properties.tsEncryptionMethod)),errors.wrap('supplied properties not correct for "EncryptionMethodProperty"')}function convertCfnOriginEndpointEncryptionMethodPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointEncryptionMethodPropertyValidator(properties).assertSuccess(),{CmafEncryptionMethod:cdk().stringToCloudFormation(properties.cmafEncryptionMethod),IsmEncryptionMethod:cdk().stringToCloudFormation(properties.ismEncryptionMethod),TsEncryptionMethod:cdk().stringToCloudFormation(properties.tsEncryptionMethod)}):properties}function CfnOriginEndpointEncryptionMethodPropertyFromCloudFormation(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("cmafEncryptionMethod","CmafEncryptionMethod",properties.CmafEncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.CmafEncryptionMethod):void 0),ret.addPropertyResult("ismEncryptionMethod","IsmEncryptionMethod",properties.IsmEncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.IsmEncryptionMethod):void 0),ret.addPropertyResult("tsEncryptionMethod","TsEncryptionMethod",properties.TsEncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.TsEncryptionMethod):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionPropertyValidator(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("cmafExcludeSegmentDrmMetadata",cdk().validateBoolean)(properties.cmafExcludeSegmentDrmMetadata)),errors.collect(cdk().propertyValidator("constantInitializationVector",cdk().validateString)(properties.constantInitializationVector)),errors.collect(cdk().propertyValidator("encryptionMethod",cdk().requiredValidator)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("encryptionMethod",CfnOriginEndpointEncryptionMethodPropertyValidator)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("keyRotationIntervalSeconds",cdk().validateNumber)(properties.keyRotationIntervalSeconds)),errors.collect(cdk().propertyValidator("spekeKeyProvider",cdk().requiredValidator)(properties.spekeKeyProvider)),errors.collect(cdk().propertyValidator("spekeKeyProvider",CfnOriginEndpointSpekeKeyProviderPropertyValidator)(properties.spekeKeyProvider)),errors.wrap('supplied properties not correct for "EncryptionProperty"')}function convertCfnOriginEndpointEncryptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointEncryptionPropertyValidator(properties).assertSuccess(),{CmafExcludeSegmentDrmMetadata:cdk().booleanToCloudFormation(properties.cmafExcludeSegmentDrmMetadata),ConstantInitializationVector:cdk().stringToCloudFormation(properties.constantInitializationVector),EncryptionMethod:convertCfnOriginEndpointEncryptionMethodPropertyToCloudFormation(properties.encryptionMethod),KeyRotationIntervalSeconds:cdk().numberToCloudFormation(properties.keyRotationIntervalSeconds),SpekeKeyProvider:convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties.spekeKeyProvider)}):properties}function CfnOriginEndpointEncryptionPropertyFromCloudFormation(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("cmafExcludeSegmentDrmMetadata","CmafExcludeSegmentDrmMetadata",properties.CmafExcludeSegmentDrmMetadata!=null?cfn_parse().FromCloudFormation.getBoolean(properties.CmafExcludeSegmentDrmMetadata):void 0),ret.addPropertyResult("constantInitializationVector","ConstantInitializationVector",properties.ConstantInitializationVector!=null?cfn_parse().FromCloudFormation.getString(properties.ConstantInitializationVector):void 0),ret.addPropertyResult("encryptionMethod","EncryptionMethod",properties.EncryptionMethod!=null?CfnOriginEndpointEncryptionMethodPropertyFromCloudFormation(properties.EncryptionMethod):void 0),ret.addPropertyResult("keyRotationIntervalSeconds","KeyRotationIntervalSeconds",properties.KeyRotationIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.KeyRotationIntervalSeconds):void 0),ret.addPropertyResult("spekeKeyProvider","SpekeKeyProvider",properties.SpekeKeyProvider!=null?CfnOriginEndpointSpekeKeyProviderPropertyFromCloudFormation(properties.SpekeKeyProvider):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointSegmentPropertyValidator(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("encryption",CfnOriginEndpointEncryptionPropertyValidator)(properties.encryption)),errors.collect(cdk().propertyValidator("includeIframeOnlyStreams",cdk().validateBoolean)(properties.includeIframeOnlyStreams)),errors.collect(cdk().propertyValidator("scte",CfnOriginEndpointSctePropertyValidator)(properties.scte)),errors.collect(cdk().propertyValidator("segmentDurationSeconds",cdk().validateNumber)(properties.segmentDurationSeconds)),errors.collect(cdk().propertyValidator("segmentName",cdk().validateString)(properties.segmentName)),errors.collect(cdk().propertyValidator("tsIncludeDvbSubtitles",cdk().validateBoolean)(properties.tsIncludeDvbSubtitles)),errors.collect(cdk().propertyValidator("tsUseAudioRenditionGroup",cdk().validateBoolean)(properties.tsUseAudioRenditionGroup)),errors.wrap('supplied properties not correct for "SegmentProperty"')}function convertCfnOriginEndpointSegmentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointSegmentPropertyValidator(properties).assertSuccess(),{Encryption:convertCfnOriginEndpointEncryptionPropertyToCloudFormation(properties.encryption),IncludeIframeOnlyStreams:cdk().booleanToCloudFormation(properties.includeIframeOnlyStreams),Scte:convertCfnOriginEndpointSctePropertyToCloudFormation(properties.scte),SegmentDurationSeconds:cdk().numberToCloudFormation(properties.segmentDurationSeconds),SegmentName:cdk().stringToCloudFormation(properties.segmentName),TsIncludeDvbSubtitles:cdk().booleanToCloudFormation(properties.tsIncludeDvbSubtitles),TsUseAudioRenditionGroup:cdk().booleanToCloudFormation(properties.tsUseAudioRenditionGroup)}):properties}function CfnOriginEndpointSegmentPropertyFromCloudFormation(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("encryption","Encryption",properties.Encryption!=null?CfnOriginEndpointEncryptionPropertyFromCloudFormation(properties.Encryption):void 0),ret.addPropertyResult("includeIframeOnlyStreams","IncludeIframeOnlyStreams",properties.IncludeIframeOnlyStreams!=null?cfn_parse().FromCloudFormation.getBoolean(properties.IncludeIframeOnlyStreams):void 0),ret.addPropertyResult("scte","Scte",properties.Scte!=null?CfnOriginEndpointSctePropertyFromCloudFormation(properties.Scte):void 0),ret.addPropertyResult("segmentDurationSeconds","SegmentDurationSeconds",properties.SegmentDurationSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.SegmentDurationSeconds):void 0),ret.addPropertyResult("segmentName","SegmentName",properties.SegmentName!=null?cfn_parse().FromCloudFormation.getString(properties.SegmentName):void 0),ret.addPropertyResult("tsIncludeDvbSubtitles","TsIncludeDvbSubtitles",properties.TsIncludeDvbSubtitles!=null?cfn_parse().FromCloudFormation.getBoolean(properties.TsIncludeDvbSubtitles):void 0),ret.addPropertyResult("tsUseAudioRenditionGroup","TsUseAudioRenditionGroup",properties.TsUseAudioRenditionGroup!=null?cfn_parse().FromCloudFormation.getBoolean(properties.TsUseAudioRenditionGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointScteDashPropertyValidator(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("adMarkerDash",cdk().validateString)(properties.adMarkerDash)),errors.wrap('supplied properties not correct for "ScteDashProperty"')}function convertCfnOriginEndpointScteDashPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointScteDashPropertyValidator(properties).assertSuccess(),{AdMarkerDash:cdk().stringToCloudFormation(properties.adMarkerDash)}):properties}function CfnOriginEndpointScteDashPropertyFromCloudFormation(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("adMarkerDash","AdMarkerDash",properties.AdMarkerDash!=null?cfn_parse().FromCloudFormation.getString(properties.AdMarkerDash):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashUtcTimingPropertyValidator(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("timingMode",cdk().validateString)(properties.timingMode)),errors.collect(cdk().propertyValidator("timingSource",cdk().validateString)(properties.timingSource)),errors.wrap('supplied properties not correct for "DashUtcTimingProperty"')}function convertCfnOriginEndpointDashUtcTimingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashUtcTimingPropertyValidator(properties).assertSuccess(),{TimingMode:cdk().stringToCloudFormation(properties.timingMode),TimingSource:cdk().stringToCloudFormation(properties.timingSource)}):properties}function CfnOriginEndpointDashUtcTimingPropertyFromCloudFormation(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("timingMode","TimingMode",properties.TimingMode!=null?cfn_parse().FromCloudFormation.getString(properties.TimingMode):void 0),ret.addPropertyResult("timingSource","TimingSource",properties.TimingSource!=null?cfn_parse().FromCloudFormation.getString(properties.TimingSource):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashBaseUrlPropertyValidator(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("dvbPriority",cdk().validateNumber)(properties.dvbPriority)),errors.collect(cdk().propertyValidator("dvbWeight",cdk().validateNumber)(properties.dvbWeight)),errors.collect(cdk().propertyValidator("serviceLocation",cdk().validateString)(properties.serviceLocation)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "DashBaseUrlProperty"')}function convertCfnOriginEndpointDashBaseUrlPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashBaseUrlPropertyValidator(properties).assertSuccess(),{DvbPriority:cdk().numberToCloudFormation(properties.dvbPriority),DvbWeight:cdk().numberToCloudFormation(properties.dvbWeight),ServiceLocation:cdk().stringToCloudFormation(properties.serviceLocation),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnOriginEndpointDashBaseUrlPropertyFromCloudFormation(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("dvbPriority","DvbPriority",properties.DvbPriority!=null?cfn_parse().FromCloudFormation.getNumber(properties.DvbPriority):void 0),ret.addPropertyResult("dvbWeight","DvbWeight",properties.DvbWeight!=null?cfn_parse().FromCloudFormation.getNumber(properties.DvbWeight):void 0),ret.addPropertyResult("serviceLocation","ServiceLocation",properties.ServiceLocation!=null?cfn_parse().FromCloudFormation.getString(properties.ServiceLocation):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashProgramInformationPropertyValidator(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("copyright",cdk().validateString)(properties.copyright)),errors.collect(cdk().propertyValidator("languageCode",cdk().validateString)(properties.languageCode)),errors.collect(cdk().propertyValidator("moreInformationUrl",cdk().validateString)(properties.moreInformationUrl)),errors.collect(cdk().propertyValidator("source",cdk().validateString)(properties.source)),errors.collect(cdk().propertyValidator("title",cdk().validateString)(properties.title)),errors.wrap('supplied properties not correct for "DashProgramInformationProperty"')}function convertCfnOriginEndpointDashProgramInformationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashProgramInformationPropertyValidator(properties).assertSuccess(),{Copyright:cdk().stringToCloudFormation(properties.copyright),LanguageCode:cdk().stringToCloudFormation(properties.languageCode),MoreInformationUrl:cdk().stringToCloudFormation(properties.moreInformationUrl),Source:cdk().stringToCloudFormation(properties.source),Title:cdk().stringToCloudFormation(properties.title)}):properties}function CfnOriginEndpointDashProgramInformationPropertyFromCloudFormation(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("copyright","Copyright",properties.Copyright!=null?cfn_parse().FromCloudFormation.getString(properties.Copyright):void 0),ret.addPropertyResult("languageCode","LanguageCode",properties.LanguageCode!=null?cfn_parse().FromCloudFormation.getString(properties.LanguageCode):void 0),ret.addPropertyResult("moreInformationUrl","MoreInformationUrl",properties.MoreInformationUrl!=null?cfn_parse().FromCloudFormation.getString(properties.MoreInformationUrl):void 0),ret.addPropertyResult("source","Source",properties.Source!=null?cfn_parse().FromCloudFormation.getString(properties.Source):void 0),ret.addPropertyResult("title","Title",properties.Title!=null?cfn_parse().FromCloudFormation.getString(properties.Title):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashDvbFontDownloadPropertyValidator(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("fontFamily",cdk().validateString)(properties.fontFamily)),errors.collect(cdk().propertyValidator("mimeType",cdk().validateString)(properties.mimeType)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "DashDvbFontDownloadProperty"')}function convertCfnOriginEndpointDashDvbFontDownloadPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashDvbFontDownloadPropertyValidator(properties).assertSuccess(),{FontFamily:cdk().stringToCloudFormation(properties.fontFamily),MimeType:cdk().stringToCloudFormation(properties.mimeType),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnOriginEndpointDashDvbFontDownloadPropertyFromCloudFormation(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("fontFamily","FontFamily",properties.FontFamily!=null?cfn_parse().FromCloudFormation.getString(properties.FontFamily):void 0),ret.addPropertyResult("mimeType","MimeType",properties.MimeType!=null?cfn_parse().FromCloudFormation.getString(properties.MimeType):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashDvbMetricsReportingPropertyValidator(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("probability",cdk().validateNumber)(properties.probability)),errors.collect(cdk().propertyValidator("reportingUrl",cdk().requiredValidator)(properties.reportingUrl)),errors.collect(cdk().propertyValidator("reportingUrl",cdk().validateString)(properties.reportingUrl)),errors.wrap('supplied properties not correct for "DashDvbMetricsReportingProperty"')}function convertCfnOriginEndpointDashDvbMetricsReportingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashDvbMetricsReportingPropertyValidator(properties).assertSuccess(),{Probability:cdk().numberToCloudFormation(properties.probability),ReportingUrl:cdk().stringToCloudFormation(properties.reportingUrl)}):properties}function CfnOriginEndpointDashDvbMetricsReportingPropertyFromCloudFormation(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("probability","Probability",properties.Probability!=null?cfn_parse().FromCloudFormation.getNumber(properties.Probability):void 0),ret.addPropertyResult("reportingUrl","ReportingUrl",properties.ReportingUrl!=null?cfn_parse().FromCloudFormation.getString(properties.ReportingUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashDvbSettingsPropertyValidator(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("errorMetrics",cdk().listValidator(CfnOriginEndpointDashDvbMetricsReportingPropertyValidator))(properties.errorMetrics)),errors.collect(cdk().propertyValidator("fontDownload",CfnOriginEndpointDashDvbFontDownloadPropertyValidator)(properties.fontDownload)),errors.wrap('supplied properties not correct for "DashDvbSettingsProperty"')}function convertCfnOriginEndpointDashDvbSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashDvbSettingsPropertyValidator(properties).assertSuccess(),{ErrorMetrics:cdk().listMapper(convertCfnOriginEndpointDashDvbMetricsReportingPropertyToCloudFormation)(properties.errorMetrics),FontDownload:convertCfnOriginEndpointDashDvbFontDownloadPropertyToCloudFormation(properties.fontDownload)}):properties}function CfnOriginEndpointDashDvbSettingsPropertyFromCloudFormation(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("errorMetrics","ErrorMetrics",properties.ErrorMetrics!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointDashDvbMetricsReportingPropertyFromCloudFormation)(properties.ErrorMetrics):void 0),ret.addPropertyResult("fontDownload","FontDownload",properties.FontDownload!=null?CfnOriginEndpointDashDvbFontDownloadPropertyFromCloudFormation(properties.FontDownload):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashTtmlConfigurationPropertyValidator(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("ttmlProfile",cdk().requiredValidator)(properties.ttmlProfile)),errors.collect(cdk().propertyValidator("ttmlProfile",cdk().validateString)(properties.ttmlProfile)),errors.wrap('supplied properties not correct for "DashTtmlConfigurationProperty"')}function convertCfnOriginEndpointDashTtmlConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashTtmlConfigurationPropertyValidator(properties).assertSuccess(),{TtmlProfile:cdk().stringToCloudFormation(properties.ttmlProfile)}):properties}function CfnOriginEndpointDashTtmlConfigurationPropertyFromCloudFormation(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("ttmlProfile","TtmlProfile",properties.TtmlProfile!=null?cfn_parse().FromCloudFormation.getString(properties.TtmlProfile):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashSubtitleConfigurationPropertyValidator(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("ttmlConfiguration",CfnOriginEndpointDashTtmlConfigurationPropertyValidator)(properties.ttmlConfiguration)),errors.wrap('supplied properties not correct for "DashSubtitleConfigurationProperty"')}function convertCfnOriginEndpointDashSubtitleConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashSubtitleConfigurationPropertyValidator(properties).assertSuccess(),{TtmlConfiguration:convertCfnOriginEndpointDashTtmlConfigurationPropertyToCloudFormation(properties.ttmlConfiguration)}):properties}function CfnOriginEndpointDashSubtitleConfigurationPropertyFromCloudFormation(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("ttmlConfiguration","TtmlConfiguration",properties.TtmlConfiguration!=null?CfnOriginEndpointDashTtmlConfigurationPropertyFromCloudFormation(properties.TtmlConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointDashManifestConfigurationPropertyValidator(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("baseUrls",cdk().listValidator(CfnOriginEndpointDashBaseUrlPropertyValidator))(properties.baseUrls)),errors.collect(cdk().propertyValidator("compactness",cdk().validateString)(properties.compactness)),errors.collect(cdk().propertyValidator("drmSignaling",cdk().validateString)(properties.drmSignaling)),errors.collect(cdk().propertyValidator("dvbSettings",CfnOriginEndpointDashDvbSettingsPropertyValidator)(properties.dvbSettings)),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("minBufferTimeSeconds",cdk().validateNumber)(properties.minBufferTimeSeconds)),errors.collect(cdk().propertyValidator("minUpdatePeriodSeconds",cdk().validateNumber)(properties.minUpdatePeriodSeconds)),errors.collect(cdk().propertyValidator("periodTriggers",cdk().listValidator(cdk().validateString))(properties.periodTriggers)),errors.collect(cdk().propertyValidator("profiles",cdk().listValidator(cdk().validateString))(properties.profiles)),errors.collect(cdk().propertyValidator("programInformation",CfnOriginEndpointDashProgramInformationPropertyValidator)(properties.programInformation)),errors.collect(cdk().propertyValidator("scteDash",CfnOriginEndpointScteDashPropertyValidator)(properties.scteDash)),errors.collect(cdk().propertyValidator("segmentTemplateFormat",cdk().validateString)(properties.segmentTemplateFormat)),errors.collect(cdk().propertyValidator("subtitleConfiguration",CfnOriginEndpointDashSubtitleConfigurationPropertyValidator)(properties.subtitleConfiguration)),errors.collect(cdk().propertyValidator("suggestedPresentationDelaySeconds",cdk().validateNumber)(properties.suggestedPresentationDelaySeconds)),errors.collect(cdk().propertyValidator("utcTiming",CfnOriginEndpointDashUtcTimingPropertyValidator)(properties.utcTiming)),errors.wrap('supplied properties not correct for "DashManifestConfigurationProperty"')}function convertCfnOriginEndpointDashManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointDashManifestConfigurationPropertyValidator(properties).assertSuccess(),{BaseUrls:cdk().listMapper(convertCfnOriginEndpointDashBaseUrlPropertyToCloudFormation)(properties.baseUrls),Compactness:cdk().stringToCloudFormation(properties.compactness),DrmSignaling:cdk().stringToCloudFormation(properties.drmSignaling),DvbSettings:convertCfnOriginEndpointDashDvbSettingsPropertyToCloudFormation(properties.dvbSettings),FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),MinBufferTimeSeconds:cdk().numberToCloudFormation(properties.minBufferTimeSeconds),MinUpdatePeriodSeconds:cdk().numberToCloudFormation(properties.minUpdatePeriodSeconds),PeriodTriggers:cdk().listMapper(cdk().stringToCloudFormation)(properties.periodTriggers),Profiles:cdk().listMapper(cdk().stringToCloudFormation)(properties.profiles),ProgramInformation:convertCfnOriginEndpointDashProgramInformationPropertyToCloudFormation(properties.programInformation),ScteDash:convertCfnOriginEndpointScteDashPropertyToCloudFormation(properties.scteDash),SegmentTemplateFormat:cdk().stringToCloudFormation(properties.segmentTemplateFormat),SubtitleConfiguration:convertCfnOriginEndpointDashSubtitleConfigurationPropertyToCloudFormation(properties.subtitleConfiguration),SuggestedPresentationDelaySeconds:cdk().numberToCloudFormation(properties.suggestedPresentationDelaySeconds),UtcTiming:convertCfnOriginEndpointDashUtcTimingPropertyToCloudFormation(properties.utcTiming)}):properties}function CfnOriginEndpointDashManifestConfigurationPropertyFromCloudFormation(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("baseUrls","BaseUrls",properties.BaseUrls!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointDashBaseUrlPropertyFromCloudFormation)(properties.BaseUrls):void 0),ret.addPropertyResult("compactness","Compactness",properties.Compactness!=null?cfn_parse().FromCloudFormation.getString(properties.Compactness):void 0),ret.addPropertyResult("drmSignaling","DrmSignaling",properties.DrmSignaling!=null?cfn_parse().FromCloudFormation.getString(properties.DrmSignaling):void 0),ret.addPropertyResult("dvbSettings","DvbSettings",properties.DvbSettings!=null?CfnOriginEndpointDashDvbSettingsPropertyFromCloudFormation(properties.DvbSettings):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("minBufferTimeSeconds","MinBufferTimeSeconds",properties.MinBufferTimeSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinBufferTimeSeconds):void 0),ret.addPropertyResult("minUpdatePeriodSeconds","MinUpdatePeriodSeconds",properties.MinUpdatePeriodSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinUpdatePeriodSeconds):void 0),ret.addPropertyResult("periodTriggers","PeriodTriggers",properties.PeriodTriggers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.PeriodTriggers):void 0),ret.addPropertyResult("profiles","Profiles",properties.Profiles!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Profiles):void 0),ret.addPropertyResult("programInformation","ProgramInformation",properties.ProgramInformation!=null?CfnOriginEndpointDashProgramInformationPropertyFromCloudFormation(properties.ProgramInformation):void 0),ret.addPropertyResult("scteDash","ScteDash",properties.ScteDash!=null?CfnOriginEndpointScteDashPropertyFromCloudFormation(properties.ScteDash):void 0),ret.addPropertyResult("segmentTemplateFormat","SegmentTemplateFormat",properties.SegmentTemplateFormat!=null?cfn_parse().FromCloudFormation.getString(properties.SegmentTemplateFormat):void 0),ret.addPropertyResult("subtitleConfiguration","SubtitleConfiguration",properties.SubtitleConfiguration!=null?CfnOriginEndpointDashSubtitleConfigurationPropertyFromCloudFormation(properties.SubtitleConfiguration):void 0),ret.addPropertyResult("suggestedPresentationDelaySeconds","SuggestedPresentationDelaySeconds",properties.SuggestedPresentationDelaySeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.SuggestedPresentationDelaySeconds):void 0),ret.addPropertyResult("utcTiming","UtcTiming",properties.UtcTiming!=null?CfnOriginEndpointDashUtcTimingPropertyFromCloudFormation(properties.UtcTiming):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointForceEndpointErrorConfigurationPropertyValidator(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("endpointErrorConditions",cdk().listValidator(cdk().validateString))(properties.endpointErrorConditions)),errors.wrap('supplied properties not correct for "ForceEndpointErrorConfigurationProperty"')}function convertCfnOriginEndpointForceEndpointErrorConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointForceEndpointErrorConfigurationPropertyValidator(properties).assertSuccess(),{EndpointErrorConditions:cdk().listMapper(cdk().stringToCloudFormation)(properties.endpointErrorConditions)}):properties}function CfnOriginEndpointForceEndpointErrorConfigurationPropertyFromCloudFormation(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("endpointErrorConditions","EndpointErrorConditions",properties.EndpointErrorConditions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EndpointErrorConditions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointMssManifestConfigurationPropertyValidator(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("filterConfiguration",CfnOriginEndpointFilterConfigurationPropertyValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("manifestLayout",cdk().validateString)(properties.manifestLayout)),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.wrap('supplied properties not correct for "MssManifestConfigurationProperty"')}function convertCfnOriginEndpointMssManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointMssManifestConfigurationPropertyValidator(properties).assertSuccess(),{FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestLayout:cdk().stringToCloudFormation(properties.manifestLayout),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds)}):properties}function CfnOriginEndpointMssManifestConfigurationPropertyFromCloudFormation(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("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties.FilterConfiguration):void 0),ret.addPropertyResult("manifestLayout","ManifestLayout",properties.ManifestLayout!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestLayout):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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointPropsValidator(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("containerType",cdk().requiredValidator)(properties.containerType)),errors.collect(cdk().propertyValidator("containerType",cdk().validateString)(properties.containerType)),errors.collect(cdk().propertyValidator("dashManifests",cdk().listValidator(CfnOriginEndpointDashManifestConfigurationPropertyValidator))(properties.dashManifests)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("forceEndpointErrorConfiguration",CfnOriginEndpointForceEndpointErrorConfigurationPropertyValidator)(properties.forceEndpointErrorConfiguration)),errors.collect(cdk().propertyValidator("hlsManifests",cdk().listValidator(CfnOriginEndpointHlsManifestConfigurationPropertyValidator))(properties.hlsManifests)),errors.collect(cdk().propertyValidator("lowLatencyHlsManifests",cdk().listValidator(CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyValidator))(properties.lowLatencyHlsManifests)),errors.collect(cdk().propertyValidator("mssManifests",cdk().listValidator(CfnOriginEndpointMssManifestConfigurationPropertyValidator))(properties.mssManifests)),errors.collect(cdk().propertyValidator("originEndpointName",cdk().requiredValidator)(properties.originEndpointName)),errors.collect(cdk().propertyValidator("originEndpointName",cdk().validateString)(properties.originEndpointName)),errors.collect(cdk().propertyValidator("segment",CfnOriginEndpointSegmentPropertyValidator)(properties.segment)),errors.collect(cdk().propertyValidator("startoverWindowSeconds",cdk().validateNumber)(properties.startoverWindowSeconds)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnOriginEndpointProps"')}function convertCfnOriginEndpointPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointPropsValidator(properties).assertSuccess(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),ChannelName:cdk().stringToCloudFormation(properties.channelName),ContainerType:cdk().stringToCloudFormation(properties.containerType),DashManifests:cdk().listMapper(convertCfnOriginEndpointDashManifestConfigurationPropertyToCloudFormation)(properties.dashManifests),Description:cdk().stringToCloudFormation(properties.description),ForceEndpointErrorConfiguration:convertCfnOriginEndpointForceEndpointErrorConfigurationPropertyToCloudFormation(properties.forceEndpointErrorConfiguration),HlsManifests:cdk().listMapper(convertCfnOriginEndpointHlsManifestConfigurationPropertyToCloudFormation)(properties.hlsManifests),LowLatencyHlsManifests:cdk().listMapper(convertCfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyToCloudFormation)(properties.lowLatencyHlsManifests),MssManifests:cdk().listMapper(convertCfnOriginEndpointMssManifestConfigurationPropertyToCloudFormation)(properties.mssManifests),OriginEndpointName:cdk().stringToCloudFormation(properties.originEndpointName),Segment:convertCfnOriginEndpointSegmentPropertyToCloudFormation(properties.segment),StartoverWindowSeconds:cdk().numberToCloudFormation(properties.startoverWindowSeconds),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnOriginEndpointPropsFromCloudFormation(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("containerType","ContainerType",properties.ContainerType!=null?cfn_parse().FromCloudFormation.getString(properties.ContainerType):void 0),ret.addPropertyResult("dashManifests","DashManifests",properties.DashManifests!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointDashManifestConfigurationPropertyFromCloudFormation)(properties.DashManifests):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("forceEndpointErrorConfiguration","ForceEndpointErrorConfiguration",properties.ForceEndpointErrorConfiguration!=null?CfnOriginEndpointForceEndpointErrorConfigurationPropertyFromCloudFormation(properties.ForceEndpointErrorConfiguration):void 0),ret.addPropertyResult("hlsManifests","HlsManifests",properties.HlsManifests!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointHlsManifestConfigurationPropertyFromCloudFormation)(properties.HlsManifests):void 0),ret.addPropertyResult("lowLatencyHlsManifests","LowLatencyHlsManifests",properties.LowLatencyHlsManifests!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyFromCloudFormation)(properties.LowLatencyHlsManifests):void 0),ret.addPropertyResult("mssManifests","MssManifests",properties.MssManifests!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointMssManifestConfigurationPropertyFromCloudFormation)(properties.MssManifests):void 0),ret.addPropertyResult("originEndpointName","OriginEndpointName",properties.OriginEndpointName!=null?cfn_parse().FromCloudFormation.getString(properties.OriginEndpointName):void 0),ret.addPropertyResult("segment","Segment",properties.Segment!=null?CfnOriginEndpointSegmentPropertyFromCloudFormation(properties.Segment):void 0),ret.addPropertyResult("startoverWindowSeconds","StartoverWindowSeconds",properties.StartoverWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.StartoverWindowSeconds):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 CfnOriginEndpointPolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnOriginEndpointPolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::OriginEndpointPolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOriginEndpointPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnOriginEndpointPolicy(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 isCfnOriginEndpointPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnOriginEndpointPolicy.CFN_RESOURCE_TYPE_NAME}_cdnAuthConfiguration;_channelGroupName;_channelName;_originEndpointName;_policy;cfnPropertyNames={cdnAuthConfiguration:"CdnAuthConfiguration",channelGroupName:"ChannelGroupName",channelName:"ChannelName",originEndpointName:"OriginEndpointName",policy:"Policy"};constructor(scope,id,props){super(scope,id,{type:CfnOriginEndpointPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnOriginEndpointPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOriginEndpointPolicy),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"originEndpointName",this),cdk().requireProperty(props,"policy",this),this._cdnAuthConfiguration=props.cdnAuthConfiguration,this._channelGroupName=props.channelGroupName,this._channelName=props.channelName,this._originEndpointName=props.originEndpointName,this._policy=props.policy}get originEndpointPolicyRef(){return{channelGroupName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),channelName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),originEndpointName:cdk().Fn.select(2,cdk().Fn.split("|",this.ref))}}get cdnAuthConfiguration(){return this._cdnAuthConfiguration}set cdnAuthConfiguration(value){cdk().traceProperty(this.node,"CdnAuthConfiguration"),this._cdnAuthConfiguration=value}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 originEndpointName(){return this._originEndpointName}set originEndpointName(value){cdk().traceProperty(this.node,"OriginEndpointName"),this._originEndpointName=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get cfnProperties(){return{cdnAuthConfiguration:this._cdnAuthConfiguration,channelGroupName:this._channelGroupName,channelName:this._channelName,originEndpointName:this._originEndpointName,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",CfnOriginEndpointPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOriginEndpointPolicyPropsToCloudFormation(props)}}exports.CfnOriginEndpointPolicy=CfnOriginEndpointPolicy;function CfnOriginEndpointPolicyCdnAuthConfigurationPropertyValidator(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("cdnIdentifierSecretArns",cdk().requiredValidator)(properties.cdnIdentifierSecretArns)),errors.collect(cdk().propertyValidator("cdnIdentifierSecretArns",cdk().listValidator(cdk().validateString))(properties.cdnIdentifierSecretArns)),errors.collect(cdk().propertyValidator("secretsRoleArn",cdk().requiredValidator)(properties.secretsRoleArn)),errors.collect(cdk().propertyValidator("secretsRoleArn",cdk().validateString)(properties.secretsRoleArn)),errors.wrap('supplied properties not correct for "CdnAuthConfigurationProperty"')}function convertCfnOriginEndpointPolicyCdnAuthConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointPolicyCdnAuthConfigurationPropertyValidator(properties).assertSuccess(),{CdnIdentifierSecretArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.cdnIdentifierSecretArns),SecretsRoleArn:cdk().stringToCloudFormation(properties.secretsRoleArn)}):properties}function CfnOriginEndpointPolicyCdnAuthConfigurationPropertyFromCloudFormation(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("cdnIdentifierSecretArns","CdnIdentifierSecretArns",properties.CdnIdentifierSecretArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CdnIdentifierSecretArns):void 0),ret.addPropertyResult("secretsRoleArn","SecretsRoleArn",properties.SecretsRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretsRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointPolicyPropsValidator(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("cdnAuthConfiguration",CfnOriginEndpointPolicyCdnAuthConfigurationPropertyValidator)(properties.cdnAuthConfiguration)),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("originEndpointName",cdk().requiredValidator)(properties.originEndpointName)),errors.collect(cdk().propertyValidator("originEndpointName",cdk().validateString)(properties.originEndpointName)),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 "CfnOriginEndpointPolicyProps"')}function convertCfnOriginEndpointPolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointPolicyPropsValidator(properties).assertSuccess(),{CdnAuthConfiguration:convertCfnOriginEndpointPolicyCdnAuthConfigurationPropertyToCloudFormation(properties.cdnAuthConfiguration),ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),ChannelName:cdk().stringToCloudFormation(properties.channelName),OriginEndpointName:cdk().stringToCloudFormation(properties.originEndpointName),Policy:cdk().objectToCloudFormation(properties.policy)}):properties}function CfnOriginEndpointPolicyPropsFromCloudFormation(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("cdnAuthConfiguration","CdnAuthConfiguration",properties.CdnAuthConfiguration!=null?CfnOriginEndpointPolicyCdnAuthConfigurationPropertyFromCloudFormation(properties.CdnAuthConfiguration):void 0),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("originEndpointName","OriginEndpointName",properties.OriginEndpointName!=null?cfn_parse().FromCloudFormation.getString(properties.OriginEndpointName):void 0),ret.addPropertyResult("policy","Policy",properties.Policy!=null?cfn_parse().FromCloudFormation.getAny(properties.Policy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}