aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 87.7 kB
JavaScript
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnRuleGroup=exports.CfnLoggingConfiguration=exports.CfnFirewallPolicy=exports.CfnFirewall=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 CfnFirewallPropsValidator(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("deleteProtection",cdk.validateBoolean)(properties.deleteProtection)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("firewallName",cdk.requiredValidator)(properties.firewallName)),errors.collect(cdk.propertyValidator("firewallName",cdk.validateString)(properties.firewallName)),errors.collect(cdk.propertyValidator("firewallPolicyArn",cdk.requiredValidator)(properties.firewallPolicyArn)),errors.collect(cdk.propertyValidator("firewallPolicyArn",cdk.validateString)(properties.firewallPolicyArn)),errors.collect(cdk.propertyValidator("firewallPolicyChangeProtection",cdk.validateBoolean)(properties.firewallPolicyChangeProtection)),errors.collect(cdk.propertyValidator("subnetChangeProtection",cdk.validateBoolean)(properties.subnetChangeProtection)),errors.collect(cdk.propertyValidator("subnetMappings",cdk.requiredValidator)(properties.subnetMappings)),errors.collect(cdk.propertyValidator("subnetMappings",cdk.listValidator(CfnFirewall_SubnetMappingPropertyValidator))(properties.subnetMappings)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("vpcId",cdk.requiredValidator)(properties.vpcId)),errors.collect(cdk.propertyValidator("vpcId",cdk.validateString)(properties.vpcId)),errors.wrap('supplied properties not correct for "CfnFirewallProps"')}function cfnFirewallPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPropsValidator(properties).assertSuccess(),{FirewallName:cdk.stringToCloudFormation(properties.firewallName),FirewallPolicyArn:cdk.stringToCloudFormation(properties.firewallPolicyArn),SubnetMappings:cdk.listMapper(cfnFirewallSubnetMappingPropertyToCloudFormation)(properties.subnetMappings),VpcId:cdk.stringToCloudFormation(properties.vpcId),DeleteProtection:cdk.booleanToCloudFormation(properties.deleteProtection),Description:cdk.stringToCloudFormation(properties.description),FirewallPolicyChangeProtection:cdk.booleanToCloudFormation(properties.firewallPolicyChangeProtection),SubnetChangeProtection:cdk.booleanToCloudFormation(properties.subnetChangeProtection),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnFirewallPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("firewallName","FirewallName",cfn_parse.FromCloudFormation.getString(properties.FirewallName)),ret.addPropertyResult("firewallPolicyArn","FirewallPolicyArn",cfn_parse.FromCloudFormation.getString(properties.FirewallPolicyArn)),ret.addPropertyResult("subnetMappings","SubnetMappings",cfn_parse.FromCloudFormation.getArray(CfnFirewallSubnetMappingPropertyFromCloudFormation)(properties.SubnetMappings)),ret.addPropertyResult("vpcId","VpcId",cfn_parse.FromCloudFormation.getString(properties.VpcId)),ret.addPropertyResult("deleteProtection","DeleteProtection",properties.DeleteProtection!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DeleteProtection):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("firewallPolicyChangeProtection","FirewallPolicyChangeProtection",properties.FirewallPolicyChangeProtection!=null?cfn_parse.FromCloudFormation.getBoolean(properties.FirewallPolicyChangeProtection):void 0),ret.addPropertyResult("subnetChangeProtection","SubnetChangeProtection",properties.SubnetChangeProtection!=null?cfn_parse.FromCloudFormation.getBoolean(properties.SubnetChangeProtection):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFirewall extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFirewall.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_networkfirewall_CfnFirewallProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFirewall),error}cdk.requireProperty(props,"firewallName",this),cdk.requireProperty(props,"firewallPolicyArn",this),cdk.requireProperty(props,"subnetMappings",this),cdk.requireProperty(props,"vpcId",this),this.attrEndpointIds=cdk.Token.asList(this.getAtt("EndpointIds",cdk.ResolutionTypeHint.STRING_LIST)),this.attrFirewallArn=cdk.Token.asString(this.getAtt("FirewallArn",cdk.ResolutionTypeHint.STRING)),this.attrFirewallId=cdk.Token.asString(this.getAtt("FirewallId",cdk.ResolutionTypeHint.STRING)),this.firewallName=props.firewallName,this.firewallPolicyArn=props.firewallPolicyArn,this.subnetMappings=props.subnetMappings,this.vpcId=props.vpcId,this.deleteProtection=props.deleteProtection,this.description=props.description,this.firewallPolicyChangeProtection=props.firewallPolicyChangeProtection,this.subnetChangeProtection=props.subnetChangeProtection,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkFirewall::Firewall",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFirewallPropsFromCloudFormation(resourceProperties),ret=new CfnFirewall(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",CfnFirewall.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{firewallName:this.firewallName,firewallPolicyArn:this.firewallPolicyArn,subnetMappings:this.subnetMappings,vpcId:this.vpcId,deleteProtection:this.deleteProtection,description:this.description,firewallPolicyChangeProtection:this.firewallPolicyChangeProtection,subnetChangeProtection:this.subnetChangeProtection,tags:this.tags.renderTags()}}renderProperties(props){return cfnFirewallPropsToCloudFormation(props)}}exports.CfnFirewall=CfnFirewall,_a=JSII_RTTI_SYMBOL_1,CfnFirewall[_a]={fqn:"aws-cdk-lib.aws_networkfirewall.CfnFirewall",version:"2.70.0"},CfnFirewall.CFN_RESOURCE_TYPE_NAME="AWS::NetworkFirewall::Firewall";function CfnFirewall_SubnetMappingPropertyValidator(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("ipAddressType",cdk.validateString)(properties.ipAddressType)),errors.collect(cdk.propertyValidator("subnetId",cdk.requiredValidator)(properties.subnetId)),errors.collect(cdk.propertyValidator("subnetId",cdk.validateString)(properties.subnetId)),errors.wrap('supplied properties not correct for "SubnetMappingProperty"')}function cfnFirewallSubnetMappingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewall_SubnetMappingPropertyValidator(properties).assertSuccess(),{IPAddressType:cdk.stringToCloudFormation(properties.ipAddressType),SubnetId:cdk.stringToCloudFormation(properties.subnetId)}):properties}function CfnFirewallSubnetMappingPropertyFromCloudFormation(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("ipAddressType","IPAddressType",properties.IPAddressType!=null?cfn_parse.FromCloudFormation.getString(properties.IPAddressType):void 0),ret.addPropertyResult("subnetId","SubnetId",cfn_parse.FromCloudFormation.getString(properties.SubnetId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicyPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("firewallPolicy",cdk.requiredValidator)(properties.firewallPolicy)),errors.collect(cdk.propertyValidator("firewallPolicy",CfnFirewallPolicy_FirewallPolicyPropertyValidator)(properties.firewallPolicy)),errors.collect(cdk.propertyValidator("firewallPolicyName",cdk.requiredValidator)(properties.firewallPolicyName)),errors.collect(cdk.propertyValidator("firewallPolicyName",cdk.validateString)(properties.firewallPolicyName)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnFirewallPolicyProps"')}function cfnFirewallPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicyPropsValidator(properties).assertSuccess(),{FirewallPolicy:cfnFirewallPolicyFirewallPolicyPropertyToCloudFormation(properties.firewallPolicy),FirewallPolicyName:cdk.stringToCloudFormation(properties.firewallPolicyName),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnFirewallPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("firewallPolicy","FirewallPolicy",CfnFirewallPolicyFirewallPolicyPropertyFromCloudFormation(properties.FirewallPolicy)),ret.addPropertyResult("firewallPolicyName","FirewallPolicyName",cfn_parse.FromCloudFormation.getString(properties.FirewallPolicyName)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFirewallPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnFirewallPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_networkfirewall_CfnFirewallPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFirewallPolicy),error}cdk.requireProperty(props,"firewallPolicy",this),cdk.requireProperty(props,"firewallPolicyName",this),this.attrFirewallPolicyArn=cdk.Token.asString(this.getAtt("FirewallPolicyArn",cdk.ResolutionTypeHint.STRING)),this.attrFirewallPolicyId=cdk.Token.asString(this.getAtt("FirewallPolicyId",cdk.ResolutionTypeHint.STRING)),this.firewallPolicy=props.firewallPolicy,this.firewallPolicyName=props.firewallPolicyName,this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkFirewall::FirewallPolicy",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFirewallPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnFirewallPolicy(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",CfnFirewallPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{firewallPolicy:this.firewallPolicy,firewallPolicyName:this.firewallPolicyName,description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnFirewallPolicyPropsToCloudFormation(props)}}exports.CfnFirewallPolicy=CfnFirewallPolicy,_b=JSII_RTTI_SYMBOL_1,CfnFirewallPolicy[_b]={fqn:"aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy",version:"2.70.0"},CfnFirewallPolicy.CFN_RESOURCE_TYPE_NAME="AWS::NetworkFirewall::FirewallPolicy";function CfnFirewallPolicy_ActionDefinitionPropertyValidator(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("publishMetricAction",CfnFirewallPolicy_PublishMetricActionPropertyValidator)(properties.publishMetricAction)),errors.wrap('supplied properties not correct for "ActionDefinitionProperty"')}function cfnFirewallPolicyActionDefinitionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_ActionDefinitionPropertyValidator(properties).assertSuccess(),{PublishMetricAction:cfnFirewallPolicyPublishMetricActionPropertyToCloudFormation(properties.publishMetricAction)}):properties}function CfnFirewallPolicyActionDefinitionPropertyFromCloudFormation(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("publishMetricAction","PublishMetricAction",properties.PublishMetricAction!=null?CfnFirewallPolicyPublishMetricActionPropertyFromCloudFormation(properties.PublishMetricAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_CustomActionPropertyValidator(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("actionDefinition",cdk.requiredValidator)(properties.actionDefinition)),errors.collect(cdk.propertyValidator("actionDefinition",CfnFirewallPolicy_ActionDefinitionPropertyValidator)(properties.actionDefinition)),errors.collect(cdk.propertyValidator("actionName",cdk.requiredValidator)(properties.actionName)),errors.collect(cdk.propertyValidator("actionName",cdk.validateString)(properties.actionName)),errors.wrap('supplied properties not correct for "CustomActionProperty"')}function cfnFirewallPolicyCustomActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_CustomActionPropertyValidator(properties).assertSuccess(),{ActionDefinition:cfnFirewallPolicyActionDefinitionPropertyToCloudFormation(properties.actionDefinition),ActionName:cdk.stringToCloudFormation(properties.actionName)}):properties}function CfnFirewallPolicyCustomActionPropertyFromCloudFormation(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("actionDefinition","ActionDefinition",CfnFirewallPolicyActionDefinitionPropertyFromCloudFormation(properties.ActionDefinition)),ret.addPropertyResult("actionName","ActionName",cfn_parse.FromCloudFormation.getString(properties.ActionName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_DimensionPropertyValidator(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("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "DimensionProperty"')}function cfnFirewallPolicyDimensionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_DimensionPropertyValidator(properties).assertSuccess(),{Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnFirewallPolicyDimensionPropertyFromCloudFormation(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("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_FirewallPolicyPropertyValidator(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("statefulDefaultActions",cdk.listValidator(cdk.validateString))(properties.statefulDefaultActions)),errors.collect(cdk.propertyValidator("statefulEngineOptions",CfnFirewallPolicy_StatefulEngineOptionsPropertyValidator)(properties.statefulEngineOptions)),errors.collect(cdk.propertyValidator("statefulRuleGroupReferences",cdk.listValidator(CfnFirewallPolicy_StatefulRuleGroupReferencePropertyValidator))(properties.statefulRuleGroupReferences)),errors.collect(cdk.propertyValidator("statelessCustomActions",cdk.listValidator(CfnFirewallPolicy_CustomActionPropertyValidator))(properties.statelessCustomActions)),errors.collect(cdk.propertyValidator("statelessDefaultActions",cdk.requiredValidator)(properties.statelessDefaultActions)),errors.collect(cdk.propertyValidator("statelessDefaultActions",cdk.listValidator(cdk.validateString))(properties.statelessDefaultActions)),errors.collect(cdk.propertyValidator("statelessFragmentDefaultActions",cdk.requiredValidator)(properties.statelessFragmentDefaultActions)),errors.collect(cdk.propertyValidator("statelessFragmentDefaultActions",cdk.listValidator(cdk.validateString))(properties.statelessFragmentDefaultActions)),errors.collect(cdk.propertyValidator("statelessRuleGroupReferences",cdk.listValidator(CfnFirewallPolicy_StatelessRuleGroupReferencePropertyValidator))(properties.statelessRuleGroupReferences)),errors.wrap('supplied properties not correct for "FirewallPolicyProperty"')}function cfnFirewallPolicyFirewallPolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_FirewallPolicyPropertyValidator(properties).assertSuccess(),{StatefulDefaultActions:cdk.listMapper(cdk.stringToCloudFormation)(properties.statefulDefaultActions),StatefulEngineOptions:cfnFirewallPolicyStatefulEngineOptionsPropertyToCloudFormation(properties.statefulEngineOptions),StatefulRuleGroupReferences:cdk.listMapper(cfnFirewallPolicyStatefulRuleGroupReferencePropertyToCloudFormation)(properties.statefulRuleGroupReferences),StatelessCustomActions:cdk.listMapper(cfnFirewallPolicyCustomActionPropertyToCloudFormation)(properties.statelessCustomActions),StatelessDefaultActions:cdk.listMapper(cdk.stringToCloudFormation)(properties.statelessDefaultActions),StatelessFragmentDefaultActions:cdk.listMapper(cdk.stringToCloudFormation)(properties.statelessFragmentDefaultActions),StatelessRuleGroupReferences:cdk.listMapper(cfnFirewallPolicyStatelessRuleGroupReferencePropertyToCloudFormation)(properties.statelessRuleGroupReferences)}):properties}function CfnFirewallPolicyFirewallPolicyPropertyFromCloudFormation(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("statefulDefaultActions","StatefulDefaultActions",properties.StatefulDefaultActions!=null?cfn_parse.FromCloudFormation.getStringArray(properties.StatefulDefaultActions):void 0),ret.addPropertyResult("statefulEngineOptions","StatefulEngineOptions",properties.StatefulEngineOptions!=null?CfnFirewallPolicyStatefulEngineOptionsPropertyFromCloudFormation(properties.StatefulEngineOptions):void 0),ret.addPropertyResult("statefulRuleGroupReferences","StatefulRuleGroupReferences",properties.StatefulRuleGroupReferences!=null?cfn_parse.FromCloudFormation.getArray(CfnFirewallPolicyStatefulRuleGroupReferencePropertyFromCloudFormation)(properties.StatefulRuleGroupReferences):void 0),ret.addPropertyResult("statelessCustomActions","StatelessCustomActions",properties.StatelessCustomActions!=null?cfn_parse.FromCloudFormation.getArray(CfnFirewallPolicyCustomActionPropertyFromCloudFormation)(properties.StatelessCustomActions):void 0),ret.addPropertyResult("statelessDefaultActions","StatelessDefaultActions",cfn_parse.FromCloudFormation.getStringArray(properties.StatelessDefaultActions)),ret.addPropertyResult("statelessFragmentDefaultActions","StatelessFragmentDefaultActions",cfn_parse.FromCloudFormation.getStringArray(properties.StatelessFragmentDefaultActions)),ret.addPropertyResult("statelessRuleGroupReferences","StatelessRuleGroupReferences",properties.StatelessRuleGroupReferences!=null?cfn_parse.FromCloudFormation.getArray(CfnFirewallPolicyStatelessRuleGroupReferencePropertyFromCloudFormation)(properties.StatelessRuleGroupReferences):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_PublishMetricActionPropertyValidator(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("dimensions",cdk.requiredValidator)(properties.dimensions)),errors.collect(cdk.propertyValidator("dimensions",cdk.listValidator(CfnFirewallPolicy_DimensionPropertyValidator))(properties.dimensions)),errors.wrap('supplied properties not correct for "PublishMetricActionProperty"')}function cfnFirewallPolicyPublishMetricActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_PublishMetricActionPropertyValidator(properties).assertSuccess(),{Dimensions:cdk.listMapper(cfnFirewallPolicyDimensionPropertyToCloudFormation)(properties.dimensions)}):properties}function CfnFirewallPolicyPublishMetricActionPropertyFromCloudFormation(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("dimensions","Dimensions",cfn_parse.FromCloudFormation.getArray(CfnFirewallPolicyDimensionPropertyFromCloudFormation)(properties.Dimensions)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_StatefulEngineOptionsPropertyValidator(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("ruleOrder",cdk.validateString)(properties.ruleOrder)),errors.collect(cdk.propertyValidator("streamExceptionPolicy",cdk.validateString)(properties.streamExceptionPolicy)),errors.wrap('supplied properties not correct for "StatefulEngineOptionsProperty"')}function cfnFirewallPolicyStatefulEngineOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_StatefulEngineOptionsPropertyValidator(properties).assertSuccess(),{RuleOrder:cdk.stringToCloudFormation(properties.ruleOrder),StreamExceptionPolicy:cdk.stringToCloudFormation(properties.streamExceptionPolicy)}):properties}function CfnFirewallPolicyStatefulEngineOptionsPropertyFromCloudFormation(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("ruleOrder","RuleOrder",properties.RuleOrder!=null?cfn_parse.FromCloudFormation.getString(properties.RuleOrder):void 0),ret.addPropertyResult("streamExceptionPolicy","StreamExceptionPolicy",properties.StreamExceptionPolicy!=null?cfn_parse.FromCloudFormation.getString(properties.StreamExceptionPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_StatefulRuleGroupOverridePropertyValidator(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",cdk.validateString)(properties.action)),errors.wrap('supplied properties not correct for "StatefulRuleGroupOverrideProperty"')}function cfnFirewallPolicyStatefulRuleGroupOverridePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_StatefulRuleGroupOverridePropertyValidator(properties).assertSuccess(),{Action:cdk.stringToCloudFormation(properties.action)}):properties}function CfnFirewallPolicyStatefulRuleGroupOverridePropertyFromCloudFormation(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?cfn_parse.FromCloudFormation.getString(properties.Action):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_StatefulRuleGroupReferencePropertyValidator(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("override",CfnFirewallPolicy_StatefulRuleGroupOverridePropertyValidator)(properties.override)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("resourceArn",cdk.requiredValidator)(properties.resourceArn)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.wrap('supplied properties not correct for "StatefulRuleGroupReferenceProperty"')}function cfnFirewallPolicyStatefulRuleGroupReferencePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_StatefulRuleGroupReferencePropertyValidator(properties).assertSuccess(),{Override:cfnFirewallPolicyStatefulRuleGroupOverridePropertyToCloudFormation(properties.override),Priority:cdk.numberToCloudFormation(properties.priority),ResourceArn:cdk.stringToCloudFormation(properties.resourceArn)}):properties}function CfnFirewallPolicyStatefulRuleGroupReferencePropertyFromCloudFormation(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("override","Override",properties.Override!=null?CfnFirewallPolicyStatefulRuleGroupOverridePropertyFromCloudFormation(properties.Override):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse.FromCloudFormation.getNumber(properties.Priority):void 0),ret.addPropertyResult("resourceArn","ResourceArn",cfn_parse.FromCloudFormation.getString(properties.ResourceArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFirewallPolicy_StatelessRuleGroupReferencePropertyValidator(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("priority",cdk.requiredValidator)(properties.priority)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("resourceArn",cdk.requiredValidator)(properties.resourceArn)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.wrap('supplied properties not correct for "StatelessRuleGroupReferenceProperty"')}function cfnFirewallPolicyStatelessRuleGroupReferencePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFirewallPolicy_StatelessRuleGroupReferencePropertyValidator(properties).assertSuccess(),{Priority:cdk.numberToCloudFormation(properties.priority),ResourceArn:cdk.stringToCloudFormation(properties.resourceArn)}):properties}function CfnFirewallPolicyStatelessRuleGroupReferencePropertyFromCloudFormation(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("priority","Priority",cfn_parse.FromCloudFormation.getNumber(properties.Priority)),ret.addPropertyResult("resourceArn","ResourceArn",cfn_parse.FromCloudFormation.getString(properties.ResourceArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLoggingConfigurationPropsValidator(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("firewallArn",cdk.requiredValidator)(properties.firewallArn)),errors.collect(cdk.propertyValidator("firewallArn",cdk.validateString)(properties.firewallArn)),errors.collect(cdk.propertyValidator("firewallName",cdk.validateString)(properties.firewallName)),errors.collect(cdk.propertyValidator("loggingConfiguration",cdk.requiredValidator)(properties.loggingConfiguration)),errors.collect(cdk.propertyValidator("loggingConfiguration",CfnLoggingConfiguration_LoggingConfigurationPropertyValidator)(properties.loggingConfiguration)),errors.wrap('supplied properties not correct for "CfnLoggingConfigurationProps"')}function cfnLoggingConfigurationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLoggingConfigurationPropsValidator(properties).assertSuccess(),{FirewallArn:cdk.stringToCloudFormation(properties.firewallArn),LoggingConfiguration:cfnLoggingConfigurationLoggingConfigurationPropertyToCloudFormation(properties.loggingConfiguration),FirewallName:cdk.stringToCloudFormation(properties.firewallName)}):properties}function CfnLoggingConfigurationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("firewallArn","FirewallArn",cfn_parse.FromCloudFormation.getString(properties.FirewallArn)),ret.addPropertyResult("loggingConfiguration","LoggingConfiguration",CfnLoggingConfigurationLoggingConfigurationPropertyFromCloudFormation(properties.LoggingConfiguration)),ret.addPropertyResult("firewallName","FirewallName",properties.FirewallName!=null?cfn_parse.FromCloudFormation.getString(properties.FirewallName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLoggingConfiguration extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnLoggingConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_networkfirewall_CfnLoggingConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLoggingConfiguration),error}cdk.requireProperty(props,"firewallArn",this),cdk.requireProperty(props,"loggingConfiguration",this),this.firewallArn=props.firewallArn,this.loggingConfiguration=props.loggingConfiguration,this.firewallName=props.firewallName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLoggingConfigurationPropsFromCloudFormation(resourceProperties),ret=new CfnLoggingConfiguration(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",CfnLoggingConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{firewallArn:this.firewallArn,loggingConfiguration:this.loggingConfiguration,firewallName:this.firewallName}}renderProperties(props){return cfnLoggingConfigurationPropsToCloudFormation(props)}}exports.CfnLoggingConfiguration=CfnLoggingConfiguration,_c=JSII_RTTI_SYMBOL_1,CfnLoggingConfiguration[_c]={fqn:"aws-cdk-lib.aws_networkfirewall.CfnLoggingConfiguration",version:"2.70.0"},CfnLoggingConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::NetworkFirewall::LoggingConfiguration";function CfnLoggingConfiguration_LogDestinationConfigPropertyValidator(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("logDestination",cdk.requiredValidator)(properties.logDestination)),errors.collect(cdk.propertyValidator("logDestination",cdk.hashValidator(cdk.validateString))(properties.logDestination)),errors.collect(cdk.propertyValidator("logDestinationType",cdk.requiredValidator)(properties.logDestinationType)),errors.collect(cdk.propertyValidator("logDestinationType",cdk.validateString)(properties.logDestinationType)),errors.collect(cdk.propertyValidator("logType",cdk.requiredValidator)(properties.logType)),errors.collect(cdk.propertyValidator("logType",cdk.validateString)(properties.logType)),errors.wrap('supplied properties not correct for "LogDestinationConfigProperty"')}function cfnLoggingConfigurationLogDestinationConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLoggingConfiguration_LogDestinationConfigPropertyValidator(properties).assertSuccess(),{LogDestination:cdk.hashMapper(cdk.stringToCloudFormation)(properties.logDestination),LogDestinationType:cdk.stringToCloudFormation(properties.logDestinationType),LogType:cdk.stringToCloudFormation(properties.logType)}):properties}function CfnLoggingConfigurationLogDestinationConfigPropertyFromCloudFormation(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("logDestination","LogDestination",cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.LogDestination)),ret.addPropertyResult("logDestinationType","LogDestinationType",cfn_parse.FromCloudFormation.getString(properties.LogDestinationType)),ret.addPropertyResult("logType","LogType",cfn_parse.FromCloudFormation.getString(properties.LogType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLoggingConfiguration_LoggingConfigurationPropertyValidator(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("logDestinationConfigs",cdk.requiredValidator)(properties.logDestinationConfigs)),errors.collect(cdk.propertyValidator("logDestinationConfigs",cdk.listValidator(CfnLoggingConfiguration_LogDestinationConfigPropertyValidator))(properties.logDestinationConfigs)),errors.wrap('supplied properties not correct for "LoggingConfigurationProperty"')}function cfnLoggingConfigurationLoggingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLoggingConfiguration_LoggingConfigurationPropertyValidator(properties).assertSuccess(),{LogDestinationConfigs:cdk.listMapper(cfnLoggingConfigurationLogDestinationConfigPropertyToCloudFormation)(properties.logDestinationConfigs)}):properties}function CfnLoggingConfigurationLoggingConfigurationPropertyFromCloudFormation(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("logDestinationConfigs","LogDestinationConfigs",cfn_parse.FromCloudFormation.getArray(CfnLoggingConfigurationLogDestinationConfigPropertyFromCloudFormation)(properties.LogDestinationConfigs)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuleGroupPropsValidator(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("capacity",cdk.requiredValidator)(properties.capacity)),errors.collect(cdk.propertyValidator("capacity",cdk.validateNumber)(properties.capacity)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("ruleGroup",CfnRuleGroup_RuleGroupPropertyValidator)(properties.ruleGroup)),errors.collect(cdk.propertyValidator("ruleGroupName",cdk.requiredValidator)(properties.ruleGroupName)),errors.collect(cdk.propertyValidator("ruleGroupName",cdk.validateString)(properties.ruleGroupName)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),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 "CfnRuleGroupProps"')}function cfnRuleGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRuleGroupPropsValidator(properties).assertSuccess(),{Capacity:cdk.numberToCloudFormation(properties.capacity),RuleGroupName:cdk.stringToCloudFormation(properties.ruleGroupName),Type:cdk.stringToCloudFormation(properties.type),Description:cdk.stringToCloudFormation(properties.description),RuleGroup:cfnRuleGroupRuleGroupPropertyToCloudFormation(properties.ruleGroup),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnRuleGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("capacity","Capacity",cfn_parse.FromCloudFormation.getNumber(properties.Capacity)),ret.addPropertyResult("ruleGroupName","RuleGroupName",cfn_parse.FromCloudFormation.getString(properties.RuleGroupName)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ruleGroup","RuleGroup",properties.RuleGroup!=null?CfnRuleGroupRuleGroupPropertyFromCloudFormation(properties.RuleGroup):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRuleGroup extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRuleGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_networkfirewall_CfnRuleGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRuleGroup),error}cdk.requireProperty(props,"capacity",this),cdk.requireProperty(props,"ruleGroupName",this),cdk.requireProperty(props,"type",this),this.attrRuleGroupArn=cdk.Token.asString(this.getAtt("RuleGroupArn",cdk.ResolutionTypeHint.STRING)),this.attrRuleGroupId=cdk.Token.asString(this.getAtt("RuleGroupId",cdk.ResolutionTypeHint.STRING)),this.capacity=props.capacity,this.ruleGroupName=props.ruleGroupName,this.type=props.type,this.description=props.description,this.ruleGroup=props.ruleGroup,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkFirewall::RuleGroup",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRuleGroupPropsFromCloudFormation(resourceProperties),ret=new CfnRuleGroup(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",CfnRuleGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{capacity:this.capacity,ruleGroupName:this.ruleGroupName,type:this.type,description:this.description,ruleGroup:this.ruleGroup,tags:this.tags.renderTags()}}renderProperties(props){return cfnRuleGroupPropsToCloudFormation(props)}}exports.CfnRuleGroup=CfnRuleGroup,_d=JSII_RTTI_SYMBOL_1,CfnRuleGroup[_d]={fqn:"aws-cdk-lib.aws_networkfirewall.CfnRuleGroup",version:"2.70.0"},CfnRuleGroup.CFN_RESOURCE_TYPE_NAME="AWS::NetworkFirewall::RuleGroup";function CfnRuleGroup_ActionDefinitionPropertyValidator(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("publishMetricAction",CfnRuleGroup_PublishMetricActionPropertyValidator)(properties.publishMetricAction)),errors.wrap('supplied properties not correct for "ActionDefinitionProperty"')}function cfnRuleGroupActionDefinitionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRuleGroup_ActionDefinitionPropertyValidator(properties).assertSuccess(),{PublishMetricAction:cfnRuleGroupPublishMetricActionPropertyToCloudFormation(properties.publishMetricAction)}):properties}function CfnRuleGroupActionDefinitionPropertyFromCloudFormation(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("publishMetricAction","PublishMetricAction",properties.PublishMetricAction!=null?CfnRuleGroupPublishMetricActionPropertyFromCloudFormation(properties.PublishMetricAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuleGroup_AddressPropertyValidator(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("addressDefinition",cdk.requiredValidator)(properties.addressDefinition)),errors.collect(cdk.propertyValidator("addressDefinition",cdk.validateString)(properties.addressDefinition)),errors.wrap('supplied properties not correct for "AddressProperty"')}function cfnRuleGroupAddressPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRuleGroup_AddressPropertyValidator(properties).assertSuccess(),{AddressDefinition:cdk.stringToCloudFormation(properties.addressDefinition)}):properties}function CfnRuleGroupAddressPropertyFromCloudFormation(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("addressDefinition","AddressDefinition",cfn_parse.FromCloudFormation.getString(properties.AddressDefinition)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuleGroup_CustomActionPropertyValidator(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("actionDefinition",cdk.requiredValidator)(properties.actionDefinition)),errors.collect(cdk.propertyValidator("actionDefinition",CfnRuleGroup_ActionDefinitionPropertyValidator)(properties.actionDefinition)),errors.collect(cdk.propertyValidator("actionName",cdk.requiredValidator)(properties.actionName)),errors.collect(cdk.propertyValidator("actionName",cdk.validateString)(properties.actionName)),errors.wrap('supplied properties not correct for "CustomActionProperty"')}function cfnRuleGroupCustomActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRuleGroup_CustomActionPropertyValidator(properties).assertSuccess(),{ActionDefinition:cfnRuleGroupActionDefinitionPropertyToCloudFormation(properties.actionDefinition),ActionName:cdk.stringToCloudFormation(properties.actionName)}):properties}function CfnRuleGroupCustomActionPropertyFromCloudFormation(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("actionDefinition","ActionDefinition",CfnRuleGroupActionDefinitionPropertyFromCloudFormation(properties.ActionDefinition)),ret.addPropertyResult("actionName","ActionName",cfn_parse.FromCloudFormation.getString(properties.ActionName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuleGroup_DimensionPropertyValidator(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: "+J