aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines • 92.3 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnVodSource=exports.CfnSourceLocation=exports.CfnPlaybackConfiguration=exports.CfnLiveSource=exports.CfnChannelPolicy=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_mediatailor_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"outputs",this),cdk().requireProperty(props,"playbackMode",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.audiences=props.audiences,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaTailor::Channel",void 0,{tagPropertyName:"tags"}),this.channelName=props.channelName,this.fillerSlate=props.fillerSlate,this.logConfiguration=props.logConfiguration,this.outputs=props.outputs,this.playbackMode=props.playbackMode,this.tags=props.tags,this.tier=props.tier,this.timeShiftConfiguration=props.timeShiftConfiguration}get cfnProperties(){return{audiences:this.audiences,tags:this.cdkTagManager.renderTags(this.tags),channelName:this.channelName,fillerSlate:this.fillerSlate,logConfiguration:this.logConfiguration,outputs:this.outputs,playbackMode:this.playbackMode,tier:this.tier,timeShiftConfiguration:this.timeShiftConfiguration}}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_mediatailor.CfnChannel",version:"2.210.0"},CfnChannel.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::Channel";function CfnChannelSlateSourcePropertyValidator(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("sourceLocationName",cdk().validateString)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("vodSourceName",cdk().validateString)(properties.vodSourceName)),errors.wrap('supplied properties not correct for "SlateSourceProperty"')}function convertCfnChannelSlateSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelSlateSourcePropertyValidator(properties).assertSuccess(),{SourceLocationName:cdk().stringToCloudFormation(properties.sourceLocationName),VodSourceName:cdk().stringToCloudFormation(properties.vodSourceName)}):properties}function CfnChannelSlateSourcePropertyFromCloudFormation(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("sourceLocationName","SourceLocationName",properties.SourceLocationName!=null?cfn_parse().FromCloudFormation.getString(properties.SourceLocationName):void 0),ret.addPropertyResult("vodSourceName","VodSourceName",properties.VodSourceName!=null?cfn_parse().FromCloudFormation.getString(properties.VodSourceName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelDashPlaylistSettingsPropertyValidator(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("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("suggestedPresentationDelaySeconds",cdk().validateNumber)(properties.suggestedPresentationDelaySeconds)),errors.wrap('supplied properties not correct for "DashPlaylistSettingsProperty"')}function convertCfnChannelDashPlaylistSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelDashPlaylistSettingsPropertyValidator(properties).assertSuccess(),{ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),MinBufferTimeSeconds:cdk().numberToCloudFormation(properties.minBufferTimeSeconds),MinUpdatePeriodSeconds:cdk().numberToCloudFormation(properties.minUpdatePeriodSeconds),SuggestedPresentationDelaySeconds:cdk().numberToCloudFormation(properties.suggestedPresentationDelaySeconds)}):properties}function CfnChannelDashPlaylistSettingsPropertyFromCloudFormation(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("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("suggestedPresentationDelaySeconds","SuggestedPresentationDelaySeconds",properties.SuggestedPresentationDelaySeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.SuggestedPresentationDelaySeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelHlsPlaylistSettingsPropertyValidator(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("adMarkupType",cdk().listValidator(cdk().validateString))(properties.adMarkupType)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.wrap('supplied properties not correct for "HlsPlaylistSettingsProperty"')}function convertCfnChannelHlsPlaylistSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelHlsPlaylistSettingsPropertyValidator(properties).assertSuccess(),{AdMarkupType:cdk().listMapper(cdk().stringToCloudFormation)(properties.adMarkupType),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds)}):properties}function CfnChannelHlsPlaylistSettingsPropertyFromCloudFormation(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("adMarkupType","AdMarkupType",properties.AdMarkupType!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AdMarkupType):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelRequestOutputItemPropertyValidator(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("dashPlaylistSettings",CfnChannelDashPlaylistSettingsPropertyValidator)(properties.dashPlaylistSettings)),errors.collect(cdk().propertyValidator("hlsPlaylistSettings",CfnChannelHlsPlaylistSettingsPropertyValidator)(properties.hlsPlaylistSettings)),errors.collect(cdk().propertyValidator("manifestName",cdk().requiredValidator)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().requiredValidator)(properties.sourceGroup)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().validateString)(properties.sourceGroup)),errors.wrap('supplied properties not correct for "RequestOutputItemProperty"')}function convertCfnChannelRequestOutputItemPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelRequestOutputItemPropertyValidator(properties).assertSuccess(),{DashPlaylistSettings:convertCfnChannelDashPlaylistSettingsPropertyToCloudFormation(properties.dashPlaylistSettings),HlsPlaylistSettings:convertCfnChannelHlsPlaylistSettingsPropertyToCloudFormation(properties.hlsPlaylistSettings),ManifestName:cdk().stringToCloudFormation(properties.manifestName),SourceGroup:cdk().stringToCloudFormation(properties.sourceGroup)}):properties}function CfnChannelRequestOutputItemPropertyFromCloudFormation(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("dashPlaylistSettings","DashPlaylistSettings",properties.DashPlaylistSettings!=null?CfnChannelDashPlaylistSettingsPropertyFromCloudFormation(properties.DashPlaylistSettings):void 0),ret.addPropertyResult("hlsPlaylistSettings","HlsPlaylistSettings",properties.HlsPlaylistSettings!=null?CfnChannelHlsPlaylistSettingsPropertyFromCloudFormation(properties.HlsPlaylistSettings):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("sourceGroup","SourceGroup",properties.SourceGroup!=null?cfn_parse().FromCloudFormation.getString(properties.SourceGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelLogConfigurationForChannelPropertyValidator(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("logTypes",cdk().listValidator(cdk().validateString))(properties.logTypes)),errors.wrap('supplied properties not correct for "LogConfigurationForChannelProperty"')}function convertCfnChannelLogConfigurationForChannelPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelLogConfigurationForChannelPropertyValidator(properties).assertSuccess(),{LogTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.logTypes)}):properties}function CfnChannelLogConfigurationForChannelPropertyFromCloudFormation(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("logTypes","LogTypes",properties.LogTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LogTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelTimeShiftConfigurationPropertyValidator(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("maxTimeDelaySeconds",cdk().requiredValidator)(properties.maxTimeDelaySeconds)),errors.collect(cdk().propertyValidator("maxTimeDelaySeconds",cdk().validateNumber)(properties.maxTimeDelaySeconds)),errors.wrap('supplied properties not correct for "TimeShiftConfigurationProperty"')}function convertCfnChannelTimeShiftConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelTimeShiftConfigurationPropertyValidator(properties).assertSuccess(),{MaxTimeDelaySeconds:cdk().numberToCloudFormation(properties.maxTimeDelaySeconds)}):properties}function CfnChannelTimeShiftConfigurationPropertyFromCloudFormation(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("maxTimeDelaySeconds","MaxTimeDelaySeconds",properties.MaxTimeDelaySeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxTimeDelaySeconds):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("audiences",cdk().listValidator(cdk().validateString))(properties.audiences)),errors.collect(cdk().propertyValidator("channelName",cdk().requiredValidator)(properties.channelName)),errors.collect(cdk().propertyValidator("channelName",cdk().validateString)(properties.channelName)),errors.collect(cdk().propertyValidator("fillerSlate",CfnChannelSlateSourcePropertyValidator)(properties.fillerSlate)),errors.collect(cdk().propertyValidator("logConfiguration",CfnChannelLogConfigurationForChannelPropertyValidator)(properties.logConfiguration)),errors.collect(cdk().propertyValidator("outputs",cdk().requiredValidator)(properties.outputs)),errors.collect(cdk().propertyValidator("outputs",cdk().listValidator(CfnChannelRequestOutputItemPropertyValidator))(properties.outputs)),errors.collect(cdk().propertyValidator("playbackMode",cdk().requiredValidator)(properties.playbackMode)),errors.collect(cdk().propertyValidator("playbackMode",cdk().validateString)(properties.playbackMode)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("tier",cdk().validateString)(properties.tier)),errors.collect(cdk().propertyValidator("timeShiftConfiguration",CfnChannelTimeShiftConfigurationPropertyValidator)(properties.timeShiftConfiguration)),errors.wrap('supplied properties not correct for "CfnChannelProps"')}function convertCfnChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelPropsValidator(properties).assertSuccess(),{Audiences:cdk().listMapper(cdk().stringToCloudFormation)(properties.audiences),ChannelName:cdk().stringToCloudFormation(properties.channelName),FillerSlate:convertCfnChannelSlateSourcePropertyToCloudFormation(properties.fillerSlate),LogConfiguration:convertCfnChannelLogConfigurationForChannelPropertyToCloudFormation(properties.logConfiguration),Outputs:cdk().listMapper(convertCfnChannelRequestOutputItemPropertyToCloudFormation)(properties.outputs),PlaybackMode:cdk().stringToCloudFormation(properties.playbackMode),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Tier:cdk().stringToCloudFormation(properties.tier),TimeShiftConfiguration:convertCfnChannelTimeShiftConfigurationPropertyToCloudFormation(properties.timeShiftConfiguration)}):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("audiences","Audiences",properties.Audiences!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Audiences):void 0),ret.addPropertyResult("channelName","ChannelName",properties.ChannelName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelName):void 0),ret.addPropertyResult("fillerSlate","FillerSlate",properties.FillerSlate!=null?CfnChannelSlateSourcePropertyFromCloudFormation(properties.FillerSlate):void 0),ret.addPropertyResult("logConfiguration","LogConfiguration",properties.LogConfiguration!=null?CfnChannelLogConfigurationForChannelPropertyFromCloudFormation(properties.LogConfiguration):void 0),ret.addPropertyResult("outputs","Outputs",properties.Outputs!=null?cfn_parse().FromCloudFormation.getArray(CfnChannelRequestOutputItemPropertyFromCloudFormation)(properties.Outputs):void 0),ret.addPropertyResult("playbackMode","PlaybackMode",properties.PlaybackMode!=null?cfn_parse().FromCloudFormation.getString(properties.PlaybackMode):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("tier","Tier",properties.Tier!=null?cfn_parse().FromCloudFormation.getString(properties.Tier):void 0),ret.addPropertyResult("timeShiftConfiguration","TimeShiftConfiguration",properties.TimeShiftConfiguration!=null?CfnChannelTimeShiftConfigurationPropertyFromCloudFormation(properties.TimeShiftConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnChannelPolicy extends cdk().CfnResource{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("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}constructor(scope,id,props){super(scope,id,{type:CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediatailor_CfnChannelPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelPolicy),error}cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"policy",this),this.channelName=props.channelName,this.policy=props.policy}get cfnProperties(){return{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:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPolicyPropsToCloudFormation(props)}}exports.CfnChannelPolicy=CfnChannelPolicy,_b=JSII_RTTI_SYMBOL_1,CfnChannelPolicy[_b]={fqn:"aws-cdk-lib.aws_mediatailor.CfnChannelPolicy",version:"2.210.0"},CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::ChannelPolicy";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("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(),{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("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 CfnLiveSource extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLiveSourcePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnLiveSource(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:CfnLiveSource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediatailor_CfnLiveSourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLiveSource),error}cdk().requireProperty(props,"httpPackageConfigurations",this),cdk().requireProperty(props,"liveSourceName",this),cdk().requireProperty(props,"sourceLocationName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaTailor::LiveSource",void 0,{tagPropertyName:"tags"}),this.httpPackageConfigurations=props.httpPackageConfigurations,this.liveSourceName=props.liveSourceName,this.sourceLocationName=props.sourceLocationName,this.tags=props.tags}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),httpPackageConfigurations:this.httpPackageConfigurations,liveSourceName:this.liveSourceName,sourceLocationName:this.sourceLocationName}}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",CfnLiveSource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLiveSourcePropsToCloudFormation(props)}}exports.CfnLiveSource=CfnLiveSource,_c=JSII_RTTI_SYMBOL_1,CfnLiveSource[_c]={fqn:"aws-cdk-lib.aws_mediatailor.CfnLiveSource",version:"2.210.0"},CfnLiveSource.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::LiveSource";function CfnLiveSourceHttpPackageConfigurationPropertyValidator(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("path",cdk().requiredValidator)(properties.path)),errors.collect(cdk().propertyValidator("path",cdk().validateString)(properties.path)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().requiredValidator)(properties.sourceGroup)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().validateString)(properties.sourceGroup)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "HttpPackageConfigurationProperty"')}function convertCfnLiveSourceHttpPackageConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLiveSourceHttpPackageConfigurationPropertyValidator(properties).assertSuccess(),{Path:cdk().stringToCloudFormation(properties.path),SourceGroup:cdk().stringToCloudFormation(properties.sourceGroup),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnLiveSourceHttpPackageConfigurationPropertyFromCloudFormation(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("path","Path",properties.Path!=null?cfn_parse().FromCloudFormation.getString(properties.Path):void 0),ret.addPropertyResult("sourceGroup","SourceGroup",properties.SourceGroup!=null?cfn_parse().FromCloudFormation.getString(properties.SourceGroup):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLiveSourcePropsValidator(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("httpPackageConfigurations",cdk().requiredValidator)(properties.httpPackageConfigurations)),errors.collect(cdk().propertyValidator("httpPackageConfigurations",cdk().listValidator(CfnLiveSourceHttpPackageConfigurationPropertyValidator))(properties.httpPackageConfigurations)),errors.collect(cdk().propertyValidator("liveSourceName",cdk().requiredValidator)(properties.liveSourceName)),errors.collect(cdk().propertyValidator("liveSourceName",cdk().validateString)(properties.liveSourceName)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().requiredValidator)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().validateString)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLiveSourceProps"')}function convertCfnLiveSourcePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLiveSourcePropsValidator(properties).assertSuccess(),{HttpPackageConfigurations:cdk().listMapper(convertCfnLiveSourceHttpPackageConfigurationPropertyToCloudFormation)(properties.httpPackageConfigurations),LiveSourceName:cdk().stringToCloudFormation(properties.liveSourceName),SourceLocationName:cdk().stringToCloudFormation(properties.sourceLocationName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnLiveSourcePropsFromCloudFormation(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("httpPackageConfigurations","HttpPackageConfigurations",properties.HttpPackageConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnLiveSourceHttpPackageConfigurationPropertyFromCloudFormation)(properties.HttpPackageConfigurations):void 0),ret.addPropertyResult("liveSourceName","LiveSourceName",properties.LiveSourceName!=null?cfn_parse().FromCloudFormation.getString(properties.LiveSourceName):void 0),ret.addPropertyResult("sourceLocationName","SourceLocationName",properties.SourceLocationName!=null?cfn_parse().FromCloudFormation.getString(properties.SourceLocationName):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 CfnPlaybackConfiguration extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPlaybackConfigurationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnPlaybackConfiguration(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:CfnPlaybackConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediatailor_CfnPlaybackConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPlaybackConfiguration),error}cdk().requireProperty(props,"adDecisionServerUrl",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"videoContentSourceUrl",this),this.attrDashConfigurationManifestEndpointPrefix=cdk().Token.asString(this.getAtt("DashConfiguration.ManifestEndpointPrefix",cdk().ResolutionTypeHint.STRING)),this.attrHlsConfigurationManifestEndpointPrefix=cdk().Token.asString(this.getAtt("HlsConfiguration.ManifestEndpointPrefix",cdk().ResolutionTypeHint.STRING)),this.attrPlaybackConfigurationArn=cdk().Token.asString(this.getAtt("PlaybackConfigurationArn",cdk().ResolutionTypeHint.STRING)),this.attrPlaybackEndpointPrefix=cdk().Token.asString(this.getAtt("PlaybackEndpointPrefix",cdk().ResolutionTypeHint.STRING)),this.attrSessionInitializationEndpointPrefix=cdk().Token.asString(this.getAtt("SessionInitializationEndpointPrefix",cdk().ResolutionTypeHint.STRING)),this.adConditioningConfiguration=props.adConditioningConfiguration,this.adDecisionServerUrl=props.adDecisionServerUrl,this.availSuppression=props.availSuppression,this.bumper=props.bumper,this.cdnConfiguration=props.cdnConfiguration,this.configurationAliases=props.configurationAliases,this.dashConfiguration=props.dashConfiguration,this.hlsConfiguration=props.hlsConfiguration,this.insertionMode=props.insertionMode,this.livePreRollConfiguration=props.livePreRollConfiguration,this.logConfiguration=props.logConfiguration,this.manifestProcessingRules=props.manifestProcessingRules,this.name=props.name,this.personalizationThresholdSeconds=props.personalizationThresholdSeconds,this.slateAdUrl=props.slateAdUrl,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaTailor::PlaybackConfiguration",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.transcodeProfileName=props.transcodeProfileName,this.videoContentSourceUrl=props.videoContentSourceUrl}get cfnProperties(){return{adConditioningConfiguration:this.adConditioningConfiguration,adDecisionServerUrl:this.adDecisionServerUrl,availSuppression:this.availSuppression,bumper:this.bumper,cdnConfiguration:this.cdnConfiguration,configurationAliases:this.configurationAliases,dashConfiguration:this.dashConfiguration,hlsConfiguration:this.hlsConfiguration,insertionMode:this.insertionMode,livePreRollConfiguration:this.livePreRollConfiguration,logConfiguration:this.logConfiguration,manifestProcessingRules:this.manifestProcessingRules,name:this.name,personalizationThresholdSeconds:this.personalizationThresholdSeconds,slateAdUrl:this.slateAdUrl,tags:this.tags.renderTags(),transcodeProfileName:this.transcodeProfileName,videoContentSourceUrl:this.videoContentSourceUrl}}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",CfnPlaybackConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPlaybackConfigurationPropsToCloudFormation(props)}}exports.CfnPlaybackConfiguration=CfnPlaybackConfiguration,_d=JSII_RTTI_SYMBOL_1,CfnPlaybackConfiguration[_d]={fqn:"aws-cdk-lib.aws_mediatailor.CfnPlaybackConfiguration",version:"2.210.0"},CfnPlaybackConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::PlaybackConfiguration";function CfnPlaybackConfigurationBumperPropertyValidator(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("endUrl",cdk().validateString)(properties.endUrl)),errors.collect(cdk().propertyValidator("startUrl",cdk().validateString)(properties.startUrl)),errors.wrap('supplied properties not correct for "BumperProperty"')}function convertCfnPlaybackConfigurationBumperPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationBumperPropertyValidator(properties).assertSuccess(),{EndUrl:cdk().stringToCloudFormation(properties.endUrl),StartUrl:cdk().stringToCloudFormation(properties.startUrl)}):properties}function CfnPlaybackConfigurationBumperPropertyFromCloudFormation(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("endUrl","EndUrl",properties.EndUrl!=null?cfn_parse().FromCloudFormation.getString(properties.EndUrl):void 0),ret.addPropertyResult("startUrl","StartUrl",properties.StartUrl!=null?cfn_parse().FromCloudFormation.getString(properties.StartUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationDashConfigurationPropertyValidator(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("manifestEndpointPrefix",cdk().validateString)(properties.manifestEndpointPrefix)),errors.collect(cdk().propertyValidator("mpdLocation",cdk().validateString)(properties.mpdLocation)),errors.collect(cdk().propertyValidator("originManifestType",cdk().validateString)(properties.originManifestType)),errors.wrap('supplied properties not correct for "DashConfigurationProperty"')}function convertCfnPlaybackConfigurationDashConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationDashConfigurationPropertyValidator(properties).assertSuccess(),{ManifestEndpointPrefix:cdk().stringToCloudFormation(properties.manifestEndpointPrefix),MpdLocation:cdk().stringToCloudFormation(properties.mpdLocation),OriginManifestType:cdk().stringToCloudFormation(properties.originManifestType)}):properties}function CfnPlaybackConfigurationDashConfigurationPropertyFromCloudFormation(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("manifestEndpointPrefix","ManifestEndpointPrefix",properties.ManifestEndpointPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestEndpointPrefix):void 0),ret.addPropertyResult("mpdLocation","MpdLocation",properties.MpdLocation!=null?cfn_parse().FromCloudFormation.getString(properties.MpdLocation):void 0),ret.addPropertyResult("originManifestType","OriginManifestType",properties.OriginManifestType!=null?cfn_parse().FromCloudFormation.getString(properties.OriginManifestType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationCdnConfigurationPropertyValidator(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("adSegmentUrlPrefix",cdk().validateString)(properties.adSegmentUrlPrefix)),errors.collect(cdk().propertyValidator("contentSegmentUrlPrefix",cdk().validateString)(properties.contentSegmentUrlPrefix)),errors.wrap('supplied properties not correct for "CdnConfigurationProperty"')}function convertCfnPlaybackConfigurationCdnConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationCdnConfigurationPropertyValidator(properties).assertSuccess(),{AdSegmentUrlPrefix:cdk().stringToCloudFormation(properties.adSegmentUrlPrefix),ContentSegmentUrlPrefix:cdk().stringToCloudFormation(properties.contentSegmentUrlPrefix)}):properties}function CfnPlaybackConfigurationCdnConfigurationPropertyFromCloudFormation(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("adSegmentUrlPrefix","AdSegmentUrlPrefix",properties.AdSegmentUrlPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.AdSegmentUrlPrefix):void 0),ret.addPropertyResult("contentSegmentUrlPrefix","ContentSegmentUrlPrefix",properties.ContentSegmentUrlPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ContentSegmentUrlPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationAdMarkerPassthroughPropertyValidator(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("enabled",cdk().validateBoolean)(properties.enabled)),errors.wrap('supplied properties not correct for "AdMarkerPassthroughProperty"')}function convertCfnPlaybackConfigurationAdMarkerPassthroughPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationAdMarkerPassthroughPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled)}):properties}function CfnPlaybackConfigurationAdMarkerPassthroughPropertyFromCloudFormation(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("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationManifestProcessingRulesPropertyValidator(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("adMarkerPassthrough",CfnPlaybackConfigurationAdMarkerPassthroughPropertyValidator)(properties.adMarkerPassthrough)),errors.wrap('supplied properties not correct for "ManifestProcessingRulesProperty"')}function convertCfnPlaybackConfigurationManifestProcessingRulesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationManifestProcessingRulesPropertyValidator(properties).assertSuccess(),{AdMarkerPassthrough:convertCfnPlaybackConfigurationAdMarkerPassthroughPropertyToCloudFormation(properties.adMarkerPassthrough)}):properties}function CfnPlaybackConfigurationManifestProcessingRulesPropertyFromCloudFormation(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("adMarkerPassthrough","AdMarkerPassthrough",properties.AdMarkerPassthrough!=null?CfnPlaybackConfigurationAdMarkerPassthroughPropertyFromCloudFormation(properties.AdMarkerPassthrough):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationLivePreRollConfigurationPropertyValidator(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("adDecisionServerUrl",cdk().validateString)(properties.adDecisionServerUrl)),errors.collect(cdk().propertyValidator("maxDurationSeconds",cdk().validateNumber)(properties.maxDurationSeconds)),errors.wrap('supplied properties not correct for "LivePreRollConfigurationProperty"')}function convertCfnPlaybackConfigurationLivePreRollConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationLivePreRollConfigurationPropertyValidator(properties).assertSuccess(),{AdDecisionServerUrl:cdk().stringToCloudFormation(properties.adDecisionServerUrl),MaxDurationSeconds:cdk().numberToCloudFormation(properties.maxDurationSeconds)}):properties}function CfnPlaybackConfigurationLivePreRollConfigurationPropertyFromCloudFormation(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("adDecisionServerUrl","AdDecisionServerUrl",properties.AdDecisionServerUrl!=null?cfn_parse().FromCloudFormation.getString(properties.AdDecisionServerUrl):void 0),ret.addPropertyResult("maxDurationSeconds","MaxDurationSeconds",properties.MaxDurationSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxDurationSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationHlsConfigurationPropertyValidator(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("manifestEndpointPrefix",cdk().validateString)(properties.manifestEndpointPrefix)),errors.wrap('supplied properties not correct for "HlsConfigurationProperty"')}function convertCfnPlaybackConfigurationHlsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationHlsConfigurationPropertyValidator(properties).assertSuccess(),{ManifestEndpointPrefix:cdk().stringToCloudFormation(properties.manifestEndpointPrefix)}):properties}function CfnPlaybackConfigurationHlsConfigurationPropertyFromCloudFormation(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("manifestEndpointPrefix","ManifestEndpointPrefix",properties.ManifestEndpointPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestEndpointPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationAvailSuppressionPropertyValidator(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("fillPolicy",cdk().validateString)(properties.fillPolicy)),errors.collect(cdk().propertyValidator("mode",cdk().validateString)(properties.mode)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "AvailSuppressionProperty"')}function convertCfnPlaybackConfigurationAvailSuppressionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationAvailSuppressionPropertyValidator(properties).assertSuccess(),{FillPolicy:cdk().stringToCloudFormation(properties.fillPolicy),Mode:cdk().stringToCloudFormation(properties.mode),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnPlaybackConfigurationAvailSuppressionPropertyFromCloudFormation(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("fillPolicy","FillPolicy",properties.FillPolicy!=null?cfn_parse().FromCloudFormation.getString(properties.FillPolicy):void 0),ret.addPropertyResult("mode","Mode",properties.Mode!=null?cfn_parse().FromCloudFormation.getString(properties.Mode):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationAdConditioningConfigurationPropertyValidator(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("streamingMediaFileConditioning",cdk().requiredValidator)(properties.streamingMediaFileConditioning)),errors.collect(cdk().propertyValidator("streamingMediaFileConditioning",cdk().validateString)(properties.streamingMediaFileConditioning)),errors.wrap('supplied properties not correct for "AdConditioningConfigurationProperty"')}function convertCfnPlaybackConfigurationAdConditioningConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationAdConditioningConfigurationPropertyValidator(properties).assertSuccess(),{StreamingMediaFileConditioning:cdk().stringToCloudFormation(properties.streamingMediaFileConditioning)}):properties}function CfnPlaybackConfigurationAdConditioningConfigurationPropertyFromCloudFormation(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("streamingMediaFileConditioning","StreamingMediaFileConditioning",properties.StreamingMediaFileConditioning!=null?cfn_parse().FromCloudFormation.getString(properties.StreamingMediaFileConditioning):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationAdsInteractionLogPropertyValidator(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("excludeEventTypes",cdk().listValidator(cdk().validateString))(properties.excludeEventTypes)),errors.collect(cdk().propertyValidator("publishOptInEventTypes",cdk().listValidator(cdk().validateString))(properties.publishOptInEventTypes)),errors.wrap('supplied properties not correct for "AdsInteractionLogProperty"')}function convertCfnPlaybackConfigurationAdsInteractionLogPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationAdsInteractionLogPropertyValidator(properties).assertSuccess(),{ExcludeEventTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.excludeEventTypes),PublishOptInEventTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.publishOptInEventTypes)}):properties}function CfnPlaybackConfigurationAdsInteractionLogPropertyFromCloudFormation(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("excludeEventTypes","ExcludeEventTypes",properties.ExcludeEventTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExcludeEventTypes):void 0),ret.addPropertyResult("publishOptInEventTypes","PublishOptInEventTypes",properties.PublishOptInEventTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.PublishOptInEventTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationManifestServiceInteractionLogPropertyValidator(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("excludeEventTypes",cdk().listValidator(cdk().validateString))(properties.excludeEventTypes)),errors.wrap('supplied properties not correct for "ManifestServiceInteractionLogProperty"')}function convertCfnPlaybackConfigurationManifestServiceInteractionLogPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationManifestServiceInteractionLogPropertyValidator(properties).assertSuccess(),{ExcludeEventTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.excludeEventTypes)}):properties}function CfnPlaybackConfigurationManifestServiceInteractionLogPropertyFromCloudFormation(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("excludeEventTypes","ExcludeEventTypes",properties.ExcludeEventTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExcludeEventTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationLogConfigurationPropertyValidator(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("adsInteractionLog",CfnPlaybackConfigurationAdsInteractionLogPropertyValidator)(properties.adsInteractionLog)),errors.collect(cdk().propertyValidator("enabledLoggingStrategies",cdk().listValidator(cdk().validateString))(properties.enabledLoggingStrategies)),errors.collect(cdk().propertyValidator("manifestServiceInteractionLog",CfnPlaybackConfigurationManifestServiceInteractionLogPropertyValidator)(properties.manifestServiceInteractionLog)),errors.collect(cdk().propertyValidator("percentEnabled",cdk().requiredValidator)(properties.percentEnabled)),errors.collect(cdk().propertyValidator("percentEnabled",cdk().validateNumber)(properties.percentEnabled)),errors.wrap('supplied properties not correct for "LogConfigurationProperty"')}function convertCfnPlaybackConfigurationLogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationLogConfigurationPropertyValidator(properties).assertSuccess(),{AdsInteractionLog:convertCfnPlaybackConfigurationAdsInteractionLogPropertyToCloudFormation(properties.adsInteractionLog),EnabledLoggingStrategies:cdk().listMapper(cdk().stringToCloudFormation)(properties.enabledLoggingStrategies),ManifestServiceInteractionLog:convertCfnPlaybackConfigurationManifestServiceInteractionLogPropertyToCloudFormation(properties.manifestServiceInteractionLog),PercentEnabled:cdk().numberToCloudFormation(properties.percentEnabled)}):properties}function CfnPlaybackConfigurationLogConfigurationPropertyFromCloudFormation(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("adsInteractionLog","AdsInteractionLog",properties.AdsInteractionLog!=null?CfnPlaybackConfigurationAdsInteractionLogPropertyFromCloudFormation(properties.AdsInteractionLog):void 0),ret.addPropertyResult("enabledLoggingStrategies","EnabledLoggingStrategies",properties.EnabledLoggingStrategies!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EnabledLoggingStrategies):void 0),ret.addPropertyResult("manifestServiceInteractionLog","ManifestServiceInteractionLog",properties.ManifestServiceInteractionLog!=null?CfnPlaybackConfigurationManifestServiceInteractionLogPropertyFromCloudFormation(properties.ManifestServiceInteractionLog):void 0),ret.addPropertyResult("percentEnabled","PercentEnabled",properties.PercentEnabled!=null?cfn_parse().FromCloudFormation.getNumber(properties.PercentEnabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfigurationPropsValidator(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("adConditioningConfiguration",CfnPlaybackConfigurationAdConditioningConfigurationPropertyValidator)(properties.adConditioningConfiguration)),errors.collect(cdk().propertyValidator("adDecisionServerUrl",cdk().requiredValidator)(properties.adDecisionServerUrl)),errors.collect(cdk().propertyValidator("adDecisionServerUrl",cdk().validateString)(properties.adDecisionServerUrl)),errors.collect(cdk().propertyValidator("availSuppression",CfnPlaybackConfigurationAvailSuppressionPropertyValidator)(properties.availSuppression)),errors.collect(cdk().propertyValidator("bumper",CfnPlaybackConfigurationBumperPropertyValidator)(properties.bumper)),errors.collect(cdk().propertyValidator("cdnConfiguration",CfnPlaybackConfigurationCdnConfigurationPropertyValidator)(properties.cdnConfiguration)),errors.collect(cdk().propertyValidator("configurationAliases",cdk().hashValidator(cdk().validateObject))(properties.configurationAliases)),errors.collect(cdk().propertyValidator("dashConfiguration",CfnPlaybackConfigurationDashConfigurationPropertyValidator)(properties.dashConfiguration)),errors.collect(cdk().propertyValidator("hlsConfiguration",CfnPlaybackConfigurationHlsConfigurationPropertyValidator)(properties.hlsConfiguration)),errors.collect(cdk().propertyValidator("insertionMode",cdk().validateString)(properties.insertionMode)),errors.collect(cdk().propertyValidator("livePreRollConfiguration",CfnPlaybackConfigurationLivePreRollConfigurationPropertyValidator)(properties.livePreRollConfiguration)),errors.collect(cdk().propertyValidator("logConfiguration",CfnPlaybackConfigurationLogConfigurationPropertyValidator)(properties.logConfiguration)),errors.collect(cdk().propertyValidator("manifestProcessingRules",CfnPlaybackConfigurationManifestProcessingRulesPropertyValidator)(properties.manifestProcessingRules)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("personalizationThresholdSeconds",cdk().validateNumber)(properties.personalizationThresholdSeconds)),errors.collect(cdk().propertyValidator("slateAdUrl",cdk().validateString)(properties.slateAdUrl)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("transcodeProfileName",cdk().validateString)(properties.transcodeProfileName)),errors.collect(cdk().propertyValidator("videoContentSourceUrl",cdk().requiredValidator)(properties.videoContentSourceUrl)),errors.collect(cdk().propertyValidator("videoContentSourceUrl",cdk().validateString)(properties.videoContentSourceUrl)),errors.wrap('supplied properties not correct for "CfnPlaybackConfigurationProps"')}function convertCfnPlaybackConfigurationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaybackConfigurationPropsValidator(properties).assertSuccess(),{AdConditioningConfiguration:convertCfnPlaybackConfigurationAdConditioningConfigurationPropertyToCloudFormation(properties.adConditioningConfiguration),AdDecisionServerUrl:cdk().stringToCloudFormation(properties.adDecisionServerUrl),AvailSuppression:convertCfnPlaybackConfigurationAvailSuppressionPropertyToCloudFormation(properties.availSuppression),Bumper:convertCfnPlaybackConfigurationBumperPropertyToCloudFormation(properties.bumper),CdnConfiguration:convertCfnPlaybackConfigurationCdnConfigurationPropertyToCloudFormation(properties.cdnConfiguration),ConfigurationAliases:cdk().hashMapper(cdk().objectToCloudFormation)(properties.configurationAliases),DashConfiguration:convertCfnPlaybackConfigurationDashConfigurationPropertyToCloudFormation(properties.dashConfiguration),HlsConfiguration:convertCfnPlaybackConfigurationHlsConfigurationPropertyToCloudFormation(properties.hlsConfiguration),InsertionMode:cdk().stringToCloudFormation(properties.insertionMode),LivePreRollConfiguration:convertCfnPlaybackConfigurationLivePreRollConfigurationPropertyToCloudFormation(properties.livePreRollConfiguration),LogConfiguration:convertCfnPlaybackConfigurationLogConfigurationPropertyToCloudFormation(properties.logConfiguration),ManifestProcessingRules:convertCfnPlaybackConfigurationManifestProcessingRulesPropertyToCloudFormation(properties.manifestProcessingRules),Name:cdk().stringToCloudFormation(properties.name),PersonalizationThresholdSeconds:cdk().numberToCloudFormation(properties.personalizationThresholdSeconds),SlateAdUrl:cdk().stringToCloudFormation(properties.slateAdUrl),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TranscodeProfileName:cdk().stringToCloudFormation(properties.transcodeProfileName),VideoContentSourceUrl:cdk().stringToCloudFormation(properties.videoContentSourceUrl)}):properties}function CfnPlaybackConfigurationPropsFromCloudFormation(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("adConditioningConfiguration","AdConditioningConfiguration",properties.AdConditioningConfiguration!=null?CfnPlaybackConfigurationAdConditioningConfigurationPropertyFromCloudFormation(properties.AdConditioningConfiguration):void 0),ret.addPropertyResult("adDecisionServerUrl","AdDecisionServerUrl",properties.AdDecisionServerUrl!=null?cfn_parse().FromCloudFormation.getString(properties.AdDecisionServerUrl):void 0),ret.addPropertyResult("availSuppression","AvailSuppression",properties.AvailSuppression!=null?CfnPlaybackConfigurationAvailSuppressionPropertyFromCloudFormation(properties.AvailSuppression):void 0),ret.addPropertyResult("bumper","Bumper",properties.Bumper!=null?CfnPlaybackConfigurationBumperPropertyFromCloudFormation(properties.Bumper):void 0),ret.addPropertyResult("cdnConfiguration","CdnConfiguration",properties.CdnConfiguration!=null?CfnPlaybackConfigurationCdnConfigurationPropertyFromCloudFormation(properties.CdnConfiguration):void 0),ret.addPropertyResult("configurationAliases","ConfigurationAliases",properties.ConfigurationAliases!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getAny)(properties.ConfigurationAliases):void 0),ret.addPropertyResult("dashConfiguration","DashConfiguration",properties.DashConfiguration!=null?CfnPlaybackConfigurationDashConfigurationPropertyFromCloudFormation(properties.DashConfiguration):void 0),ret.addPropertyResult("hlsConfiguration","HlsConfiguration",properties.HlsConfiguration!=null?CfnPlaybackConfigurationHlsConfigurationPropertyFromCloudFormation(properties.HlsConfiguration):void 0),ret.addPropertyResult("insertionMode","InsertionMode",properties.InsertionMode!=null?cfn_parse().FromCloudFormation.getString(properties.InsertionMode):void 0),ret.addPropertyResult("livePreRollConfiguration","LivePreRollConfiguration",properties.LivePreRollConfiguration!=null?CfnPlaybackConfigurationLivePreRollConfigurationPropertyFromCloudFormation(properties.LivePreRollConfiguration):void 0),ret.addPropertyResult("logConfiguration","LogConfiguration",properties.LogConfiguration!=null?CfnPlaybackConfigurationLogConfigurationPropertyFromCloudFormation(properties.LogConfiguration):void 0),ret.addPropertyResult("manifestProcessingRules","ManifestProcessingRules",properties.ManifestProcessingRules!=null?CfnPlaybackConfigurationManifestProcessingRulesPropertyFromCloudFormation(properties.ManifestProcessingRules):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("personalizationThresholdSeconds","PersonalizationThresholdSeconds",properties.PersonalizationThresholdSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.PersonalizationThresholdSeconds):void 0),ret.addPropertyResult("slateAdUrl","SlateAdUrl",properties.SlateAdUrl!=null?cfn_parse().FromCloudFormation.getString(properties.SlateAdUrl):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("transcodeProfileName","TranscodeProfileName",properties.TranscodeProfileName!=null?cfn_parse().FromCloudFormation.getString(properties.TranscodeProfileName):void 0),ret.addPropertyResult("videoContentSourceUrl","VideoContentSourceUrl",properties.VideoContentSourceUrl!=null?cfn_parse().FromCloudFormation.getString(properties.VideoContentSourceUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSourceLocation extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSourceLocationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnSourceLocation(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:CfnSourceLocation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediatailor_CfnSourceLocationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSourceLocation),error}cdk().requireProperty(props,"httpConfiguration",this),cdk().requireProperty(props,"sourceLocationName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.accessConfiguration=props.accessConfiguration,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaTailor::SourceLocation",void 0,{tagPropertyName:"tags"}),this.defaultSegmentDeliveryConfiguration=props.defaultSegmentDeliveryConfiguration,this.httpConfiguration=props.httpConfiguration,this.segmentDeliveryConfigurations=props.segmentDeliveryConfigurations,this.sourceLocationName=props.sourceLocationName,this.tags=props.tags}get cfnProperties(){return{accessConfiguration:this.accessConfiguration,tags:this.cdkTagManager.renderTags(this.tags),defaultSegmentDeliveryConfiguration:this.defaultSegmentDeliveryConfiguration,httpConfiguration:this.httpConfiguration,segmentDeliveryConfigurations:this.segmentDeliveryConfigurations,sourceLocationName:this.sourceLocationName}}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",CfnSourceLocation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSourceLocationPropsToCloudFormation(props)}}exports.CfnSourceLocation=CfnSourceLocation,_e=JSII_RTTI_SYMBOL_1,CfnSourceLocation[_e]={fqn:"aws-cdk-lib.aws_mediatailor.CfnSourceLocation",version:"2.210.0"},CfnSourceLocation.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::SourceLocation";function CfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyValidator(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("baseUrl",cdk().validateString)(properties.baseUrl)),errors.wrap('supplied properties not correct for "DefaultSegmentDeliveryConfigurationProperty"')}function convertCfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyValidator(properties).assertSuccess(),{BaseUrl:cdk().stringToCloudFormation(properties.baseUrl)}):properties}function CfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyFromCloudFormation(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("baseUrl","BaseUrl",properties.BaseUrl!=null?cfn_parse().FromCloudFormation.getString(properties.BaseUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSourceLocationSegmentDeliveryConfigurationPropertyValidator(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("baseUrl",cdk().validateString)(properties.baseUrl)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "SegmentDeliveryConfigurationProperty"')}function convertCfnSourceLocationSegmentDeliveryConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationSegmentDeliveryConfigurationPropertyValidator(properties).assertSuccess(),{BaseUrl:cdk().stringToCloudFormation(properties.baseUrl),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnSourceLocationSegmentDeliveryConfigurationPropertyFromCloudFormation(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("baseUrl","BaseUrl",properties.BaseUrl!=null?cfn_parse().FromCloudFormation.getString(properties.BaseUrl):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSourceLocationHttpConfigurationPropertyValidator(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("baseUrl",cdk().requiredValidator)(properties.baseUrl)),errors.collect(cdk().propertyValidator("baseUrl",cdk().validateString)(properties.baseUrl)),errors.wrap('supplied properties not correct for "HttpConfigurationProperty"')}function convertCfnSourceLocationHttpConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationHttpConfigurationPropertyValidator(properties).assertSuccess(),{BaseUrl:cdk().stringToCloudFormation(properties.baseUrl)}):properties}function CfnSourceLocationHttpConfigurationPropertyFromCloudFormation(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("baseUrl","BaseUrl",properties.BaseUrl!=null?cfn_parse().FromCloudFormation.getString(properties.BaseUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyValidator(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("headerName",cdk().validateString)(properties.headerName)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.collect(cdk().propertyValidator("secretStringKey",cdk().validateString)(properties.secretStringKey)),errors.wrap('supplied properties not correct for "SecretsManagerAccessTokenConfigurationProperty"')}function convertCfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyValidator(properties).assertSuccess(),{HeaderName:cdk().stringToCloudFormation(properties.headerName),SecretArn:cdk().stringToCloudFormation(properties.secretArn),SecretStringKey:cdk().stringToCloudFormation(properties.secretStringKey)}):properties}function CfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyFromCloudFormation(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("headerName","HeaderName",properties.HeaderName!=null?cfn_parse().FromCloudFormation.getString(properties.HeaderName):void 0),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addPropertyResult("secretStringKey","SecretStringKey",properties.SecretStringKey!=null?cfn_parse().FromCloudFormation.getString(properties.SecretStringKey):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSourceLocationAccessConfigurationPropertyValidator(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("accessType",cdk().validateString)(properties.accessType)),errors.collect(cdk().propertyValidator("secretsManagerAccessTokenConfiguration",CfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyValidator)(properties.secretsManagerAccessTokenConfiguration)),errors.wrap('supplied properties not correct for "AccessConfigurationProperty"')}function convertCfnSourceLocationAccessConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationAccessConfigurationPropertyValidator(properties).assertSuccess(),{AccessType:cdk().stringToCloudFormation(properties.accessType),SecretsManagerAccessTokenConfiguration:convertCfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyToCloudFormation(properties.secretsManagerAccessTokenConfiguration)}):properties}function CfnSourceLocationAccessConfigurationPropertyFromCloudFormation(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("accessType","AccessType",properties.AccessType!=null?cfn_parse().FromCloudFormation.getString(properties.AccessType):void 0),ret.addPropertyResult("secretsManagerAccessTokenConfiguration","SecretsManagerAccessTokenConfiguration",properties.SecretsManagerAccessTokenConfiguration!=null?CfnSourceLocationSecretsManagerAccessTokenConfigurationPropertyFromCloudFormation(properties.SecretsManagerAccessTokenConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSourceLocationPropsValidator(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("accessConfiguration",CfnSourceLocationAccessConfigurationPropertyValidator)(properties.accessConfiguration)),errors.collect(cdk().propertyValidator("defaultSegmentDeliveryConfiguration",CfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyValidator)(properties.defaultSegmentDeliveryConfiguration)),errors.collect(cdk().propertyValidator("httpConfiguration",cdk().requiredValidator)(properties.httpConfiguration)),errors.collect(cdk().propertyValidator("httpConfiguration",CfnSourceLocationHttpConfigurationPropertyValidator)(properties.httpConfiguration)),errors.collect(cdk().propertyValidator("segmentDeliveryConfigurations",cdk().listValidator(CfnSourceLocationSegmentDeliveryConfigurationPropertyValidator))(properties.segmentDeliveryConfigurations)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().requiredValidator)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().validateString)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnSourceLocationProps"')}function convertCfnSourceLocationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSourceLocationPropsValidator(properties).assertSuccess(),{AccessConfiguration:convertCfnSourceLocationAccessConfigurationPropertyToCloudFormation(properties.accessConfiguration),DefaultSegmentDeliveryConfiguration:convertCfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyToCloudFormation(properties.defaultSegmentDeliveryConfiguration),HttpConfiguration:convertCfnSourceLocationHttpConfigurationPropertyToCloudFormation(properties.httpConfiguration),SegmentDeliveryConfigurations:cdk().listMapper(convertCfnSourceLocationSegmentDeliveryConfigurationPropertyToCloudFormation)(properties.segmentDeliveryConfigurations),SourceLocationName:cdk().stringToCloudFormation(properties.sourceLocationName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnSourceLocationPropsFromCloudFormation(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("accessConfiguration","AccessConfiguration",properties.AccessConfiguration!=null?CfnSourceLocationAccessConfigurationPropertyFromCloudFormation(properties.AccessConfiguration):void 0),ret.addPropertyResult("defaultSegmentDeliveryConfiguration","DefaultSegmentDeliveryConfiguration",properties.DefaultSegmentDeliveryConfiguration!=null?CfnSourceLocationDefaultSegmentDeliveryConfigurationPropertyFromCloudFormation(properties.DefaultSegmentDeliveryConfiguration):void 0),ret.addPropertyResult("httpConfiguration","HttpConfiguration",properties.HttpConfiguration!=null?CfnSourceLocationHttpConfigurationPropertyFromCloudFormation(properties.HttpConfiguration):void 0),ret.addPropertyResult("segmentDeliveryConfigurations","SegmentDeliveryConfigurations",properties.SegmentDeliveryConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnSourceLocationSegmentDeliveryConfigurationPropertyFromCloudFormation)(properties.SegmentDeliveryConfigurations):void 0),ret.addPropertyResult("sourceLocationName","SourceLocationName",properties.SourceLocationName!=null?cfn_parse().FromCloudFormation.getString(properties.SourceLocationName):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 CfnVodSource extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnVodSourcePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnVodSource(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:CfnVodSource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediatailor_CfnVodSourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnVodSource),error}cdk().requireProperty(props,"httpPackageConfigurations",this),cdk().requireProperty(props,"sourceLocationName",this),cdk().requireProperty(props,"vodSourceName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaTailor::VodSource",void 0,{tagPropertyName:"tags"}),this.httpPackageConfigurations=props.httpPackageConfigurations,this.sourceLocationName=props.sourceLocationName,this.tags=props.tags,this.vodSourceName=props.vodSourceName}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),httpPackageConfigurations:this.httpPackageConfigurations,sourceLocationName:this.sourceLocationName,vodSourceName:this.vodSourceName}}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",CfnVodSource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnVodSourcePropsToCloudFormation(props)}}exports.CfnVodSource=CfnVodSource,_f=JSII_RTTI_SYMBOL_1,CfnVodSource[_f]={fqn:"aws-cdk-lib.aws_mediatailor.CfnVodSource",version:"2.210.0"},CfnVodSource.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::VodSource";function CfnVodSourceHttpPackageConfigurationPropertyValidator(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("path",cdk().requiredValidator)(properties.path)),errors.collect(cdk().propertyValidator("path",cdk().validateString)(properties.path)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().requiredValidator)(properties.sourceGroup)),errors.collect(cdk().propertyValidator("sourceGroup",cdk().validateString)(properties.sourceGroup)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "HttpPackageConfigurationProperty"')}function convertCfnVodSourceHttpPackageConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVodSourceHttpPackageConfigurationPropertyValidator(properties).assertSuccess(),{Path:cdk().stringToCloudFormation(properties.path),SourceGroup:cdk().stringToCloudFormation(properties.sourceGroup),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnVodSourceHttpPackageConfigurationPropertyFromCloudFormation(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("path","Path",properties.Path!=null?cfn_parse().FromCloudFormation.getString(properties.Path):void 0),ret.addPropertyResult("sourceGroup","SourceGroup",properties.SourceGroup!=null?cfn_parse().FromCloudFormation.getString(properties.SourceGroup):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVodSourcePropsValidator(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("httpPackageConfigurations",cdk().requiredValidator)(properties.httpPackageConfigurations)),errors.collect(cdk().propertyValidator("httpPackageConfigurations",cdk().listValidator(CfnVodSourceHttpPackageConfigurationPropertyValidator))(properties.httpPackageConfigurations)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().requiredValidator)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("sourceLocationName",cdk().validateString)(properties.sourceLocationName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vodSourceName",cdk().requiredValidator)(properties.vodSourceName)),errors.collect(cdk().propertyValidator("vodSourceName",cdk().validateString)(properties.vodSourceName)),errors.wrap('supplied properties not correct for "CfnVodSourceProps"')}function convertCfnVodSourcePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVodSourcePropsValidator(properties).assertSuccess(),{HttpPackageConfigurations:cdk().listMapper(convertCfnVodSourceHttpPackageConfigurationPropertyToCloudFormation)(properties.httpPackageConfigurations),SourceLocationName:cdk().stringToCloudFormation(properties.sourceLocationName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),VodSourceName:cdk().stringToCloudFormation(properties.vodSourceName)}):properties}function CfnVodSourcePropsFromCloudFormation(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("httpPackageConfigurations","HttpPackageConfigurations",properties.HttpPackageConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnVodSourceHttpPackageConfigurationPropertyFromCloudFormation)(properties.HttpPackageConfigurations):void 0),ret.addPropertyResult("sourceLocationName","SourceLocationName",properties.SourceLocationName!=null?cfn_parse().FromCloudFormation.getString(properties.SourceLocationName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vodSourceName","VodSourceName",properties.VodSourceName!=null?cfn_parse().FromCloudFormation.getString(properties.VodSourceName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}