UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 98.7 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnResponderGateway=exports.CfnRequesterGateway=exports.CfnOutboundExternalLink=exports.CfnLink=exports.CfnInboundExternalLink=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/lib");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 CfnInboundExternalLink extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_rtbfabric.CfnInboundExternalLink",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::RTBFabric::InboundExternalLink";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnInboundExternalLinkPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnInboundExternalLink(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}static isCfnInboundExternalLink(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnInboundExternalLink.CFN_RESOURCE_TYPE_NAME}static arnForInboundExternalLink(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_rtbfabric_IInboundExternalLinkRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForInboundExternalLink),error}return resource.inboundExternalLinkRef.inboundExternalLinkArn}attrArn;attrCreatedTimestamp;attrLinkId;attrLinkStatus;attrUpdatedTimestamp;cdkTagManager;gatewayId;linkAttributes;linkLogSettings;tags;constructor(scope,id,props){super(scope,id,{type:CfnInboundExternalLink.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_rtbfabric_CfnInboundExternalLinkProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnInboundExternalLink),error}cdk().requireProperty(props,"gatewayId",this),cdk().requireProperty(props,"linkLogSettings",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedTimestamp=cdk().Token.asString(this.getAtt("CreatedTimestamp",cdk().ResolutionTypeHint.STRING)),this.attrLinkId=cdk().Token.asString(this.getAtt("LinkId",cdk().ResolutionTypeHint.STRING)),this.attrLinkStatus=cdk().Token.asString(this.getAtt("LinkStatus",cdk().ResolutionTypeHint.STRING)),this.attrUpdatedTimestamp=cdk().Token.asString(this.getAtt("UpdatedTimestamp",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::RTBFabric::InboundExternalLink",void 0,{tagPropertyName:"tags"}),this.gatewayId=props.gatewayId,this.linkAttributes=props.linkAttributes,this.linkLogSettings=props.linkLogSettings,this.tags=props.tags}get inboundExternalLinkRef(){return{inboundExternalLinkArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),gatewayId:this.gatewayId,linkAttributes:this.linkAttributes,linkLogSettings:this.linkLogSettings}}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",CfnInboundExternalLink.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnInboundExternalLinkPropsToCloudFormation(props)}}exports.CfnInboundExternalLink=CfnInboundExternalLink;function CfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyValidator(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("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("httpCode",cdk().requiredValidator)(properties.httpCode)),errors.collect(cdk().propertyValidator("httpCode",cdk().validateString)(properties.httpCode)),errors.collect(cdk().propertyValidator("loggingTypes",cdk().requiredValidator)(properties.loggingTypes)),errors.collect(cdk().propertyValidator("loggingTypes",cdk().listValidator(cdk().validateString))(properties.loggingTypes)),errors.collect(cdk().propertyValidator("responseLoggingPercentage",cdk().validateNumber)(properties.responseLoggingPercentage)),errors.wrap('supplied properties not correct for "ResponderErrorMaskingForHttpCodeProperty"')}function convertCfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),HttpCode:cdk().stringToCloudFormation(properties.httpCode),LoggingTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.loggingTypes),ResponseLoggingPercentage:cdk().numberToCloudFormation(properties.responseLoggingPercentage)}):properties}function CfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyFromCloudFormation(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("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("httpCode","HttpCode",properties.HttpCode!=null?cfn_parse().FromCloudFormation.getString(properties.HttpCode):void 0),ret.addPropertyResult("loggingTypes","LoggingTypes",properties.LoggingTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LoggingTypes):void 0),ret.addPropertyResult("responseLoggingPercentage","ResponseLoggingPercentage",properties.ResponseLoggingPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.ResponseLoggingPercentage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInboundExternalLinkLinkAttributesPropertyValidator(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("customerProvidedId",cdk().validateString)(properties.customerProvidedId)),errors.collect(cdk().propertyValidator("responderErrorMasking",cdk().listValidator(CfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyValidator))(properties.responderErrorMasking)),errors.wrap('supplied properties not correct for "LinkAttributesProperty"')}function convertCfnInboundExternalLinkLinkAttributesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkLinkAttributesPropertyValidator(properties).assertSuccess(),{CustomerProvidedId:cdk().stringToCloudFormation(properties.customerProvidedId),ResponderErrorMasking:cdk().listMapper(convertCfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyToCloudFormation)(properties.responderErrorMasking)}):properties}function CfnInboundExternalLinkLinkAttributesPropertyFromCloudFormation(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("customerProvidedId","CustomerProvidedId",properties.CustomerProvidedId!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerProvidedId):void 0),ret.addPropertyResult("responderErrorMasking","ResponderErrorMasking",properties.ResponderErrorMasking!=null?cfn_parse().FromCloudFormation.getArray(CfnInboundExternalLinkResponderErrorMaskingForHttpCodePropertyFromCloudFormation)(properties.ResponderErrorMasking):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInboundExternalLinkLinkApplicationLogSamplingPropertyValidator(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("errorLog",cdk().requiredValidator)(properties.errorLog)),errors.collect(cdk().propertyValidator("errorLog",cdk().validateNumber)(properties.errorLog)),errors.collect(cdk().propertyValidator("filterLog",cdk().requiredValidator)(properties.filterLog)),errors.collect(cdk().propertyValidator("filterLog",cdk().validateNumber)(properties.filterLog)),errors.wrap('supplied properties not correct for "LinkApplicationLogSamplingProperty"')}function convertCfnInboundExternalLinkLinkApplicationLogSamplingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkLinkApplicationLogSamplingPropertyValidator(properties).assertSuccess(),{ErrorLog:cdk().numberToCloudFormation(properties.errorLog),FilterLog:cdk().numberToCloudFormation(properties.filterLog)}):properties}function CfnInboundExternalLinkLinkApplicationLogSamplingPropertyFromCloudFormation(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("errorLog","ErrorLog",properties.ErrorLog!=null?cfn_parse().FromCloudFormation.getNumber(properties.ErrorLog):void 0),ret.addPropertyResult("filterLog","FilterLog",properties.FilterLog!=null?cfn_parse().FromCloudFormation.getNumber(properties.FilterLog):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInboundExternalLinkApplicationLogsPropertyValidator(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("linkApplicationLogSampling",cdk().requiredValidator)(properties.linkApplicationLogSampling)),errors.collect(cdk().propertyValidator("linkApplicationLogSampling",CfnInboundExternalLinkLinkApplicationLogSamplingPropertyValidator)(properties.linkApplicationLogSampling)),errors.wrap('supplied properties not correct for "ApplicationLogsProperty"')}function convertCfnInboundExternalLinkApplicationLogsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkApplicationLogsPropertyValidator(properties).assertSuccess(),{LinkApplicationLogSampling:convertCfnInboundExternalLinkLinkApplicationLogSamplingPropertyToCloudFormation(properties.linkApplicationLogSampling)}):properties}function CfnInboundExternalLinkApplicationLogsPropertyFromCloudFormation(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("linkApplicationLogSampling","LinkApplicationLogSampling",properties.LinkApplicationLogSampling!=null?CfnInboundExternalLinkLinkApplicationLogSamplingPropertyFromCloudFormation(properties.LinkApplicationLogSampling):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInboundExternalLinkLinkLogSettingsPropertyValidator(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("applicationLogs",cdk().requiredValidator)(properties.applicationLogs)),errors.collect(cdk().propertyValidator("applicationLogs",CfnInboundExternalLinkApplicationLogsPropertyValidator)(properties.applicationLogs)),errors.wrap('supplied properties not correct for "LinkLogSettingsProperty"')}function convertCfnInboundExternalLinkLinkLogSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkLinkLogSettingsPropertyValidator(properties).assertSuccess(),{ApplicationLogs:convertCfnInboundExternalLinkApplicationLogsPropertyToCloudFormation(properties.applicationLogs)}):properties}function CfnInboundExternalLinkLinkLogSettingsPropertyFromCloudFormation(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("applicationLogs","ApplicationLogs",properties.ApplicationLogs!=null?CfnInboundExternalLinkApplicationLogsPropertyFromCloudFormation(properties.ApplicationLogs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInboundExternalLinkPropsValidator(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("gatewayId",cdk().requiredValidator)(properties.gatewayId)),errors.collect(cdk().propertyValidator("gatewayId",cdk().validateString)(properties.gatewayId)),errors.collect(cdk().propertyValidator("linkAttributes",CfnInboundExternalLinkLinkAttributesPropertyValidator)(properties.linkAttributes)),errors.collect(cdk().propertyValidator("linkLogSettings",cdk().requiredValidator)(properties.linkLogSettings)),errors.collect(cdk().propertyValidator("linkLogSettings",CfnInboundExternalLinkLinkLogSettingsPropertyValidator)(properties.linkLogSettings)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnInboundExternalLinkProps"')}function convertCfnInboundExternalLinkPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInboundExternalLinkPropsValidator(properties).assertSuccess(),{GatewayId:cdk().stringToCloudFormation(properties.gatewayId),LinkAttributes:convertCfnInboundExternalLinkLinkAttributesPropertyToCloudFormation(properties.linkAttributes),LinkLogSettings:convertCfnInboundExternalLinkLinkLogSettingsPropertyToCloudFormation(properties.linkLogSettings),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnInboundExternalLinkPropsFromCloudFormation(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("gatewayId","GatewayId",properties.GatewayId!=null?cfn_parse().FromCloudFormation.getString(properties.GatewayId):void 0),ret.addPropertyResult("linkAttributes","LinkAttributes",properties.LinkAttributes!=null?CfnInboundExternalLinkLinkAttributesPropertyFromCloudFormation(properties.LinkAttributes):void 0),ret.addPropertyResult("linkLogSettings","LinkLogSettings",properties.LinkLogSettings!=null?CfnInboundExternalLinkLinkLogSettingsPropertyFromCloudFormation(properties.LinkLogSettings):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLink extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_rtbfabric.CfnLink",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::RTBFabric::Link";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLinkPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnLink(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}static isCfnLink(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLink.CFN_RESOURCE_TYPE_NAME}static arnForLink(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_rtbfabric_ILinkRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForLink),error}return resource.linkRef.linkArn}attrArn;attrCreatedTimestamp;attrLinkDirection;attrLinkId;attrLinkStatus;attrUpdatedTimestamp;cdkTagManager;gatewayId;httpResponderAllowed;linkAttributes;linkLogSettings;moduleConfigurationList;peerGatewayId;tags;constructor(scope,id,props){super(scope,id,{type:CfnLink.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_rtbfabric_CfnLinkProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLink),error}cdk().requireProperty(props,"gatewayId",this),cdk().requireProperty(props,"linkLogSettings",this),cdk().requireProperty(props,"peerGatewayId",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedTimestamp=cdk().Token.asString(this.getAtt("CreatedTimestamp",cdk().ResolutionTypeHint.STRING)),this.attrLinkDirection=cdk().Token.asString(this.getAtt("LinkDirection",cdk().ResolutionTypeHint.STRING)),this.attrLinkId=cdk().Token.asString(this.getAtt("LinkId",cdk().ResolutionTypeHint.STRING)),this.attrLinkStatus=cdk().Token.asString(this.getAtt("LinkStatus",cdk().ResolutionTypeHint.STRING)),this.attrUpdatedTimestamp=cdk().Token.asString(this.getAtt("UpdatedTimestamp",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::RTBFabric::Link",void 0,{tagPropertyName:"tags"}),this.gatewayId=props.gatewayId,this.httpResponderAllowed=props.httpResponderAllowed,this.linkAttributes=props.linkAttributes,this.linkLogSettings=props.linkLogSettings,this.moduleConfigurationList=props.moduleConfigurationList,this.peerGatewayId=props.peerGatewayId,this.tags=props.tags}get linkRef(){return{linkArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),gatewayId:this.gatewayId,httpResponderAllowed:this.httpResponderAllowed,linkAttributes:this.linkAttributes,linkLogSettings:this.linkLogSettings,moduleConfigurationList:this.moduleConfigurationList,peerGatewayId:this.peerGatewayId}}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",CfnLink.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLinkPropsToCloudFormation(props)}}exports.CfnLink=CfnLink;function CfnLinkResponderErrorMaskingForHttpCodePropertyValidator(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("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("httpCode",cdk().requiredValidator)(properties.httpCode)),errors.collect(cdk().propertyValidator("httpCode",cdk().validateString)(properties.httpCode)),errors.collect(cdk().propertyValidator("loggingTypes",cdk().requiredValidator)(properties.loggingTypes)),errors.collect(cdk().propertyValidator("loggingTypes",cdk().listValidator(cdk().validateString))(properties.loggingTypes)),errors.collect(cdk().propertyValidator("responseLoggingPercentage",cdk().validateNumber)(properties.responseLoggingPercentage)),errors.wrap('supplied properties not correct for "ResponderErrorMaskingForHttpCodeProperty"')}function convertCfnLinkResponderErrorMaskingForHttpCodePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkResponderErrorMaskingForHttpCodePropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),HttpCode:cdk().stringToCloudFormation(properties.httpCode),LoggingTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.loggingTypes),ResponseLoggingPercentage:cdk().numberToCloudFormation(properties.responseLoggingPercentage)}):properties}function CfnLinkResponderErrorMaskingForHttpCodePropertyFromCloudFormation(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("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("httpCode","HttpCode",properties.HttpCode!=null?cfn_parse().FromCloudFormation.getString(properties.HttpCode):void 0),ret.addPropertyResult("loggingTypes","LoggingTypes",properties.LoggingTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LoggingTypes):void 0),ret.addPropertyResult("responseLoggingPercentage","ResponseLoggingPercentage",properties.ResponseLoggingPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.ResponseLoggingPercentage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkLinkAttributesPropertyValidator(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("customerProvidedId",cdk().validateString)(properties.customerProvidedId)),errors.collect(cdk().propertyValidator("responderErrorMasking",cdk().listValidator(CfnLinkResponderErrorMaskingForHttpCodePropertyValidator))(properties.responderErrorMasking)),errors.wrap('supplied properties not correct for "LinkAttributesProperty"')}function convertCfnLinkLinkAttributesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkLinkAttributesPropertyValidator(properties).assertSuccess(),{CustomerProvidedId:cdk().stringToCloudFormation(properties.customerProvidedId),ResponderErrorMasking:cdk().listMapper(convertCfnLinkResponderErrorMaskingForHttpCodePropertyToCloudFormation)(properties.responderErrorMasking)}):properties}function CfnLinkLinkAttributesPropertyFromCloudFormation(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("customerProvidedId","CustomerProvidedId",properties.CustomerProvidedId!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerProvidedId):void 0),ret.addPropertyResult("responderErrorMasking","ResponderErrorMasking",properties.ResponderErrorMasking!=null?cfn_parse().FromCloudFormation.getArray(CfnLinkResponderErrorMaskingForHttpCodePropertyFromCloudFormation)(properties.ResponderErrorMasking):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkLinkApplicationLogSamplingPropertyValidator(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("errorLog",cdk().requiredValidator)(properties.errorLog)),errors.collect(cdk().propertyValidator("errorLog",cdk().validateNumber)(properties.errorLog)),errors.collect(cdk().propertyValidator("filterLog",cdk().requiredValidator)(properties.filterLog)),errors.collect(cdk().propertyValidator("filterLog",cdk().validateNumber)(properties.filterLog)),errors.wrap('supplied properties not correct for "LinkApplicationLogSamplingProperty"')}function convertCfnLinkLinkApplicationLogSamplingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkLinkApplicationLogSamplingPropertyValidator(properties).assertSuccess(),{ErrorLog:cdk().numberToCloudFormation(properties.errorLog),FilterLog:cdk().numberToCloudFormation(properties.filterLog)}):properties}function CfnLinkLinkApplicationLogSamplingPropertyFromCloudFormation(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("errorLog","ErrorLog",properties.ErrorLog!=null?cfn_parse().FromCloudFormation.getNumber(properties.ErrorLog):void 0),ret.addPropertyResult("filterLog","FilterLog",properties.FilterLog!=null?cfn_parse().FromCloudFormation.getNumber(properties.FilterLog):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkApplicationLogsPropertyValidator(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("linkApplicationLogSampling",cdk().requiredValidator)(properties.linkApplicationLogSampling)),errors.collect(cdk().propertyValidator("linkApplicationLogSampling",CfnLinkLinkApplicationLogSamplingPropertyValidator)(properties.linkApplicationLogSampling)),errors.wrap('supplied properties not correct for "ApplicationLogsProperty"')}function convertCfnLinkApplicationLogsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkApplicationLogsPropertyValidator(properties).assertSuccess(),{LinkApplicationLogSampling:convertCfnLinkLinkApplicationLogSamplingPropertyToCloudFormation(properties.linkApplicationLogSampling)}):properties}function CfnLinkApplicationLogsPropertyFromCloudFormation(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("linkApplicationLogSampling","LinkApplicationLogSampling",properties.LinkApplicationLogSampling!=null?CfnLinkLinkApplicationLogSamplingPropertyFromCloudFormation(properties.LinkApplicationLogSampling):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkLinkLogSettingsPropertyValidator(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("applicationLogs",cdk().requiredValidator)(properties.applicationLogs)),errors.collect(cdk().propertyValidator("applicationLogs",CfnLinkApplicationLogsPropertyValidator)(properties.applicationLogs)),errors.wrap('supplied properties not correct for "LinkLogSettingsProperty"')}function convertCfnLinkLinkLogSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkLinkLogSettingsPropertyValidator(properties).assertSuccess(),{ApplicationLogs:convertCfnLinkApplicationLogsPropertyToCloudFormation(properties.applicationLogs)}):properties}function CfnLinkLinkLogSettingsPropertyFromCloudFormation(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("applicationLogs","ApplicationLogs",properties.ApplicationLogs!=null?CfnLinkApplicationLogsPropertyFromCloudFormation(properties.ApplicationLogs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkNoBidModuleParametersPropertyValidator(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("passThroughPercentage",cdk().validateNumber)(properties.passThroughPercentage)),errors.collect(cdk().propertyValidator("reason",cdk().validateString)(properties.reason)),errors.collect(cdk().propertyValidator("reasonCode",cdk().validateNumber)(properties.reasonCode)),errors.wrap('supplied properties not correct for "NoBidModuleParametersProperty"')}function convertCfnLinkNoBidModuleParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkNoBidModuleParametersPropertyValidator(properties).assertSuccess(),{PassThroughPercentage:cdk().numberToCloudFormation(properties.passThroughPercentage),Reason:cdk().stringToCloudFormation(properties.reason),ReasonCode:cdk().numberToCloudFormation(properties.reasonCode)}):properties}function CfnLinkNoBidModuleParametersPropertyFromCloudFormation(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("passThroughPercentage","PassThroughPercentage",properties.PassThroughPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.PassThroughPercentage):void 0),ret.addPropertyResult("reason","Reason",properties.Reason!=null?cfn_parse().FromCloudFormation.getString(properties.Reason):void 0),ret.addPropertyResult("reasonCode","ReasonCode",properties.ReasonCode!=null?cfn_parse().FromCloudFormation.getNumber(properties.ReasonCode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkFilterCriterionPropertyValidator(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("path",cdk().requiredValidator)(properties.path)),errors.collect(cdk().propertyValidator("path",cdk().validateString)(properties.path)),errors.collect(cdk().propertyValidator("values",cdk().requiredValidator)(properties.values)),errors.collect(cdk().propertyValidator("values",cdk().listValidator(cdk().validateString))(properties.values)),errors.wrap('supplied properties not correct for "FilterCriterionProperty"')}function convertCfnLinkFilterCriterionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkFilterCriterionPropertyValidator(properties).assertSuccess(),{Path:cdk().stringToCloudFormation(properties.path),Values:cdk().listMapper(cdk().stringToCloudFormation)(properties.values)}):properties}function CfnLinkFilterCriterionPropertyFromCloudFormation(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("path","Path",properties.Path!=null?cfn_parse().FromCloudFormation.getString(properties.Path):void 0),ret.addPropertyResult("values","Values",properties.Values!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Values):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkFilterPropertyValidator(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("criteria",cdk().requiredValidator)(properties.criteria)),errors.collect(cdk().propertyValidator("criteria",cdk().listValidator(CfnLinkFilterCriterionPropertyValidator))(properties.criteria)),errors.wrap('supplied properties not correct for "FilterProperty"')}function convertCfnLinkFilterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkFilterPropertyValidator(properties).assertSuccess(),{Criteria:cdk().listMapper(convertCfnLinkFilterCriterionPropertyToCloudFormation)(properties.criteria)}):properties}function CfnLinkFilterPropertyFromCloudFormation(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("criteria","Criteria",properties.Criteria!=null?cfn_parse().FromCloudFormation.getArray(CfnLinkFilterCriterionPropertyFromCloudFormation)(properties.Criteria):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkNoBidActionPropertyValidator(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("noBidReasonCode",cdk().validateNumber)(properties.noBidReasonCode)),errors.wrap('supplied properties not correct for "NoBidActionProperty"')}function convertCfnLinkNoBidActionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkNoBidActionPropertyValidator(properties).assertSuccess(),{NoBidReasonCode:cdk().numberToCloudFormation(properties.noBidReasonCode)}):properties}function CfnLinkNoBidActionPropertyFromCloudFormation(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("noBidReasonCode","NoBidReasonCode",properties.NoBidReasonCode!=null?cfn_parse().FromCloudFormation.getNumber(properties.NoBidReasonCode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkHeaderTagActionPropertyValidator(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("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "HeaderTagActionProperty"')}function convertCfnLinkHeaderTagActionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkHeaderTagActionPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnLinkHeaderTagActionPropertyFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkActionPropertyValidator(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("headerTag",cdk().requiredValidator)(properties.headerTag)),errors.collect(cdk().propertyValidator("headerTag",CfnLinkHeaderTagActionPropertyValidator)(properties.headerTag)),errors.collect(cdk().propertyValidator("noBid",cdk().requiredValidator)(properties.noBid)),errors.collect(cdk().propertyValidator("noBid",CfnLinkNoBidActionPropertyValidator)(properties.noBid)),errors.wrap('supplied properties not correct for "ActionProperty"')}function convertCfnLinkActionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkActionPropertyValidator(properties).assertSuccess(),{HeaderTag:convertCfnLinkHeaderTagActionPropertyToCloudFormation(properties.headerTag),NoBid:convertCfnLinkNoBidActionPropertyToCloudFormation(properties.noBid)}):properties}function CfnLinkActionPropertyFromCloudFormation(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("headerTag","HeaderTag",properties.HeaderTag!=null?CfnLinkHeaderTagActionPropertyFromCloudFormation(properties.HeaderTag):void 0),ret.addPropertyResult("noBid","NoBid",properties.NoBid!=null?CfnLinkNoBidActionPropertyFromCloudFormation(properties.NoBid):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkOpenRtbAttributeModuleParametersPropertyValidator(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("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",CfnLinkActionPropertyValidator)(properties.action)),errors.collect(cdk().propertyValidator("filterConfiguration",cdk().requiredValidator)(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("filterConfiguration",cdk().listValidator(CfnLinkFilterPropertyValidator))(properties.filterConfiguration)),errors.collect(cdk().propertyValidator("filterType",cdk().requiredValidator)(properties.filterType)),errors.collect(cdk().propertyValidator("filterType",cdk().validateString)(properties.filterType)),errors.collect(cdk().propertyValidator("holdbackPercentage",cdk().requiredValidator)(properties.holdbackPercentage)),errors.collect(cdk().propertyValidator("holdbackPercentage",cdk().validateNumber)(properties.holdbackPercentage)),errors.wrap('supplied properties not correct for "OpenRtbAttributeModuleParametersProperty"')}function convertCfnLinkOpenRtbAttributeModuleParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkOpenRtbAttributeModuleParametersPropertyValidator(properties).assertSuccess(),{Action:convertCfnLinkActionPropertyToCloudFormation(properties.action),FilterConfiguration:cdk().listMapper(convertCfnLinkFilterPropertyToCloudFormation)(properties.filterConfiguration),FilterType:cdk().stringToCloudFormation(properties.filterType),HoldbackPercentage:cdk().numberToCloudFormation(properties.holdbackPercentage)}):properties}function CfnLinkOpenRtbAttributeModuleParametersPropertyFromCloudFormation(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("action","Action",properties.Action!=null?CfnLinkActionPropertyFromCloudFormation(properties.Action):void 0),ret.addPropertyResult("filterConfiguration","FilterConfiguration",properties.FilterConfiguration!=null?cfn_parse().FromCloudFormation.getArray(CfnLinkFilterPropertyFromCloudFormation)(properties.FilterConfiguration):void 0),ret.addPropertyResult("filterType","FilterType",properties.FilterType!=null?cfn_parse().FromCloudFormation.getString(properties.FilterType):void 0),ret.addPropertyResult("holdbackPercentage","HoldbackPercentage",properties.HoldbackPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.HoldbackPercentage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkModuleParametersPropertyValidator(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("noBid",CfnLinkNoBidModuleParametersPropertyValidator)(properties.noBid)),errors.collect(cdk().propertyValidator("openRtbAttribute",CfnLinkOpenRtbAttributeModuleParametersPropertyValidator)(properties.openRtbAttribute)),errors.wrap('supplied properties not correct for "ModuleParametersProperty"')}function convertCfnLinkModuleParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkModuleParametersPropertyValidator(properties).assertSuccess(),{NoBid:convertCfnLinkNoBidModuleParametersPropertyToCloudFormation(properties.noBid),OpenRtbAttribute:convertCfnLinkOpenRtbAttributeModuleParametersPropertyToCloudFormation(properties.openRtbAttribute)}):properties}function CfnLinkModuleParametersPropertyFromCloudFormation(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("noBid","NoBid",properties.NoBid!=null?CfnLinkNoBidModuleParametersPropertyFromCloudFormation(properties.NoBid):void 0),ret.addPropertyResult("openRtbAttribute","OpenRtbAttribute",properties.OpenRtbAttribute!=null?CfnLinkOpenRtbAttributeModuleParametersPropertyFromCloudFormation(properties.OpenRtbAttribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkModuleConfigurationPropertyValidator(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("dependsOn",cdk().listValidator(cdk().validateString))(properties.dependsOn)),errors.collect(cdk().propertyValidator("moduleParameters",CfnLinkModuleParametersPropertyValidator)(properties.moduleParameters)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("version",cdk().validateString)(properties.version)),errors.wrap('supplied properties not correct for "ModuleConfigurationProperty"')}function convertCfnLinkModuleConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLinkModuleConfigurationPropertyValidator(properties).assertSuccess(),{DependsOn:cdk().listMapper(cdk().stringToCloudFormation)(properties.dependsOn),ModuleParameters:convertCfnLinkModuleParametersPropertyToCloudFormation(properties.moduleParameters),Name:cdk().stringToCloudFormation(properties.name),Version:cdk().stringToCloudFormation(properties.version)}):properties}function CfnLinkModuleConfigurationPropertyFromCloudFormation(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("dependsOn","DependsOn",properties.DependsOn!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DependsOn):void 0),ret.addPropertyResult("moduleParameters","ModuleParameters",properties.ModuleParameters!=null?CfnLinkModuleParametersPropertyFromCloudFormation(properties.ModuleParameters):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse().FromCloudFormation.getString(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLinkPropsValidator(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("gatewayId",cdk().requiredValidator)(properties.gatewayId)),errors.collect(cdk().propertyValidator("gatewayId",cdk().validateString)(properties.gatewayId)),errors.collect(cdk().propertyValidator("httpResponderAllowed",cdk().validateBoolean)(properties.httpResponderAllowed)),errors.coll