aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 47.6 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnXssMatchSet=exports.CfnWebACL=exports.CfnSqlInjectionMatchSet=exports.CfnSizeConstraintSet=exports.CfnRule=exports.CfnIPSet=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_waf_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_waf.CfnByteMatchSet",version:"2.70.0"},CfnByteMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAF::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 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_waf_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,_b=JSII_RTTI_SYMBOL_1,CfnIPSet[_b]={fqn:"aws-cdk-lib.aws_waf.CfnIPSet",version:"2.70.0"},CfnIPSet.CFN_RESOURCE_TYPE_NAME="AWS::WAF::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 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_waf_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,_c=JSII_RTTI_SYMBOL_1,CfnRule[_c]={fqn:"aws-cdk-lib.aws_waf.CfnRule",version:"2.70.0"},CfnRule.CFN_RESOURCE_TYPE_NAME="AWS::WAF::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.requiredValidator)(properties.sizeConstraints)),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",cfn_parse.FromCloudFormation.getArray(CfnSizeConstraintSetSizeConstraintPropertyFromCloudFormation)(properties.SizeConstraints)),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_waf_CfnSizeConstraintSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSizeConstraintSet),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"sizeConstraints",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,_d=JSII_RTTI_SYMBOL_1,CfnSizeConstraintSet[_d]={fqn:"aws-cdk-lib.aws_waf.CfnSizeConstraintSet",version:"2.70.0"},CfnSizeConstraintSet.CFN_RESOURCE_TYPE_NAME="AWS::WAF::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_waf_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,_e=JSII_RTTI_SYMBOL_1,CfnSqlInjectionMatchSet[_e]={fqn:"aws-cdk-lib.aws_waf.CfnSqlInjectionMatchSet",version:"2.70.0"},CfnSqlInjectionMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAF::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_WafActionPropertyValidator)(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_ActivatedRulePropertyValidator))(properties.rules)),errors.wrap('supplied properties not correct for "CfnWebACLProps"')}function cfnWebACLPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWebACLPropsValidator(properties).assertSuccess(),{DefaultAction:cfnWebACLWafActionPropertyToCloudFormation(properties.defaultAction),MetricName:cdk.stringToCloudFormation(properties.metricName),Name:cdk.stringToCloudFormation(properties.name),Rules:cdk.listMapper(cfnWebACLActivatedRulePropertyToCloudFormation)(properties.rules)}):properties}function CfnWebACLPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultAction","DefaultAction",CfnWebACLWafActionPropertyFromCloudFormation(properties.DefaultAction)),ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("rules","Rules",properties.Rules!=null?cfn_parse.FromCloudFormation.getArray(CfnWebACLActivatedRulePropertyFromCloudFormation)(properties.Rules):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWebACL extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnWebACL.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_waf_CfnWebACLProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWebACL),error}cdk.requireProperty(props,"defaultAction",this),cdk.requireProperty(props,"metricName",this),cdk.requireProperty(props,"name",this),this.defaultAction=props.defaultAction,this.metricName=props.metricName,this.name=props.name,this.rules=props.rules}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWebACLPropsFromCloudFormation(resourceProperties),ret=new CfnWebACL(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",CfnWebACL.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{defaultAction:this.defaultAction,metricName:this.metricName,name:this.name,rules:this.rules}}renderProperties(props){return cfnWebACLPropsToCloudFormation(props)}}exports.CfnWebACL=CfnWebACL,_f=JSII_RTTI_SYMBOL_1,CfnWebACL[_f]={fqn:"aws-cdk-lib.aws_waf.CfnWebACL",version:"2.70.0"},CfnWebACL.CFN_RESOURCE_TYPE_NAME="AWS::WAF::WebACL";function CfnWebACL_ActivatedRulePropertyValidator(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("action",CfnWebACL_WafActionPropertyValidator)(properties.action)),errors.collect(cdk.propertyValidator("priority",cdk.requiredValidator)(properties.priority)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("ruleId",cdk.requiredValidator)(properties.ruleId)),errors.collect(cdk.propertyValidator("ruleId",cdk.validateString)(properties.ruleId)),errors.wrap('supplied properties not correct for "ActivatedRuleProperty"')}function cfnWebACLActivatedRulePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWebACL_ActivatedRulePropertyValidator(properties).assertSuccess(),{Action:cfnWebACLWafActionPropertyToCloudFormation(properties.action),Priority:cdk.numberToCloudFormation(properties.priority),RuleId:cdk.stringToCloudFormation(properties.ruleId)}):properties}function CfnWebACLActivatedRulePropertyFromCloudFormation(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("action","Action",properties.Action!=null?CfnWebACLWafActionPropertyFromCloudFormation(properties.Action):void 0),ret.addPropertyResult("priority","Priority",cfn_parse.FromCloudFormation.getNumber(properties.Priority)),ret.addPropertyResult("ruleId","RuleId",cfn_parse.FromCloudFormation.getString(properties.RuleId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnWebACL_WafActionPropertyValidator(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.wrap('supplied properties not correct for "WafActionProperty"')}function cfnWebACLWafActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWebACL_WafActionPropertyValidator(properties).assertSuccess(),{Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnWebACLWafActionPropertyFromCloudFormation(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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnXssMatchSetPropsValidator(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("xssMatchTuples",cdk.requiredValidator)(properties.xssMatchTuples)),errors.collect(cdk.propertyValidator("xssMatchTuples",cdk.listValidator(CfnXssMatchSet_XssMatchTuplePropertyValidator))(properties.xssMatchTuples)),errors.wrap('supplied properties not correct for "CfnXssMatchSetProps"')}function cfnXssMatchSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnXssMatchSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),XssMatchTuples:cdk.listMapper(cfnXssMatchSetXssMatchTuplePropertyToCloudFormation)(properties.xssMatchTuples)}):properties}function CfnXssMatchSetPropsFromCloudFormation(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("xssMatchTuples","XssMatchTuples",cfn_parse.FromCloudFormation.getArray(CfnXssMatchSetXssMatchTuplePropertyFromCloudFormation)(properties.XssMatchTuples)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnXssMatchSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnXssMatchSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_waf_CfnXssMatchSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnXssMatchSet),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"xssMatchTuples",this),this.name=props.name,this.xssMatchTuples=props.xssMatchTuples}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnXssMatchSetPropsFromCloudFormation(resourceProperties),ret=new CfnXssMatchSet(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",CfnXssMatchSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,xssMatchTuples:this.xssMatchTuples}}renderProperties(props){return cfnXssMatchSetPropsToCloudFormation(props)}}exports.CfnXssMatchSet=CfnXssMatchSet,_g=JSII_RTTI_SYMBOL_1,CfnXssMatchSet[_g]={fqn:"aws-cdk-lib.aws_waf.CfnXssMatchSet",version:"2.70.0"},CfnXssMatchSet.CFN_RESOURCE_TYPE_NAME="AWS::WAF::XssMatchSet";function CfnXssMatchSet_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 cfnXssMatchSetFieldToMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnXssMatchSet_FieldToMatchPropertyValidator(properties).assertSuccess(),{Data:cdk.stringToCloudFormation(properties.data),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnXssMatchSetFieldToMatchPropertyFromCloudFormation(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 CfnXssMatchSet_XssMatchTuplePropertyValidator(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",CfnXssMatchSet_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 "XssMatchTupleProperty"')}function cfnXssMatchSetXssMatchTuplePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnXssMatchSet_XssMatchTuplePropertyValidator(properties).assertSuccess(),{FieldToMatch:cfnXssMatchSetFieldToMatchPropertyToCloudFormation(properties.fieldToMatch),TextTransformation:cdk.stringToCloudFormation(properties.textTransformation)}):properties}function CfnXssMatchSetXssMatchTuplePropertyFromCloudFormation(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",CfnXssMatchSetFieldToMatchPropertyFromCloudFormation(properties.FieldToMatch)),ret.addPropertyResult("textTransformation","TextTransformation",cfn_parse.FromCloudFormation.getString(properties.TextTransformation)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}