UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 84.5 kB
"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.202.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.202.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.202.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.livePreRollConfiguration=props.livePreRollConfiguration,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,livePreRollConfiguration:this.livePreRollConfiguration,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.202.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??{},!