aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 24.7 kB
JavaScript
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnPlaybackConfiguration=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnPlaybackConfigurationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("adDecisionServerUrl",cdk.requiredValidator)(properties.adDecisionServerUrl)),errors.collect(cdk.propertyValidator("adDecisionServerUrl",cdk.validateString)(properties.adDecisionServerUrl)),errors.collect(cdk.propertyValidator("availSuppression",CfnPlaybackConfiguration_AvailSuppressionPropertyValidator)(properties.availSuppression)),errors.collect(cdk.propertyValidator("bumper",CfnPlaybackConfiguration_BumperPropertyValidator)(properties.bumper)),errors.collect(cdk.propertyValidator("cdnConfiguration",CfnPlaybackConfiguration_CdnConfigurationPropertyValidator)(properties.cdnConfiguration)),errors.collect(cdk.propertyValidator("configurationAliases",cdk.hashValidator(cdk.validateObject))(properties.configurationAliases)),errors.collect(cdk.propertyValidator("dashConfiguration",CfnPlaybackConfiguration_DashConfigurationPropertyValidator)(properties.dashConfiguration)),errors.collect(cdk.propertyValidator("hlsConfiguration",CfnPlaybackConfiguration_HlsConfigurationPropertyValidator)(properties.hlsConfiguration)),errors.collect(cdk.propertyValidator("livePreRollConfiguration",CfnPlaybackConfiguration_LivePreRollConfigurationPropertyValidator)(properties.livePreRollConfiguration)),errors.collect(cdk.propertyValidator("manifestProcessingRules",CfnPlaybackConfiguration_ManifestProcessingRulesPropertyValidator)(properties.manifestProcessingRules)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("personalizationThresholdSeconds",cdk.validateNumber)(properties.personalizationThresholdSeconds)),errors.collect(cdk.propertyValidator("slateAdUrl",cdk.validateString)(properties.slateAdUrl)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("transcodeProfileName",cdk.validateString)(properties.transcodeProfileName)),errors.collect(cdk.propertyValidator("videoContentSourceUrl",cdk.requiredValidator)(properties.videoContentSourceUrl)),errors.collect(cdk.propertyValidator("videoContentSourceUrl",cdk.validateString)(properties.videoContentSourceUrl)),errors.wrap('supplied properties not correct for "CfnPlaybackConfigurationProps"')}function cfnPlaybackConfigurationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfigurationPropsValidator(properties).assertSuccess(),{AdDecisionServerUrl:cdk.stringToCloudFormation(properties.adDecisionServerUrl),Name:cdk.stringToCloudFormation(properties.name),VideoContentSourceUrl:cdk.stringToCloudFormation(properties.videoContentSourceUrl),AvailSuppression:cfnPlaybackConfigurationAvailSuppressionPropertyToCloudFormation(properties.availSuppression),Bumper:cfnPlaybackConfigurationBumperPropertyToCloudFormation(properties.bumper),CdnConfiguration:cfnPlaybackConfigurationCdnConfigurationPropertyToCloudFormation(properties.cdnConfiguration),ConfigurationAliases:cdk.hashMapper(cdk.objectToCloudFormation)(properties.configurationAliases),DashConfiguration:cfnPlaybackConfigurationDashConfigurationPropertyToCloudFormation(properties.dashConfiguration),HlsConfiguration:cfnPlaybackConfigurationHlsConfigurationPropertyToCloudFormation(properties.hlsConfiguration),LivePreRollConfiguration:cfnPlaybackConfigurationLivePreRollConfigurationPropertyToCloudFormation(properties.livePreRollConfiguration),ManifestProcessingRules:cfnPlaybackConfigurationManifestProcessingRulesPropertyToCloudFormation(properties.manifestProcessingRules),PersonalizationThresholdSeconds:cdk.numberToCloudFormation(properties.personalizationThresholdSeconds),SlateAdUrl:cdk.stringToCloudFormation(properties.slateAdUrl),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),TranscodeProfileName:cdk.stringToCloudFormation(properties.transcodeProfileName)}):properties}function CfnPlaybackConfigurationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("adDecisionServerUrl","AdDecisionServerUrl",cfn_parse.FromCloudFormation.getString(properties.AdDecisionServerUrl)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("videoContentSourceUrl","VideoContentSourceUrl",cfn_parse.FromCloudFormation.getString(properties.VideoContentSourceUrl)),ret.addPropertyResult("availSuppression","AvailSuppression",properties.AvailSuppression!=null?CfnPlaybackConfigurationAvailSuppressionPropertyFromCloudFormation(properties.AvailSuppression):void 0),ret.addPropertyResult("bumper","Bumper",properties.Bumper!=null?CfnPlaybackConfigurationBumperPropertyFromCloudFormation(properties.Bumper):void 0),ret.addPropertyResult("cdnConfiguration","CdnConfiguration",properties.CdnConfiguration!=null?CfnPlaybackConfigurationCdnConfigurationPropertyFromCloudFormation(properties.CdnConfiguration):void 0),ret.addPropertyResult("configurationAliases","ConfigurationAliases",properties.ConfigurationAliases!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getAny)(properties.ConfigurationAliases):void 0),ret.addPropertyResult("dashConfiguration","DashConfiguration",properties.DashConfiguration!=null?CfnPlaybackConfigurationDashConfigurationPropertyFromCloudFormation(properties.DashConfiguration):void 0),ret.addPropertyResult("hlsConfiguration","HlsConfiguration",properties.HlsConfiguration!=null?CfnPlaybackConfigurationHlsConfigurationPropertyFromCloudFormation(properties.HlsConfiguration):void 0),ret.addPropertyResult("livePreRollConfiguration","LivePreRollConfiguration",properties.LivePreRollConfiguration!=null?CfnPlaybackConfigurationLivePreRollConfigurationPropertyFromCloudFormation(properties.LivePreRollConfiguration):void 0),ret.addPropertyResult("manifestProcessingRules","ManifestProcessingRules",properties.ManifestProcessingRules!=null?CfnPlaybackConfigurationManifestProcessingRulesPropertyFromCloudFormation(properties.ManifestProcessingRules):void 0),ret.addPropertyResult("personalizationThresholdSeconds","PersonalizationThresholdSeconds",properties.PersonalizationThresholdSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.PersonalizationThresholdSeconds):void 0),ret.addPropertyResult("slateAdUrl","SlateAdUrl",properties.SlateAdUrl!=null?cfn_parse.FromCloudFormation.getString(properties.SlateAdUrl):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("transcodeProfileName","TranscodeProfileName",properties.TranscodeProfileName!=null?cfn_parse.FromCloudFormation.getString(properties.TranscodeProfileName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPlaybackConfiguration extends cdk.CfnResource{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.adDecisionServerUrl=props.adDecisionServerUrl,this.name=props.name,this.videoContentSourceUrl=props.videoContentSourceUrl,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.personalizationThresholdSeconds=props.personalizationThresholdSeconds,this.slateAdUrl=props.slateAdUrl,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::MediaTailor::PlaybackConfiguration",props.tags,{tagPropertyName:"tags"}),this.transcodeProfileName=props.transcodeProfileName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPlaybackConfigurationPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{adDecisionServerUrl:this.adDecisionServerUrl,name:this.name,videoContentSourceUrl:this.videoContentSourceUrl,availSuppression:this.availSuppression,bumper:this.bumper,cdnConfiguration:this.cdnConfiguration,configurationAliases:this.configurationAliases,dashConfiguration:this.dashConfiguration,hlsConfiguration:this.hlsConfiguration,livePreRollConfiguration:this.livePreRollConfiguration,manifestProcessingRules:this.manifestProcessingRules,personalizationThresholdSeconds:this.personalizationThresholdSeconds,slateAdUrl:this.slateAdUrl,tags:this.tags.renderTags(),transcodeProfileName:this.transcodeProfileName}}renderProperties(props){return cfnPlaybackConfigurationPropsToCloudFormation(props)}}exports.CfnPlaybackConfiguration=CfnPlaybackConfiguration,_a=JSII_RTTI_SYMBOL_1,CfnPlaybackConfiguration[_a]={fqn:"aws-cdk-lib.aws_mediatailor.CfnPlaybackConfiguration",version:"2.70.0"},CfnPlaybackConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::MediaTailor::PlaybackConfiguration";function CfnPlaybackConfiguration_AdMarkerPassthroughPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationAdMarkerPassthroughPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_AdMarkerPassthroughPropertyValidator(properties).assertSuccess(),{Enabled:cdk.booleanToCloudFormation(properties.enabled)}):properties}function CfnPlaybackConfigurationAdMarkerPassthroughPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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 CfnPlaybackConfiguration_AvailSuppressionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),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 cfnPlaybackConfigurationAvailSuppressionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_AvailSuppressionPropertyValidator(properties).assertSuccess(),{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??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("mode","Mode",properties.Mode!=null?cfn_parse.FromCloudFormation.getString(properties.Mode):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaybackConfiguration_BumperPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationBumperPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_BumperPropertyValidator(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??{},typeof properties!="object")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 CfnPlaybackConfiguration_CdnConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationCdnConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_CdnConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnPlaybackConfiguration_DashConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationDashConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_DashConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnPlaybackConfiguration_HlsConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationHlsConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_HlsConfigurationPropertyValidator(properties).assertSuccess(),{ManifestEndpointPrefix:cdk.stringToCloudFormation(properties.manifestEndpointPrefix)}):properties}function CfnPlaybackConfigurationHlsConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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 CfnPlaybackConfiguration_LivePreRollConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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 cfnPlaybackConfigurationLivePreRollConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_LivePreRollConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnPlaybackConfiguration_ManifestProcessingRulesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("adMarkerPassthrough",CfnPlaybackConfiguration_AdMarkerPassthroughPropertyValidator)(properties.adMarkerPassthrough)),errors.wrap('supplied properties not correct for "ManifestProcessingRulesProperty"')}function cfnPlaybackConfigurationManifestProcessingRulesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackConfiguration_ManifestProcessingRulesPropertyValidator(properties).assertSuccess(),{AdMarkerPassthrough:cfnPlaybackConfigurationAdMarkerPassthroughPropertyToCloudFormation(properties.adMarkerPassthrough)}):properties}function CfnPlaybackConfigurationManifestProcessingRulesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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}