UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 125 kB
"use strict";var _a,_b,_c,_d,_e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnPackagingGroup=exports.CfnPackagingConfiguration=exports.CfnOriginEndpoint=exports.CfnChannel=exports.CfnAsset=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 CfnAsset extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAssetPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnAsset(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:CfnAsset.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackage_CfnAssetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAsset),error}cdk().requireProperty(props,"id",this),cdk().requireProperty(props,"packagingGroupId",this),cdk().requireProperty(props,"sourceArn",this),cdk().requireProperty(props,"sourceRoleArn",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.egressEndpoints=props.egressEndpoints,this.id=props.id,this.packagingGroupId=props.packagingGroupId,this.resourceId=props.resourceId,this.sourceArn=props.sourceArn,this.sourceRoleArn=props.sourceRoleArn,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackage::Asset",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{egressEndpoints:this.egressEndpoints,id:this.id,packagingGroupId:this.packagingGroupId,resourceId:this.resourceId,sourceArn:this.sourceArn,sourceRoleArn:this.sourceRoleArn,tags:this.tags.renderTags()}}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",CfnAsset.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAssetPropsToCloudFormation(props)}}exports.CfnAsset=CfnAsset,_a=JSII_RTTI_SYMBOL_1,CfnAsset[_a]={fqn:"aws-cdk-lib.aws_mediapackage.CfnAsset",version:"2.202.0"},CfnAsset.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackage::Asset";function CfnAssetEgressEndpointPropertyValidator(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("packagingConfigurationId",cdk().requiredValidator)(properties.packagingConfigurationId)),errors.collect(cdk().propertyValidator("packagingConfigurationId",cdk().validateString)(properties.packagingConfigurationId)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "EgressEndpointProperty"')}function convertCfnAssetEgressEndpointPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAssetEgressEndpointPropertyValidator(properties).assertSuccess(),{PackagingConfigurationId:cdk().stringToCloudFormation(properties.packagingConfigurationId),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnAssetEgressEndpointPropertyFromCloudFormation(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("packagingConfigurationId","PackagingConfigurationId",properties.PackagingConfigurationId!=null?cfn_parse().FromCloudFormation.getString(properties.PackagingConfigurationId):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAssetPropsValidator(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("egressEndpoints",cdk().listValidator(CfnAssetEgressEndpointPropertyValidator))(properties.egressEndpoints)),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("packagingGroupId",cdk().requiredValidator)(properties.packagingGroupId)),errors.collect(cdk().propertyValidator("packagingGroupId",cdk().validateString)(properties.packagingGroupId)),errors.collect(cdk().propertyValidator("resourceId",cdk().validateString)(properties.resourceId)),errors.collect(cdk().propertyValidator("sourceArn",cdk().requiredValidator)(properties.sourceArn)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.collect(cdk().propertyValidator("sourceRoleArn",cdk().requiredValidator)(properties.sourceRoleArn)),errors.collect(cdk().propertyValidator("sourceRoleArn",cdk().validateString)(properties.sourceRoleArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAssetProps"')}function convertCfnAssetPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAssetPropsValidator(properties).assertSuccess(),{EgressEndpoints:cdk().listMapper(convertCfnAssetEgressEndpointPropertyToCloudFormation)(properties.egressEndpoints),Id:cdk().stringToCloudFormation(properties.id),PackagingGroupId:cdk().stringToCloudFormation(properties.packagingGroupId),ResourceId:cdk().stringToCloudFormation(properties.resourceId),SourceArn:cdk().stringToCloudFormation(properties.sourceArn),SourceRoleArn:cdk().stringToCloudFormation(properties.sourceRoleArn),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAssetPropsFromCloudFormation(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("egressEndpoints","EgressEndpoints",properties.EgressEndpoints!=null?cfn_parse().FromCloudFormation.getArray(CfnAssetEgressEndpointPropertyFromCloudFormation)(properties.EgressEndpoints):void 0),ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("packagingGroupId","PackagingGroupId",properties.PackagingGroupId!=null?cfn_parse().FromCloudFormation.getString(properties.PackagingGroupId):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceId):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addPropertyResult("sourceRoleArn","SourceRoleArn",properties.SourceRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceRoleArn):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 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_mediapackage_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}cdk().requireProperty(props,"id",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.egressAccessLogs=props.egressAccessLogs,this.hlsIngest=props.hlsIngest,this.id=props.id,this.ingressAccessLogs=props.ingressAccessLogs,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackage::Channel",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{description:this.description,egressAccessLogs:this.egressAccessLogs,hlsIngest:this.hlsIngest,id:this.id,ingressAccessLogs:this.ingressAccessLogs,tags:this.tags.renderTags()}}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,_b=JSII_RTTI_SYMBOL_1,CfnChannel[_b]={fqn:"aws-cdk-lib.aws_mediapackage.CfnChannel",version:"2.202.0"},CfnChannel.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackage::Channel";function CfnChannelLogConfigurationPropertyValidator(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("logGroupName",cdk().validateString)(properties.logGroupName)),errors.wrap('supplied properties not correct for "LogConfigurationProperty"')}function convertCfnChannelLogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelLogConfigurationPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk().stringToCloudFormation(properties.logGroupName)}):properties}function CfnChannelLogConfigurationPropertyFromCloudFormation(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("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelIngestEndpointPropertyValidator(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("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("password",cdk().requiredValidator)(properties.password)),errors.collect(cdk().propertyValidator("password",cdk().validateString)(properties.password)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.collect(cdk().propertyValidator("username",cdk().requiredValidator)(properties.username)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.wrap('supplied properties not correct for "IngestEndpointProperty"')}function convertCfnChannelIngestEndpointPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelIngestEndpointPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id),Password:cdk().stringToCloudFormation(properties.password),Url:cdk().stringToCloudFormation(properties.url),Username:cdk().stringToCloudFormation(properties.username)}):properties}function CfnChannelIngestEndpointPropertyFromCloudFormation(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("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("password","Password",properties.Password!=null?cfn_parse().FromCloudFormation.getString(properties.Password):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelHlsIngestPropertyValidator(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("ingestEndpoints",cdk().listValidator(CfnChannelIngestEndpointPropertyValidator))(properties.ingestEndpoints)),errors.wrap('supplied properties not correct for "HlsIngestProperty"')}function convertCfnChannelHlsIngestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelHlsIngestPropertyValidator(properties).assertSuccess(),{ingestEndpoints:cdk().listMapper(convertCfnChannelIngestEndpointPropertyToCloudFormation)(properties.ingestEndpoints)}):properties}function CfnChannelHlsIngestPropertyFromCloudFormation(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("ingestEndpoints","ingestEndpoints",properties.ingestEndpoints!=null?cfn_parse().FromCloudFormation.getArray(CfnChannelIngestEndpointPropertyFromCloudFormation)(properties.ingestEndpoints):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("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("egressAccessLogs",CfnChannelLogConfigurationPropertyValidator)(properties.egressAccessLogs)),errors.collect(cdk().propertyValidator("hlsIngest",CfnChannelHlsIngestPropertyValidator)(properties.hlsIngest)),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("ingressAccessLogs",CfnChannelLogConfigurationPropertyValidator)(properties.ingressAccessLogs)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnChannelProps"')}function convertCfnChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),EgressAccessLogs:convertCfnChannelLogConfigurationPropertyToCloudFormation(properties.egressAccessLogs),HlsIngest:convertCfnChannelHlsIngestPropertyToCloudFormation(properties.hlsIngest),Id:cdk().stringToCloudFormation(properties.id),IngressAccessLogs:convertCfnChannelLogConfigurationPropertyToCloudFormation(properties.ingressAccessLogs),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):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("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("egressAccessLogs","EgressAccessLogs",properties.EgressAccessLogs!=null?CfnChannelLogConfigurationPropertyFromCloudFormation(properties.EgressAccessLogs):void 0),ret.addPropertyResult("hlsIngest","HlsIngest",properties.HlsIngest!=null?CfnChannelHlsIngestPropertyFromCloudFormation(properties.HlsIngest):void 0),ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("ingressAccessLogs","IngressAccessLogs",properties.IngressAccessLogs!=null?CfnChannelLogConfigurationPropertyFromCloudFormation(properties.IngressAccessLogs):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 CfnOriginEndpoint extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOriginEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnOriginEndpoint(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:CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackage_CfnOriginEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOriginEndpoint),error}cdk().requireProperty(props,"channelId",this),cdk().requireProperty(props,"id",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrUrl=cdk().Token.asString(this.getAtt("Url",cdk().ResolutionTypeHint.STRING)),this.authorization=props.authorization,this.channelId=props.channelId,this.cmafPackage=props.cmafPackage,this.dashPackage=props.dashPackage,this.description=props.description,this.hlsPackage=props.hlsPackage,this.id=props.id,this.manifestName=props.manifestName,this.mssPackage=props.mssPackage,this.origination=props.origination,this.startoverWindowSeconds=props.startoverWindowSeconds,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackage::OriginEndpoint",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.timeDelaySeconds=props.timeDelaySeconds,this.whitelist=props.whitelist}get cfnProperties(){return{authorization:this.authorization,channelId:this.channelId,cmafPackage:this.cmafPackage,dashPackage:this.dashPackage,description:this.description,hlsPackage:this.hlsPackage,id:this.id,manifestName:this.manifestName,mssPackage:this.mssPackage,origination:this.origination,startoverWindowSeconds:this.startoverWindowSeconds,tags:this.tags.renderTags(),timeDelaySeconds:this.timeDelaySeconds,whitelist:this.whitelist}}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",CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOriginEndpointPropsToCloudFormation(props)}}exports.CfnOriginEndpoint=CfnOriginEndpoint,_c=JSII_RTTI_SYMBOL_1,CfnOriginEndpoint[_c]={fqn:"aws-cdk-lib.aws_mediapackage.CfnOriginEndpoint",version:"2.202.0"},CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackage::OriginEndpoint";function CfnOriginEndpointStreamSelectionPropertyValidator(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("maxVideoBitsPerSecond",cdk().validateNumber)(properties.maxVideoBitsPerSecond)),errors.collect(cdk().propertyValidator("minVideoBitsPerSecond",cdk().validateNumber)(properties.minVideoBitsPerSecond)),errors.collect(cdk().propertyValidator("streamOrder",cdk().validateString)(properties.streamOrder)),errors.wrap('supplied properties not correct for "StreamSelectionProperty"')}function convertCfnOriginEndpointStreamSelectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointStreamSelectionPropertyValidator(properties).assertSuccess(),{MaxVideoBitsPerSecond:cdk().numberToCloudFormation(properties.maxVideoBitsPerSecond),MinVideoBitsPerSecond:cdk().numberToCloudFormation(properties.minVideoBitsPerSecond),StreamOrder:cdk().stringToCloudFormation(properties.streamOrder)}):properties}function CfnOriginEndpointStreamSelectionPropertyFromCloudFormation(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("maxVideoBitsPerSecond","MaxVideoBitsPerSecond",properties.MaxVideoBitsPerSecond!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxVideoBitsPerSecond):void 0),ret.addPropertyResult("minVideoBitsPerSecond","MinVideoBitsPerSecond",properties.MinVideoBitsPerSecond!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinVideoBitsPerSecond):void 0),ret.addPropertyResult("streamOrder","StreamOrder",properties.StreamOrder!=null?cfn_parse().FromCloudFormation.getString(properties.StreamOrder):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionContractConfigurationPropertyValidator(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("presetSpeke20Audio",cdk().requiredValidator)(properties.presetSpeke20Audio)),errors.collect(cdk().propertyValidator("presetSpeke20Audio",cdk().validateString)(properties.presetSpeke20Audio)),errors.collect(cdk().propertyValidator("presetSpeke20Video",cdk().requiredValidator)(properties.presetSpeke20Video)),errors.collect(cdk().propertyValidator("presetSpeke20Video",cdk().validateString)(properties.presetSpeke20Video)),errors.wrap('supplied properties not correct for "EncryptionContractConfigurationProperty"')}function convertCfnOriginEndpointEncryptionContractConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointEncryptionContractConfigurationPropertyValidator(properties).assertSuccess(),{PresetSpeke20Audio:cdk().stringToCloudFormation(properties.presetSpeke20Audio),PresetSpeke20Video:cdk().stringToCloudFormation(properties.presetSpeke20Video)}):properties}function CfnOriginEndpointEncryptionContractConfigurationPropertyFromCloudFormation(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("presetSpeke20Audio","PresetSpeke20Audio",properties.PresetSpeke20Audio!=null?cfn_parse().FromCloudFormation.getString(properties.PresetSpeke20Audio):void 0),ret.addPropertyResult("presetSpeke20Video","PresetSpeke20Video",properties.PresetSpeke20Video!=null?cfn_parse().FromCloudFormation.getString(properties.PresetSpeke20Video):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointSpekeKeyProviderPropertyValidator(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("certificateArn",cdk().validateString)(properties.certificateArn)),errors.collect(cdk().propertyValidator("encryptionContractConfiguration",CfnOriginEndpointEncryptionContractConfigurationPropertyValidator)(properties.encryptionContractConfiguration)),errors.collect(cdk().propertyValidator("resourceId",cdk().requiredValidator)(properties.resourceId)),errors.collect(cdk().propertyValidator("resourceId",cdk().validateString)(properties.resourceId)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("systemIds",cdk().requiredValidator)(properties.systemIds)),errors.collect(cdk().propertyValidator("systemIds",cdk().listValidator(cdk().validateString))(properties.systemIds)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "SpekeKeyProviderProperty"')}function convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointSpekeKeyProviderPropertyValidator(properties).assertSuccess(),{CertificateArn:cdk().stringToCloudFormation(properties.certificateArn),EncryptionContractConfiguration:convertCfnOriginEndpointEncryptionContractConfigurationPropertyToCloudFormation(properties.encryptionContractConfiguration),ResourceId:cdk().stringToCloudFormation(properties.resourceId),RoleArn:cdk().stringToCloudFormation(properties.roleArn),SystemIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.systemIds),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnOriginEndpointSpekeKeyProviderPropertyFromCloudFormation(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("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addPropertyResult("encryptionContractConfiguration","EncryptionContractConfiguration",properties.EncryptionContractConfiguration!=null?CfnOriginEndpointEncryptionContractConfigurationPropertyFromCloudFormation(properties.EncryptionContractConfiguration):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceId):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("systemIds","SystemIds",properties.SystemIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SystemIds):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointMssEncryptionPropertyValidator(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("spekeKeyProvider",cdk().requiredValidator)(properties.spekeKeyProvider)),errors.collect(cdk().propertyValidator("spekeKeyProvider",CfnOriginEndpointSpekeKeyProviderPropertyValidator)(properties.spekeKeyProvider)),errors.wrap('supplied properties not correct for "MssEncryptionProperty"')}function convertCfnOriginEndpointMssEncryptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointMssEncryptionPropertyValidator(properties).assertSuccess(),{SpekeKeyProvider:convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties.spekeKeyProvider)}):properties}function CfnOriginEndpointMssEncryptionPropertyFromCloudFormation(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("spekeKeyProvider","SpekeKeyProvider",properties.SpekeKeyProvider!=null?CfnOriginEndpointSpekeKeyProviderPropertyFromCloudFormation(properties.SpekeKeyProvider):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointMssPackagePropertyValidator(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("encryption",CfnOriginEndpointMssEncryptionPropertyValidator)(properties.encryption)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.collect(cdk().propertyValidator("segmentDurationSeconds",cdk().validateNumber)(properties.segmentDurationSeconds)),errors.collect(cdk().propertyValidator("streamSelection",CfnOriginEndpointStreamSelectionPropertyValidator)(properties.streamSelection)),errors.wrap('supplied properties not correct for "MssPackageProperty"')}function convertCfnOriginEndpointMssPackagePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointMssPackagePropertyValidator(properties).assertSuccess(),{Encryption:convertCfnOriginEndpointMssEncryptionPropertyToCloudFormation(properties.encryption),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),SegmentDurationSeconds:cdk().numberToCloudFormation(properties.segmentDurationSeconds),StreamSelection:convertCfnOriginEndpointStreamSelectionPropertyToCloudFormation(properties.streamSelection)}):properties}function CfnOriginEndpointMssPackagePropertyFromCloudFormation(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("encryption","Encryption",properties.Encryption!=null?CfnOriginEndpointMssEncryptionPropertyFromCloudFormation(properties.Encryption):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addPropertyResult("segmentDurationSeconds","SegmentDurationSeconds",properties.SegmentDurationSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.SegmentDurationSeconds):void 0),ret.addPropertyResult("streamSelection","StreamSelection",properties.StreamSelection!=null?CfnOriginEndpointStreamSelectionPropertyFromCloudFormation(properties.StreamSelection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointAuthorizationPropertyValidator(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("cdnIdentifierSecret",cdk().requiredValidator)(properties.cdnIdentifierSecret)),errors.collect(cdk().propertyValidator("cdnIdentifierSecret",cdk().validateString)(properties.cdnIdentifierSecret)),errors.collect(cdk().propertyValidator("secretsRoleArn",cdk().requiredValidator)(properties.secretsRoleArn)),errors.collect(cdk().propertyValidator("secretsRoleArn",cdk().validateString)(properties.secretsRoleArn)),errors.wrap('supplied properties not correct for "AuthorizationProperty"')}function convertCfnOriginEndpointAuthorizationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointAuthorizationPropertyValidator(properties).assertSuccess(),{CdnIdentifierSecret:cdk().stringToCloudFormation(properties.cdnIdentifierSecret),SecretsRoleArn:cdk().stringToCloudFormation(properties.secretsRoleArn)}):properties}function CfnOriginEndpointAuthorizationPropertyFromCloudFormation(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("cdnIdentifierSecret","CdnIdentifierSecret",properties.CdnIdentifierSecret!=null?cfn_parse().FromCloudFormation.getString(properties.CdnIdentifierSecret):void 0),ret.addPropertyResult("secretsRoleArn","SecretsRoleArn",properties.SecretsRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretsRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointCmafEncryptionPropertyValidator(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("constantInitializationVector",cdk().validateString)(properties.constantInitializationVector)),errors.collect(cdk().propertyValidator("encryptionMethod",cdk().validateString)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("keyRotationIntervalSeconds",cdk().validateNumber)(properties.keyRotationIntervalSeconds)),errors.collect(cdk().propertyValidator("spekeKeyProvider",cdk().requiredValidator)(properties.spekeKeyProvider)),errors.collect(cdk().propertyValidator("spekeKeyProvider",CfnOriginEndpointSpekeKeyProviderPropertyValidator)(properties.spekeKeyProvider)),errors.wrap('supplied properties not correct for "CmafEncryptionProperty"')}function convertCfnOriginEndpointCmafEncryptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointCmafEncryptionPropertyValidator(properties).assertSuccess(),{ConstantInitializationVector:cdk().stringToCloudFormation(properties.constantInitializationVector),EncryptionMethod:cdk().stringToCloudFormation(properties.encryptionMethod),KeyRotationIntervalSeconds:cdk().numberToCloudFormation(properties.keyRotationIntervalSeconds),SpekeKeyProvider:convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties.spekeKeyProvider)}):properties}function CfnOriginEndpointCmafEncryptionPropertyFromCloudFormation(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("constantInitializationVector","ConstantInitializationVector",properties.ConstantInitializationVector!=null?cfn_parse().FromCloudFormation.getString(properties.ConstantInitializationVector):void 0),ret.addPropertyResult("encryptionMethod","EncryptionMethod",properties.EncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionMethod):void 0),ret.addPropertyResult("keyRotationIntervalSeconds","KeyRotationIntervalSeconds",properties.KeyRotationIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.KeyRotationIntervalSeconds):void 0),ret.addPropertyResult("spekeKeyProvider","SpekeKeyProvider",properties.SpekeKeyProvider!=null?CfnOriginEndpointSpekeKeyProviderPropertyFromCloudFormation(properties.SpekeKeyProvider):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointHlsManifestPropertyValidator(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("adMarkers",cdk().validateString)(properties.adMarkers)),errors.collect(cdk().propertyValidator("adTriggers",cdk().listValidator(cdk().validateString))(properties.adTriggers)),errors.collect(cdk().propertyValidator("adsOnDeliveryRestrictions",cdk().validateString)(properties.adsOnDeliveryRestrictions)),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("includeIframeOnlyStream",cdk().validateBoolean)(properties.includeIframeOnlyStream)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("playlistType",cdk().validateString)(properties.playlistType)),errors.collect(cdk().propertyValidator("playlistWindowSeconds",cdk().validateNumber)(properties.playlistWindowSeconds)),errors.collect(cdk().propertyValidator("programDateTimeIntervalSeconds",cdk().validateNumber)(properties.programDateTimeIntervalSeconds)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "HlsManifestProperty"')}function convertCfnOriginEndpointHlsManifestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointHlsManifestPropertyValidator(properties).assertSuccess(),{AdMarkers:cdk().stringToCloudFormation(properties.adMarkers),AdTriggers:cdk().listMapper(cdk().stringToCloudFormation)(properties.adTriggers),AdsOnDeliveryRestrictions:cdk().stringToCloudFormation(properties.adsOnDeliveryRestrictions),Id:cdk().stringToCloudFormation(properties.id),IncludeIframeOnlyStream:cdk().booleanToCloudFormation(properties.includeIframeOnlyStream),ManifestName:cdk().stringToCloudFormation(properties.manifestName),PlaylistType:cdk().stringToCloudFormation(properties.playlistType),PlaylistWindowSeconds:cdk().numberToCloudFormation(properties.playlistWindowSeconds),ProgramDateTimeIntervalSeconds:cdk().numberToCloudFormation(properties.programDateTimeIntervalSeconds),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnOriginEndpointHlsManifestPropertyFromCloudFormation(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("adMarkers","AdMarkers",properties.AdMarkers!=null?cfn_parse().FromCloudFormation.getString(properties.AdMarkers):void 0),ret.addPropertyResult("adsOnDeliveryRestrictions","AdsOnDeliveryRestrictions",properties.AdsOnDeliveryRestrictions!=null?cfn_parse().FromCloudFormation.getString(properties.AdsOnDeliveryRestrictions):void 0),ret.addPropertyResult("adTriggers","AdTriggers",properties.AdTriggers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AdTriggers):void 0),ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("includeIframeOnlyStream","IncludeIframeOnlyStream",properties.IncludeIframeOnlyStream!=null?cfn_parse().FromCloudFormation.getBoolean(properties.IncludeIframeOnlyStream):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("playlistType","PlaylistType",properties.PlaylistType!=null?cfn_parse().FromCloudFormation.getString(properties.PlaylistType):void 0),ret.addPropertyResult("playlistWindowSeconds","PlaylistWindowSeconds",properties.PlaylistWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.PlaylistWindowSeconds):void 0),ret.addPropertyResult("programDateTimeIntervalSeconds","ProgramDateTimeIntervalSeconds",properties.ProgramDateTimeIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramDateTimeIntervalSeconds):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointCmafPackagePropertyValidator(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("encryption",CfnOriginEndpointCmafEncryptionPropertyValidator)(properties.encryption)),errors.collect(cdk().propertyValidator("hlsManifests",cdk().listValidator(CfnOriginEndpointHlsManifestPropertyValidator))(properties.hlsManifests)),errors.collect(cdk().propertyValidator("segmentDurationSeconds",cdk().validateNumber)(properties.segmentDurationSeconds)),errors.collect(cdk().propertyValidator("segmentPrefix",cdk().validateString)(properties.segmentPrefix)),errors.collect(cdk().propertyValidator("streamSelection",CfnOriginEndpointStreamSelectionPropertyValidator)(properties.streamSelection)),errors.wrap('supplied properties not correct for "CmafPackageProperty"')}function convertCfnOriginEndpointCmafPackagePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointCmafPackagePropertyValidator(properties).assertSuccess(),{Encryption:convertCfnOriginEndpointCmafEncryptionPropertyToCloudFormation(properties.encryption),HlsManifests:cdk().listMapper(convertCfnOriginEndpointHlsManifestPropertyToCloudFormation)(properties.hlsManifests),SegmentDurationSeconds:cdk().numberToCloudFormation(properties.segmentDurationSeconds),SegmentPrefix:cdk().stringToCloudFormation(properties.segmentPrefix),StreamSelection:convertCfnOriginEndpointStreamSelectionPropertyToCloudFormation(properties.streamSelection)}):properties}function CfnOriginEndpointCmafPackagePropertyFromCloudFormation(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("encryption","Encryption",properties.Encryption!=null?CfnOriginEndpointCmafEncryptionPropertyFromCloudFormation(properties.Encryption):void 0),ret.addPropertyResult("hlsManifests","HlsManifests",properties.HlsManifests!=null?cfn_parse().FromCloudFormation.getArray(CfnOriginEndpointHlsManifestPropertyFromCloudFormation)(properties.HlsManifests):void 0),ret.addPropertyResult("segmentDurationSeconds","SegmentDurationSeconds",properties.SegmentDurationSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.SegmentDurationSeconds):void 0),ret.addPropertyResult("segmentPrefix","SegmentPrefix",properties.SegmentPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.SegmentPrefix):void 0),ret.addPropertyResult("streamSelection","StreamSelection",properties.StreamSelection!=null?CfnOriginEndpointStreamSelectionPropertyFromCloudFormation(properties.StreamSelection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointHlsEncryptionPropertyValidator(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("constantInitializationVector",cdk().validateString)(properties.constantInitializationVector)),errors.collect(cdk().propertyValidator("encryptionMethod",cdk().validateString)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("keyRotationIntervalSeconds",cdk().validateNumber)(properties.keyRotationIntervalSeconds)),errors.collect(cdk().propertyValidator("repeatExtXKey",cdk().validateBoolean)(properties.repeatExtXKey)),errors.collect(cdk().propertyValidator("spekeKeyProvider",cdk().requiredValidator)(properties.spekeKeyProvider)),errors.collect(cdk().propertyValidator("spekeKeyProvider",CfnOriginEndpointSpekeKeyProviderPropertyValidator)(properties.spekeKeyProvider)),errors.wrap('supplied properties not correct for "HlsEncryptionProperty"')}function convertCfnOriginEndpointHlsEncryptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointHlsEncryptionPropertyValidator(properties).assertSuccess(),{ConstantInitializationVector:cdk().stringToCloudFormation(properties.constantInitializationVector),EncryptionMethod:cdk().stringToCloudFormation(properties.encryptionMethod),KeyRotationIntervalSeconds:cdk().numberToCloudFormation(properties.keyRotationIntervalSeconds),RepeatExtXKey:cdk().booleanToCloudFormation(properties.repeatExtXKey),SpekeKeyProvider:convertCfnOriginEndpointSpekeKeyProviderPropertyToCloudFormation(properties.spekeKeyProvider)}):prope