UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 56.3 kB
"use strict";var _a,_b,_c,_d,_e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnFlowVpcInterface=exports.CfnFlowSource=exports.CfnFlowOutput=exports.CfnFlowEntitlement=exports.CfnFlow=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnFlowPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("availabilityZone",cdk.validateString)(properties.availabilityZone)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("source",cdk.requiredValidator)(properties.source)),errors.collect(cdk.propertyValidator("source",CfnFlow_SourcePropertyValidator)(properties.source)),errors.collect(cdk.propertyValidator("sourceFailoverConfig",CfnFlow_FailoverConfigPropertyValidator)(properties.sourceFailoverConfig)),errors.wrap('supplied properties not correct for "CfnFlowProps"')}function cfnFlowPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Source:cfnFlowSourcePropertyToCloudFormation(properties.source),AvailabilityZone:cdk.stringToCloudFormation(properties.availabilityZone),SourceFailoverConfig:cfnFlowFailoverConfigPropertyToCloudFormation(properties.sourceFailoverConfig)}):properties}function CfnFlowPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("source","Source",CfnFlowSourcePropertyFromCloudFormation(properties.Source)),ret.addPropertyResult("availabilityZone","AvailabilityZone",properties.AvailabilityZone!=null?cfn_parse.FromCloudFormation.getString(properties.AvailabilityZone):void 0),ret.addPropertyResult("sourceFailoverConfig","SourceFailoverConfig",properties.SourceFailoverConfig!=null?CfnFlowFailoverConfigPropertyFromCloudFormation(properties.SourceFailoverConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFlow extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFlow.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_mediaconnect_CfnFlowProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFlow),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"source",this),this.attrFlowArn=cdk.Token.asString(this.getAtt("FlowArn",cdk.ResolutionTypeHint.STRING)),this.attrFlowAvailabilityZone=cdk.Token.asString(this.getAtt("FlowAvailabilityZone",cdk.ResolutionTypeHint.STRING)),this.attrSourceIngestIp=cdk.Token.asString(this.getAtt("Source.IngestIp",cdk.ResolutionTypeHint.STRING)),this.attrSourceSourceArn=cdk.Token.asString(this.getAtt("Source.SourceArn",cdk.ResolutionTypeHint.STRING)),this.attrSourceSourceIngestPort=cdk.Token.asString(this.getAtt("Source.SourceIngestPort",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.source=props.source,this.availabilityZone=props.availabilityZone,this.sourceFailoverConfig=props.sourceFailoverConfig}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFlowPropsFromCloudFormation(resourceProperties),ret=new CfnFlow(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnFlow.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,source:this.source,availabilityZone:this.availabilityZone,sourceFailoverConfig:this.sourceFailoverConfig}}renderProperties(props){return cfnFlowPropsToCloudFormation(props)}}exports.CfnFlow=CfnFlow,_a=JSII_RTTI_SYMBOL_1,CfnFlow[_a]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnFlow",version:"2.70.0"},CfnFlow.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::Flow";function CfnFlow_EncryptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("algorithm",cdk.validateString)(properties.algorithm)),errors.collect(cdk.propertyValidator("constantInitializationVector",cdk.validateString)(properties.constantInitializationVector)),errors.collect(cdk.propertyValidator("deviceId",cdk.validateString)(properties.deviceId)),errors.collect(cdk.propertyValidator("keyType",cdk.validateString)(properties.keyType)),errors.collect(cdk.propertyValidator("region",cdk.validateString)(properties.region)),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("secretArn",cdk.validateString)(properties.secretArn)),errors.collect(cdk.propertyValidator("url",cdk.validateString)(properties.url)),errors.wrap('supplied properties not correct for "EncryptionProperty"')}function cfnFlowEncryptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlow_EncryptionPropertyValidator(properties).assertSuccess(),{Algorithm:cdk.stringToCloudFormation(properties.algorithm),ConstantInitializationVector:cdk.stringToCloudFormation(properties.constantInitializationVector),DeviceId:cdk.stringToCloudFormation(properties.deviceId),KeyType:cdk.stringToCloudFormation(properties.keyType),Region:cdk.stringToCloudFormation(properties.region),ResourceId:cdk.stringToCloudFormation(properties.resourceId),RoleArn:cdk.stringToCloudFormation(properties.roleArn),SecretArn:cdk.stringToCloudFormation(properties.secretArn),Url:cdk.stringToCloudFormation(properties.url)}):properties}function CfnFlowEncryptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("algorithm","Algorithm",properties.Algorithm!=null?cfn_parse.FromCloudFormation.getString(properties.Algorithm):void 0),ret.addPropertyResult("constantInitializationVector","ConstantInitializationVector",properties.ConstantInitializationVector!=null?cfn_parse.FromCloudFormation.getString(properties.ConstantInitializationVector):void 0),ret.addPropertyResult("deviceId","DeviceId",properties.DeviceId!=null?cfn_parse.FromCloudFormation.getString(properties.DeviceId):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse.FromCloudFormation.getString(properties.KeyType):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse.FromCloudFormation.getString(properties.Region):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceId):void 0),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse.FromCloudFormation.getString(properties.SecretArn):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse.FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlow_FailoverConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("failoverMode",cdk.validateString)(properties.failoverMode)),errors.collect(cdk.propertyValidator("recoveryWindow",cdk.validateNumber)(properties.recoveryWindow)),errors.collect(cdk.propertyValidator("sourcePriority",CfnFlow_SourcePriorityPropertyValidator)(properties.sourcePriority)),errors.collect(cdk.propertyValidator("state",cdk.validateString)(properties.state)),errors.wrap('supplied properties not correct for "FailoverConfigProperty"')}function cfnFlowFailoverConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlow_FailoverConfigPropertyValidator(properties).assertSuccess(),{FailoverMode:cdk.stringToCloudFormation(properties.failoverMode),RecoveryWindow:cdk.numberToCloudFormation(properties.recoveryWindow),SourcePriority:cfnFlowSourcePriorityPropertyToCloudFormation(properties.sourcePriority),State:cdk.stringToCloudFormation(properties.state)}):properties}function CfnFlowFailoverConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("failoverMode","FailoverMode",properties.FailoverMode!=null?cfn_parse.FromCloudFormation.getString(properties.FailoverMode):void 0),ret.addPropertyResult("recoveryWindow","RecoveryWindow",properties.RecoveryWindow!=null?cfn_parse.FromCloudFormation.getNumber(properties.RecoveryWindow):void 0),ret.addPropertyResult("sourcePriority","SourcePriority",properties.SourcePriority!=null?CfnFlowSourcePriorityPropertyFromCloudFormation(properties.SourcePriority):void 0),ret.addPropertyResult("state","State",properties.State!=null?cfn_parse.FromCloudFormation.getString(properties.State):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlow_SourcePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("decryption",CfnFlow_EncryptionPropertyValidator)(properties.decryption)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("entitlementArn",cdk.validateString)(properties.entitlementArn)),errors.collect(cdk.propertyValidator("ingestIp",cdk.validateString)(properties.ingestIp)),errors.collect(cdk.propertyValidator("ingestPort",cdk.validateNumber)(properties.ingestPort)),errors.collect(cdk.propertyValidator("maxBitrate",cdk.validateNumber)(properties.maxBitrate)),errors.collect(cdk.propertyValidator("maxLatency",cdk.validateNumber)(properties.maxLatency)),errors.collect(cdk.propertyValidator("minLatency",cdk.validateNumber)(properties.minLatency)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("protocol",cdk.validateString)(properties.protocol)),errors.collect(cdk.propertyValidator("senderControlPort",cdk.validateNumber)(properties.senderControlPort)),errors.collect(cdk.propertyValidator("senderIpAddress",cdk.validateString)(properties.senderIpAddress)),errors.collect(cdk.propertyValidator("sourceArn",cdk.validateString)(properties.sourceArn)),errors.collect(cdk.propertyValidator("sourceIngestPort",cdk.validateString)(properties.sourceIngestPort)),errors.collect(cdk.propertyValidator("sourceListenerAddress",cdk.validateString)(properties.sourceListenerAddress)),errors.collect(cdk.propertyValidator("sourceListenerPort",cdk.validateNumber)(properties.sourceListenerPort)),errors.collect(cdk.propertyValidator("streamId",cdk.validateString)(properties.streamId)),errors.collect(cdk.propertyValidator("vpcInterfaceName",cdk.validateString)(properties.vpcInterfaceName)),errors.collect(cdk.propertyValidator("whitelistCidr",cdk.validateString)(properties.whitelistCidr)),errors.wrap('supplied properties not correct for "SourceProperty"')}function cfnFlowSourcePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlow_SourcePropertyValidator(properties).assertSuccess(),{Decryption:cfnFlowEncryptionPropertyToCloudFormation(properties.decryption),Description:cdk.stringToCloudFormation(properties.description),EntitlementArn:cdk.stringToCloudFormation(properties.entitlementArn),IngestIp:cdk.stringToCloudFormation(properties.ingestIp),IngestPort:cdk.numberToCloudFormation(properties.ingestPort),MaxBitrate:cdk.numberToCloudFormation(properties.maxBitrate),MaxLatency:cdk.numberToCloudFormation(properties.maxLatency),MinLatency:cdk.numberToCloudFormation(properties.minLatency),Name:cdk.stringToCloudFormation(properties.name),Protocol:cdk.stringToCloudFormation(properties.protocol),SenderControlPort:cdk.numberToCloudFormation(properties.senderControlPort),SenderIpAddress:cdk.stringToCloudFormation(properties.senderIpAddress),SourceArn:cdk.stringToCloudFormation(properties.sourceArn),SourceIngestPort:cdk.stringToCloudFormation(properties.sourceIngestPort),SourceListenerAddress:cdk.stringToCloudFormation(properties.sourceListenerAddress),SourceListenerPort:cdk.numberToCloudFormation(properties.sourceListenerPort),StreamId:cdk.stringToCloudFormation(properties.streamId),VpcInterfaceName:cdk.stringToCloudFormation(properties.vpcInterfaceName),WhitelistCidr:cdk.stringToCloudFormation(properties.whitelistCidr)}):properties}function CfnFlowSourcePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("decryption","Decryption",properties.Decryption!=null?CfnFlowEncryptionPropertyFromCloudFormation(properties.Decryption):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("entitlementArn","EntitlementArn",properties.EntitlementArn!=null?cfn_parse.FromCloudFormation.getString(properties.EntitlementArn):void 0),ret.addPropertyResult("ingestIp","IngestIp",properties.IngestIp!=null?cfn_parse.FromCloudFormation.getString(properties.IngestIp):void 0),ret.addPropertyResult("ingestPort","IngestPort",properties.IngestPort!=null?cfn_parse.FromCloudFormation.getNumber(properties.IngestPort):void 0),ret.addPropertyResult("maxBitrate","MaxBitrate",properties.MaxBitrate!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxBitrate):void 0),ret.addPropertyResult("maxLatency","MaxLatency",properties.MaxLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxLatency):void 0),ret.addPropertyResult("minLatency","MinLatency",properties.MinLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinLatency):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse.FromCloudFormation.getString(properties.Protocol):void 0),ret.addPropertyResult("senderControlPort","SenderControlPort",properties.SenderControlPort!=null?cfn_parse.FromCloudFormation.getNumber(properties.SenderControlPort):void 0),ret.addPropertyResult("senderIpAddress","SenderIpAddress",properties.SenderIpAddress!=null?cfn_parse.FromCloudFormation.getString(properties.SenderIpAddress):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse.FromCloudFormation.getString(properties.SourceArn):void 0),ret.addPropertyResult("sourceIngestPort","SourceIngestPort",properties.SourceIngestPort!=null?cfn_parse.FromCloudFormation.getString(properties.SourceIngestPort):void 0),ret.addPropertyResult("sourceListenerAddress","SourceListenerAddress",properties.SourceListenerAddress!=null?cfn_parse.FromCloudFormation.getString(properties.SourceListenerAddress):void 0),ret.addPropertyResult("sourceListenerPort","SourceListenerPort",properties.SourceListenerPort!=null?cfn_parse.FromCloudFormation.getNumber(properties.SourceListenerPort):void 0),ret.addPropertyResult("streamId","StreamId",properties.StreamId!=null?cfn_parse.FromCloudFormation.getString(properties.StreamId):void 0),ret.addPropertyResult("vpcInterfaceName","VpcInterfaceName",properties.VpcInterfaceName!=null?cfn_parse.FromCloudFormation.getString(properties.VpcInterfaceName):void 0),ret.addPropertyResult("whitelistCidr","WhitelistCidr",properties.WhitelistCidr!=null?cfn_parse.FromCloudFormation.getString(properties.WhitelistCidr):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlow_SourcePriorityPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("primarySource",cdk.requiredValidator)(properties.primarySource)),errors.collect(cdk.propertyValidator("primarySource",cdk.validateString)(properties.primarySource)),errors.wrap('supplied properties not correct for "SourcePriorityProperty"')}function cfnFlowSourcePriorityPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlow_SourcePriorityPropertyValidator(properties).assertSuccess(),{PrimarySource:cdk.stringToCloudFormation(properties.primarySource)}):properties}function CfnFlowSourcePriorityPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("primarySource","PrimarySource",cfn_parse.FromCloudFormation.getString(properties.PrimarySource)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlowEntitlementPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dataTransferSubscriberFeePercent",cdk.validateNumber)(properties.dataTransferSubscriberFeePercent)),errors.collect(cdk.propertyValidator("description",cdk.requiredValidator)(properties.description)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("encryption",CfnFlowEntitlement_EncryptionPropertyValidator)(properties.encryption)),errors.collect(cdk.propertyValidator("entitlementStatus",cdk.validateString)(properties.entitlementStatus)),errors.collect(cdk.propertyValidator("flowArn",cdk.requiredValidator)(properties.flowArn)),errors.collect(cdk.propertyValidator("flowArn",cdk.validateString)(properties.flowArn)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("subscribers",cdk.requiredValidator)(properties.subscribers)),errors.collect(cdk.propertyValidator("subscribers",cdk.listValidator(cdk.validateString))(properties.subscribers)),errors.wrap('supplied properties not correct for "CfnFlowEntitlementProps"')}function cfnFlowEntitlementPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowEntitlementPropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),FlowArn:cdk.stringToCloudFormation(properties.flowArn),Name:cdk.stringToCloudFormation(properties.name),Subscribers:cdk.listMapper(cdk.stringToCloudFormation)(properties.subscribers),DataTransferSubscriberFeePercent:cdk.numberToCloudFormation(properties.dataTransferSubscriberFeePercent),Encryption:cfnFlowEntitlementEncryptionPropertyToCloudFormation(properties.encryption),EntitlementStatus:cdk.stringToCloudFormation(properties.entitlementStatus)}):properties}function CfnFlowEntitlementPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",cfn_parse.FromCloudFormation.getString(properties.Description)),ret.addPropertyResult("flowArn","FlowArn",cfn_parse.FromCloudFormation.getString(properties.FlowArn)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("subscribers","Subscribers",cfn_parse.FromCloudFormation.getStringArray(properties.Subscribers)),ret.addPropertyResult("dataTransferSubscriberFeePercent","DataTransferSubscriberFeePercent",properties.DataTransferSubscriberFeePercent!=null?cfn_parse.FromCloudFormation.getNumber(properties.DataTransferSubscriberFeePercent):void 0),ret.addPropertyResult("encryption","Encryption",properties.Encryption!=null?CfnFlowEntitlementEncryptionPropertyFromCloudFormation(properties.Encryption):void 0),ret.addPropertyResult("entitlementStatus","EntitlementStatus",properties.EntitlementStatus!=null?cfn_parse.FromCloudFormation.getString(properties.EntitlementStatus):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFlowEntitlement extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFlowEntitlement.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_mediaconnect_CfnFlowEntitlementProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFlowEntitlement),error}cdk.requireProperty(props,"description",this),cdk.requireProperty(props,"flowArn",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"subscribers",this),this.attrEntitlementArn=cdk.Token.asString(this.getAtt("EntitlementArn",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.flowArn=props.flowArn,this.name=props.name,this.subscribers=props.subscribers,this.dataTransferSubscriberFeePercent=props.dataTransferSubscriberFeePercent,this.encryption=props.encryption,this.entitlementStatus=props.entitlementStatus}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFlowEntitlementPropsFromCloudFormation(resourceProperties),ret=new CfnFlowEntitlement(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnFlowEntitlement.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,flowArn:this.flowArn,name:this.name,subscribers:this.subscribers,dataTransferSubscriberFeePercent:this.dataTransferSubscriberFeePercent,encryption:this.encryption,entitlementStatus:this.entitlementStatus}}renderProperties(props){return cfnFlowEntitlementPropsToCloudFormation(props)}}exports.CfnFlowEntitlement=CfnFlowEntitlement,_b=JSII_RTTI_SYMBOL_1,CfnFlowEntitlement[_b]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnFlowEntitlement",version:"2.70.0"},CfnFlowEntitlement.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::FlowEntitlement";function CfnFlowEntitlement_EncryptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("algorithm",cdk.requiredValidator)(properties.algorithm)),errors.collect(cdk.propertyValidator("algorithm",cdk.validateString)(properties.algorithm)),errors.collect(cdk.propertyValidator("constantInitializationVector",cdk.validateString)(properties.constantInitializationVector)),errors.collect(cdk.propertyValidator("deviceId",cdk.validateString)(properties.deviceId)),errors.collect(cdk.propertyValidator("keyType",cdk.validateString)(properties.keyType)),errors.collect(cdk.propertyValidator("region",cdk.validateString)(properties.region)),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("secretArn",cdk.validateString)(properties.secretArn)),errors.collect(cdk.propertyValidator("url",cdk.validateString)(properties.url)),errors.wrap('supplied properties not correct for "EncryptionProperty"')}function cfnFlowEntitlementEncryptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowEntitlement_EncryptionPropertyValidator(properties).assertSuccess(),{Algorithm:cdk.stringToCloudFormation(properties.algorithm),ConstantInitializationVector:cdk.stringToCloudFormation(properties.constantInitializationVector),DeviceId:cdk.stringToCloudFormation(properties.deviceId),KeyType:cdk.stringToCloudFormation(properties.keyType),Region:cdk.stringToCloudFormation(properties.region),ResourceId:cdk.stringToCloudFormation(properties.resourceId),RoleArn:cdk.stringToCloudFormation(properties.roleArn),SecretArn:cdk.stringToCloudFormation(properties.secretArn),Url:cdk.stringToCloudFormation(properties.url)}):properties}function CfnFlowEntitlementEncryptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("algorithm","Algorithm",cfn_parse.FromCloudFormation.getString(properties.Algorithm)),ret.addPropertyResult("constantInitializationVector","ConstantInitializationVector",properties.ConstantInitializationVector!=null?cfn_parse.FromCloudFormation.getString(properties.ConstantInitializationVector):void 0),ret.addPropertyResult("deviceId","DeviceId",properties.DeviceId!=null?cfn_parse.FromCloudFormation.getString(properties.DeviceId):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse.FromCloudFormation.getString(properties.KeyType):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse.FromCloudFormation.getString(properties.Region):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceId):void 0),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse.FromCloudFormation.getString(properties.SecretArn):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse.FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlowOutputPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("cidrAllowList",cdk.listValidator(cdk.validateString))(properties.cidrAllowList)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("destination",cdk.validateString)(properties.destination)),errors.collect(cdk.propertyValidator("encryption",CfnFlowOutput_EncryptionPropertyValidator)(properties.encryption)),errors.collect(cdk.propertyValidator("flowArn",cdk.requiredValidator)(properties.flowArn)),errors.collect(cdk.propertyValidator("flowArn",cdk.validateString)(properties.flowArn)),errors.collect(cdk.propertyValidator("maxLatency",cdk.validateNumber)(properties.maxLatency)),errors.collect(cdk.propertyValidator("minLatency",cdk.validateNumber)(properties.minLatency)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("port",cdk.validateNumber)(properties.port)),errors.collect(cdk.propertyValidator("protocol",cdk.requiredValidator)(properties.protocol)),errors.collect(cdk.propertyValidator("protocol",cdk.validateString)(properties.protocol)),errors.collect(cdk.propertyValidator("remoteId",cdk.validateString)(properties.remoteId)),errors.collect(cdk.propertyValidator("smoothingLatency",cdk.validateNumber)(properties.smoothingLatency)),errors.collect(cdk.propertyValidator("streamId",cdk.validateString)(properties.streamId)),errors.collect(cdk.propertyValidator("vpcInterfaceAttachment",CfnFlowOutput_VpcInterfaceAttachmentPropertyValidator)(properties.vpcInterfaceAttachment)),errors.wrap('supplied properties not correct for "CfnFlowOutputProps"')}function cfnFlowOutputPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowOutputPropsValidator(properties).assertSuccess(),{FlowArn:cdk.stringToCloudFormation(properties.flowArn),Protocol:cdk.stringToCloudFormation(properties.protocol),CidrAllowList:cdk.listMapper(cdk.stringToCloudFormation)(properties.cidrAllowList),Description:cdk.stringToCloudFormation(properties.description),Destination:cdk.stringToCloudFormation(properties.destination),Encryption:cfnFlowOutputEncryptionPropertyToCloudFormation(properties.encryption),MaxLatency:cdk.numberToCloudFormation(properties.maxLatency),MinLatency:cdk.numberToCloudFormation(properties.minLatency),Name:cdk.stringToCloudFormation(properties.name),Port:cdk.numberToCloudFormation(properties.port),RemoteId:cdk.stringToCloudFormation(properties.remoteId),SmoothingLatency:cdk.numberToCloudFormation(properties.smoothingLatency),StreamId:cdk.stringToCloudFormation(properties.streamId),VpcInterfaceAttachment:cfnFlowOutputVpcInterfaceAttachmentPropertyToCloudFormation(properties.vpcInterfaceAttachment)}):properties}function CfnFlowOutputPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("flowArn","FlowArn",cfn_parse.FromCloudFormation.getString(properties.FlowArn)),ret.addPropertyResult("protocol","Protocol",cfn_parse.FromCloudFormation.getString(properties.Protocol)),ret.addPropertyResult("cidrAllowList","CidrAllowList",properties.CidrAllowList!=null?cfn_parse.FromCloudFormation.getStringArray(properties.CidrAllowList):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("destination","Destination",properties.Destination!=null?cfn_parse.FromCloudFormation.getString(properties.Destination):void 0),ret.addPropertyResult("encryption","Encryption",properties.Encryption!=null?CfnFlowOutputEncryptionPropertyFromCloudFormation(properties.Encryption):void 0),ret.addPropertyResult("maxLatency","MaxLatency",properties.MaxLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxLatency):void 0),ret.addPropertyResult("minLatency","MinLatency",properties.MinLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinLatency):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse.FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("remoteId","RemoteId",properties.RemoteId!=null?cfn_parse.FromCloudFormation.getString(properties.RemoteId):void 0),ret.addPropertyResult("smoothingLatency","SmoothingLatency",properties.SmoothingLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.SmoothingLatency):void 0),ret.addPropertyResult("streamId","StreamId",properties.StreamId!=null?cfn_parse.FromCloudFormation.getString(properties.StreamId):void 0),ret.addPropertyResult("vpcInterfaceAttachment","VpcInterfaceAttachment",properties.VpcInterfaceAttachment!=null?CfnFlowOutputVpcInterfaceAttachmentPropertyFromCloudFormation(properties.VpcInterfaceAttachment):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFlowOutput extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFlowOutput.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_mediaconnect_CfnFlowOutputProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFlowOutput),error}cdk.requireProperty(props,"flowArn",this),cdk.requireProperty(props,"protocol",this),this.attrOutputArn=cdk.Token.asString(this.getAtt("OutputArn",cdk.ResolutionTypeHint.STRING)),this.flowArn=props.flowArn,this.protocol=props.protocol,this.cidrAllowList=props.cidrAllowList,this.description=props.description,this.destination=props.destination,this.encryption=props.encryption,this.maxLatency=props.maxLatency,this.minLatency=props.minLatency,this.name=props.name,this.port=props.port,this.remoteId=props.remoteId,this.smoothingLatency=props.smoothingLatency,this.streamId=props.streamId,this.vpcInterfaceAttachment=props.vpcInterfaceAttachment}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFlowOutputPropsFromCloudFormation(resourceProperties),ret=new CfnFlowOutput(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnFlowOutput.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{flowArn:this.flowArn,protocol:this.protocol,cidrAllowList:this.cidrAllowList,description:this.description,destination:this.destination,encryption:this.encryption,maxLatency:this.maxLatency,minLatency:this.minLatency,name:this.name,port:this.port,remoteId:this.remoteId,smoothingLatency:this.smoothingLatency,streamId:this.streamId,vpcInterfaceAttachment:this.vpcInterfaceAttachment}}renderProperties(props){return cfnFlowOutputPropsToCloudFormation(props)}}exports.CfnFlowOutput=CfnFlowOutput,_c=JSII_RTTI_SYMBOL_1,CfnFlowOutput[_c]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnFlowOutput",version:"2.70.0"},CfnFlowOutput.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::FlowOutput";function CfnFlowOutput_EncryptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("algorithm",cdk.validateString)(properties.algorithm)),errors.collect(cdk.propertyValidator("keyType",cdk.validateString)(properties.keyType)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.collect(cdk.propertyValidator("secretArn",cdk.requiredValidator)(properties.secretArn)),errors.collect(cdk.propertyValidator("secretArn",cdk.validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "EncryptionProperty"')}function cfnFlowOutputEncryptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowOutput_EncryptionPropertyValidator(properties).assertSuccess(),{Algorithm:cdk.stringToCloudFormation(properties.algorithm),KeyType:cdk.stringToCloudFormation(properties.keyType),RoleArn:cdk.stringToCloudFormation(properties.roleArn),SecretArn:cdk.stringToCloudFormation(properties.secretArn)}):properties}function CfnFlowOutputEncryptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("algorithm","Algorithm",properties.Algorithm!=null?cfn_parse.FromCloudFormation.getString(properties.Algorithm):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse.FromCloudFormation.getString(properties.KeyType):void 0),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addPropertyResult("secretArn","SecretArn",cfn_parse.FromCloudFormation.getString(properties.SecretArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlowOutput_VpcInterfaceAttachmentPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("vpcInterfaceName",cdk.validateString)(properties.vpcInterfaceName)),errors.wrap('supplied properties not correct for "VpcInterfaceAttachmentProperty"')}function cfnFlowOutputVpcInterfaceAttachmentPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowOutput_VpcInterfaceAttachmentPropertyValidator(properties).assertSuccess(),{VpcInterfaceName:cdk.stringToCloudFormation(properties.vpcInterfaceName)}):properties}function CfnFlowOutputVpcInterfaceAttachmentPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("vpcInterfaceName","VpcInterfaceName",properties.VpcInterfaceName!=null?cfn_parse.FromCloudFormation.getString(properties.VpcInterfaceName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFlowSourcePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("decryption",CfnFlowSource_EncryptionPropertyValidator)(properties.decryption)),errors.collect(cdk.propertyValidator("description",cdk.requiredValidator)(properties.description)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("entitlementArn",cdk.validateString)(properties.entitlementArn)),errors.collect(cdk.propertyValidator("flowArn",cdk.validateString)(properties.flowArn)),errors.collect(cdk.propertyValidator("ingestPort",cdk.validateNumber)(properties.ingestPort)),errors.collect(cdk.propertyValidator("maxBitrate",cdk.validateNumber)(properties.maxBitrate)),errors.collect(cdk.propertyValidator("maxLatency",cdk.validateNumber)(properties.maxLatency)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("protocol",cdk.validateString)(properties.protocol)),errors.collect(cdk.propertyValidator("streamId",cdk.validateString)(properties.streamId)),errors.collect(cdk.propertyValidator("vpcInterfaceName",cdk.validateString)(properties.vpcInterfaceName)),errors.collect(cdk.propertyValidator("whitelistCidr",cdk.validateString)(properties.whitelistCidr)),errors.wrap('supplied properties not correct for "CfnFlowSourceProps"')}function cfnFlowSourcePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowSourcePropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),Name:cdk.stringToCloudFormation(properties.name),Decryption:cfnFlowSourceEncryptionPropertyToCloudFormation(properties.decryption),EntitlementArn:cdk.stringToCloudFormation(properties.entitlementArn),FlowArn:cdk.stringToCloudFormation(properties.flowArn),IngestPort:cdk.numberToCloudFormation(properties.ingestPort),MaxBitrate:cdk.numberToCloudFormation(properties.maxBitrate),MaxLatency:cdk.numberToCloudFormation(properties.maxLatency),Protocol:cdk.stringToCloudFormation(properties.protocol),StreamId:cdk.stringToCloudFormation(properties.streamId),VpcInterfaceName:cdk.stringToCloudFormation(properties.vpcInterfaceName),WhitelistCidr:cdk.stringToCloudFormation(properties.whitelistCidr)}):properties}function CfnFlowSourcePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",cfn_parse.FromCloudFormation.getString(properties.Description)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("decryption","Decryption",properties.Decryption!=null?CfnFlowSourceEncryptionPropertyFromCloudFormation(properties.Decryption):void 0),ret.addPropertyResult("entitlementArn","EntitlementArn",properties.EntitlementArn!=null?cfn_parse.FromCloudFormation.getString(properties.EntitlementArn):void 0),ret.addPropertyResult("flowArn","FlowArn",properties.FlowArn!=null?cfn_parse.FromCloudFormation.getString(properties.FlowArn):void 0),ret.addPropertyResult("ingestPort","IngestPort",properties.IngestPort!=null?cfn_parse.FromCloudFormation.getNumber(properties.IngestPort):void 0),ret.addPropertyResult("maxBitrate","MaxBitrate",properties.MaxBitrate!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxBitrate):void 0),ret.addPropertyResult("maxLatency","MaxLatency",properties.MaxLatency!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxLatency):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse.FromCloudFormation.getString(properties.Protocol):void 0),ret.addPropertyResult("streamId","StreamId",properties.StreamId!=null?cfn_parse.FromCloudFormation.getString(properties.StreamId):void 0),ret.addPropertyResult("vpcInterfaceName","VpcInterfaceName",properties.VpcInterfaceName!=null?cfn_parse.FromCloudFormation.getString(properties.VpcInterfaceName):void 0),ret.addPropertyResult("whitelistCidr","WhitelistCidr",properties.WhitelistCidr!=null?cfn_parse.FromCloudFormation.getString(properties.WhitelistCidr):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFlowSource extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFlowSource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_mediaconnect_CfnFlowSourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFlowSource),error}cdk.requireProperty(props,"description",this),cdk.requireProperty(props,"name",this),this.attrIngestIp=cdk.Token.asString(this.getAtt("IngestIp",cdk.ResolutionTypeHint.STRING)),this.attrSourceArn=cdk.Token.asString(this.getAtt("SourceArn",cdk.ResolutionTypeHint.STRING)),this.attrSourceIngestPort=cdk.Token.asString(this.getAtt("SourceIngestPort",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.name=props.name,this.decryption=props.decryption,this.entitlementArn=props.entitlementArn,this.flowArn=props.flowArn,this.ingestPort=props.ingestPort,this.maxBitrate=props.maxBitrate,this.maxLatency=props.maxLatency,this.protocol=props.protocol,this.streamId=props.streamId,this.vpcInterfaceName=props.vpcInterfaceName,this.whitelistCidr=props.whitelistCidr}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFlowSourcePropsFromCloudFormation(resourceProperties),ret=new CfnFlowSource(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnFlowSource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,name:this.name,decryption:this.decryption,entitlementArn:this.entitlementArn,flowArn:this.flowArn,ingestPort:this.ingestPort,maxBitrate:this.maxBitrate,maxLatency:this.maxLatency,protocol:this.protocol,streamId:this.streamId,vpcInterfaceName:this.vpcInterfaceName,whitelistCidr:this.whitelistCidr}}renderProperties(props){return cfnFlowSourcePropsToCloudFormation(props)}}exports.CfnFlowSource=CfnFlowSource,_d=JSII_RTTI_SYMBOL_1,CfnFlowSource[_d]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnFlowSource",version:"2.70.0"},CfnFlowSource.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::FlowSource";function CfnFlowSource_EncryptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("algorithm",cdk.requiredValidator)(properties.algorithm)),errors.collect(cdk.propertyValidator("algorithm",cdk.validateString)(properties.algorithm)),errors.collect(cdk.propertyValidator("constantInitializationVector",cdk.validateString)(properties.constantInitializationVector)),errors.collect(cdk.propertyValidator("deviceId",cdk.validateString)(properties.deviceId)),errors.collect(cdk.propertyValidator("keyType",cdk.validateString)(properties.keyType)),errors.collect(cdk.propertyValidator("region",cdk.validateString)(properties.region)),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("secretArn",cdk.validateString)(properties.secretArn)),errors.collect(cdk.propertyValidator("url",cdk.validateString)(properties.url)),errors.wrap('supplied properties not correct for "EncryptionProperty"')}function cfnFlowSourceEncryptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFlowSource_EncryptionPropertyValidator(properties).assertSuccess(),{Algorithm:cdk.stringToCloudFormation(properties.algorithm),ConstantInitializationVector:cdk.stringToCloudFormation(properties.constantInitializationVector),DeviceId:cdk.stringToCloudFormation(properties.deviceId),KeyType:cdk.stringToCloudFormation(properties.keyType),Region:cdk.stringToCloudFormation(properties.region),ResourceId:cdk.stringToCloudFormation(properties.resourceId),RoleArn:cdk.stringToCloudFormation(properties.roleArn),SecretArn:cdk.stringToCloudFormation(properties.secretArn),Url:cdk.stringToCloudFormation(properties.url)}):properties}function CfnFlowSourceEncryptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(p