UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 78 kB
"use strict";var _a,_b,_c,_d,_e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnOriginEndpointPolicy=exports.CfnOriginEndpoint=exports.CfnChannelPolicy=exports.CfnChannelGroup=exports.CfnChannel=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnChannel extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnChannel(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props){super(scope,id,{type:CfnChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrIngestEndpoints=this.getAtt("IngestEndpoints"),this.attrIngestEndpointUrls=cdk().Token.asList(this.getAtt("IngestEndpointUrls",cdk().ResolutionTypeHint.STRING_LIST)),this.attrModifiedAt=cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::Channel",void 0,{tagPropertyName:"tags"}),this.channelGroupName=props.channelGroupName,this.channelName=props.channelName,this.description=props.description,this.inputSwitchConfiguration=props.inputSwitchConfiguration,this.inputType=props.inputType,this.outputHeaderConfiguration=props.outputHeaderConfiguration,this.tags=props.tags}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),channelGroupName:this.channelGroupName,channelName:this.channelName,description:this.description,inputSwitchConfiguration:this.inputSwitchConfiguration,inputType:this.inputType,outputHeaderConfiguration:this.outputHeaderConfiguration}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPropsToCloudFormation(props)}}exports.CfnChannel=CfnChannel,_a=JSII_RTTI_SYMBOL_1,CfnChannel[_a]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannel",version:"2.202.0"},CfnChannel.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::Channel";function CfnChannelInputSwitchConfigurationPropertyValidator(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("mqcsInputSwitching",cdk().validateBoolean)(properties.mqcsInputSwitching)),errors.wrap('supplied properties not correct for "InputSwitchConfigurationProperty"')}function convertCfnChannelInputSwitchConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelInputSwitchConfigurationPropertyValidator(properties).assertSuccess(),{MQCSInputSwitching:cdk().booleanToCloudFormation(properties.mqcsInputSwitching)}):properties}function CfnChannelInputSwitchConfigurationPropertyFromCloudFormation(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("mqcsInputSwitching","MQCSInputSwitching",properties.MQCSInputSwitching!=null?cfn_parse().FromCloudFormation.getBoolean(properties.MQCSInputSwitching):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnChannelOutputHeaderConfigurationPropertyValidator(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("publishMqcs",cdk().validateBoolean)(properties.publishMqcs)),errors.wrap('supplied properties not correct for "OutputHeaderConfigurationProperty"')}function convertCfnChannelOutputHeaderConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelOutputHeaderConfigurationPropertyValidator(properties).assertSuccess(),{PublishMQCS:cdk().booleanToCloudFormation(properties.publishMqcs)}):properties}function CfnChannelOutputHeaderConfigurationPropertyFromCloudFormation(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("publishMqcs","PublishMQCS",properties.PublishMQCS!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PublishMQCS):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().validateString)(properties.id)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "IngestEndpointProperty"')}function convertCfnChannelIngestEndpointPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelIngestEndpointPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id),Url:cdk().stringToCloudFormation(properties.url)}):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("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):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("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelName",cdk().requiredValidator)(properties.channelName)),errors.collect(cdk().propertyValidator("channelName",cdk().validateString)(properties.channelName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("inputSwitchConfiguration",CfnChannelInputSwitchConfigurationPropertyValidator)(properties.inputSwitchConfiguration)),errors.collect(cdk().propertyValidator("inputType",cdk().validateString)(properties.inputType)),errors.collect(cdk().propertyValidator("outputHeaderConfiguration",CfnChannelOutputHeaderConfigurationPropertyValidator)(properties.outputHeaderConfiguration)),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(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),ChannelName:cdk().stringToCloudFormation(properties.channelName),Description:cdk().stringToCloudFormation(properties.description),InputSwitchConfiguration:convertCfnChannelInputSwitchConfigurationPropertyToCloudFormation(properties.inputSwitchConfiguration),InputType:cdk().stringToCloudFormation(properties.inputType),OutputHeaderConfiguration:convertCfnChannelOutputHeaderConfigurationPropertyToCloudFormation(properties.outputHeaderConfiguration),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("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),ret.addPropertyResult("channelName","ChannelName",properties.ChannelName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("inputSwitchConfiguration","InputSwitchConfiguration",properties.InputSwitchConfiguration!=null?CfnChannelInputSwitchConfigurationPropertyFromCloudFormation(properties.InputSwitchConfiguration):void 0),ret.addPropertyResult("inputType","InputType",properties.InputType!=null?cfn_parse().FromCloudFormation.getString(properties.InputType):void 0),ret.addPropertyResult("outputHeaderConfiguration","OutputHeaderConfiguration",properties.OutputHeaderConfiguration!=null?CfnChannelOutputHeaderConfigurationPropertyFromCloudFormation(properties.OutputHeaderConfiguration):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 CfnChannelGroup extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnChannelGroup(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:CfnChannelGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelGroup),error}cdk().requireProperty(props,"channelGroupName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrEgressDomain=cdk().Token.asString(this.getAtt("EgressDomain",cdk().ResolutionTypeHint.STRING)),this.attrModifiedAt=cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::ChannelGroup",void 0,{tagPropertyName:"tags"}),this.channelGroupName=props.channelGroupName,this.description=props.description,this.tags=props.tags}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),channelGroupName:this.channelGroupName,description:this.description}}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",CfnChannelGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelGroupPropsToCloudFormation(props)}}exports.CfnChannelGroup=CfnChannelGroup,_b=JSII_RTTI_SYMBOL_1,CfnChannelGroup[_b]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannelGroup",version:"2.202.0"},CfnChannelGroup.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::ChannelGroup";function CfnChannelGroupPropsValidator(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("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnChannelGroupProps"')}function convertCfnChannelGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelGroupPropsValidator(properties).assertSuccess(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),Description:cdk().stringToCloudFormation(properties.description),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnChannelGroupPropsFromCloudFormation(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("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):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 CfnChannelPolicy extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnChannelPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props){super(scope,id,{type:CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediapackagev2_CfnChannelPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelPolicy),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"policy",this),this.channelGroupName=props.channelGroupName,this.channelName=props.channelName,this.policy=props.policy}get cfnProperties(){return{channelGroupName:this.channelGroupName,channelName:this.channelName,policy:this.policy}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelPolicyPropsToCloudFormation(props)}}exports.CfnChannelPolicy=CfnChannelPolicy,_c=JSII_RTTI_SYMBOL_1,CfnChannelPolicy[_c]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnChannelPolicy",version:"2.202.0"},CfnChannelPolicy.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::ChannelPolicy";function CfnChannelPolicyPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("channelGroupName",cdk().requiredValidator)(properties.channelGroupName)),errors.collect(cdk().propertyValidator("channelGroupName",cdk().validateString)(properties.channelGroupName)),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(),{ChannelGroupName:cdk().stringToCloudFormation(properties.channelGroupName),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("channelGroupName","ChannelGroupName",properties.ChannelGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelGroupName):void 0),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 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_mediapackagev2_CfnOriginEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOriginEndpoint),error}cdk().requireProperty(props,"channelGroupName",this),cdk().requireProperty(props,"channelName",this),cdk().requireProperty(props,"containerType",this),cdk().requireProperty(props,"originEndpointName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrDashManifestUrls=cdk().Token.asList(this.getAtt("DashManifestUrls",cdk().ResolutionTypeHint.STRING_LIST)),this.attrHlsManifestUrls=cdk().Token.asList(this.getAtt("HlsManifestUrls",cdk().ResolutionTypeHint.STRING_LIST)),this.attrLowLatencyHlsManifestUrls=cdk().Token.asList(this.getAtt("LowLatencyHlsManifestUrls",cdk().ResolutionTypeHint.STRING_LIST)),this.attrModifiedAt=cdk().Token.asString(this.getAtt("ModifiedAt",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MediaPackageV2::OriginEndpoint",void 0,{tagPropertyName:"tags"}),this.channelGroupName=props.channelGroupName,this.channelName=props.channelName,this.containerType=props.containerType,this.dashManifests=props.dashManifests,this.description=props.description,this.forceEndpointErrorConfiguration=props.forceEndpointErrorConfiguration,this.hlsManifests=props.hlsManifests,this.lowLatencyHlsManifests=props.lowLatencyHlsManifests,this.originEndpointName=props.originEndpointName,this.segment=props.segment,this.startoverWindowSeconds=props.startoverWindowSeconds,this.tags=props.tags}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),channelGroupName:this.channelGroupName,channelName:this.channelName,containerType:this.containerType,dashManifests:this.dashManifests,description:this.description,forceEndpointErrorConfiguration:this.forceEndpointErrorConfiguration,hlsManifests:this.hlsManifests,lowLatencyHlsManifests:this.lowLatencyHlsManifests,originEndpointName:this.originEndpointName,segment:this.segment,startoverWindowSeconds:this.startoverWindowSeconds}}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,_d=JSII_RTTI_SYMBOL_1,CfnOriginEndpoint[_d]={fqn:"aws-cdk-lib.aws_mediapackagev2.CfnOriginEndpoint",version:"2.202.0"},CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME="AWS::MediaPackageV2::OriginEndpoint";function CfnOriginEndpointScteHlsPropertyValidator(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("adMarkerHls",cdk().validateString)(properties.adMarkerHls)),errors.wrap('supplied properties not correct for "ScteHlsProperty"')}function convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointScteHlsPropertyValidator(properties).assertSuccess(),{AdMarkerHls:cdk().stringToCloudFormation(properties.adMarkerHls)}):properties}function CfnOriginEndpointScteHlsPropertyFromCloudFormation(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("adMarkerHls","AdMarkerHls",properties.AdMarkerHls!=null?cfn_parse().FromCloudFormation.getString(properties.AdMarkerHls):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointFilterConfigurationPropertyValidator(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("clipStartTime",cdk().validateString)(properties.clipStartTime)),errors.collect(cdk().propertyValidator("end",cdk().validateString)(properties.end)),errors.collect(cdk().propertyValidator("manifestFilter",cdk().validateString)(properties.manifestFilter)),errors.collect(cdk().propertyValidator("start",cdk().validateString)(properties.start)),errors.collect(cdk().propertyValidator("timeDelaySeconds",cdk().validateNumber)(properties.timeDelaySeconds)),errors.wrap('supplied properties not correct for "FilterConfigurationProperty"')}function convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointFilterConfigurationPropertyValidator(properties).assertSuccess(),{ClipStartTime:cdk().stringToCloudFormation(properties.clipStartTime),End:cdk().stringToCloudFormation(properties.end),ManifestFilter:cdk().stringToCloudFormation(properties.manifestFilter),Start:cdk().stringToCloudFormation(properties.start),TimeDelaySeconds:cdk().numberToCloudFormation(properties.timeDelaySeconds)}):properties}function CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(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("clipStartTime","ClipStartTime",properties.ClipStartTime!=null?cfn_parse().FromCloudFormation.getString(properties.ClipStartTime):void 0),ret.addPropertyResult("end","End",properties.End!=null?cfn_parse().FromCloudFormation.getString(properties.End):void 0),ret.addPropertyResult("manifestFilter","ManifestFilter",properties.ManifestFilter!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestFilter):void 0),ret.addPropertyResult("start","Start",properties.Start!=null?cfn_parse().FromCloudFormation.getString(properties.Start):void 0),ret.addPropertyResult("timeDelaySeconds","TimeDelaySeconds",properties.TimeDelaySeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeDelaySeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointStartTagPropertyValidator(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("precise",cdk().validateBoolean)(properties.precise)),errors.collect(cdk().propertyValidator("timeOffset",cdk().requiredValidator)(properties.timeOffset)),errors.collect(cdk().propertyValidator("timeOffset",cdk().validateNumber)(properties.timeOffset)),errors.wrap('supplied properties not correct for "StartTagProperty"')}function convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointStartTagPropertyValidator(properties).assertSuccess(),{Precise:cdk().booleanToCloudFormation(properties.precise),TimeOffset:cdk().numberToCloudFormation(properties.timeOffset)}):properties}function CfnOriginEndpointStartTagPropertyFromCloudFormation(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("precise","Precise",properties.Precise!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Precise):void 0),ret.addPropertyResult("timeOffset","TimeOffset",properties.TimeOffset!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeOffset):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyValidator(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("childManifestName",cdk().validateString)(properties.childManifestName)),errors.collect(cdk().propertyValidator("filterConfiguration",CfnOriginEndpointFilterConfigurationPropertyValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("manifestName",cdk().requiredValidator)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.collect(cdk().propertyValidator("programDateTimeIntervalSeconds",cdk().validateNumber)(properties.programDateTimeIntervalSeconds)),errors.collect(cdk().propertyValidator("scteHls",CfnOriginEndpointScteHlsPropertyValidator)(properties.scteHls)),errors.collect(cdk().propertyValidator("startTag",CfnOriginEndpointStartTagPropertyValidator)(properties.startTag)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.collect(cdk().propertyValidator("urlEncodeChildManifest",cdk().validateBoolean)(properties.urlEncodeChildManifest)),errors.wrap('supplied properties not correct for "LowLatencyHlsManifestConfigurationProperty"')}function convertCfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyValidator(properties).assertSuccess(),{ChildManifestName:cdk().stringToCloudFormation(properties.childManifestName),FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),ProgramDateTimeIntervalSeconds:cdk().numberToCloudFormation(properties.programDateTimeIntervalSeconds),ScteHls:convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties.scteHls),StartTag:convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties.startTag),Url:cdk().stringToCloudFormation(properties.url),UrlEncodeChildManifest:cdk().booleanToCloudFormation(properties.urlEncodeChildManifest)}):properties}function CfnOriginEndpointLowLatencyHlsManifestConfigurationPropertyFromCloudFormation(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("childManifestName","ChildManifestName",properties.ChildManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ChildManifestName):void 0),ret.addPropertyResult("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties.FilterConfiguration):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addPropertyResult("programDateTimeIntervalSeconds","ProgramDateTimeIntervalSeconds",properties.ProgramDateTimeIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramDateTimeIntervalSeconds):void 0),ret.addPropertyResult("scteHls","ScteHls",properties.ScteHls!=null?CfnOriginEndpointScteHlsPropertyFromCloudFormation(properties.ScteHls):void 0),ret.addPropertyResult("startTag","StartTag",properties.StartTag!=null?CfnOriginEndpointStartTagPropertyFromCloudFormation(properties.StartTag):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addPropertyResult("urlEncodeChildManifest","UrlEncodeChildManifest",properties.UrlEncodeChildManifest!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UrlEncodeChildManifest):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointHlsManifestConfigurationPropertyValidator(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("childManifestName",cdk().validateString)(properties.childManifestName)),errors.collect(cdk().propertyValidator("filterConfiguration",CfnOriginEndpointFilterConfigurationPropertyValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("manifestName",cdk().requiredValidator)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestName",cdk().validateString)(properties.manifestName)),errors.collect(cdk().propertyValidator("manifestWindowSeconds",cdk().validateNumber)(properties.manifestWindowSeconds)),errors.collect(cdk().propertyValidator("programDateTimeIntervalSeconds",cdk().validateNumber)(properties.programDateTimeIntervalSeconds)),errors.collect(cdk().propertyValidator("scteHls",CfnOriginEndpointScteHlsPropertyValidator)(properties.scteHls)),errors.collect(cdk().propertyValidator("startTag",CfnOriginEndpointStartTagPropertyValidator)(properties.startTag)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.collect(cdk().propertyValidator("urlEncodeChildManifest",cdk().validateBoolean)(properties.urlEncodeChildManifest)),errors.wrap('supplied properties not correct for "HlsManifestConfigurationProperty"')}function convertCfnOriginEndpointHlsManifestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointHlsManifestConfigurationPropertyValidator(properties).assertSuccess(),{ChildManifestName:cdk().stringToCloudFormation(properties.childManifestName),FilterConfiguration:convertCfnOriginEndpointFilterConfigurationPropertyToCloudFormation(properties.filterConfiguration),ManifestName:cdk().stringToCloudFormation(properties.manifestName),ManifestWindowSeconds:cdk().numberToCloudFormation(properties.manifestWindowSeconds),ProgramDateTimeIntervalSeconds:cdk().numberToCloudFormation(properties.programDateTimeIntervalSeconds),ScteHls:convertCfnOriginEndpointScteHlsPropertyToCloudFormation(properties.scteHls),StartTag:convertCfnOriginEndpointStartTagPropertyToCloudFormation(properties.startTag),Url:cdk().stringToCloudFormation(properties.url),UrlEncodeChildManifest:cdk().booleanToCloudFormation(properties.urlEncodeChildManifest)}):properties}function CfnOriginEndpointHlsManifestConfigurationPropertyFromCloudFormation(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("childManifestName","ChildManifestName",properties.ChildManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ChildManifestName):void 0),ret.addPropertyResult("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?CfnOriginEndpointFilterConfigurationPropertyFromCloudFormation(properties.FilterConfiguration):void 0),ret.addPropertyResult("manifestName","ManifestName",properties.ManifestName!=null?cfn_parse().FromCloudFormation.getString(properties.ManifestName):void 0),ret.addPropertyResult("manifestWindowSeconds","ManifestWindowSeconds",properties.ManifestWindowSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManifestWindowSeconds):void 0),ret.addPropertyResult("programDateTimeIntervalSeconds","ProgramDateTimeIntervalSeconds",properties.ProgramDateTimeIntervalSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProgramDateTimeIntervalSeconds):void 0),ret.addPropertyResult("scteHls","ScteHls",properties.ScteHls!=null?CfnOriginEndpointScteHlsPropertyFromCloudFormation(properties.ScteHls):void 0),ret.addPropertyResult("startTag","StartTag",properties.StartTag!=null?CfnOriginEndpointStartTagPropertyFromCloudFormation(properties.StartTag):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addPropertyResult("urlEncodeChildManifest","UrlEncodeChildManifest",properties.UrlEncodeChildManifest!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UrlEncodeChildManifest):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointSctePropertyValidator(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("scteFilter",cdk().listValidator(cdk().validateString))(properties.scteFilter)),errors.wrap('supplied properties not correct for "ScteProperty"')}function convertCfnOriginEndpointSctePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointSctePropertyValidator(properties).assertSuccess(),{ScteFilter:cdk().listMapper(cdk().stringToCloudFormation)(properties.scteFilter)}):properties}function CfnOriginEndpointSctePropertyFromCloudFormation(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("scteFilter","ScteFilter",properties.ScteFilter!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ScteFilter):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("drmSystems",cdk().requiredValidator)(properties.drmSystems)),errors.collect(cdk().propertyValidator("drmSystems",cdk().listValidator(cdk().validateString))(properties.drmSystems)),errors.collect(cdk().propertyValidator("encryptionContractConfiguration",cdk().requiredValidator)(properties.encryptionContractConfiguration)),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("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(),{DrmSystems:cdk().listMapper(cdk().stringToCloudFormation)(properties.drmSystems),EncryptionContractConfiguration:convertCfnOriginEndpointEncryptionContractConfigurationPropertyToCloudFormation(properties.encryptionContractConfiguration),ResourceId:cdk().stringToCloudFormation(properties.resourceId),RoleArn:cdk().stringToCloudFormation(properties.roleArn),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("drmSystems","DrmSystems",properties.DrmSystems!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DrmSystems):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("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionMethodPropertyValidator(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("cmafEncryptionMethod",cdk().validateString)(properties.cmafEncryptionMethod)),errors.collect(cdk().propertyValidator("tsEncryptionMethod",cdk().validateString)(properties.tsEncryptionMethod)),errors.wrap('supplied properties not correct for "EncryptionMethodProperty"')}function convertCfnOriginEndpointEncryptionMethodPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOriginEndpointEncryptionMethodPropertyValidator(properties).assertSuccess(),{CmafEncryptionMethod:cdk().stringToCloudFormation(properties.cmafEncryptionMethod),TsEncryptionMethod:cdk().stringToCloudFormation(properties.tsEncryptionMethod)}):properties}function CfnOriginEndpointEncryptionMethodPropertyFromCloudFormation(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("cmafEncryptionMethod","CmafEncryptionMethod",properties.CmafEncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.CmafEncryptionMethod):void 0),ret.addPropertyResult("tsEncryptionMethod","TsEncryptionMethod",properties.TsEncryptionMethod!=null?cfn_parse().FromCloudFormation.getString(properties.TsEncryptionMethod):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOriginEndpointEncryptionPropertyValidator(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().requiredValidator)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("encryptionMethod",CfnOriginEndpointEncryptionMethodPropertyValidator)(properties.encryptionMethod)),errors.collect(cdk().propertyValidator("keyRotationIntervalSeconds",cdk().validateNumber)(properties.keyRotationIntervalSeconds)),errors.collect(cdk().propertyValidator("spekeKeyProvider",cdk().requiredValidator)(properties.spekeKeyProvider)),errors.collect(cdk().propert