UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 98.6 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStoredQuery=exports.CfnRemediationConfiguration=exports.CfnOrganizationConformancePack=exports.CfnOrganizationConfigRule=exports.CfnDeliveryChannel=exports.CfnConformancePack=exports.CfnConfigurationRecorder=exports.CfnConfigurationAggregator=exports.CfnConfigRule=exports.CfnAggregationAuthorization=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 CfnAggregationAuthorizationPropsValidator(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("authorizedAccountId",cdk.requiredValidator)(properties.authorizedAccountId)),errors.collect(cdk.propertyValidator("authorizedAccountId",cdk.validateString)(properties.authorizedAccountId)),errors.collect(cdk.propertyValidator("authorizedAwsRegion",cdk.requiredValidator)(properties.authorizedAwsRegion)),errors.collect(cdk.propertyValidator("authorizedAwsRegion",cdk.validateString)(properties.authorizedAwsRegion)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAggregationAuthorizationProps"')}function cfnAggregationAuthorizationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAggregationAuthorizationPropsValidator(properties).assertSuccess(),{AuthorizedAccountId:cdk.stringToCloudFormation(properties.authorizedAccountId),AuthorizedAwsRegion:cdk.stringToCloudFormation(properties.authorizedAwsRegion),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAggregationAuthorizationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("authorizedAccountId","AuthorizedAccountId",cfn_parse.FromCloudFormation.getString(properties.AuthorizedAccountId)),ret.addPropertyResult("authorizedAwsRegion","AuthorizedAwsRegion",cfn_parse.FromCloudFormation.getString(properties.AuthorizedAwsRegion)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAggregationAuthorization extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAggregationAuthorization.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnAggregationAuthorizationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAggregationAuthorization),error}cdk.requireProperty(props,"authorizedAccountId",this),cdk.requireProperty(props,"authorizedAwsRegion",this),this.attrAggregationAuthorizationArn=cdk.Token.asString(this.getAtt("AggregationAuthorizationArn",cdk.ResolutionTypeHint.STRING)),this.authorizedAccountId=props.authorizedAccountId,this.authorizedAwsRegion=props.authorizedAwsRegion,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Config::AggregationAuthorization",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAggregationAuthorizationPropsFromCloudFormation(resourceProperties),ret=new CfnAggregationAuthorization(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",CfnAggregationAuthorization.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{authorizedAccountId:this.authorizedAccountId,authorizedAwsRegion:this.authorizedAwsRegion,tags:this.tags.renderTags()}}renderProperties(props){return cfnAggregationAuthorizationPropsToCloudFormation(props)}}exports.CfnAggregationAuthorization=CfnAggregationAuthorization,_a=JSII_RTTI_SYMBOL_1,CfnAggregationAuthorization[_a]={fqn:"aws-cdk-lib.aws_config.CfnAggregationAuthorization",version:"2.70.0"},CfnAggregationAuthorization.CFN_RESOURCE_TYPE_NAME="AWS::Config::AggregationAuthorization";function CfnConfigRulePropsValidator(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("configRuleName",cdk.validateString)(properties.configRuleName)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("inputParameters",cdk.validateObject)(properties.inputParameters)),errors.collect(cdk.propertyValidator("maximumExecutionFrequency",cdk.validateString)(properties.maximumExecutionFrequency)),errors.collect(cdk.propertyValidator("scope",CfnConfigRule_ScopePropertyValidator)(properties.scope)),errors.collect(cdk.propertyValidator("source",cdk.requiredValidator)(properties.source)),errors.collect(cdk.propertyValidator("source",CfnConfigRule_SourcePropertyValidator)(properties.source)),errors.wrap('supplied properties not correct for "CfnConfigRuleProps"')}function cfnConfigRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigRulePropsValidator(properties).assertSuccess(),{Source:cfnConfigRuleSourcePropertyToCloudFormation(properties.source),ConfigRuleName:cdk.stringToCloudFormation(properties.configRuleName),Description:cdk.stringToCloudFormation(properties.description),InputParameters:cdk.objectToCloudFormation(properties.inputParameters),MaximumExecutionFrequency:cdk.stringToCloudFormation(properties.maximumExecutionFrequency),Scope:cfnConfigRuleScopePropertyToCloudFormation(properties.scope)}):properties}function CfnConfigRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("source","Source",CfnConfigRuleSourcePropertyFromCloudFormation(properties.Source)),ret.addPropertyResult("configRuleName","ConfigRuleName",properties.ConfigRuleName!=null?cfn_parse.FromCloudFormation.getString(properties.ConfigRuleName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("inputParameters","InputParameters",properties.InputParameters!=null?cfn_parse.FromCloudFormation.getAny(properties.InputParameters):void 0),ret.addPropertyResult("maximumExecutionFrequency","MaximumExecutionFrequency",properties.MaximumExecutionFrequency!=null?cfn_parse.FromCloudFormation.getString(properties.MaximumExecutionFrequency):void 0),ret.addPropertyResult("scope","Scope",properties.Scope!=null?CfnConfigRuleScopePropertyFromCloudFormation(properties.Scope):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConfigRule extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConfigRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnConfigRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConfigRule),error}cdk.requireProperty(props,"source",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrComplianceType=cdk.Token.asString(this.getAtt("Compliance.Type",cdk.ResolutionTypeHint.STRING)),this.attrConfigRuleId=cdk.Token.asString(this.getAtt("ConfigRuleId",cdk.ResolutionTypeHint.STRING)),this.source=props.source,this.configRuleName=props.configRuleName,this.description=props.description,this.inputParameters=props.inputParameters,this.maximumExecutionFrequency=props.maximumExecutionFrequency,this.scope=props.scope}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConfigRulePropsFromCloudFormation(resourceProperties),ret=new CfnConfigRule(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",CfnConfigRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{source:this.source,configRuleName:this.configRuleName,description:this.description,inputParameters:this.inputParameters,maximumExecutionFrequency:this.maximumExecutionFrequency,scope:this.scope}}renderProperties(props){return cfnConfigRulePropsToCloudFormation(props)}}exports.CfnConfigRule=CfnConfigRule,_b=JSII_RTTI_SYMBOL_1,CfnConfigRule[_b]={fqn:"aws-cdk-lib.aws_config.CfnConfigRule",version:"2.70.0"},CfnConfigRule.CFN_RESOURCE_TYPE_NAME="AWS::Config::ConfigRule";function CfnConfigRule_CustomPolicyDetailsPropertyValidator(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("enableDebugLogDelivery",cdk.validateBoolean)(properties.enableDebugLogDelivery)),errors.collect(cdk.propertyValidator("policyRuntime",cdk.validateString)(properties.policyRuntime)),errors.collect(cdk.propertyValidator("policyText",cdk.validateString)(properties.policyText)),errors.wrap('supplied properties not correct for "CustomPolicyDetailsProperty"')}function cfnConfigRuleCustomPolicyDetailsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigRule_CustomPolicyDetailsPropertyValidator(properties).assertSuccess(),{EnableDebugLogDelivery:cdk.booleanToCloudFormation(properties.enableDebugLogDelivery),PolicyRuntime:cdk.stringToCloudFormation(properties.policyRuntime),PolicyText:cdk.stringToCloudFormation(properties.policyText)}):properties}function CfnConfigRuleCustomPolicyDetailsPropertyFromCloudFormation(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("enableDebugLogDelivery","EnableDebugLogDelivery",properties.EnableDebugLogDelivery!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableDebugLogDelivery):void 0),ret.addPropertyResult("policyRuntime","PolicyRuntime",properties.PolicyRuntime!=null?cfn_parse.FromCloudFormation.getString(properties.PolicyRuntime):void 0),ret.addPropertyResult("policyText","PolicyText",properties.PolicyText!=null?cfn_parse.FromCloudFormation.getString(properties.PolicyText):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigRule_ScopePropertyValidator(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("complianceResourceId",cdk.validateString)(properties.complianceResourceId)),errors.collect(cdk.propertyValidator("complianceResourceTypes",cdk.listValidator(cdk.validateString))(properties.complianceResourceTypes)),errors.collect(cdk.propertyValidator("tagKey",cdk.validateString)(properties.tagKey)),errors.collect(cdk.propertyValidator("tagValue",cdk.validateString)(properties.tagValue)),errors.wrap('supplied properties not correct for "ScopeProperty"')}function cfnConfigRuleScopePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigRule_ScopePropertyValidator(properties).assertSuccess(),{ComplianceResourceId:cdk.stringToCloudFormation(properties.complianceResourceId),ComplianceResourceTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.complianceResourceTypes),TagKey:cdk.stringToCloudFormation(properties.tagKey),TagValue:cdk.stringToCloudFormation(properties.tagValue)}):properties}function CfnConfigRuleScopePropertyFromCloudFormation(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("complianceResourceId","ComplianceResourceId",properties.ComplianceResourceId!=null?cfn_parse.FromCloudFormation.getString(properties.ComplianceResourceId):void 0),ret.addPropertyResult("complianceResourceTypes","ComplianceResourceTypes",properties.ComplianceResourceTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ComplianceResourceTypes):void 0),ret.addPropertyResult("tagKey","TagKey",properties.TagKey!=null?cfn_parse.FromCloudFormation.getString(properties.TagKey):void 0),ret.addPropertyResult("tagValue","TagValue",properties.TagValue!=null?cfn_parse.FromCloudFormation.getString(properties.TagValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigRule_SourcePropertyValidator(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("customPolicyDetails",CfnConfigRule_CustomPolicyDetailsPropertyValidator)(properties.customPolicyDetails)),errors.collect(cdk.propertyValidator("owner",cdk.requiredValidator)(properties.owner)),errors.collect(cdk.propertyValidator("owner",cdk.validateString)(properties.owner)),errors.collect(cdk.propertyValidator("sourceDetails",cdk.listValidator(CfnConfigRule_SourceDetailPropertyValidator))(properties.sourceDetails)),errors.collect(cdk.propertyValidator("sourceIdentifier",cdk.validateString)(properties.sourceIdentifier)),errors.wrap('supplied properties not correct for "SourceProperty"')}function cfnConfigRuleSourcePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigRule_SourcePropertyValidator(properties).assertSuccess(),{CustomPolicyDetails:cfnConfigRuleCustomPolicyDetailsPropertyToCloudFormation(properties.customPolicyDetails),Owner:cdk.stringToCloudFormation(properties.owner),SourceDetails:cdk.listMapper(cfnConfigRuleSourceDetailPropertyToCloudFormation)(properties.sourceDetails),SourceIdentifier:cdk.stringToCloudFormation(properties.sourceIdentifier)}):properties}function CfnConfigRuleSourcePropertyFromCloudFormation(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("customPolicyDetails","CustomPolicyDetails",properties.CustomPolicyDetails!=null?CfnConfigRuleCustomPolicyDetailsPropertyFromCloudFormation(properties.CustomPolicyDetails):void 0),ret.addPropertyResult("owner","Owner",cfn_parse.FromCloudFormation.getString(properties.Owner)),ret.addPropertyResult("sourceDetails","SourceDetails",properties.SourceDetails!=null?cfn_parse.FromCloudFormation.getArray(CfnConfigRuleSourceDetailPropertyFromCloudFormation)(properties.SourceDetails):void 0),ret.addPropertyResult("sourceIdentifier","SourceIdentifier",properties.SourceIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.SourceIdentifier):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigRule_SourceDetailPropertyValidator(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("eventSource",cdk.requiredValidator)(properties.eventSource)),errors.collect(cdk.propertyValidator("eventSource",cdk.validateString)(properties.eventSource)),errors.collect(cdk.propertyValidator("maximumExecutionFrequency",cdk.validateString)(properties.maximumExecutionFrequency)),errors.collect(cdk.propertyValidator("messageType",cdk.requiredValidator)(properties.messageType)),errors.collect(cdk.propertyValidator("messageType",cdk.validateString)(properties.messageType)),errors.wrap('supplied properties not correct for "SourceDetailProperty"')}function cfnConfigRuleSourceDetailPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigRule_SourceDetailPropertyValidator(properties).assertSuccess(),{EventSource:cdk.stringToCloudFormation(properties.eventSource),MaximumExecutionFrequency:cdk.stringToCloudFormation(properties.maximumExecutionFrequency),MessageType:cdk.stringToCloudFormation(properties.messageType)}):properties}function CfnConfigRuleSourceDetailPropertyFromCloudFormation(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("eventSource","EventSource",cfn_parse.FromCloudFormation.getString(properties.EventSource)),ret.addPropertyResult("maximumExecutionFrequency","MaximumExecutionFrequency",properties.MaximumExecutionFrequency!=null?cfn_parse.FromCloudFormation.getString(properties.MaximumExecutionFrequency):void 0),ret.addPropertyResult("messageType","MessageType",cfn_parse.FromCloudFormation.getString(properties.MessageType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigurationAggregatorPropsValidator(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("accountAggregationSources",cdk.listValidator(CfnConfigurationAggregator_AccountAggregationSourcePropertyValidator))(properties.accountAggregationSources)),errors.collect(cdk.propertyValidator("configurationAggregatorName",cdk.validateString)(properties.configurationAggregatorName)),errors.collect(cdk.propertyValidator("organizationAggregationSource",CfnConfigurationAggregator_OrganizationAggregationSourcePropertyValidator)(properties.organizationAggregationSource)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnConfigurationAggregatorProps"')}function cfnConfigurationAggregatorPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationAggregatorPropsValidator(properties).assertSuccess(),{AccountAggregationSources:cdk.listMapper(cfnConfigurationAggregatorAccountAggregationSourcePropertyToCloudFormation)(properties.accountAggregationSources),ConfigurationAggregatorName:cdk.stringToCloudFormation(properties.configurationAggregatorName),OrganizationAggregationSource:cfnConfigurationAggregatorOrganizationAggregationSourcePropertyToCloudFormation(properties.organizationAggregationSource),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConfigurationAggregatorPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("accountAggregationSources","AccountAggregationSources",properties.AccountAggregationSources!=null?cfn_parse.FromCloudFormation.getArray(CfnConfigurationAggregatorAccountAggregationSourcePropertyFromCloudFormation)(properties.AccountAggregationSources):void 0),ret.addPropertyResult("configurationAggregatorName","ConfigurationAggregatorName",properties.ConfigurationAggregatorName!=null?cfn_parse.FromCloudFormation.getString(properties.ConfigurationAggregatorName):void 0),ret.addPropertyResult("organizationAggregationSource","OrganizationAggregationSource",properties.OrganizationAggregationSource!=null?CfnConfigurationAggregatorOrganizationAggregationSourcePropertyFromCloudFormation(properties.OrganizationAggregationSource):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 CfnConfigurationAggregator extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnConfigurationAggregator.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnConfigurationAggregatorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConfigurationAggregator),error}this.attrConfigurationAggregatorArn=cdk.Token.asString(this.getAtt("ConfigurationAggregatorArn",cdk.ResolutionTypeHint.STRING)),this.accountAggregationSources=props.accountAggregationSources,this.configurationAggregatorName=props.configurationAggregatorName,this.organizationAggregationSource=props.organizationAggregationSource,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Config::ConfigurationAggregator",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConfigurationAggregatorPropsFromCloudFormation(resourceProperties),ret=new CfnConfigurationAggregator(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",CfnConfigurationAggregator.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{accountAggregationSources:this.accountAggregationSources,configurationAggregatorName:this.configurationAggregatorName,organizationAggregationSource:this.organizationAggregationSource,tags:this.tags.renderTags()}}renderProperties(props){return cfnConfigurationAggregatorPropsToCloudFormation(props)}}exports.CfnConfigurationAggregator=CfnConfigurationAggregator,_c=JSII_RTTI_SYMBOL_1,CfnConfigurationAggregator[_c]={fqn:"aws-cdk-lib.aws_config.CfnConfigurationAggregator",version:"2.70.0"},CfnConfigurationAggregator.CFN_RESOURCE_TYPE_NAME="AWS::Config::ConfigurationAggregator";function CfnConfigurationAggregator_AccountAggregationSourcePropertyValidator(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("accountIds",cdk.requiredValidator)(properties.accountIds)),errors.collect(cdk.propertyValidator("accountIds",cdk.listValidator(cdk.validateString))(properties.accountIds)),errors.collect(cdk.propertyValidator("allAwsRegions",cdk.validateBoolean)(properties.allAwsRegions)),errors.collect(cdk.propertyValidator("awsRegions",cdk.listValidator(cdk.validateString))(properties.awsRegions)),errors.wrap('supplied properties not correct for "AccountAggregationSourceProperty"')}function cfnConfigurationAggregatorAccountAggregationSourcePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationAggregator_AccountAggregationSourcePropertyValidator(properties).assertSuccess(),{AccountIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.accountIds),AllAwsRegions:cdk.booleanToCloudFormation(properties.allAwsRegions),AwsRegions:cdk.listMapper(cdk.stringToCloudFormation)(properties.awsRegions)}):properties}function CfnConfigurationAggregatorAccountAggregationSourcePropertyFromCloudFormation(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("accountIds","AccountIds",cfn_parse.FromCloudFormation.getStringArray(properties.AccountIds)),ret.addPropertyResult("allAwsRegions","AllAwsRegions",properties.AllAwsRegions!=null?cfn_parse.FromCloudFormation.getBoolean(properties.AllAwsRegions):void 0),ret.addPropertyResult("awsRegions","AwsRegions",properties.AwsRegions!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AwsRegions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigurationAggregator_OrganizationAggregationSourcePropertyValidator(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("allAwsRegions",cdk.validateBoolean)(properties.allAwsRegions)),errors.collect(cdk.propertyValidator("awsRegions",cdk.listValidator(cdk.validateString))(properties.awsRegions)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "OrganizationAggregationSourceProperty"')}function cfnConfigurationAggregatorOrganizationAggregationSourcePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationAggregator_OrganizationAggregationSourcePropertyValidator(properties).assertSuccess(),{AllAwsRegions:cdk.booleanToCloudFormation(properties.allAwsRegions),AwsRegions:cdk.listMapper(cdk.stringToCloudFormation)(properties.awsRegions),RoleArn:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnConfigurationAggregatorOrganizationAggregationSourcePropertyFromCloudFormation(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("allAwsRegions","AllAwsRegions",properties.AllAwsRegions!=null?cfn_parse.FromCloudFormation.getBoolean(properties.AllAwsRegions):void 0),ret.addPropertyResult("awsRegions","AwsRegions",properties.AwsRegions!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AwsRegions):void 0),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigurationRecorderPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("recordingGroup",CfnConfigurationRecorder_RecordingGroupPropertyValidator)(properties.recordingGroup)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "CfnConfigurationRecorderProps"')}function cfnConfigurationRecorderPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationRecorderPropsValidator(properties).assertSuccess(),{RoleARN:cdk.stringToCloudFormation(properties.roleArn),Name:cdk.stringToCloudFormation(properties.name),RecordingGroup:cfnConfigurationRecorderRecordingGroupPropertyToCloudFormation(properties.recordingGroup)}):properties}function CfnConfigurationRecorderPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("roleArn","RoleARN",cfn_parse.FromCloudFormation.getString(properties.RoleARN)),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("recordingGroup","RecordingGroup",properties.RecordingGroup!=null?CfnConfigurationRecorderRecordingGroupPropertyFromCloudFormation(properties.RecordingGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConfigurationRecorder extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConfigurationRecorder.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnConfigurationRecorderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConfigurationRecorder),error}cdk.requireProperty(props,"roleArn",this),this.roleArn=props.roleArn,this.name=props.name,this.recordingGroup=props.recordingGroup}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConfigurationRecorderPropsFromCloudFormation(resourceProperties),ret=new CfnConfigurationRecorder(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",CfnConfigurationRecorder.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{roleArn:this.roleArn,name:this.name,recordingGroup:this.recordingGroup}}renderProperties(props){return cfnConfigurationRecorderPropsToCloudFormation(props)}}exports.CfnConfigurationRecorder=CfnConfigurationRecorder,_d=JSII_RTTI_SYMBOL_1,CfnConfigurationRecorder[_d]={fqn:"aws-cdk-lib.aws_config.CfnConfigurationRecorder",version:"2.70.0"},CfnConfigurationRecorder.CFN_RESOURCE_TYPE_NAME="AWS::Config::ConfigurationRecorder";function CfnConfigurationRecorder_RecordingGroupPropertyValidator(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("allSupported",cdk.validateBoolean)(properties.allSupported)),errors.collect(cdk.propertyValidator("includeGlobalResourceTypes",cdk.validateBoolean)(properties.includeGlobalResourceTypes)),errors.collect(cdk.propertyValidator("resourceTypes",cdk.listValidator(cdk.validateString))(properties.resourceTypes)),errors.wrap('supplied properties not correct for "RecordingGroupProperty"')}function cfnConfigurationRecorderRecordingGroupPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationRecorder_RecordingGroupPropertyValidator(properties).assertSuccess(),{AllSupported:cdk.booleanToCloudFormation(properties.allSupported),IncludeGlobalResourceTypes:cdk.booleanToCloudFormation(properties.includeGlobalResourceTypes),ResourceTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.resourceTypes)}):properties}function CfnConfigurationRecorderRecordingGroupPropertyFromCloudFormation(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("allSupported","AllSupported",properties.AllSupported!=null?cfn_parse.FromCloudFormation.getBoolean(properties.AllSupported):void 0),ret.addPropertyResult("includeGlobalResourceTypes","IncludeGlobalResourceTypes",properties.IncludeGlobalResourceTypes!=null?cfn_parse.FromCloudFormation.getBoolean(properties.IncludeGlobalResourceTypes):void 0),ret.addPropertyResult("resourceTypes","ResourceTypes",properties.ResourceTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ResourceTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConformancePackPropsValidator(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("conformancePackInputParameters",cdk.listValidator(CfnConformancePack_ConformancePackInputParameterPropertyValidator))(properties.conformancePackInputParameters)),errors.collect(cdk.propertyValidator("conformancePackName",cdk.requiredValidator)(properties.conformancePackName)),errors.collect(cdk.propertyValidator("conformancePackName",cdk.validateString)(properties.conformancePackName)),errors.collect(cdk.propertyValidator("deliveryS3Bucket",cdk.validateString)(properties.deliveryS3Bucket)),errors.collect(cdk.propertyValidator("deliveryS3KeyPrefix",cdk.validateString)(properties.deliveryS3KeyPrefix)),errors.collect(cdk.propertyValidator("templateBody",cdk.validateString)(properties.templateBody)),errors.collect(cdk.propertyValidator("templateS3Uri",cdk.validateString)(properties.templateS3Uri)),errors.collect(cdk.propertyValidator("templateSsmDocumentDetails",cdk.validateObject)(properties.templateSsmDocumentDetails)),errors.wrap('supplied properties not correct for "CfnConformancePackProps"')}function cfnConformancePackPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConformancePackPropsValidator(properties).assertSuccess(),{ConformancePackName:cdk.stringToCloudFormation(properties.conformancePackName),ConformancePackInputParameters:cdk.listMapper(cfnConformancePackConformancePackInputParameterPropertyToCloudFormation)(properties.conformancePackInputParameters),DeliveryS3Bucket:cdk.stringToCloudFormation(properties.deliveryS3Bucket),DeliveryS3KeyPrefix:cdk.stringToCloudFormation(properties.deliveryS3KeyPrefix),TemplateBody:cdk.stringToCloudFormation(properties.templateBody),TemplateS3Uri:cdk.stringToCloudFormation(properties.templateS3Uri),TemplateSSMDocumentDetails:cdk.objectToCloudFormation(properties.templateSsmDocumentDetails)}):properties}function CfnConformancePackPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("conformancePackName","ConformancePackName",cfn_parse.FromCloudFormation.getString(properties.ConformancePackName)),ret.addPropertyResult("conformancePackInputParameters","ConformancePackInputParameters",properties.ConformancePackInputParameters!=null?cfn_parse.FromCloudFormation.getArray(CfnConformancePackConformancePackInputParameterPropertyFromCloudFormation)(properties.ConformancePackInputParameters):void 0),ret.addPropertyResult("deliveryS3Bucket","DeliveryS3Bucket",properties.DeliveryS3Bucket!=null?cfn_parse.FromCloudFormation.getString(properties.DeliveryS3Bucket):void 0),ret.addPropertyResult("deliveryS3KeyPrefix","DeliveryS3KeyPrefix",properties.DeliveryS3KeyPrefix!=null?cfn_parse.FromCloudFormation.getString(properties.DeliveryS3KeyPrefix):void 0),ret.addPropertyResult("templateBody","TemplateBody",properties.TemplateBody!=null?cfn_parse.FromCloudFormation.getString(properties.TemplateBody):void 0),ret.addPropertyResult("templateS3Uri","TemplateS3Uri",properties.TemplateS3Uri!=null?cfn_parse.FromCloudFormation.getString(properties.TemplateS3Uri):void 0),ret.addPropertyResult("templateSsmDocumentDetails","TemplateSSMDocumentDetails",properties.TemplateSSMDocumentDetails!=null?cfn_parse.FromCloudFormation.getAny(properties.TemplateSSMDocumentDetails):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConformancePack extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConformancePack.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnConformancePackProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConformancePack),error}cdk.requireProperty(props,"conformancePackName",this),this.conformancePackName=props.conformancePackName,this.conformancePackInputParameters=props.conformancePackInputParameters,this.deliveryS3Bucket=props.deliveryS3Bucket,this.deliveryS3KeyPrefix=props.deliveryS3KeyPrefix,this.templateBody=props.templateBody,this.templateS3Uri=props.templateS3Uri,this.templateSsmDocumentDetails=props.templateSsmDocumentDetails}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConformancePackPropsFromCloudFormation(resourceProperties),ret=new CfnConformancePack(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",CfnConformancePack.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{conformancePackName:this.conformancePackName,conformancePackInputParameters:this.conformancePackInputParameters,deliveryS3Bucket:this.deliveryS3Bucket,deliveryS3KeyPrefix:this.deliveryS3KeyPrefix,templateBody:this.templateBody,templateS3Uri:this.templateS3Uri,templateSsmDocumentDetails:this.templateSsmDocumentDetails}}renderProperties(props){return cfnConformancePackPropsToCloudFormation(props)}}exports.CfnConformancePack=CfnConformancePack,_e=JSII_RTTI_SYMBOL_1,CfnConformancePack[_e]={fqn:"aws-cdk-lib.aws_config.CfnConformancePack",version:"2.70.0"},CfnConformancePack.CFN_RESOURCE_TYPE_NAME="AWS::Config::ConformancePack";function CfnConformancePack_ConformancePackInputParameterPropertyValidator(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("parameterName",cdk.requiredValidator)(properties.parameterName)),errors.collect(cdk.propertyValidator("parameterName",cdk.validateString)(properties.parameterName)),errors.collect(cdk.propertyValidator("parameterValue",cdk.requiredValidator)(properties.parameterValue)),errors.collect(cdk.propertyValidator("parameterValue",cdk.validateString)(properties.parameterValue)),errors.wrap('supplied properties not correct for "ConformancePackInputParameterProperty"')}function cfnConformancePackConformancePackInputParameterPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConformancePack_ConformancePackInputParameterPropertyValidator(properties).assertSuccess(),{ParameterName:cdk.stringToCloudFormation(properties.parameterName),ParameterValue:cdk.stringToCloudFormation(properties.parameterValue)}):properties}function CfnConformancePackConformancePackInputParameterPropertyFromCloudFormation(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("parameterName","ParameterName",cfn_parse.FromCloudFormation.getString(properties.ParameterName)),ret.addPropertyResult("parameterValue","ParameterValue",cfn_parse.FromCloudFormation.getString(properties.ParameterValue)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConformancePack_TemplateSSMDocumentDetailsPropertyValidator(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("documentName",cdk.validateString)(properties.documentName)),errors.collect(cdk.propertyValidator("documentVersion",cdk.validateString)(properties.documentVersion)),errors.wrap('supplied properties not correct for "TemplateSSMDocumentDetailsProperty"')}function cfnConformancePackTemplateSSMDocumentDetailsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConformancePack_TemplateSSMDocumentDetailsPropertyValidator(properties).assertSuccess(),{DocumentName:cdk.stringToCloudFormation(properties.documentName),DocumentVersion:cdk.stringToCloudFormation(properties.documentVersion)}):properties}function CfnConformancePackTemplateSSMDocumentDetailsPropertyFromCloudFormation(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("documentName","DocumentName",properties.DocumentName!=null?cfn_parse.FromCloudFormation.getString(properties.DocumentName):void 0),ret.addPropertyResult("documentVersion","DocumentVersion",properties.DocumentVersion!=null?cfn_parse.FromCloudFormation.getString(properties.DocumentVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryChannelPropsValidator(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("configSnapshotDeliveryProperties",CfnDeliveryChannel_ConfigSnapshotDeliveryPropertiesPropertyValidator)(properties.configSnapshotDeliveryProperties)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("s3BucketName",cdk.requiredValidator)(properties.s3BucketName)),errors.collect(cdk.propertyValidator("s3BucketName",cdk.validateString)(properties.s3BucketName)),errors.collect(cdk.propertyValidator("s3KeyPrefix",cdk.validateString)(properties.s3KeyPrefix)),errors.collect(cdk.propertyValidator("s3KmsKeyArn",cdk.validateString)(properties.s3KmsKeyArn)),errors.collect(cdk.propertyValidator("snsTopicArn",cdk.validateString)(properties.snsTopicArn)),errors.wrap('supplied properties not correct for "CfnDeliveryChannelProps"')}function cfnDeliveryChannelPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryChannelPropsValidator(properties).assertSuccess(),{S3BucketName:cdk.stringToCloudFormation(properties.s3BucketName),ConfigSnapshotDeliveryProperties:cfnDeliveryChannelConfigSnapshotDeliveryPropertiesPropertyToCloudFormation(properties.configSnapshotDeliveryProperties),Name:cdk.stringToCloudFormation(properties.name),S3KeyPrefix:cdk.stringToCloudFormation(properties.s3KeyPrefix),S3KmsKeyArn:cdk.stringToCloudFormation(properties.s3KmsKeyArn),SnsTopicARN:cdk.stringToCloudFormation(properties.snsTopicArn)}):properties}function CfnDeliveryChannelPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("s3BucketName","S3BucketName",cfn_parse.FromCloudFormation.getString(properties.S3BucketName)),ret.addPropertyResult("configSnapshotDeliveryProperties","ConfigSnapshotDeliveryProperties",properties.ConfigSnapshotDeliveryProperties!=null?CfnDeliveryChannelConfigSnapshotDeliveryPropertiesPropertyFromCloudFormation(properties.ConfigSnapshotDeliveryProperties):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("s3KeyPrefix","S3KeyPrefix",properties.S3KeyPrefix!=null?cfn_parse.FromCloudFormation.getString(properties.S3KeyPrefix):void 0),ret.addPropertyResult("s3KmsKeyArn","S3KmsKeyArn",properties.S3KmsKeyArn!=null?cfn_parse.FromCloudFormation.getString(properties.S3KmsKeyArn):void 0),ret.addPropertyResult("snsTopicArn","SnsTopicARN",properties.SnsTopicARN!=null?cfn_parse.FromCloudFormation.getString(properties.SnsTopicARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeliveryChannel extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDeliveryChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_config_CfnDeliveryChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeliveryChannel),error}cdk.requireProperty(props,"s3BucketName",this),this.s3BucketName=props.s3BucketName,this.configSnapshotDeliveryProperties=props.configSnapshotDeliveryProperties,this.name=props.name,this.s3KeyPrefix=props.s3KeyPrefix,this.s3KmsKeyArn=props.s3KmsKeyArn,this.snsTopicArn=props.snsTopicArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeliveryChannelPropsFromCloudFormation(resourceProperties),ret=new CfnDeliveryChannel(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",CfnDeliveryChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{s3BucketName:this.s3BucketName,configSnapshotDeliveryProperties:this.configSnapshotDeliveryProperties,name:this.name,s3KeyPrefix:this.s3KeyPrefix,s3KmsKeyArn:this.s3KmsKeyArn,snsTopicArn:this.snsTopicArn}}renderProperties(props){return cfnDeliveryChannelPropsToCloudFormation(props)}}exports.CfnDeliveryChannel=CfnDeliveryChannel,_f=JSII_RTTI_SYMBOL_1,CfnDeliveryChannel[_f]={fqn:"aws-cdk-lib.aws_config.CfnDeliveryChannel",version:"2.70.0"},CfnDeliveryChannel.CFN_RESOURCE_TYPE_NAME="AWS::Config::DeliveryChannel";function CfnDeliveryChannel_ConfigSnapshotDeliveryPropertiesPropertyValidator(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("deliveryFrequency",cdk.validateString)(properties.deliveryFrequency)),errors.wrap('supplied properties not correct for "ConfigSnapshotDeliveryPropertiesProperty"')}function cfnDeliver