aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 178 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnGateway=exports.CfnFlowVpcInterface=exports.CfnFlowSource=exports.CfnFlowOutput=exports.CfnFlowEntitlement=exports.CfnFlow=exports.CfnBridgeSource=exports.CfnBridgeOutput=exports.CfnBridge=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 CfnBridge extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBridgePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBridge(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:CfnBridge.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediaconnect_CfnBridgeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBridge),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"placementArn",this),cdk().requireProperty(props,"sources",this),this.attrBridgeArn=cdk().Token.asString(this.getAtt("BridgeArn",cdk().ResolutionTypeHint.STRING)),this.attrBridgeState=cdk().Token.asString(this.getAtt("BridgeState",cdk().ResolutionTypeHint.STRING)),this.egressGatewayBridge=props.egressGatewayBridge,this.ingressGatewayBridge=props.ingressGatewayBridge,this.name=props.name,this.outputs=props.outputs,this.placementArn=props.placementArn,this.sourceFailoverConfig=props.sourceFailoverConfig,this.sources=props.sources}get cfnProperties(){return{egressGatewayBridge:this.egressGatewayBridge,ingressGatewayBridge:this.ingressGatewayBridge,name:this.name,outputs:this.outputs,placementArn:this.placementArn,sourceFailoverConfig:this.sourceFailoverConfig,sources:this.sources}}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",CfnBridge.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBridgePropsToCloudFormation(props)}}exports.CfnBridge=CfnBridge,_a=JSII_RTTI_SYMBOL_1,CfnBridge[_a]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnBridge",version:"2.202.0"},CfnBridge.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::Bridge";function CfnBridgeSourcePriorityPropertyValidator(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("primarySource",cdk().validateString)(properties.primarySource)),errors.wrap('supplied properties not correct for "SourcePriorityProperty"')}function convertCfnBridgeSourcePriorityPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourcePriorityPropertyValidator(properties).assertSuccess(),{PrimarySource:cdk().stringToCloudFormation(properties.primarySource)}):properties}function CfnBridgeSourcePriorityPropertyFromCloudFormation(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("primarySource","PrimarySource",properties.PrimarySource!=null?cfn_parse().FromCloudFormation.getString(properties.PrimarySource):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeFailoverConfigPropertyValidator(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("failoverMode",cdk().requiredValidator)(properties.failoverMode)),errors.collect(cdk().propertyValidator("failoverMode",cdk().validateString)(properties.failoverMode)),errors.collect(cdk().propertyValidator("sourcePriority",CfnBridgeSourcePriorityPropertyValidator)(properties.sourcePriority)),errors.collect(cdk().propertyValidator("state",cdk().validateString)(properties.state)),errors.wrap('supplied properties not correct for "FailoverConfigProperty"')}function convertCfnBridgeFailoverConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeFailoverConfigPropertyValidator(properties).assertSuccess(),{FailoverMode:cdk().stringToCloudFormation(properties.failoverMode),SourcePriority:convertCfnBridgeSourcePriorityPropertyToCloudFormation(properties.sourcePriority),State:cdk().stringToCloudFormation(properties.state)}):properties}function CfnBridgeFailoverConfigPropertyFromCloudFormation(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("failoverMode","FailoverMode",properties.FailoverMode!=null?cfn_parse().FromCloudFormation.getString(properties.FailoverMode):void 0),ret.addPropertyResult("sourcePriority","SourcePriority",properties.SourcePriority!=null?CfnBridgeSourcePriorityPropertyFromCloudFormation(properties.SourcePriority):void 0),ret.addPropertyResult("state","State",properties.State!=null?cfn_parse().FromCloudFormation.getString(properties.State):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeIngressGatewayBridgePropertyValidator(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("maxBitrate",cdk().requiredValidator)(properties.maxBitrate)),errors.collect(cdk().propertyValidator("maxBitrate",cdk().validateNumber)(properties.maxBitrate)),errors.collect(cdk().propertyValidator("maxOutputs",cdk().requiredValidator)(properties.maxOutputs)),errors.collect(cdk().propertyValidator("maxOutputs",cdk().validateNumber)(properties.maxOutputs)),errors.wrap('supplied properties not correct for "IngressGatewayBridgeProperty"')}function convertCfnBridgeIngressGatewayBridgePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeIngressGatewayBridgePropertyValidator(properties).assertSuccess(),{MaxBitrate:cdk().numberToCloudFormation(properties.maxBitrate),MaxOutputs:cdk().numberToCloudFormation(properties.maxOutputs)}):properties}function CfnBridgeIngressGatewayBridgePropertyFromCloudFormation(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("maxBitrate","MaxBitrate",properties.MaxBitrate!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxBitrate):void 0),ret.addPropertyResult("maxOutputs","MaxOutputs",properties.MaxOutputs!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxOutputs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeEgressGatewayBridgePropertyValidator(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("maxBitrate",cdk().requiredValidator)(properties.maxBitrate)),errors.collect(cdk().propertyValidator("maxBitrate",cdk().validateNumber)(properties.maxBitrate)),errors.wrap('supplied properties not correct for "EgressGatewayBridgeProperty"')}function convertCfnBridgeEgressGatewayBridgePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeEgressGatewayBridgePropertyValidator(properties).assertSuccess(),{MaxBitrate:cdk().numberToCloudFormation(properties.maxBitrate)}):properties}function CfnBridgeEgressGatewayBridgePropertyFromCloudFormation(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("maxBitrate","MaxBitrate",properties.MaxBitrate!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxBitrate):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeBridgeNetworkOutputPropertyValidator(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("ipAddress",cdk().requiredValidator)(properties.ipAddress)),errors.collect(cdk().propertyValidator("ipAddress",cdk().validateString)(properties.ipAddress)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkName",cdk().requiredValidator)(properties.networkName)),errors.collect(cdk().propertyValidator("networkName",cdk().validateString)(properties.networkName)),errors.collect(cdk().propertyValidator("port",cdk().requiredValidator)(properties.port)),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("ttl",cdk().requiredValidator)(properties.ttl)),errors.collect(cdk().propertyValidator("ttl",cdk().validateNumber)(properties.ttl)),errors.wrap('supplied properties not correct for "BridgeNetworkOutputProperty"')}function convertCfnBridgeBridgeNetworkOutputPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeBridgeNetworkOutputPropertyValidator(properties).assertSuccess(),{IpAddress:cdk().stringToCloudFormation(properties.ipAddress),Name:cdk().stringToCloudFormation(properties.name),NetworkName:cdk().stringToCloudFormation(properties.networkName),Port:cdk().numberToCloudFormation(properties.port),Protocol:cdk().stringToCloudFormation(properties.protocol),Ttl:cdk().numberToCloudFormation(properties.ttl)}):properties}function CfnBridgeBridgeNetworkOutputPropertyFromCloudFormation(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("ipAddress","IpAddress",properties.IpAddress!=null?cfn_parse().FromCloudFormation.getString(properties.IpAddress):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkName","NetworkName",properties.NetworkName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkName):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse().FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addPropertyResult("ttl","Ttl",properties.Ttl!=null?cfn_parse().FromCloudFormation.getNumber(properties.Ttl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeBridgeOutputPropertyValidator(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("networkOutput",CfnBridgeBridgeNetworkOutputPropertyValidator)(properties.networkOutput)),errors.wrap('supplied properties not correct for "BridgeOutputProperty"')}function convertCfnBridgeBridgeOutputPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeBridgeOutputPropertyValidator(properties).assertSuccess(),{NetworkOutput:convertCfnBridgeBridgeNetworkOutputPropertyToCloudFormation(properties.networkOutput)}):properties}function CfnBridgeBridgeOutputPropertyFromCloudFormation(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("networkOutput","NetworkOutput",properties.NetworkOutput!=null?CfnBridgeBridgeNetworkOutputPropertyFromCloudFormation(properties.NetworkOutput):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeMulticastSourceSettingsPropertyValidator(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("multicastSourceIp",cdk().validateString)(properties.multicastSourceIp)),errors.wrap('supplied properties not correct for "MulticastSourceSettingsProperty"')}function convertCfnBridgeMulticastSourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeMulticastSourceSettingsPropertyValidator(properties).assertSuccess(),{MulticastSourceIp:cdk().stringToCloudFormation(properties.multicastSourceIp)}):properties}function CfnBridgeMulticastSourceSettingsPropertyFromCloudFormation(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("multicastSourceIp","MulticastSourceIp",properties.MulticastSourceIp!=null?cfn_parse().FromCloudFormation.getString(properties.MulticastSourceIp):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeBridgeNetworkSourcePropertyValidator(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("multicastIp",cdk().requiredValidator)(properties.multicastIp)),errors.collect(cdk().propertyValidator("multicastIp",cdk().validateString)(properties.multicastIp)),errors.collect(cdk().propertyValidator("multicastSourceSettings",CfnBridgeMulticastSourceSettingsPropertyValidator)(properties.multicastSourceSettings)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkName",cdk().requiredValidator)(properties.networkName)),errors.collect(cdk().propertyValidator("networkName",cdk().validateString)(properties.networkName)),errors.collect(cdk().propertyValidator("port",cdk().requiredValidator)(properties.port)),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.wrap('supplied properties not correct for "BridgeNetworkSourceProperty"')}function convertCfnBridgeBridgeNetworkSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeBridgeNetworkSourcePropertyValidator(properties).assertSuccess(),{MulticastIp:cdk().stringToCloudFormation(properties.multicastIp),MulticastSourceSettings:convertCfnBridgeMulticastSourceSettingsPropertyToCloudFormation(properties.multicastSourceSettings),Name:cdk().stringToCloudFormation(properties.name),NetworkName:cdk().stringToCloudFormation(properties.networkName),Port:cdk().numberToCloudFormation(properties.port),Protocol:cdk().stringToCloudFormation(properties.protocol)}):properties}function CfnBridgeBridgeNetworkSourcePropertyFromCloudFormation(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("multicastIp","MulticastIp",properties.MulticastIp!=null?cfn_parse().FromCloudFormation.getString(properties.MulticastIp):void 0),ret.addPropertyResult("multicastSourceSettings","MulticastSourceSettings",properties.MulticastSourceSettings!=null?CfnBridgeMulticastSourceSettingsPropertyFromCloudFormation(properties.MulticastSourceSettings):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkName","NetworkName",properties.NetworkName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkName):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse().FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeVpcInterfaceAttachmentPropertyValidator(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("vpcInterfaceName",cdk().validateString)(properties.vpcInterfaceName)),errors.wrap('supplied properties not correct for "VpcInterfaceAttachmentProperty"')}function convertCfnBridgeVpcInterfaceAttachmentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeVpcInterfaceAttachmentPropertyValidator(properties).assertSuccess(),{VpcInterfaceName:cdk().stringToCloudFormation(properties.vpcInterfaceName)}):properties}function CfnBridgeVpcInterfaceAttachmentPropertyFromCloudFormation(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("vpcInterfaceName","VpcInterfaceName",properties.VpcInterfaceName!=null?cfn_parse().FromCloudFormation.getString(properties.VpcInterfaceName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeBridgeFlowSourcePropertyValidator(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("flowArn",cdk().requiredValidator)(properties.flowArn)),errors.collect(cdk().propertyValidator("flowArn",cdk().validateString)(properties.flowArn)),errors.collect(cdk().propertyValidator("flowVpcInterfaceAttachment",CfnBridgeVpcInterfaceAttachmentPropertyValidator)(properties.flowVpcInterfaceAttachment)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "BridgeFlowSourceProperty"')}function convertCfnBridgeBridgeFlowSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeBridgeFlowSourcePropertyValidator(properties).assertSuccess(),{FlowArn:cdk().stringToCloudFormation(properties.flowArn),FlowVpcInterfaceAttachment:convertCfnBridgeVpcInterfaceAttachmentPropertyToCloudFormation(properties.flowVpcInterfaceAttachment),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnBridgeBridgeFlowSourcePropertyFromCloudFormation(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("flowArn","FlowArn",properties.FlowArn!=null?cfn_parse().FromCloudFormation.getString(properties.FlowArn):void 0),ret.addPropertyResult("flowVpcInterfaceAttachment","FlowVpcInterfaceAttachment",properties.FlowVpcInterfaceAttachment!=null?CfnBridgeVpcInterfaceAttachmentPropertyFromCloudFormation(properties.FlowVpcInterfaceAttachment):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeBridgeSourcePropertyValidator(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("flowSource",CfnBridgeBridgeFlowSourcePropertyValidator)(properties.flowSource)),errors.collect(cdk().propertyValidator("networkSource",CfnBridgeBridgeNetworkSourcePropertyValidator)(properties.networkSource)),errors.wrap('supplied properties not correct for "BridgeSourceProperty"')}function convertCfnBridgeBridgeSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeBridgeSourcePropertyValidator(properties).assertSuccess(),{FlowSource:convertCfnBridgeBridgeFlowSourcePropertyToCloudFormation(properties.flowSource),NetworkSource:convertCfnBridgeBridgeNetworkSourcePropertyToCloudFormation(properties.networkSource)}):properties}function CfnBridgeBridgeSourcePropertyFromCloudFormation(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("flowSource","FlowSource",properties.FlowSource!=null?CfnBridgeBridgeFlowSourcePropertyFromCloudFormation(properties.FlowSource):void 0),ret.addPropertyResult("networkSource","NetworkSource",properties.NetworkSource!=null?CfnBridgeBridgeNetworkSourcePropertyFromCloudFormation(properties.NetworkSource):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgePropsValidator(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("egressGatewayBridge",CfnBridgeEgressGatewayBridgePropertyValidator)(properties.egressGatewayBridge)),errors.collect(cdk().propertyValidator("ingressGatewayBridge",CfnBridgeIngressGatewayBridgePropertyValidator)(properties.ingressGatewayBridge)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("outputs",cdk().listValidator(CfnBridgeBridgeOutputPropertyValidator))(properties.outputs)),errors.collect(cdk().propertyValidator("placementArn",cdk().requiredValidator)(properties.placementArn)),errors.collect(cdk().propertyValidator("placementArn",cdk().validateString)(properties.placementArn)),errors.collect(cdk().propertyValidator("sourceFailoverConfig",CfnBridgeFailoverConfigPropertyValidator)(properties.sourceFailoverConfig)),errors.collect(cdk().propertyValidator("sources",cdk().requiredValidator)(properties.sources)),errors.collect(cdk().propertyValidator("sources",cdk().listValidator(CfnBridgeBridgeSourcePropertyValidator))(properties.sources)),errors.wrap('supplied properties not correct for "CfnBridgeProps"')}function convertCfnBridgePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgePropsValidator(properties).assertSuccess(),{EgressGatewayBridge:convertCfnBridgeEgressGatewayBridgePropertyToCloudFormation(properties.egressGatewayBridge),IngressGatewayBridge:convertCfnBridgeIngressGatewayBridgePropertyToCloudFormation(properties.ingressGatewayBridge),Name:cdk().stringToCloudFormation(properties.name),Outputs:cdk().listMapper(convertCfnBridgeBridgeOutputPropertyToCloudFormation)(properties.outputs),PlacementArn:cdk().stringToCloudFormation(properties.placementArn),SourceFailoverConfig:convertCfnBridgeFailoverConfigPropertyToCloudFormation(properties.sourceFailoverConfig),Sources:cdk().listMapper(convertCfnBridgeBridgeSourcePropertyToCloudFormation)(properties.sources)}):properties}function CfnBridgePropsFromCloudFormation(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("egressGatewayBridge","EgressGatewayBridge",properties.EgressGatewayBridge!=null?CfnBridgeEgressGatewayBridgePropertyFromCloudFormation(properties.EgressGatewayBridge):void 0),ret.addPropertyResult("ingressGatewayBridge","IngressGatewayBridge",properties.IngressGatewayBridge!=null?CfnBridgeIngressGatewayBridgePropertyFromCloudFormation(properties.IngressGatewayBridge):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("outputs","Outputs",properties.Outputs!=null?cfn_parse().FromCloudFormation.getArray(CfnBridgeBridgeOutputPropertyFromCloudFormation)(properties.Outputs):void 0),ret.addPropertyResult("placementArn","PlacementArn",properties.PlacementArn!=null?cfn_parse().FromCloudFormation.getString(properties.PlacementArn):void 0),ret.addPropertyResult("sourceFailoverConfig","SourceFailoverConfig",properties.SourceFailoverConfig!=null?CfnBridgeFailoverConfigPropertyFromCloudFormation(properties.SourceFailoverConfig):void 0),ret.addPropertyResult("sources","Sources",properties.Sources!=null?cfn_parse().FromCloudFormation.getArray(CfnBridgeBridgeSourcePropertyFromCloudFormation)(properties.Sources):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBridgeOutput extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBridgeOutputPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBridgeOutput(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:CfnBridgeOutput.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediaconnect_CfnBridgeOutputProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBridgeOutput),error}cdk().requireProperty(props,"bridgeArn",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"networkOutput",this),this.bridgeArn=props.bridgeArn,this.name=props.name,this.networkOutput=props.networkOutput}get cfnProperties(){return{bridgeArn:this.bridgeArn,name:this.name,networkOutput:this.networkOutput}}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",CfnBridgeOutput.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBridgeOutputPropsToCloudFormation(props)}}exports.CfnBridgeOutput=CfnBridgeOutput,_b=JSII_RTTI_SYMBOL_1,CfnBridgeOutput[_b]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnBridgeOutput",version:"2.202.0"},CfnBridgeOutput.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::BridgeOutput";function CfnBridgeOutputBridgeNetworkOutputPropertyValidator(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("ipAddress",cdk().requiredValidator)(properties.ipAddress)),errors.collect(cdk().propertyValidator("ipAddress",cdk().validateString)(properties.ipAddress)),errors.collect(cdk().propertyValidator("networkName",cdk().requiredValidator)(properties.networkName)),errors.collect(cdk().propertyValidator("networkName",cdk().validateString)(properties.networkName)),errors.collect(cdk().propertyValidator("port",cdk().requiredValidator)(properties.port)),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("ttl",cdk().requiredValidator)(properties.ttl)),errors.collect(cdk().propertyValidator("ttl",cdk().validateNumber)(properties.ttl)),errors.wrap('supplied properties not correct for "BridgeNetworkOutputProperty"')}function convertCfnBridgeOutputBridgeNetworkOutputPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeOutputBridgeNetworkOutputPropertyValidator(properties).assertSuccess(),{IpAddress:cdk().stringToCloudFormation(properties.ipAddress),NetworkName:cdk().stringToCloudFormation(properties.networkName),Port:cdk().numberToCloudFormation(properties.port),Protocol:cdk().stringToCloudFormation(properties.protocol),Ttl:cdk().numberToCloudFormation(properties.ttl)}):properties}function CfnBridgeOutputBridgeNetworkOutputPropertyFromCloudFormation(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("ipAddress","IpAddress",properties.IpAddress!=null?cfn_parse().FromCloudFormation.getString(properties.IpAddress):void 0),ret.addPropertyResult("networkName","NetworkName",properties.NetworkName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkName):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse().FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addPropertyResult("ttl","Ttl",properties.Ttl!=null?cfn_parse().FromCloudFormation.getNumber(properties.Ttl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeOutputPropsValidator(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("bridgeArn",cdk().requiredValidator)(properties.bridgeArn)),errors.collect(cdk().propertyValidator("bridgeArn",cdk().validateString)(properties.bridgeArn)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkOutput",cdk().requiredValidator)(properties.networkOutput)),errors.collect(cdk().propertyValidator("networkOutput",CfnBridgeOutputBridgeNetworkOutputPropertyValidator)(properties.networkOutput)),errors.wrap('supplied properties not correct for "CfnBridgeOutputProps"')}function convertCfnBridgeOutputPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeOutputPropsValidator(properties).assertSuccess(),{BridgeArn:cdk().stringToCloudFormation(properties.bridgeArn),Name:cdk().stringToCloudFormation(properties.name),NetworkOutput:convertCfnBridgeOutputBridgeNetworkOutputPropertyToCloudFormation(properties.networkOutput)}):properties}function CfnBridgeOutputPropsFromCloudFormation(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("bridgeArn","BridgeArn",properties.BridgeArn!=null?cfn_parse().FromCloudFormation.getString(properties.BridgeArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkOutput","NetworkOutput",properties.NetworkOutput!=null?CfnBridgeOutputBridgeNetworkOutputPropertyFromCloudFormation(properties.NetworkOutput):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBridgeSource extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBridgeSourcePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBridgeSource(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:CfnBridgeSource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mediaconnect_CfnBridgeSourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBridgeSource),error}cdk().requireProperty(props,"bridgeArn",this),cdk().requireProperty(props,"name",this),this.bridgeArn=props.bridgeArn,this.flowSource=props.flowSource,this.name=props.name,this.networkSource=props.networkSource}get cfnProperties(){return{bridgeArn:this.bridgeArn,flowSource:this.flowSource,name:this.name,networkSource:this.networkSource}}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",CfnBridgeSource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBridgeSourcePropsToCloudFormation(props)}}exports.CfnBridgeSource=CfnBridgeSource,_c=JSII_RTTI_SYMBOL_1,CfnBridgeSource[_c]={fqn:"aws-cdk-lib.aws_mediaconnect.CfnBridgeSource",version:"2.202.0"},CfnBridgeSource.CFN_RESOURCE_TYPE_NAME="AWS::MediaConnect::BridgeSource";function CfnBridgeSourceMulticastSourceSettingsPropertyValidator(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("multicastSourceIp",cdk().validateString)(properties.multicastSourceIp)),errors.wrap('supplied properties not correct for "MulticastSourceSettingsProperty"')}function convertCfnBridgeSourceMulticastSourceSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourceMulticastSourceSettingsPropertyValidator(properties).assertSuccess(),{MulticastSourceIp:cdk().stringToCloudFormation(properties.multicastSourceIp)}):properties}function CfnBridgeSourceMulticastSourceSettingsPropertyFromCloudFormation(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("multicastSourceIp","MulticastSourceIp",properties.MulticastSourceIp!=null?cfn_parse().FromCloudFormation.getString(properties.MulticastSourceIp):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeSourceBridgeNetworkSourcePropertyValidator(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("multicastIp",cdk().requiredValidator)(properties.multicastIp)),errors.collect(cdk().propertyValidator("multicastIp",cdk().validateString)(properties.multicastIp)),errors.collect(cdk().propertyValidator("multicastSourceSettings",CfnBridgeSourceMulticastSourceSettingsPropertyValidator)(properties.multicastSourceSettings)),errors.collect(cdk().propertyValidator("networkName",cdk().requiredValidator)(properties.networkName)),errors.collect(cdk().propertyValidator("networkName",cdk().validateString)(properties.networkName)),errors.collect(cdk().propertyValidator("port",cdk().requiredValidator)(properties.port)),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.wrap('supplied properties not correct for "BridgeNetworkSourceProperty"')}function convertCfnBridgeSourceBridgeNetworkSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourceBridgeNetworkSourcePropertyValidator(properties).assertSuccess(),{MulticastIp:cdk().stringToCloudFormation(properties.multicastIp),MulticastSourceSettings:convertCfnBridgeSourceMulticastSourceSettingsPropertyToCloudFormation(properties.multicastSourceSettings),NetworkName:cdk().stringToCloudFormation(properties.networkName),Port:cdk().numberToCloudFormation(properties.port),Protocol:cdk().stringToCloudFormation(properties.protocol)}):properties}function CfnBridgeSourceBridgeNetworkSourcePropertyFromCloudFormation(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("multicastIp","MulticastIp",properties.MulticastIp!=null?cfn_parse().FromCloudFormation.getString(properties.MulticastIp):void 0),ret.addPropertyResult("multicastSourceSettings","MulticastSourceSettings",properties.MulticastSourceSettings!=null?CfnBridgeSourceMulticastSourceSettingsPropertyFromCloudFormation(properties.MulticastSourceSettings):void 0),ret.addPropertyResult("networkName","NetworkName",properties.NetworkName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkName):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse().FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeSourceVpcInterfaceAttachmentPropertyValidator(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("vpcInterfaceName",cdk().validateString)(properties.vpcInterfaceName)),errors.wrap('supplied properties not correct for "VpcInterfaceAttachmentProperty"')}function convertCfnBridgeSourceVpcInterfaceAttachmentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourceVpcInterfaceAttachmentPropertyValidator(properties).assertSuccess(),{VpcInterfaceName:cdk().stringToCloudFormation(properties.vpcInterfaceName)}):properties}function CfnBridgeSourceVpcInterfaceAttachmentPropertyFromCloudFormation(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("vpcInterfaceName","VpcInterfaceName",properties.VpcInterfaceName!=null?cfn_parse().FromCloudFormation.getString(properties.VpcInterfaceName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeSourceBridgeFlowSourcePropertyValidator(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("flowArn",cdk().requiredValidator)(properties.flowArn)),errors.collect(cdk().propertyValidator("flowArn",cdk().validateString)(properties.flowArn)),errors.collect(cdk().propertyValidator("flowVpcInterfaceAttachment",CfnBridgeSourceVpcInterfaceAttachmentPropertyValidator)(properties.flowVpcInterfaceAttachment)),errors.wrap('supplied properties not correct for "BridgeFlowSourceProperty"')}function convertCfnBridgeSourceBridgeFlowSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourceBridgeFlowSourcePropertyValidator(properties).assertSuccess(),{FlowArn:cdk().stringToCloudFormation(properties.flowArn),FlowVpcInterfaceAttachment:convertCfnBridgeSourceVpcInterfaceAttachmentPropertyToCloudFormation(properties.flowVpcInterfaceAttachment)}):properties}function CfnBridgeSourceBridgeFlowSourcePropertyFromCloudFormation(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("flowArn","FlowArn",properties.FlowArn!=null?cfn_parse().FromCloudFormation.getString(properties.FlowArn):void 0),ret.addPropertyResult("flowVpcInterfaceAttachment","FlowVpcInterfaceAttachment",properties.FlowVpcInterfaceAttachment!=null?CfnBridgeSourceVpcInterfaceAttachmentPropertyFromCloudFormation(properties.FlowVpcInterfaceAttachment):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBridgeSourcePropsValidator(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("bridgeArn",cdk().requiredValidator)(properties.bridgeArn)),errors.collect(cdk().propertyValidator("bridgeArn",cdk().validateString)(properties.bridgeArn)),errors.collect(cdk().propertyValidator("flowSource",CfnBridgeSourceBridgeFlowSourcePropertyValidator)(properties.flowSource)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkSource",CfnBridgeSourceBridgeNetworkSourcePropertyValidator)(properties.networkSource)),errors.wrap('supplied properties not correct for "CfnBridgeSourceProps"')}function convertCfnBridgeSourcePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBridgeSourcePropsValidator(properties).assertSuccess(),{BridgeArn:cdk().stringToCloudFormation(properties.bridgeArn),FlowSource:convertCfnBridgeSourceBridgeFlowSourcePropertyToCloudFormation(properties.flowSource),Name:cdk().stringToCloudFormation(properties.name),NetworkSource:convertCfnBridgeSourceBridgeNetworkSourcePropertyToCloudFormation(properties.networkSource)}):properties}function CfnBridgeSourcePropsFromCloudFormation(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("bridgeArn","BridgeArn",properties.BridgeArn!=null?cfn_parse().FromCloudFormation.getString(properties.BridgeArn):void 0),ret.addPropertyResult("flowSource","FlowSource",properties.FlowSource!=null?CfnBridgeSourceBridgeFlowSourcePropertyFromCloudFormation(properties.FlowSource):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkSource","NetworkSource",properties.NetworkSource!=null?CfnBridgeSourceBridgeNetworkSourcePropertyFromCloudFormation(properties.NetworkSource):void 0),ret.addUnrecognizedPropertiesAs