UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 636 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSignalMap=exports.CfnSdiSource=exports.CfnNetwork=exports.CfnMultiplexprogram=exports.CfnMultiplex=exports.CfnEventBridgeRuleTemplateGroup=exports.CfnEventBridgeRuleTemplate=exports.CfnCluster=exports.CfnCloudWatchAlarmTemplateGroup=exports.CfnCloudWatchAlarmTemplate=exports.CfnChannelPlacementGroup=exports.CfnInputSecurityGroup=exports.CfnInput=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");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 _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("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}constructor(scope,id,props={}){super(scope,id,{type:CfnChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_medialive_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrInputs=cdk().Token.asList(this.getAtt("Inputs",cdk().ResolutionTypeHint.STRING_LIST)),this.anywhereSettings=props.anywhereSettings,this.cdiInputSpecification=props.cdiInputSpecification,this.channelClass=props.channelClass,this.channelEngineVersion=props.channelEngineVersion,this.destinations=props.destinations,this.dryRun=props.dryRun,this.encoderSettings=props.encoderSettings,this.inputAttachments=props.inputAttachments,this.inputSpecification=props.inputSpecification,this.logLevel=props.logLevel,this.maintenance=props.maintenance,this.name=props.name,this.roleArn=props.roleArn,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::MediaLive::Channel",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.vpc=props.vpc}get cfnProperties(){return{anywhereSettings:this.anywhereSettings,cdiInputSpecification:this.cdiInputSpecification,channelClass:this.channelClass,channelEngineVersion:this.channelEngineVersion,destinations:this.destinations,dryRun:this.dryRun,encoderSettings:this.encoderSettings,inputAttachments:this.inputAttachments,inputSpecification:this.inputSpecification,logLevel:this.logLevel,maintenance:this.maintenance,name:this.name,roleArn:this.roleArn,tags:this.tags.renderTags(),vpc:this.vpc}}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:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPropsToCloudFormation(props)}}exports.CfnChannel=CfnChannel,_a=JSII_RTTI_SYMBOL_1,CfnChannel[_a]={fqn:"aws-cdk-lib.aws_medialive.CfnChannel",version:"2.185.0"},CfnChannel.CFN_RESOURCE_TYPE_NAME="AWS::MediaLive::Channel";function CfnChannelAudioSilenceFailoverSettingsPropertyValidator(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("audioSelectorName",cdk().validateString)(properties.audioSelectorName)),errors.collect(cdk().propertyValidator("audioSilenceThresholdMsec",cdk().validateNumber)(properties.audioSilenceThresholdMsec)),errors.wrap('supplied properties not correct for "AudioSilenceFailoverSettingsProperty"')}function convertCfnChannelAudioSilenceFailoverSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioSilenceFailoverSettingsPropertyValidator(properties).assertSuccess(),{AudioSelectorName:cdk().stringToCloudFormation(properties.audioSelectorName),AudioSilenceThresholdMsec:cdk().numberToCloudFormation(properties.audioSilenceThresholdMsec)}):properties}function CfnChannelAudioSilenceFailoverSettingsPropertyFromCloudFormation(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("audioSelectorName","AudioSelectorName",properties.AudioSelectorName!=null?cfn_parse().FromCloudFormation.getString(properties.AudioSelectorName):void 0),ret.addPropertyResult("audioSilenceThresholdMsec","AudioSilenceThresholdMsec",properties.AudioSilenceThresholdMsec!=null?cfn_parse().FromCloudFormation.getNumber(properties.AudioSilenceThresholdMsec):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoBlackFailoverSettingsPropertyValidator(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("blackDetectThreshold",cdk().validateNumber)(properties.blackDetectThreshold)),errors.collect(cdk().propertyValidator("videoBlackThresholdMsec",cdk().validateNumber)(properties.videoBlackThresholdMsec)),errors.wrap('supplied properties not correct for "VideoBlackFailoverSettingsProperty"')}function convertCfnChannelVideoBlackFailoverSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoBlackFailoverSettingsPropertyValidator(properties).assertSuccess(),{BlackDetectThreshold:cdk().numberToCloudFormation(properties.blackDetectThreshold),VideoBlackThresholdMsec:cdk().numberToCloudFormation(properties.videoBlackThresholdMsec)}):properties}function CfnChannelVideoBlackFailoverSettingsPropertyFromCloudFormation(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("blackDetectThreshold","BlackDetectThreshold",properties.BlackDetectThreshold!=null?cfn_parse().FromCloudFormation.getNumber(properties.BlackDetectThreshold):void 0),ret.addPropertyResult("videoBlackThresholdMsec","VideoBlackThresholdMsec",properties.VideoBlackThresholdMsec!=null?cfn_parse().FromCloudFormation.getNumber(properties.VideoBlackThresholdMsec):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelInputLossFailoverSettingsPropertyValidator(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("inputLossThresholdMsec",cdk().validateNumber)(properties.inputLossThresholdMsec)),errors.wrap('supplied properties not correct for "InputLossFailoverSettingsProperty"')}function convertCfnChannelInputLossFailoverSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelInputLossFailoverSettingsPropertyValidator(properties).assertSuccess(),{InputLossThresholdMsec:cdk().numberToCloudFormation(properties.inputLossThresholdMsec)}):properties}function CfnChannelInputLossFailoverSettingsPropertyFromCloudFormation(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("inputLossThresholdMsec","InputLossThresholdMsec",properties.InputLossThresholdMsec!=null?cfn_parse().FromCloudFormation.getNumber(properties.InputLossThresholdMsec):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelFailoverConditionSettingsPropertyValidator(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("audioSilenceSettings",CfnChannelAudioSilenceFailoverSettingsPropertyValidator)(properties.audioSilenceSettings)),errors.collect(cdk().propertyValidator("inputLossSettings",CfnChannelInputLossFailoverSettingsPropertyValidator)(properties.inputLossSettings)),errors.collect(cdk().propertyValidator("videoBlackSettings",CfnChannelVideoBlackFailoverSettingsPropertyValidator)(properties.videoBlackSettings)),errors.wrap('supplied properties not correct for "FailoverConditionSettingsProperty"')}function convertCfnChannelFailoverConditionSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelFailoverConditionSettingsPropertyValidator(properties).assertSuccess(),{AudioSilenceSettings:convertCfnChannelAudioSilenceFailoverSettingsPropertyToCloudFormation(properties.audioSilenceSettings),InputLossSettings:convertCfnChannelInputLossFailoverSettingsPropertyToCloudFormation(properties.inputLossSettings),VideoBlackSettings:convertCfnChannelVideoBlackFailoverSettingsPropertyToCloudFormation(properties.videoBlackSettings)}):properties}function CfnChannelFailoverConditionSettingsPropertyFromCloudFormation(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("audioSilenceSettings","AudioSilenceSettings",properties.AudioSilenceSettings!=null?CfnChannelAudioSilenceFailoverSettingsPropertyFromCloudFormation(properties.AudioSilenceSettings):void 0),ret.addPropertyResult("inputLossSettings","InputLossSettings",properties.InputLossSettings!=null?CfnChannelInputLossFailoverSettingsPropertyFromCloudFormation(properties.InputLossSettings):void 0),ret.addPropertyResult("videoBlackSettings","VideoBlackSettings",properties.VideoBlackSettings!=null?CfnChannelVideoBlackFailoverSettingsPropertyFromCloudFormation(properties.VideoBlackSettings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelFailoverConditionPropertyValidator(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("failoverConditionSettings",CfnChannelFailoverConditionSettingsPropertyValidator)(properties.failoverConditionSettings)),errors.wrap('supplied properties not correct for "FailoverConditionProperty"')}function convertCfnChannelFailoverConditionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelFailoverConditionPropertyValidator(properties).assertSuccess(),{FailoverConditionSettings:convertCfnChannelFailoverConditionSettingsPropertyToCloudFormation(properties.failoverConditionSettings)}):properties}function CfnChannelFailoverConditionPropertyFromCloudFormation(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("failoverConditionSettings","FailoverConditionSettings",properties.FailoverConditionSettings!=null?CfnChannelFailoverConditionSettingsPropertyFromCloudFormation(properties.FailoverConditionSettings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAutomaticInputFailoverSettingsPropertyValidator(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("errorClearTimeMsec",cdk().validateNumber)(properties.errorClearTimeMsec)),errors.collect(cdk().propertyValidator("failoverConditions",cdk().listValidator(CfnChannelFailoverConditionPropertyValidator))(properties.failoverConditions)),errors.collect(cdk().propertyValidator("inputPreference",cdk().validateString)(properties.inputPreference)),errors.collect(cdk().propertyValidator("secondaryInputId",cdk().validateString)(properties.secondaryInputId)),errors.wrap('supplied properties not correct for "AutomaticInputFailoverSettingsProperty"')}function convertCfnChannelAutomaticInputFailoverSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAutomaticInputFailoverSettingsPropertyValidator(properties).assertSuccess(),{ErrorClearTimeMsec:cdk().numberToCloudFormation(properties.errorClearTimeMsec),FailoverConditions:cdk().listMapper(convertCfnChannelFailoverConditionPropertyToCloudFormation)(properties.failoverConditions),InputPreference:cdk().stringToCloudFormation(properties.inputPreference),SecondaryInputId:cdk().stringToCloudFormation(properties.secondaryInputId)}):properties}function CfnChannelAutomaticInputFailoverSettingsPropertyFromCloudFormation(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("errorClearTimeMsec","ErrorClearTimeMsec",properties.ErrorClearTimeMsec!=null?cfn_parse().FromCloudFormation.getNumber(properties.ErrorClearTimeMsec):void 0),ret.addPropertyResult("failoverConditions","FailoverConditions",properties.FailoverConditions!=null?cfn_parse().FromCloudFormation.getArray(CfnChannelFailoverConditionPropertyFromCloudFormation)(properties.FailoverConditions):void 0),ret.addPropertyResult("inputPreference","InputPreference",properties.InputPreference!=null?cfn_parse().FromCloudFormation.getString(properties.InputPreference):void 0),ret.addPropertyResult("secondaryInputId","SecondaryInputId",properties.SecondaryInputId!=null?cfn_parse().FromCloudFormation.getString(properties.SecondaryInputId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelHdr10SettingsPropertyValidator(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("maxCll",cdk().validateNumber)(properties.maxCll)),errors.collect(cdk().propertyValidator("maxFall",cdk().validateNumber)(properties.maxFall)),errors.wrap('supplied properties not correct for "Hdr10SettingsProperty"')}function convertCfnChannelHdr10SettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelHdr10SettingsPropertyValidator(properties).assertSuccess(),{MaxCll:cdk().numberToCloudFormation(properties.maxCll),MaxFall:cdk().numberToCloudFormation(properties.maxFall)}):properties}function CfnChannelHdr10SettingsPropertyFromCloudFormation(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("maxCll","MaxCll",properties.MaxCll!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxCll):void 0),ret.addPropertyResult("maxFall","MaxFall",properties.MaxFall!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxFall):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoSelectorColorSpaceSettingsPropertyValidator(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("hdr10Settings",CfnChannelHdr10SettingsPropertyValidator)(properties.hdr10Settings)),errors.wrap('supplied properties not correct for "VideoSelectorColorSpaceSettingsProperty"')}function convertCfnChannelVideoSelectorColorSpaceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoSelectorColorSpaceSettingsPropertyValidator(properties).assertSuccess(),{Hdr10Settings:convertCfnChannelHdr10SettingsPropertyToCloudFormation(properties.hdr10Settings)}):properties}function CfnChannelVideoSelectorColorSpaceSettingsPropertyFromCloudFormation(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("hdr10Settings","Hdr10Settings",properties.Hdr10Settings!=null?CfnChannelHdr10SettingsPropertyFromCloudFormation(properties.Hdr10Settings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoSelectorProgramIdPropertyValidator(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("programId",cdk().validateNumber)(properties.programId)),errors.wrap('supplied properties not correct for "VideoSelectorProgramIdProperty"')}function convertCfnChannelVideoSelectorProgramIdPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoSelectorProgramIdPropertyValidator(properties).assertSuccess(),{ProgramId:cdk().numberToCloudFormation(properties.programId)}):properties}function CfnChannelVideoSelectorProgramIdPropertyFromCloudFormation(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("programId","ProgramId",properties.ProgramId!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoSelectorPidPropertyValidator(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("pid",cdk().validateNumber)(properties.pid)),errors.wrap('supplied properties not correct for "VideoSelectorPidProperty"')}function convertCfnChannelVideoSelectorPidPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoSelectorPidPropertyValidator(properties).assertSuccess(),{Pid:cdk().numberToCloudFormation(properties.pid)}):properties}function CfnChannelVideoSelectorPidPropertyFromCloudFormation(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("pid","Pid",properties.Pid!=null?cfn_parse().FromCloudFormation.getNumber(properties.Pid):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoSelectorSettingsPropertyValidator(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("videoSelectorPid",CfnChannelVideoSelectorPidPropertyValidator)(properties.videoSelectorPid)),errors.collect(cdk().propertyValidator("videoSelectorProgramId",CfnChannelVideoSelectorProgramIdPropertyValidator)(properties.videoSelectorProgramId)),errors.wrap('supplied properties not correct for "VideoSelectorSettingsProperty"')}function convertCfnChannelVideoSelectorSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoSelectorSettingsPropertyValidator(properties).assertSuccess(),{VideoSelectorPid:convertCfnChannelVideoSelectorPidPropertyToCloudFormation(properties.videoSelectorPid),VideoSelectorProgramId:convertCfnChannelVideoSelectorProgramIdPropertyToCloudFormation(properties.videoSelectorProgramId)}):properties}function CfnChannelVideoSelectorSettingsPropertyFromCloudFormation(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("videoSelectorPid","VideoSelectorPid",properties.VideoSelectorPid!=null?CfnChannelVideoSelectorPidPropertyFromCloudFormation(properties.VideoSelectorPid):void 0),ret.addPropertyResult("videoSelectorProgramId","VideoSelectorProgramId",properties.VideoSelectorProgramId!=null?CfnChannelVideoSelectorProgramIdPropertyFromCloudFormation(properties.VideoSelectorProgramId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelVideoSelectorPropertyValidator(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("colorSpace",cdk().validateString)(properties.colorSpace)),errors.collect(cdk().propertyValidator("colorSpaceSettings",CfnChannelVideoSelectorColorSpaceSettingsPropertyValidator)(properties.colorSpaceSettings)),errors.collect(cdk().propertyValidator("colorSpaceUsage",cdk().validateString)(properties.colorSpaceUsage)),errors.collect(cdk().propertyValidator("selectorSettings",CfnChannelVideoSelectorSettingsPropertyValidator)(properties.selectorSettings)),errors.wrap('supplied properties not correct for "VideoSelectorProperty"')}function convertCfnChannelVideoSelectorPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelVideoSelectorPropertyValidator(properties).assertSuccess(),{ColorSpace:cdk().stringToCloudFormation(properties.colorSpace),ColorSpaceSettings:convertCfnChannelVideoSelectorColorSpaceSettingsPropertyToCloudFormation(properties.colorSpaceSettings),ColorSpaceUsage:cdk().stringToCloudFormation(properties.colorSpaceUsage),SelectorSettings:convertCfnChannelVideoSelectorSettingsPropertyToCloudFormation(properties.selectorSettings)}):properties}function CfnChannelVideoSelectorPropertyFromCloudFormation(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("colorSpace","ColorSpace",properties.ColorSpace!=null?cfn_parse().FromCloudFormation.getString(properties.ColorSpace):void 0),ret.addPropertyResult("colorSpaceSettings","ColorSpaceSettings",properties.ColorSpaceSettings!=null?CfnChannelVideoSelectorColorSpaceSettingsPropertyFromCloudFormation(properties.ColorSpaceSettings):void 0),ret.addPropertyResult("colorSpaceUsage","ColorSpaceUsage",properties.ColorSpaceUsage!=null?cfn_parse().FromCloudFormation.getString(properties.ColorSpaceUsage):void 0),ret.addPropertyResult("selectorSettings","SelectorSettings",properties.SelectorSettings!=null?CfnChannelVideoSelectorSettingsPropertyFromCloudFormation(properties.SelectorSettings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioPidSelectionPropertyValidator(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("pid",cdk().validateNumber)(properties.pid)),errors.wrap('supplied properties not correct for "AudioPidSelectionProperty"')}function convertCfnChannelAudioPidSelectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioPidSelectionPropertyValidator(properties).assertSuccess(),{Pid:cdk().numberToCloudFormation(properties.pid)}):properties}function CfnChannelAudioPidSelectionPropertyFromCloudFormation(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("pid","Pid",properties.Pid!=null?cfn_parse().FromCloudFormation.getNumber(properties.Pid):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioLanguageSelectionPropertyValidator(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("languageCode",cdk().validateString)(properties.languageCode)),errors.collect(cdk().propertyValidator("languageSelectionPolicy",cdk().validateString)(properties.languageSelectionPolicy)),errors.wrap('supplied properties not correct for "AudioLanguageSelectionProperty"')}function convertCfnChannelAudioLanguageSelectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioLanguageSelectionPropertyValidator(properties).assertSuccess(),{LanguageCode:cdk().stringToCloudFormation(properties.languageCode),LanguageSelectionPolicy:cdk().stringToCloudFormation(properties.languageSelectionPolicy)}):properties}function CfnChannelAudioLanguageSelectionPropertyFromCloudFormation(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("languageCode","LanguageCode",properties.LanguageCode!=null?cfn_parse().FromCloudFormation.getString(properties.LanguageCode):void 0),ret.addPropertyResult("languageSelectionPolicy","LanguageSelectionPolicy",properties.LanguageSelectionPolicy!=null?cfn_parse().FromCloudFormation.getString(properties.LanguageSelectionPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioDolbyEDecodePropertyValidator(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("programSelection",cdk().validateString)(properties.programSelection)),errors.wrap('supplied properties not correct for "AudioDolbyEDecodeProperty"')}function convertCfnChannelAudioDolbyEDecodePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioDolbyEDecodePropertyValidator(properties).assertSuccess(),{ProgramSelection:cdk().stringToCloudFormation(properties.programSelection)}):properties}function CfnChannelAudioDolbyEDecodePropertyFromCloudFormation(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("programSelection","ProgramSelection",properties.ProgramSelection!=null?cfn_parse().FromCloudFormation.getString(properties.ProgramSelection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioTrackPropertyValidator(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("track",cdk().validateNumber)(properties.track)),errors.wrap('supplied properties not correct for "AudioTrackProperty"')}function convertCfnChannelAudioTrackPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioTrackPropertyValidator(properties).assertSuccess(),{Track:cdk().numberToCloudFormation(properties.track)}):properties}function CfnChannelAudioTrackPropertyFromCloudFormation(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("track","Track",properties.Track!=null?cfn_parse().FromCloudFormation.getNumber(properties.Track):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioTrackSelectionPropertyValidator(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("dolbyEDecode",CfnChannelAudioDolbyEDecodePropertyValidator)(properties.dolbyEDecode)),errors.collect(cdk().propertyValidator("tracks",cdk().listValidator(CfnChannelAudioTrackPropertyValidator))(properties.tracks)),errors.wrap('supplied properties not correct for "AudioTrackSelectionProperty"')}function convertCfnChannelAudioTrackSelectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioTrackSelectionPropertyValidator(properties).assertSuccess(),{DolbyEDecode:convertCfnChannelAudioDolbyEDecodePropertyToCloudFormation(properties.dolbyEDecode),Tracks:cdk().listMapper(convertCfnChannelAudioTrackPropertyToCloudFormation)(properties.tracks)}):properties}function CfnChannelAudioTrackSelectionPropertyFromCloudFormation(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("dolbyEDecode","DolbyEDecode",properties.DolbyEDecode!=null?CfnChannelAudioDolbyEDecodePropertyFromCloudFormation(properties.DolbyEDecode):void 0),ret.addPropertyResult("tracks","Tracks",properties.Tracks!=null?cfn_parse().FromCloudFormation.getArray(CfnChannelAudioTrackPropertyFromCloudFormation)(properties.Tracks):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioHlsRenditionSelectionPropertyValidator(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("groupId",cdk().validateString)(properties.groupId)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "AudioHlsRenditionSelectionProperty"')}function convertCfnChannelAudioHlsRenditionSelectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioHlsRenditionSelectionPropertyValidator(properties).assertSuccess(),{GroupId:cdk().stringToCloudFormation(properties.groupId),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnChannelAudioHlsRenditionSelectionPropertyFromCloudFormation(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("groupId","GroupId",properties.GroupId!=null?cfn_parse().FromCloudFormation.getString(properties.GroupId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioSelectorSettingsPropertyValidator(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("audioHlsRenditionSelection",CfnChannelAudioHlsRenditionSelectionPropertyValidator)(properties.audioHlsRenditionSelection)),errors.collect(cdk().propertyValidator("audioLanguageSelection",CfnChannelAudioLanguageSelectionPropertyValidator)(properties.audioLanguageSelection)),errors.collect(cdk().propertyValidator("audioPidSelection",CfnChannelAudioPidSelectionPropertyValidator)(properties.audioPidSelection)),errors.collect(cdk().propertyValidator("audioTrackSelection",CfnChannelAudioTrackSelectionPropertyValidator)(properties.audioTrackSelection)),errors.wrap('supplied properties not correct for "AudioSelectorSettingsProperty"')}function convertCfnChannelAudioSelectorSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioSelectorSettingsPropertyValidator(properties).assertSuccess(),{AudioHlsRenditionSelection:convertCfnChannelAudioHlsRenditionSelectionPropertyToCloudFormation(properties.audioHlsRenditionSelection),AudioLanguageSelection:convertCfnChannelAudioLanguageSelectionPropertyToCloudFormation(properties.audioLanguageSelection),AudioPidSelection:convertCfnChannelAudioPidSelectionPropertyToCloudFormation(properties.audioPidSelection),AudioTrackSelection:convertCfnChannelAudioTrackSelectionPropertyToCloudFormation(properties.audioTrackSelection)}):properties}function CfnChannelAudioSelectorSettingsPropertyFromCloudFormation(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("audioHlsRenditionSelection","AudioHlsRenditionSelection",properties.AudioHlsRenditionSelection!=null?CfnChannelAudioHlsRenditionSelectionPropertyFromCloudFormation(properties.AudioHlsRenditionSelection):void 0),ret.addPropertyResult("audioLanguageSelection","AudioLanguageSelection",properties.AudioLanguageSelection!=null?CfnChannelAudioLanguageSelectionPropertyFromCloudFormation(properties.AudioLanguageSelection):void 0),ret.addPropertyResult("audioPidSelection","AudioPidSelection",properties.AudioPidSelection!=null?CfnChannelAudioPidSelectionPropertyFromCloudFormation(properties.AudioPidSelection):void 0),ret.addPropertyResult("audioTrackSelection","AudioTrackSelection",properties.AudioTrackSelection!=null?CfnChannelAudioTrackSelectionPropertyFromCloudFormation(properties.AudioTrackSelection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAudioSelectorPropertyValidator(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("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("selectorSettings",CfnChannelAudioSelectorSettingsPropertyValidator)(properties.selectorSettings)),errors.wrap('supplied properties not correct for "AudioSelectorProperty"')}function convertCfnChannelAudioSelectorPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAudioSelectorPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),SelectorSettings:convertCfnChannelAudioSelectorSettingsPropertyToCloudFormation(properties.selectorSettings)}):properties}function CfnChannelAudioSelectorPropertyFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("selectorSettings","SelectorSettings",properties.SelectorSettings!=null?CfnChannelAudioSelectorSettingsPropertyFromCloudFormation(properties.SelectorSettings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelDvbSubSourceSettingsPropertyValidator(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("ocrLanguage",cdk().validateString)(properties.ocrLanguage)),errors.collect(cdk().propertyValidator("pid",cdk().validateNumber)(properties.pid)),errors.wrap('supplied properties not correct for "DvbSubSourceSettingsProperty"')}function convertCfnChannelDvbSubSourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelDvbSubSourceSettingsPropertyValidator(properties).assertSuccess(),{OcrLanguage:cdk().stringToCloudFormation(properties.ocrLanguage),Pid:cdk().numberToCloudFormation(properties.pid)}):properties}function CfnChannelDvbSubSourceSettingsPropertyFromCloudFormation(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("ocrLanguage","OcrLanguage",properties.OcrLanguage!=null?cfn_parse().FromCloudFormation.getString(properties.OcrLanguage):void 0),ret.addPropertyResult("pid","Pid",properties.Pid!=null?cfn_parse().FromCloudFormation.getNumber(properties.Pid):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelScte27SourceSettingsPropertyValidator(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("ocrLanguage",cdk().validateString)(properties.ocrLanguage)),errors.collect(cdk().propertyValidator("pid",cdk().validateNumber)(properties.pid)),errors.wrap('supplied properties not correct for "Scte27SourceSettingsProperty"')}function convertCfnChannelScte27SourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelScte27SourceSettingsPropertyValidator(properties).assertSuccess(),{OcrLanguage:cdk().stringToCloudFormation(properties.ocrLanguage),Pid:cdk().numberToCloudFormation(properties.pid)}):properties}function CfnChannelScte27SourceSettingsPropertyFromCloudFormation(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("ocrLanguage","OcrLanguage",properties.OcrLanguage!=null?cfn_parse().FromCloudFormation.getString(properties.OcrLanguage):void 0),ret.addPropertyResult("pid","Pid",properties.Pid!=null?cfn_parse().FromCloudFormation.getNumber(properties.Pid):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelAribSourceSettingsPropertyValidator(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.wrap('supplied properties not correct for "AribSourceSettingsProperty"')}function convertCfnChannelAribSourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAribSourceSettingsPropertyValidator(properties).assertSuccess(),{}):properties}function CfnChannelAribSourceSettingsPropertyFromCloudFormation(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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelEmbeddedSourceSettingsPropertyValidator(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("convert608To708",cdk().validateString)(properties.convert608To708)),errors.collect(cdk().propertyValidator("scte20Detection",cdk().validateString)(properties.scte20Detection)),errors.collect(cdk().propertyValidator("source608ChannelNumber",cdk().validateNumber)(properties.source608ChannelNumber)),errors.collect(cdk().propertyValidator("source608TrackNumber",cdk().validateNumber)(properties.source608TrackNumber)),errors.wrap('supplied properties not correct for "EmbeddedSourceSettingsProperty"')}function convertCfnChannelEmbeddedSourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelEmbeddedSourceSettingsPropertyValidator(properties).assertSuccess(),{Convert608To708:cdk().stringToCloudFormation(properties.convert608To708),Scte20Detection:cdk().stringToCloudFormation(properties.scte20Detection),Source608ChannelNumber:cdk().numberToCloudFormation(properties.source608ChannelNumber),Source608TrackNumber:cdk().numberToCloudFormation(properties.source608TrackNumber)}):properties}function CfnChannelEmbeddedSourceSettingsPropertyFromCloudFormation(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("convert608To708","Convert608To708",properties.Convert608To708!=null?cfn_parse().FromCloudFormation.getString(properties.Convert608To708):void 0),ret.addPropertyResult("scte20Detection","Scte20Detection",properties.Scte20Detection!=null?cfn_parse().FromCloudFormation.getString(properties.Scte20Detection):void 0),ret.addPropertyResult("source608ChannelNumber","Source608ChannelNumber",properties.Source608ChannelNumber!=null?cfn_parse().FromCloudFormation.getNumber(properties.Source608ChannelNumber):void 0),ret.addPropertyResult("source608TrackNumber","Source608TrackNumber",properties.Source608TrackNumber!=null?cfn_parse().FromCloudFormation.getNumber(properties.Source608TrackNumber):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelScte20SourceSettingsPropertyValidator(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("convert608To708",cdk().validateString)(properties.convert608To708)),errors.collect(cdk().propertyValidator("source608ChannelNumber",cdk().validateNumber)(properties.source608ChannelNumber)),errors.wrap('supplied properties not correct for "Scte20SourceSettingsProperty"')}function convertCfnChannelScte20SourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelScte20SourceSettingsPropertyValidator(properties).assertSuccess(),{Convert608To708:cdk().stringToCloudFormation(properties.convert608To708),Source608ChannelNumber:cdk().numberToCloudFormation(properties.source608ChannelNumber)}):properties}function CfnChannelScte20SourceSettingsPropertyFromCloudFormation(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("convert608To708","Convert608To708",properties.Convert608To708!=null?cfn_parse().FromCloudFormat