aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 126 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTelemetryRule=exports.CfnTelemetryPipelines=exports.CfnS3TableIntegration=exports.CfnOrganizationTelemetryRule=exports.CfnOrganizationCentralizationRule=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnOrganizationCentralizationRule extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_observabilityadmin.CfnOrganizationCentralizationRule",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ObservabilityAdmin::OrganizationCentralizationRule";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOrganizationCentralizationRulePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnOrganizationCentralizationRule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnOrganizationCentralizationRule(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnOrganizationCentralizationRule.CFN_RESOURCE_TYPE_NAME}attrRuleArn;cdkTagManager;rule;ruleName;tags;constructor(scope,id,props){super(scope,id,{type:CfnOrganizationCentralizationRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_observabilityadmin_CfnOrganizationCentralizationRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOrganizationCentralizationRule),error}cdk().requireProperty(props,"rule",this),cdk().requireProperty(props,"ruleName",this),this.attrRuleArn=cdk().Token.asString(this.getAtt("RuleArn",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ObservabilityAdmin::OrganizationCentralizationRule",void 0,{tagPropertyName:"tags"}),this.rule=props.rule,this.ruleName=props.ruleName,this.tags=props.tags}get organizationCentralizationRuleRef(){return{ruleArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),rule:this.rule,ruleName:this.ruleName}}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",CfnOrganizationCentralizationRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOrganizationCentralizationRulePropsToCloudFormation(props)}}exports.CfnOrganizationCentralizationRule=CfnOrganizationCentralizationRule;function CfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("encryptedLogGroupStrategy",cdk().requiredValidator)(properties.encryptedLogGroupStrategy)),errors.collect(cdk().propertyValidator("encryptedLogGroupStrategy",cdk().validateString)(properties.encryptedLogGroupStrategy)),errors.collect(cdk().propertyValidator("logGroupSelectionCriteria",cdk().requiredValidator)(properties.logGroupSelectionCriteria)),errors.collect(cdk().propertyValidator("logGroupSelectionCriteria",cdk().validateString)(properties.logGroupSelectionCriteria)),errors.wrap('supplied properties not correct for "SourceLogsConfigurationProperty"')}function convertCfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyValidator(properties).assertSuccess(),{EncryptedLogGroupStrategy:cdk().stringToCloudFormation(properties.encryptedLogGroupStrategy),LogGroupSelectionCriteria:cdk().stringToCloudFormation(properties.logGroupSelectionCriteria)}):properties}function CfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("encryptedLogGroupStrategy","EncryptedLogGroupStrategy",properties.EncryptedLogGroupStrategy!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptedLogGroupStrategy):void 0),ret.addPropertyResult("logGroupSelectionCriteria","LogGroupSelectionCriteria",properties.LogGroupSelectionCriteria!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupSelectionCriteria):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("regions",cdk().requiredValidator)(properties.regions)),errors.collect(cdk().propertyValidator("regions",cdk().listValidator(cdk().validateString))(properties.regions)),errors.collect(cdk().propertyValidator("scope",cdk().validateString)(properties.scope)),errors.collect(cdk().propertyValidator("sourceLogsConfiguration",CfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyValidator)(properties.sourceLogsConfiguration)),errors.wrap('supplied properties not correct for "CentralizationRuleSourceProperty"')}function convertCfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyValidator(properties).assertSuccess(),{Regions:cdk().listMapper(cdk().stringToCloudFormation)(properties.regions),Scope:cdk().stringToCloudFormation(properties.scope),SourceLogsConfiguration:convertCfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyToCloudFormation(properties.sourceLogsConfiguration)}):properties}function CfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("regions","Regions",properties.Regions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Regions):void 0),ret.addPropertyResult("scope","Scope",properties.Scope!=null?cfn_parse().FromCloudFormation.getString(properties.Scope):void 0),ret.addPropertyResult("sourceLogsConfiguration","SourceLogsConfiguration",properties.SourceLogsConfiguration!=null?CfnOrganizationCentralizationRuleSourceLogsConfigurationPropertyFromCloudFormation(properties.SourceLogsConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("encryptionConflictResolutionStrategy",cdk().validateString)(properties.encryptionConflictResolutionStrategy)),errors.collect(cdk().propertyValidator("encryptionStrategy",cdk().requiredValidator)(properties.encryptionStrategy)),errors.collect(cdk().propertyValidator("encryptionStrategy",cdk().validateString)(properties.encryptionStrategy)),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.wrap('supplied properties not correct for "LogsEncryptionConfigurationProperty"')}function convertCfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{EncryptionConflictResolutionStrategy:cdk().stringToCloudFormation(properties.encryptionConflictResolutionStrategy),EncryptionStrategy:cdk().stringToCloudFormation(properties.encryptionStrategy),KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn)}):properties}function CfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("encryptionConflictResolutionStrategy","EncryptionConflictResolutionStrategy",properties.EncryptionConflictResolutionStrategy!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionConflictResolutionStrategy):void 0),ret.addPropertyResult("encryptionStrategy","EncryptionStrategy",properties.EncryptionStrategy!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionStrategy):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("region",cdk().requiredValidator)(properties.region)),errors.collect(cdk().propertyValidator("region",cdk().validateString)(properties.region)),errors.wrap('supplied properties not correct for "LogsBackupConfigurationProperty"')}function convertCfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),Region:cdk().stringToCloudFormation(properties.region)}):properties}function CfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse().FromCloudFormation.getString(properties.Region):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("backupConfiguration",CfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyValidator)(properties.backupConfiguration)),errors.collect(cdk().propertyValidator("logsEncryptionConfiguration",CfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyValidator)(properties.logsEncryptionConfiguration)),errors.wrap('supplied properties not correct for "DestinationLogsConfigurationProperty"')}function convertCfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyValidator(properties).assertSuccess(),{BackupConfiguration:convertCfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyToCloudFormation(properties.backupConfiguration),LogsEncryptionConfiguration:convertCfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyToCloudFormation(properties.logsEncryptionConfiguration)}):properties}function CfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("backupConfiguration","BackupConfiguration",properties.BackupConfiguration!=null?CfnOrganizationCentralizationRuleLogsBackupConfigurationPropertyFromCloudFormation(properties.BackupConfiguration):void 0),ret.addPropertyResult("logsEncryptionConfiguration","LogsEncryptionConfiguration",properties.LogsEncryptionConfiguration!=null?CfnOrganizationCentralizationRuleLogsEncryptionConfigurationPropertyFromCloudFormation(properties.LogsEncryptionConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("account",cdk().validateString)(properties.account)),errors.collect(cdk().propertyValidator("destinationLogsConfiguration",CfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyValidator)(properties.destinationLogsConfiguration)),errors.collect(cdk().propertyValidator("region",cdk().requiredValidator)(properties.region)),errors.collect(cdk().propertyValidator("region",cdk().validateString)(properties.region)),errors.wrap('supplied properties not correct for "CentralizationRuleDestinationProperty"')}function convertCfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyValidator(properties).assertSuccess(),{Account:cdk().stringToCloudFormation(properties.account),DestinationLogsConfiguration:convertCfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyToCloudFormation(properties.destinationLogsConfiguration),Region:cdk().stringToCloudFormation(properties.region)}):properties}function CfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("account","Account",properties.Account!=null?cfn_parse().FromCloudFormation.getString(properties.Account):void 0),ret.addPropertyResult("destinationLogsConfiguration","DestinationLogsConfiguration",properties.DestinationLogsConfiguration!=null?CfnOrganizationCentralizationRuleDestinationLogsConfigurationPropertyFromCloudFormation(properties.DestinationLogsConfiguration):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse().FromCloudFormation.getString(properties.Region):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRuleCentralizationRulePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("destination",cdk().requiredValidator)(properties.destination)),errors.collect(cdk().propertyValidator("destination",CfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyValidator)(properties.destination)),errors.collect(cdk().propertyValidator("source",cdk().requiredValidator)(properties.source)),errors.collect(cdk().propertyValidator("source",CfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyValidator)(properties.source)),errors.wrap('supplied properties not correct for "CentralizationRuleProperty"')}function convertCfnOrganizationCentralizationRuleCentralizationRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRuleCentralizationRulePropertyValidator(properties).assertSuccess(),{Destination:convertCfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyToCloudFormation(properties.destination),Source:convertCfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyToCloudFormation(properties.source)}):properties}function CfnOrganizationCentralizationRuleCentralizationRulePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("destination","Destination",properties.Destination!=null?CfnOrganizationCentralizationRuleCentralizationRuleDestinationPropertyFromCloudFormation(properties.Destination):void 0),ret.addPropertyResult("source","Source",properties.Source!=null?CfnOrganizationCentralizationRuleCentralizationRuleSourcePropertyFromCloudFormation(properties.Source):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationCentralizationRulePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("rule",cdk().requiredValidator)(properties.rule)),errors.collect(cdk().propertyValidator("rule",CfnOrganizationCentralizationRuleCentralizationRulePropertyValidator)(properties.rule)),errors.collect(cdk().propertyValidator("ruleName",cdk().requiredValidator)(properties.ruleName)),errors.collect(cdk().propertyValidator("ruleName",cdk().validateString)(properties.ruleName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnOrganizationCentralizationRuleProps"')}function convertCfnOrganizationCentralizationRulePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationCentralizationRulePropsValidator(properties).assertSuccess(),{Rule:convertCfnOrganizationCentralizationRuleCentralizationRulePropertyToCloudFormation(properties.rule),RuleName:cdk().stringToCloudFormation(properties.ruleName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnOrganizationCentralizationRulePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("rule","Rule",properties.Rule!=null?CfnOrganizationCentralizationRuleCentralizationRulePropertyFromCloudFormation(properties.Rule):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse().FromCloudFormation.getString(properties.RuleName):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 CfnOrganizationTelemetryRule extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_observabilityadmin.CfnOrganizationTelemetryRule",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ObservabilityAdmin::OrganizationTelemetryRule";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOrganizationTelemetryRulePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnOrganizationTelemetryRule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnOrganizationTelemetryRule(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnOrganizationTelemetryRule.CFN_RESOURCE_TYPE_NAME}attrRuleArn;cdkTagManager;rule;ruleName;tags;constructor(scope,id,props){super(scope,id,{type:CfnOrganizationTelemetryRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_observabilityadmin_CfnOrganizationTelemetryRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOrganizationTelemetryRule),error}cdk().requireProperty(props,"rule",this),cdk().requireProperty(props,"ruleName",this),this.attrRuleArn=cdk().Token.asString(this.getAtt("RuleArn",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ObservabilityAdmin::OrganizationTelemetryRule",void 0,{tagPropertyName:"tags"}),this.rule=props.rule,this.ruleName=props.ruleName,this.tags=props.tags}get organizationTelemetryRuleRef(){return{ruleArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),rule:this.rule,ruleName:this.ruleName}}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",CfnOrganizationTelemetryRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOrganizationTelemetryRulePropsToCloudFormation(props)}}exports.CfnOrganizationTelemetryRule=CfnOrganizationTelemetryRule;function CfnOrganizationTelemetryRuleVPCFlowLogParametersPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("logFormat",cdk().validateString)(properties.logFormat)),errors.collect(cdk().propertyValidator("maxAggregationInterval",cdk().validateNumber)(properties.maxAggregationInterval)),errors.collect(cdk().propertyValidator("trafficType",cdk().validateString)(properties.trafficType)),errors.wrap('supplied properties not correct for "VPCFlowLogParametersProperty"')}function convertCfnOrganizationTelemetryRuleVPCFlowLogParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleVPCFlowLogParametersPropertyValidator(properties).assertSuccess(),{LogFormat:cdk().stringToCloudFormation(properties.logFormat),MaxAggregationInterval:cdk().numberToCloudFormation(properties.maxAggregationInterval),TrafficType:cdk().stringToCloudFormation(properties.trafficType)}):properties}function CfnOrganizationTelemetryRuleVPCFlowLogParametersPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("logFormat","LogFormat",properties.LogFormat!=null?cfn_parse().FromCloudFormation.getString(properties.LogFormat):void 0),ret.addPropertyResult("maxAggregationInterval","MaxAggregationInterval",properties.MaxAggregationInterval!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxAggregationInterval):void 0),ret.addPropertyResult("trafficType","TrafficType",properties.TrafficType!=null?cfn_parse().FromCloudFormation.getString(properties.TrafficType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("endsWith",cdk().listValidator(cdk().validateString))(properties.endsWith)),errors.collect(cdk().propertyValidator("equalTo",cdk().listValidator(cdk().validateString))(properties.equalTo)),errors.collect(cdk().propertyValidator("field",cdk().validateString)(properties.field)),errors.collect(cdk().propertyValidator("notEndsWith",cdk().listValidator(cdk().validateString))(properties.notEndsWith)),errors.collect(cdk().propertyValidator("notEquals",cdk().listValidator(cdk().validateString))(properties.notEquals)),errors.collect(cdk().propertyValidator("notStartsWith",cdk().listValidator(cdk().validateString))(properties.notStartsWith)),errors.collect(cdk().propertyValidator("startsWith",cdk().listValidator(cdk().validateString))(properties.startsWith)),errors.wrap('supplied properties not correct for "AdvancedFieldSelectorProperty"')}function convertCfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyValidator(properties).assertSuccess(),{EndsWith:cdk().listMapper(cdk().stringToCloudFormation)(properties.endsWith),Equals:cdk().listMapper(cdk().stringToCloudFormation)(properties.equalTo),Field:cdk().stringToCloudFormation(properties.field),NotEndsWith:cdk().listMapper(cdk().stringToCloudFormation)(properties.notEndsWith),NotEquals:cdk().listMapper(cdk().stringToCloudFormation)(properties.notEquals),NotStartsWith:cdk().listMapper(cdk().stringToCloudFormation)(properties.notStartsWith),StartsWith:cdk().listMapper(cdk().stringToCloudFormation)(properties.startsWith)}):properties}function CfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("endsWith","EndsWith",properties.EndsWith!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EndsWith):void 0),ret.addPropertyResult("equalTo","Equals",properties.Equals!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Equals):void 0),ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse().FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("notEndsWith","NotEndsWith",properties.NotEndsWith!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.NotEndsWith):void 0),ret.addPropertyResult("notEquals","NotEquals",properties.NotEquals!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.NotEquals):void 0),ret.addPropertyResult("notStartsWith","NotStartsWith",properties.NotStartsWith!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.NotStartsWith):void 0),ret.addPropertyResult("startsWith","StartsWith",properties.StartsWith!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.StartsWith):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fieldSelectors",cdk().requiredValidator)(properties.fieldSelectors)),errors.collect(cdk().propertyValidator("fieldSelectors",cdk().listValidator(CfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyValidator))(properties.fieldSelectors)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "AdvancedEventSelectorProperty"')}function convertCfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyValidator(properties).assertSuccess(),{FieldSelectors:cdk().listMapper(convertCfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyToCloudFormation)(properties.fieldSelectors),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldSelectors","FieldSelectors",properties.FieldSelectors!=null?cfn_parse().FromCloudFormation.getArray(CfnOrganizationTelemetryRuleAdvancedFieldSelectorPropertyFromCloudFormation)(properties.FieldSelectors):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleCloudtrailParametersPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("advancedEventSelectors",cdk().requiredValidator)(properties.advancedEventSelectors)),errors.collect(cdk().propertyValidator("advancedEventSelectors",cdk().listValidator(CfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyValidator))(properties.advancedEventSelectors)),errors.wrap('supplied properties not correct for "CloudtrailParametersProperty"')}function convertCfnOrganizationTelemetryRuleCloudtrailParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleCloudtrailParametersPropertyValidator(properties).assertSuccess(),{AdvancedEventSelectors:cdk().listMapper(convertCfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyToCloudFormation)(properties.advancedEventSelectors)}):properties}function CfnOrganizationTelemetryRuleCloudtrailParametersPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("advancedEventSelectors","AdvancedEventSelectors",properties.AdvancedEventSelectors!=null?cfn_parse().FromCloudFormation.getArray(CfnOrganizationTelemetryRuleAdvancedEventSelectorPropertyFromCloudFormation)(properties.AdvancedEventSelectors):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleELBLoadBalancerLoggingParametersPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fieldDelimiter",cdk().validateString)(properties.fieldDelimiter)),errors.collect(cdk().propertyValidator("outputFormat",cdk().validateString)(properties.outputFormat)),errors.wrap('supplied properties not correct for "ELBLoadBalancerLoggingParametersProperty"')}function convertCfnOrganizationTelemetryRuleELBLoadBalancerLoggingParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleELBLoadBalancerLoggingParametersPropertyValidator(properties).assertSuccess(),{FieldDelimiter:cdk().stringToCloudFormation(properties.fieldDelimiter),OutputFormat:cdk().stringToCloudFormation(properties.outputFormat)}):properties}function CfnOrganizationTelemetryRuleELBLoadBalancerLoggingParametersPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldDelimiter","FieldDelimiter",properties.FieldDelimiter!=null?cfn_parse().FromCloudFormation.getString(properties.FieldDelimiter):void 0),ret.addPropertyResult("outputFormat","OutputFormat",properties.OutputFormat!=null?cfn_parse().FromCloudFormation.getString(properties.OutputFormat):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleSingleHeaderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "SingleHeaderProperty"')}function convertCfnOrganizationTelemetryRuleSingleHeaderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleSingleHeaderPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnOrganizationTelemetryRuleSingleHeaderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleFieldToMatchPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("method",cdk().validateString)(properties.method)),errors.collect(cdk().propertyValidator("queryString",cdk().validateString)(properties.queryString)),errors.collect(cdk().propertyValidator("singleHeader",CfnOrganizationTelemetryRuleSingleHeaderPropertyValidator)(properties.singleHeader)),errors.collect(cdk().propertyValidator("uriPath",cdk().validateString)(properties.uriPath)),errors.wrap('supplied properties not correct for "FieldToMatchProperty"')}function convertCfnOrganizationTelemetryRuleFieldToMatchPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleFieldToMatchPropertyValidator(properties).assertSuccess(),{Method:cdk().stringToCloudFormation(properties.method),QueryString:cdk().stringToCloudFormation(properties.queryString),SingleHeader:convertCfnOrganizationTelemetryRuleSingleHeaderPropertyToCloudFormation(properties.singleHeader),UriPath:cdk().stringToCloudFormation(properties.uriPath)}):properties}function CfnOrganizationTelemetryRuleFieldToMatchPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("method","Method",properties.Method!=null?cfn_parse().FromCloudFormation.getString(properties.Method):void 0),ret.addPropertyResult("queryString","QueryString",properties.QueryString!=null?cfn_parse().FromCloudFormation.getString(properties.QueryString):void 0),ret.addPropertyResult("singleHeader","SingleHeader",properties.SingleHeader!=null?CfnOrganizationTelemetryRuleSingleHeaderPropertyFromCloudFormation(properties.SingleHeader):void 0),ret.addPropertyResult("uriPath","UriPath",properties.UriPath!=null?cfn_parse().FromCloudFormation.getString(properties.UriPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleActionConditionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.wrap('supplied properties not correct for "ActionConditionProperty"')}function convertCfnOrganizationTelemetryRuleActionConditionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleActionConditionPropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action)}):properties}function CfnOrganizationTelemetryRuleActionConditionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleLabelNameConditionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("labelName",cdk().validateString)(properties.labelName)),errors.wrap('supplied properties not correct for "LabelNameConditionProperty"')}function convertCfnOrganizationTelemetryRuleLabelNameConditionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleLabelNameConditionPropertyValidator(properties).assertSuccess(),{LabelName:cdk().stringToCloudFormation(properties.labelName)}):properties}function CfnOrganizationTelemetryRuleLabelNameConditionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("labelName","LabelName",properties.LabelName!=null?cfn_parse().FromCloudFormation.getString(properties.LabelName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleConditionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("actionCondition",CfnOrganizationTelemetryRuleActionConditionPropertyValidator)(properties.actionCondition)),errors.collect(cdk().propertyValidator("labelNameCondition",CfnOrganizationTelemetryRuleLabelNameConditionPropertyValidator)(properties.labelNameCondition)),errors.wrap('supplied properties not correct for "ConditionProperty"')}function convertCfnOrganizationTelemetryRuleConditionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleConditionPropertyValidator(properties).assertSuccess(),{ActionCondition:convertCfnOrganizationTelemetryRuleActionConditionPropertyToCloudFormation(properties.actionCondition),LabelNameCondition:convertCfnOrganizationTelemetryRuleLabelNameConditionPropertyToCloudFormation(properties.labelNameCondition)}):properties}function CfnOrganizationTelemetryRuleConditionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("actionCondition","ActionCondition",properties.ActionCondition!=null?CfnOrganizationTelemetryRuleActionConditionPropertyFromCloudFormation(properties.ActionCondition):void 0),ret.addPropertyResult("labelNameCondition","LabelNameCondition",properties.LabelNameCondition!=null?CfnOrganizationTelemetryRuleLabelNameConditionPropertyFromCloudFormation(properties.LabelNameCondition):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleFilterPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("behavior",cdk().validateString)(properties.behavior)),errors.collect(cdk().propertyValidator("conditions",cdk().listValidator(CfnOrganizationTelemetryRuleConditionPropertyValidator))(properties.conditions)),errors.collect(cdk().propertyValidator("requirement",cdk().validateString)(properties.requirement)),errors.wrap('supplied properties not correct for "FilterProperty"')}function convertCfnOrganizationTelemetryRuleFilterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleFilterPropertyValidator(properties).assertSuccess(),{Behavior:cdk().stringToCloudFormation(properties.behavior),Conditions:cdk().listMapper(convertCfnOrganizationTelemetryRuleConditionPropertyToCloudFormation)(properties.conditions),Requirement:cdk().stringToCloudFormation(properties.requirement)}):properties}function CfnOrganizationTelemetryRuleFilterPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("behavior","Behavior",properties.Behavior!=null?cfn_parse().FromCloudFormation.getString(properties.Behavior):void 0),ret.addPropertyResult("conditions","Conditions",properties.Conditions!=null?cfn_parse().FromCloudFormation.getArray(CfnOrganizationTelemetryRuleConditionPropertyFromCloudFormation)(properties.Conditions):void 0),ret.addPropertyResult("requirement","Requirement",properties.Requirement!=null?cfn_parse().FromCloudFormation.getString(properties.Requirement):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleLoggingFilterPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("defaultBehavior",cdk().validateString)(properties.defaultBehavior)),errors.collect(cdk().propertyValidator("filters",cdk().listValidator(CfnOrganizationTelemetryRuleFilterPropertyValidator))(properties.filters)),errors.wrap('supplied properties not correct for "LoggingFilterProperty"')}function convertCfnOrganizationTelemetryRuleLoggingFilterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationTelemetryRuleLoggingFilterPropertyValidator(properties).assertSuccess(),{DefaultBehavior:cdk().stringToCloudFormation(properties.defaultBehavior),Filters:cdk().listMapper(convertCfnOrganizationTelemetryRuleFilterPropertyToCloudFormation)(properties.filters)}):properties}function CfnOrganizationTelemetryRuleLoggingFilterPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultBehavior","DefaultBehavior",properties.DefaultBehavior!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultBehavior):void 0),ret.addPropertyResult("filters","Filters",properties.Filters!=null?cfn_parse().FromCloudFormation.getArray(CfnOrganizationTelemetryRuleFilterPropertyFromCloudFormation)(properties.Filters):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnOrganizationTelemetryRuleWAFLoggingParametersPropertyValidator(properties){if(!cdk().canI