UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 112 kB
"use strict";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/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediatailor.CfnChannel",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::Channel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannel(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannel.CFN_RESOURCE_TYPE_NAME}static fromChannelArn(scope,id,arn){class Import extends cdk().Resource{channelRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:mediatailor:${Region}:${Account}:channel/${ChannelName}").parse(arn2);this.channelRef={channelName:variables.ChannelName,channelArn:arn2}}}return new Import(scope,id,arn)}static fromChannelName(scope,id,channelName){class Import extends cdk().Resource{channelRef;constructor(scope2,id2,channelName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:mediatailor:${Region}:${Account}:channel/${ChannelName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ChannelName:channelName2});super(scope2,id2,{environmentFromArn:arn}),this.channelRef={channelName:channelName2,channelArn:arn}}}return new Import(scope,id,channelName)}static arnForChannel(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediatailor_IChannelRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForChannel),error}return resource.channelRef.channelArn}_audiences;cdkTagManager;_channelName;_fillerSlate;_logConfiguration;_outputs;_playbackMode;_tags;_tier;_timeShiftConfiguration;cfnPropertyNames={audiences:"Audiences",tags:"Tags",channelName:"ChannelName",fillerSlate:"FillerSlate",logConfiguration:"LogConfiguration",outputs:"Outputs",playbackMode:"PlaybackMode",tier:"Tier",timeShiftConfiguration:"TimeShiftConfiguration"};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._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 channelRef(){return{channelName:this.ref,channelArn:this.attrArn}}get audiences(){return this._audiences}set audiences(value){cdk().traceProperty(this.node,"Audiences"),this._audiences=value}get channelName(){return this._channelName}set channelName(value){cdk().traceProperty(this.node,"ChannelName"),this._channelName=value}get fillerSlate(){return this._fillerSlate}set fillerSlate(value){cdk().traceProperty(this.node,"FillerSlate"),this._fillerSlate=value}get logConfiguration(){return this._logConfiguration}set logConfiguration(value){cdk().traceProperty(this.node,"LogConfiguration"),this._logConfiguration=value}get outputs(){return this._outputs}set outputs(value){cdk().traceProperty(this.node,"Outputs"),this._outputs=value}get playbackMode(){return this._playbackMode}set playbackMode(value){cdk().traceProperty(this.node,"PlaybackMode"),this._playbackMode=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get tier(){return this._tier}set tier(value){cdk().traceProperty(this.node,"Tier"),this._tier=value}get timeShiftConfiguration(){return this._timeShiftConfiguration}set timeShiftConfiguration(value){cdk().traceProperty(this.node,"TimeShiftConfiguration"),this._timeShiftConfiguration=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPropsToCloudFormation(props)}}exports.CfnChannel=CfnChannel;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediatailor.CfnChannelPolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::ChannelPolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannelPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnChannelPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME}_channelName;_policy;cfnPropertyNames={channelName:"ChannelName",policy:"Policy"};constructor(scope,id,props){super(scope,id,{type:CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_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 channelPolicyRef(){return{channelName:this.ref}}get channelName(){return this._channelName}set channelName(value){cdk().traceProperty(this.node,"ChannelName"),this._channelName=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get cfnProperties(){return{channelName:this._channelName,policy:this._policy}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPolicyPropsToCloudFormation(props)}}exports.CfnChannelPolicy=CfnChannelPolicy;function CfnChannelPolicyPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediatailor.CfnLiveSource",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::LiveSource";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnLiveSource(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLiveSource.CFN_RESOURCE_TYPE_NAME}static arnForLiveSource(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediatailor_ILiveSourceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForLiveSource),error}return resource.liveSourceRef.liveSourceArn}cdkTagManager;_httpPackageConfigurations;_liveSourceName;_sourceLocationName;_tags;cfnPropertyNames={tags:"Tags",httpPackageConfigurations:"HttpPackageConfigurations",liveSourceName:"LiveSourceName",sourceLocationName:"SourceLocationName"};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.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 liveSourceRef(){return{liveSourceName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),sourceLocationName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),liveSourceArn:this.attrArn}}get httpPackageConfigurations(){return this._httpPackageConfigurations}set httpPackageConfigurations(value){cdk().traceProperty(this.node,"HttpPackageConfigurations"),this._httpPackageConfigurations=value}get liveSourceName(){return this._liveSourceName}set liveSourceName(value){cdk().traceProperty(this.node,"LiveSourceName"),this._liveSourceName=value}get sourceLocationName(){return this._sourceLocationName}set sourceLocationName(value){cdk().traceProperty(this.node,"SourceLocationName"),this._sourceLocationName=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get 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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLiveSourcePropsToCloudFormation(props)}}exports.CfnLiveSource=CfnLiveSource;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_mediatailor.CfnPlaybackConfiguration",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::PlaybackConfiguration";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnPlaybackConfiguration(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPlaybackConfiguration.CFN_RESOURCE_TYPE_NAME}static arnForPlaybackConfiguration(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_mediatailor_IPlaybackConfigurationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPlaybackConfiguration),error}return resource.playbackConfigurationRef.playbackConfigurationArn}_adConditioningConfiguration;_adDecisionServerConfiguration;_adDecisionServerUrl;_availSuppression;_bumper;_cdnConfiguration;_configurationAliases;_dashConfiguration;_hlsConfiguration;_insertionMode;_livePreRollConfiguration;_logConfiguration;_manifestProcessingRules;_name;_personalizationThresholdSeconds;_slateAdUrl;tags;_tagsRaw;_transcodeProfileName;_videoContentSourceUrl;cfnPropertyNames={adConditioningConfiguration:"AdConditioningConfiguration",adDecisionServerConfiguration:"AdDecisionServerConfiguration",adDecisionServerUrl:"AdDecisionServerUrl",availSuppression:"AvailSuppression",bumper:"Bumper",cdnConfiguration:"CdnConfiguration",configurationAliases:"ConfigurationAliases",dashConfiguration:"DashConfiguration",hlsConfiguration:"HlsConfiguration",insertionMode:"InsertionMode",livePreRollConfiguration:"LivePreRollConfiguration",logConfiguration:"LogConfiguration",manifestProcessingRules:"ManifestProcessingRules",name:"Name",personalizationThresholdSeconds:"PersonalizationThresholdSeconds",slateAdUrl:"SlateAdUrl",tags:"Tags",transcodeProfileName:"TranscodeProfileName",videoContentSourceUrl:"VideoContentSourceUrl"};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._adConditioningConfiguration=props.adConditioningConfiguration,this._adDecisionServerConfiguration=props.adDecisionServerConfiguration,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 playbackConfigurationRef(){return{playbackConfigurationName:this.ref,playbackConfigurationArn:this.attrPlaybackConfigurationArn}}get adConditioningConfiguration(){return this._adConditioningConfiguration}set adConditioningConfiguration(value){cdk().traceProperty(this.node,"AdConditioningConfiguration"),this._adConditioningConfiguration=value}get adDecisionServerConfiguration(){return this._adDecisionServerConfiguration}set adDecisionServerConfiguration(value){cdk().traceProperty(this.node,"AdDecisionServerConfiguration"),this._adDecisionServerConfiguration=value}get adDecisionServerUrl(){return this._adDecisionServerUrl}set adDecisionServerUrl(value){cdk().traceProperty(this.node,"AdDecisionServerUrl"),this._adDecisionServerUrl=value}get availSuppression(){return this._availSuppression}set availSuppression(value){cdk().traceProperty(this.node,"AvailSuppression"),this._availSuppression=value}get bumper(){return this._bumper}set bumper(value){cdk().traceProperty(this.node,"Bumper"),this._bumper=value}get cdnConfiguration(){return this._cdnConfiguration}set cdnConfiguration(value){cdk().traceProperty(this.node,"CdnConfiguration"),this._cdnConfiguration=value}get configurationAliases(){return this._configurationAliases}set configurationAliases(value){cdk().traceProperty(this.node,"ConfigurationAliases"),this._configurationAliases=value}get dashConfiguration(){return this._dashConfiguration}set dashConfiguration(value){cdk().traceProperty(this.node,"DashConfiguration"),this._dashConfiguration=value}get hlsConfiguration(){return this._hlsConfiguration}set hlsConfiguration(value){cdk().traceProperty(this.node,"HlsConfiguration"),this._hlsConfiguration=value}get insertionMode(){return this._insertionMode}set insertionMode(value){cdk().traceProperty(this.node,"InsertionMode"),this._insertionMode=value}get livePreRollConfiguration(){return this._livePreRollConfiguration}set livePreRollConfiguration(value){cdk().traceProperty(this.node,"LivePreRollConfiguration"),this._livePreRollConfiguration=value}get logConfiguration(){return this._logConfiguration}set logConfiguration(value){cdk().traceProperty(this.node,"LogConfiguration"),this._logConfiguration=value}get manifestProcessingRules(){return this._manifestProcessingRules}set manifestProcessingRules(value){cdk().traceProperty(this.node,"ManifestProcessingRules"),this._manifestProcessingRules=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get personalizationThresholdSeconds(){return this._personalizationThresholdSeconds}set personalizationThresholdSeconds(value){cdk().traceProperty(this.node,"PersonalizationThresholdSeconds"),this._personalizationThresholdSeconds=value}get slateAdUrl(){return this._slateAdUrl}set slateAdUrl(value){cdk().traceProperty(this.node,"SlateAdUrl"),this._slateAdUrl=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get transcodeProfileName(){return this._transcodeProfileName}set transcodeProfileName(value){cdk().traceProperty(this.node,"TranscodeProfileName"),this._transcodeProfileName=value}get videoContentSourceUrl(){return this._videoContentSourceUrl}set videoContentSourceUrl(value){cdk().traceProperty(this.node,"VideoContentSourceUrl"),this._videoContentSourceUrl=value}get attrDashConfigurationManifestEndpointPrefix(){return cdk().Token.asString(this.getAtt("DashConfiguration.ManifestEndpointPrefix",cdk().ResolutionTypeHint.STRING))}get attrHlsConfigurationManifestEndpointPrefix(){return cdk().Token.asString(this.getAtt("HlsConfiguration.ManifestEndpointPrefix",cdk().ResolutionTypeHint.STRING))}get attrPlaybackConfigurationArn(){return cdk().Token.asString(this.getAtt("PlaybackConfigurationArn",cdk().ResolutionTypeHint.STRING))}get attrPlaybackEndpointPrefix(){return cdk().Token.asString(this.getAtt("PlaybackEndpointPrefix",cdk().ResolutionTypeHint.STRING))}get attrSessionInitializationEndpointPrefix(){return cdk().Token.asString(this.getAtt("SessionInitializationEndpointPrefix",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{adConditioningConfiguration:this._adConditioningConfiguration,adDecisionServerConfiguration:this._adDecisionServerConfiguration,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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPlaybackConfigurationPropsToCloudFormation(props)}}exports.CfnPlaybackConfiguration=CfnPlaybackConfiguration;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(pr