UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 66.2 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnXssMatchSet=exports.CfnWebACLAssociation=exports.CfnWebACL=exports.CfnSqlInjectionMatchSet=exports.CfnSizeConstraintSet=exports.CfnRule=exports.CfnRegexPatternSet=exports.CfnRateBasedRule=exports.CfnIPSet=exports.CfnGeoMatchSet=exports.CfnByteMatchSet=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnByteMatchSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("byteMatchTuples",cdk.listValidator(CfnByteMatchSet_ByteMatchTuplePropertyValidator))(properties.byteMatchTuples)),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 "CfnByteMatchSetProps"')}function cfnByteMatchSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnByteMatchSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),ByteMatchTuples:cdk.listMapper(cfnByteMatchSetByteMatchTuplePropertyToCloudFormation)(properties.byteMatchTuples)}):properties}function CfnByteMatchSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("byteMatchTuples","ByteMatchTuples",properties.ByteMatchTuples!=null?cfn_parse.FromCloudFormation.getArray(CfnByteMatchSetByteMatchTuplePropertyFromCloudFormation)(properties.ByteMatchTuples):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnByteMatchSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnByteMatchSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnByteMatchSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnByteMatchSet),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.byteMatchTuples=props.byteMatchTuples}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnByteMatchSetPropsFromCloudFormation(resourceProperties),ret=new CfnByteMatchSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnByteMatchSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,byteMatchTuples:this.byteMatchTuples}}renderProperties(props){return cfnByteMatchSetPropsToCloudFormation(props)}}exports.CfnByteMatchSet=CfnByteMatchSet,_a=JSII_RTTI_SYMBOL_1,CfnByteMatchSet[_a]={fqn:"aws-cdk-lib.aws_wafregional.CfnByteMatchSet",version:"2.70.0"},CfnByteMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::ByteMatchSet";function CfnByteMatchSet_ByteMatchTuplePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("fieldToMatch",cdk.requiredValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("fieldToMatch",CfnByteMatchSet_FieldToMatchPropertyValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("positionalConstraint",cdk.requiredValidator)(properties.positionalConstraint)),errors.collect(cdk.propertyValidator("positionalConstraint",cdk.validateString)(properties.positionalConstraint)),errors.collect(cdk.propertyValidator("targetString",cdk.validateString)(properties.targetString)),errors.collect(cdk.propertyValidator("targetStringBase64",cdk.validateString)(properties.targetStringBase64)),errors.collect(cdk.propertyValidator("textTransformation",cdk.requiredValidator)(properties.textTransformation)),errors.collect(cdk.propertyValidator("textTransformation",cdk.validateString)(properties.textTransformation)),errors.wrap('supplied properties not correct for "ByteMatchTupleProperty"')}function cfnByteMatchSetByteMatchTuplePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnByteMatchSet_ByteMatchTuplePropertyValidator(properties).assertSuccess(),{FieldToMatch:cfnByteMatchSetFieldToMatchPropertyToCloudFormation(properties.fieldToMatch),PositionalConstraint:cdk.stringToCloudFormation(properties.positionalConstraint),TargetString:cdk.stringToCloudFormation(properties.targetString),TargetStringBase64:cdk.stringToCloudFormation(properties.targetStringBase64),TextTransformation:cdk.stringToCloudFormation(properties.textTransformation)}):properties}function CfnByteMatchSetByteMatchTuplePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldToMatch","FieldToMatch",CfnByteMatchSetFieldToMatchPropertyFromCloudFormation(properties.FieldToMatch)),ret.addPropertyResult("positionalConstraint","PositionalConstraint",cfn_parse.FromCloudFormation.getString(properties.PositionalConstraint)),ret.addPropertyResult("targetString","TargetString",properties.TargetString!=null?cfn_parse.FromCloudFormation.getString(properties.TargetString):void 0),ret.addPropertyResult("targetStringBase64","TargetStringBase64",properties.TargetStringBase64!=null?cfn_parse.FromCloudFormation.getString(properties.TargetStringBase64):void 0),ret.addPropertyResult("textTransformation","TextTransformation",cfn_parse.FromCloudFormation.getString(properties.TextTransformation)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnByteMatchSet_FieldToMatchPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("data",cdk.validateString)(properties.data)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "FieldToMatchProperty"')}function cfnByteMatchSetFieldToMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnByteMatchSet_FieldToMatchPropertyValidator(properties).assertSuccess(),{Data:cdk.stringToCloudFormation(properties.data),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnByteMatchSetFieldToMatchPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("data","Data",properties.Data!=null?cfn_parse.FromCloudFormation.getString(properties.Data):void 0),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGeoMatchSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("geoMatchConstraints",cdk.listValidator(CfnGeoMatchSet_GeoMatchConstraintPropertyValidator))(properties.geoMatchConstraints)),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 "CfnGeoMatchSetProps"')}function cfnGeoMatchSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGeoMatchSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),GeoMatchConstraints:cdk.listMapper(cfnGeoMatchSetGeoMatchConstraintPropertyToCloudFormation)(properties.geoMatchConstraints)}):properties}function CfnGeoMatchSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("geoMatchConstraints","GeoMatchConstraints",properties.GeoMatchConstraints!=null?cfn_parse.FromCloudFormation.getArray(CfnGeoMatchSetGeoMatchConstraintPropertyFromCloudFormation)(properties.GeoMatchConstraints):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGeoMatchSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnGeoMatchSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnGeoMatchSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGeoMatchSet),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.geoMatchConstraints=props.geoMatchConstraints}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGeoMatchSetPropsFromCloudFormation(resourceProperties),ret=new CfnGeoMatchSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnGeoMatchSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,geoMatchConstraints:this.geoMatchConstraints}}renderProperties(props){return cfnGeoMatchSetPropsToCloudFormation(props)}}exports.CfnGeoMatchSet=CfnGeoMatchSet,_b=JSII_RTTI_SYMBOL_1,CfnGeoMatchSet[_b]={fqn:"aws-cdk-lib.aws_wafregional.CfnGeoMatchSet",version:"2.70.0"},CfnGeoMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::GeoMatchSet";function CfnGeoMatchSet_GeoMatchConstraintPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),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 "GeoMatchConstraintProperty"')}function cfnGeoMatchSetGeoMatchConstraintPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGeoMatchSet_GeoMatchConstraintPropertyValidator(properties).assertSuccess(),{Type:cdk.stringToCloudFormation(properties.type),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnGeoMatchSetGeoMatchConstraintPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIPSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("ipSetDescriptors",cdk.listValidator(CfnIPSet_IPSetDescriptorPropertyValidator))(properties.ipSetDescriptors)),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 "CfnIPSetProps"')}function cfnIPSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnIPSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),IPSetDescriptors:cdk.listMapper(cfnIPSetIPSetDescriptorPropertyToCloudFormation)(properties.ipSetDescriptors)}):properties}function CfnIPSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("ipSetDescriptors","IPSetDescriptors",properties.IPSetDescriptors!=null?cfn_parse.FromCloudFormation.getArray(CfnIPSetIPSetDescriptorPropertyFromCloudFormation)(properties.IPSetDescriptors):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIPSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnIPSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnIPSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIPSet),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.ipSetDescriptors=props.ipSetDescriptors}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIPSetPropsFromCloudFormation(resourceProperties),ret=new CfnIPSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIPSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,ipSetDescriptors:this.ipSetDescriptors}}renderProperties(props){return cfnIPSetPropsToCloudFormation(props)}}exports.CfnIPSet=CfnIPSet,_c=JSII_RTTI_SYMBOL_1,CfnIPSet[_c]={fqn:"aws-cdk-lib.aws_wafregional.CfnIPSet",version:"2.70.0"},CfnIPSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::IPSet";function CfnIPSet_IPSetDescriptorPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),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 "IPSetDescriptorProperty"')}function cfnIPSetIPSetDescriptorPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnIPSet_IPSetDescriptorPropertyValidator(properties).assertSuccess(),{Type:cdk.stringToCloudFormation(properties.type),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnIPSetIPSetDescriptorPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRateBasedRulePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("matchPredicates",cdk.listValidator(CfnRateBasedRule_PredicatePropertyValidator))(properties.matchPredicates)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("rateKey",cdk.requiredValidator)(properties.rateKey)),errors.collect(cdk.propertyValidator("rateKey",cdk.validateString)(properties.rateKey)),errors.collect(cdk.propertyValidator("rateLimit",cdk.requiredValidator)(properties.rateLimit)),errors.collect(cdk.propertyValidator("rateLimit",cdk.validateNumber)(properties.rateLimit)),errors.wrap('supplied properties not correct for "CfnRateBasedRuleProps"')}function cfnRateBasedRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRateBasedRulePropsValidator(properties).assertSuccess(),{MetricName:cdk.stringToCloudFormation(properties.metricName),Name:cdk.stringToCloudFormation(properties.name),RateKey:cdk.stringToCloudFormation(properties.rateKey),RateLimit:cdk.numberToCloudFormation(properties.rateLimit),MatchPredicates:cdk.listMapper(cfnRateBasedRulePredicatePropertyToCloudFormation)(properties.matchPredicates)}):properties}function CfnRateBasedRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("rateKey","RateKey",cfn_parse.FromCloudFormation.getString(properties.RateKey)),ret.addPropertyResult("rateLimit","RateLimit",cfn_parse.FromCloudFormation.getNumber(properties.RateLimit)),ret.addPropertyResult("matchPredicates","MatchPredicates",properties.MatchPredicates!=null?cfn_parse.FromCloudFormation.getArray(CfnRateBasedRulePredicatePropertyFromCloudFormation)(properties.MatchPredicates):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRateBasedRule extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRateBasedRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnRateBasedRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRateBasedRule),error}cdk.requireProperty(props,"metricName",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"rateKey",this),cdk.requireProperty(props,"rateLimit",this),this.metricName=props.metricName,this.name=props.name,this.rateKey=props.rateKey,this.rateLimit=props.rateLimit,this.matchPredicates=props.matchPredicates}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRateBasedRulePropsFromCloudFormation(resourceProperties),ret=new CfnRateBasedRule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRateBasedRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{metricName:this.metricName,name:this.name,rateKey:this.rateKey,rateLimit:this.rateLimit,matchPredicates:this.matchPredicates}}renderProperties(props){return cfnRateBasedRulePropsToCloudFormation(props)}}exports.CfnRateBasedRule=CfnRateBasedRule,_d=JSII_RTTI_SYMBOL_1,CfnRateBasedRule[_d]={fqn:"aws-cdk-lib.aws_wafregional.CfnRateBasedRule",version:"2.70.0"},CfnRateBasedRule.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::RateBasedRule";function CfnRateBasedRule_PredicatePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dataId",cdk.requiredValidator)(properties.dataId)),errors.collect(cdk.propertyValidator("dataId",cdk.validateString)(properties.dataId)),errors.collect(cdk.propertyValidator("negated",cdk.requiredValidator)(properties.negated)),errors.collect(cdk.propertyValidator("negated",cdk.validateBoolean)(properties.negated)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "PredicateProperty"')}function cfnRateBasedRulePredicatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRateBasedRule_PredicatePropertyValidator(properties).assertSuccess(),{DataId:cdk.stringToCloudFormation(properties.dataId),Negated:cdk.booleanToCloudFormation(properties.negated),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnRateBasedRulePredicatePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dataId","DataId",cfn_parse.FromCloudFormation.getString(properties.DataId)),ret.addPropertyResult("negated","Negated",cfn_parse.FromCloudFormation.getBoolean(properties.Negated)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRegexPatternSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("regexPatternStrings",cdk.requiredValidator)(properties.regexPatternStrings)),errors.collect(cdk.propertyValidator("regexPatternStrings",cdk.listValidator(cdk.validateString))(properties.regexPatternStrings)),errors.wrap('supplied properties not correct for "CfnRegexPatternSetProps"')}function cfnRegexPatternSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRegexPatternSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),RegexPatternStrings:cdk.listMapper(cdk.stringToCloudFormation)(properties.regexPatternStrings)}):properties}function CfnRegexPatternSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("regexPatternStrings","RegexPatternStrings",cfn_parse.FromCloudFormation.getStringArray(properties.RegexPatternStrings)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRegexPatternSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRegexPatternSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnRegexPatternSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRegexPatternSet),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"regexPatternStrings",this),this.name=props.name,this.regexPatternStrings=props.regexPatternStrings}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRegexPatternSetPropsFromCloudFormation(resourceProperties),ret=new CfnRegexPatternSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRegexPatternSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,regexPatternStrings:this.regexPatternStrings}}renderProperties(props){return cfnRegexPatternSetPropsToCloudFormation(props)}}exports.CfnRegexPatternSet=CfnRegexPatternSet,_e=JSII_RTTI_SYMBOL_1,CfnRegexPatternSet[_e]={fqn:"aws-cdk-lib.aws_wafregional.CfnRegexPatternSet",version:"2.70.0"},CfnRegexPatternSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::RegexPatternSet";function CfnRulePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("predicates",cdk.listValidator(CfnRule_PredicatePropertyValidator))(properties.predicates)),errors.wrap('supplied properties not correct for "CfnRuleProps"')}function cfnRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRulePropsValidator(properties).assertSuccess(),{MetricName:cdk.stringToCloudFormation(properties.metricName),Name:cdk.stringToCloudFormation(properties.name),Predicates:cdk.listMapper(cfnRulePredicatePropertyToCloudFormation)(properties.predicates)}):properties}function CfnRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("predicates","Predicates",properties.Predicates!=null?cfn_parse.FromCloudFormation.getArray(CfnRulePredicatePropertyFromCloudFormation)(properties.Predicates):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRule extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRule),error}cdk.requireProperty(props,"metricName",this),cdk.requireProperty(props,"name",this),this.metricName=props.metricName,this.name=props.name,this.predicates=props.predicates}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRulePropsFromCloudFormation(resourceProperties),ret=new CfnRule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{metricName:this.metricName,name:this.name,predicates:this.predicates}}renderProperties(props){return cfnRulePropsToCloudFormation(props)}}exports.CfnRule=CfnRule,_f=JSII_RTTI_SYMBOL_1,CfnRule[_f]={fqn:"aws-cdk-lib.aws_wafregional.CfnRule",version:"2.70.0"},CfnRule.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::Rule";function CfnRule_PredicatePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dataId",cdk.requiredValidator)(properties.dataId)),errors.collect(cdk.propertyValidator("dataId",cdk.validateString)(properties.dataId)),errors.collect(cdk.propertyValidator("negated",cdk.requiredValidator)(properties.negated)),errors.collect(cdk.propertyValidator("negated",cdk.validateBoolean)(properties.negated)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "PredicateProperty"')}function cfnRulePredicatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_PredicatePropertyValidator(properties).assertSuccess(),{DataId:cdk.stringToCloudFormation(properties.dataId),Negated:cdk.booleanToCloudFormation(properties.negated),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnRulePredicatePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dataId","DataId",cfn_parse.FromCloudFormation.getString(properties.DataId)),ret.addPropertyResult("negated","Negated",cfn_parse.FromCloudFormation.getBoolean(properties.Negated)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSizeConstraintSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("sizeConstraints",cdk.listValidator(CfnSizeConstraintSet_SizeConstraintPropertyValidator))(properties.sizeConstraints)),errors.wrap('supplied properties not correct for "CfnSizeConstraintSetProps"')}function cfnSizeConstraintSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSizeConstraintSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),SizeConstraints:cdk.listMapper(cfnSizeConstraintSetSizeConstraintPropertyToCloudFormation)(properties.sizeConstraints)}):properties}function CfnSizeConstraintSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("sizeConstraints","SizeConstraints",properties.SizeConstraints!=null?cfn_parse.FromCloudFormation.getArray(CfnSizeConstraintSetSizeConstraintPropertyFromCloudFormation)(properties.SizeConstraints):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSizeConstraintSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSizeConstraintSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnSizeConstraintSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSizeConstraintSet),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.sizeConstraints=props.sizeConstraints}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSizeConstraintSetPropsFromCloudFormation(resourceProperties),ret=new CfnSizeConstraintSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnSizeConstraintSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,sizeConstraints:this.sizeConstraints}}renderProperties(props){return cfnSizeConstraintSetPropsToCloudFormation(props)}}exports.CfnSizeConstraintSet=CfnSizeConstraintSet,_g=JSII_RTTI_SYMBOL_1,CfnSizeConstraintSet[_g]={fqn:"aws-cdk-lib.aws_wafregional.CfnSizeConstraintSet",version:"2.70.0"},CfnSizeConstraintSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::SizeConstraintSet";function CfnSizeConstraintSet_FieldToMatchPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("data",cdk.validateString)(properties.data)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "FieldToMatchProperty"')}function cfnSizeConstraintSetFieldToMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSizeConstraintSet_FieldToMatchPropertyValidator(properties).assertSuccess(),{Data:cdk.stringToCloudFormation(properties.data),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSizeConstraintSetFieldToMatchPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("data","Data",properties.Data!=null?cfn_parse.FromCloudFormation.getString(properties.Data):void 0),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSizeConstraintSet_SizeConstraintPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("comparisonOperator",cdk.requiredValidator)(properties.comparisonOperator)),errors.collect(cdk.propertyValidator("comparisonOperator",cdk.validateString)(properties.comparisonOperator)),errors.collect(cdk.propertyValidator("fieldToMatch",cdk.requiredValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("fieldToMatch",CfnSizeConstraintSet_FieldToMatchPropertyValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("size",cdk.requiredValidator)(properties.size)),errors.collect(cdk.propertyValidator("size",cdk.validateNumber)(properties.size)),errors.collect(cdk.propertyValidator("textTransformation",cdk.requiredValidator)(properties.textTransformation)),errors.collect(cdk.propertyValidator("textTransformation",cdk.validateString)(properties.textTransformation)),errors.wrap('supplied properties not correct for "SizeConstraintProperty"')}function cfnSizeConstraintSetSizeConstraintPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSizeConstraintSet_SizeConstraintPropertyValidator(properties).assertSuccess(),{ComparisonOperator:cdk.stringToCloudFormation(properties.comparisonOperator),FieldToMatch:cfnSizeConstraintSetFieldToMatchPropertyToCloudFormation(properties.fieldToMatch),Size:cdk.numberToCloudFormation(properties.size),TextTransformation:cdk.stringToCloudFormation(properties.textTransformation)}):properties}function CfnSizeConstraintSetSizeConstraintPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("comparisonOperator","ComparisonOperator",cfn_parse.FromCloudFormation.getString(properties.ComparisonOperator)),ret.addPropertyResult("fieldToMatch","FieldToMatch",CfnSizeConstraintSetFieldToMatchPropertyFromCloudFormation(properties.FieldToMatch)),ret.addPropertyResult("size","Size",cfn_parse.FromCloudFormation.getNumber(properties.Size)),ret.addPropertyResult("textTransformation","TextTransformation",cfn_parse.FromCloudFormation.getString(properties.TextTransformation)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSqlInjectionMatchSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("sqlInjectionMatchTuples",cdk.listValidator(CfnSqlInjectionMatchSet_SqlInjectionMatchTuplePropertyValidator))(properties.sqlInjectionMatchTuples)),errors.wrap('supplied properties not correct for "CfnSqlInjectionMatchSetProps"')}function cfnSqlInjectionMatchSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSqlInjectionMatchSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),SqlInjectionMatchTuples:cdk.listMapper(cfnSqlInjectionMatchSetSqlInjectionMatchTuplePropertyToCloudFormation)(properties.sqlInjectionMatchTuples)}):properties}function CfnSqlInjectionMatchSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("sqlInjectionMatchTuples","SqlInjectionMatchTuples",properties.SqlInjectionMatchTuples!=null?cfn_parse.FromCloudFormation.getArray(CfnSqlInjectionMatchSetSqlInjectionMatchTuplePropertyFromCloudFormation)(properties.SqlInjectionMatchTuples):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSqlInjectionMatchSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSqlInjectionMatchSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wafregional_CfnSqlInjectionMatchSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSqlInjectionMatchSet),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.sqlInjectionMatchTuples=props.sqlInjectionMatchTuples}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSqlInjectionMatchSetPropsFromCloudFormation(resourceProperties),ret=new CfnSqlInjectionMatchSet(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnSqlInjectionMatchSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,sqlInjectionMatchTuples:this.sqlInjectionMatchTuples}}renderProperties(props){return cfnSqlInjectionMatchSetPropsToCloudFormation(props)}}exports.CfnSqlInjectionMatchSet=CfnSqlInjectionMatchSet,_h=JSII_RTTI_SYMBOL_1,CfnSqlInjectionMatchSet[_h]={fqn:"aws-cdk-lib.aws_wafregional.CfnSqlInjectionMatchSet",version:"2.70.0"},CfnSqlInjectionMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAFRegional::SqlInjectionMatchSet";function CfnSqlInjectionMatchSet_FieldToMatchPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("data",cdk.validateString)(properties.data)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "FieldToMatchProperty"')}function cfnSqlInjectionMatchSetFieldToMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSqlInjectionMatchSet_FieldToMatchPropertyValidator(properties).assertSuccess(),{Data:cdk.stringToCloudFormation(properties.data),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSqlInjectionMatchSetFieldToMatchPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("data","Data",properties.Data!=null?cfn_parse.FromCloudFormation.getString(properties.Data):void 0),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSqlInjectionMatchSet_SqlInjectionMatchTuplePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("fieldToMatch",cdk.requiredValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("fieldToMatch",CfnSqlInjectionMatchSet_FieldToMatchPropertyValidator)(properties.fieldToMatch)),errors.collect(cdk.propertyValidator("textTransformation",cdk.requiredValidator)(properties.textTransformation)),errors.collect(cdk.propertyValidator("textTransformation",cdk.validateString)(properties.textTransformation)),errors.wrap('supplied properties not correct for "SqlInjectionMatchTupleProperty"')}function cfnSqlInjectionMatchSetSqlInjectionMatchTuplePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSqlInjectionMatchSet_SqlInjectionMatchTuplePropertyValidator(properties).assertSuccess(),{FieldToMatch:cfnSqlInjectionMatchSetFieldToMatchPropertyToCloudFormation(properties.fieldToMatch),TextTransformation:cdk.stringToCloudFormation(properties.textTransformation)}):properties}function CfnSqlInjectionMatchSetSqlInjectionMatchTuplePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldToMatch","FieldToMatch",CfnSqlInjectionMatchSetFieldToMatchPropertyFromCloudFormation(properties.FieldToMatch)),ret.addPropertyResult("textTransformation","TextTransformation",cfn_parse.FromCloudFormation.getString(properties.TextTransformation)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnWebACLPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("defaultAction",cdk.requiredValidator)(properties.defaultAction)),errors.collect(cdk.propertyValidator("defaultAction",CfnWebACL_ActionPropertyValidator)(properties.defaultAction)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("rules",cdk.listValidator(CfnWebACL_RulePropertyValidator))(properties.rules)),errors.wrap('supplied properties not correct for "CfnWebACLProps"')}function cfnWebACLPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWebACLPropsValidator(properties).assertSuccess(),{DefaultAction:cfnWebA