aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 103 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnRestoreTestingSelection=exports.CfnRestoreTestingPlan=exports.CfnLogicallyAirGappedBackupVault=exports.CfnReportPlan=exports.CfnFramework=exports.CfnBackupVault=exports.CfnBackupSelection=exports.CfnBackupPlan=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");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 CfnBackupPlan extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBackupPlanPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBackupPlan(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}constructor(scope,id,props){super(scope,id,{type:CfnBackupPlan.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_backup_CfnBackupPlanProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBackupPlan),error}cdk().requireProperty(props,"backupPlan",this),this.attrBackupPlanArn=cdk().Token.asString(this.getAtt("BackupPlanArn",cdk().ResolutionTypeHint.STRING)),this.attrBackupPlanId=cdk().Token.asString(this.getAtt("BackupPlanId",cdk().ResolutionTypeHint.STRING)),this.attrVersionId=cdk().Token.asString(this.getAtt("VersionId",cdk().ResolutionTypeHint.STRING)),this.backupPlan=props.backupPlan,this.backupPlanTags=props.backupPlanTags,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Backup::BackupPlan",void 0,{tagPropertyName:"backupPlanTags"})}get cfnProperties(){return{backupPlan:this.backupPlan,backupPlanTags:this.cdkTagManager.renderTags(this.backupPlanTags)}}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",CfnBackupPlan.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBackupPlanPropsToCloudFormation(props)}}exports.CfnBackupPlan=CfnBackupPlan,_a=JSII_RTTI_SYMBOL_1,CfnBackupPlan[_a]={fqn:"aws-cdk-lib.aws_backup.CfnBackupPlan",version:"2.185.0"},CfnBackupPlan.CFN_RESOURCE_TYPE_NAME="AWS::Backup::BackupPlan";function CfnBackupPlanAdvancedBackupSettingResourceTypePropertyValidator(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("backupOptions",cdk().requiredValidator)(properties.backupOptions)),errors.collect(cdk().propertyValidator("backupOptions",cdk().validateObject)(properties.backupOptions)),errors.collect(cdk().propertyValidator("resourceType",cdk().requiredValidator)(properties.resourceType)),errors.collect(cdk().propertyValidator("resourceType",cdk().validateString)(properties.resourceType)),errors.wrap('supplied properties not correct for "AdvancedBackupSettingResourceTypeProperty"')}function convertCfnBackupPlanAdvancedBackupSettingResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanAdvancedBackupSettingResourceTypePropertyValidator(properties).assertSuccess(),{BackupOptions:cdk().objectToCloudFormation(properties.backupOptions),ResourceType:cdk().stringToCloudFormation(properties.resourceType)}):properties}function CfnBackupPlanAdvancedBackupSettingResourceTypePropertyFromCloudFormation(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("backupOptions","BackupOptions",properties.BackupOptions!=null?cfn_parse().FromCloudFormation.getAny(properties.BackupOptions):void 0),ret.addPropertyResult("resourceType","ResourceType",properties.ResourceType!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanLifecycleResourceTypePropertyValidator(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("deleteAfterDays",cdk().validateNumber)(properties.deleteAfterDays)),errors.collect(cdk().propertyValidator("moveToColdStorageAfterDays",cdk().validateNumber)(properties.moveToColdStorageAfterDays)),errors.collect(cdk().propertyValidator("optInToArchiveForSupportedResources",cdk().validateBoolean)(properties.optInToArchiveForSupportedResources)),errors.wrap('supplied properties not correct for "LifecycleResourceTypeProperty"')}function convertCfnBackupPlanLifecycleResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanLifecycleResourceTypePropertyValidator(properties).assertSuccess(),{DeleteAfterDays:cdk().numberToCloudFormation(properties.deleteAfterDays),MoveToColdStorageAfterDays:cdk().numberToCloudFormation(properties.moveToColdStorageAfterDays),OptInToArchiveForSupportedResources:cdk().booleanToCloudFormation(properties.optInToArchiveForSupportedResources)}):properties}function CfnBackupPlanLifecycleResourceTypePropertyFromCloudFormation(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("deleteAfterDays","DeleteAfterDays",properties.DeleteAfterDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.DeleteAfterDays):void 0),ret.addPropertyResult("moveToColdStorageAfterDays","MoveToColdStorageAfterDays",properties.MoveToColdStorageAfterDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.MoveToColdStorageAfterDays):void 0),ret.addPropertyResult("optInToArchiveForSupportedResources","OptInToArchiveForSupportedResources",properties.OptInToArchiveForSupportedResources!=null?cfn_parse().FromCloudFormation.getBoolean(properties.OptInToArchiveForSupportedResources):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanCopyActionResourceTypePropertyValidator(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("destinationBackupVaultArn",cdk().requiredValidator)(properties.destinationBackupVaultArn)),errors.collect(cdk().propertyValidator("destinationBackupVaultArn",cdk().validateString)(properties.destinationBackupVaultArn)),errors.collect(cdk().propertyValidator("lifecycle",CfnBackupPlanLifecycleResourceTypePropertyValidator)(properties.lifecycle)),errors.wrap('supplied properties not correct for "CopyActionResourceTypeProperty"')}function convertCfnBackupPlanCopyActionResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanCopyActionResourceTypePropertyValidator(properties).assertSuccess(),{DestinationBackupVaultArn:cdk().stringToCloudFormation(properties.destinationBackupVaultArn),Lifecycle:convertCfnBackupPlanLifecycleResourceTypePropertyToCloudFormation(properties.lifecycle)}):properties}function CfnBackupPlanCopyActionResourceTypePropertyFromCloudFormation(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("destinationBackupVaultArn","DestinationBackupVaultArn",properties.DestinationBackupVaultArn!=null?cfn_parse().FromCloudFormation.getString(properties.DestinationBackupVaultArn):void 0),ret.addPropertyResult("lifecycle","Lifecycle",properties.Lifecycle!=null?CfnBackupPlanLifecycleResourceTypePropertyFromCloudFormation(properties.Lifecycle):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanIndexActionsResourceTypePropertyValidator(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("resourceTypes",cdk().listValidator(cdk().validateString))(properties.resourceTypes)),errors.wrap('supplied properties not correct for "IndexActionsResourceTypeProperty"')}function convertCfnBackupPlanIndexActionsResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanIndexActionsResourceTypePropertyValidator(properties).assertSuccess(),{ResourceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.resourceTypes)}):properties}function CfnBackupPlanIndexActionsResourceTypePropertyFromCloudFormation(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("resourceTypes","ResourceTypes",properties.ResourceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ResourceTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanBackupRuleResourceTypePropertyValidator(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("completionWindowMinutes",cdk().validateNumber)(properties.completionWindowMinutes)),errors.collect(cdk().propertyValidator("copyActions",cdk().listValidator(CfnBackupPlanCopyActionResourceTypePropertyValidator))(properties.copyActions)),errors.collect(cdk().propertyValidator("enableContinuousBackup",cdk().validateBoolean)(properties.enableContinuousBackup)),errors.collect(cdk().propertyValidator("indexActions",cdk().listValidator(CfnBackupPlanIndexActionsResourceTypePropertyValidator))(properties.indexActions)),errors.collect(cdk().propertyValidator("lifecycle",CfnBackupPlanLifecycleResourceTypePropertyValidator)(properties.lifecycle)),errors.collect(cdk().propertyValidator("recoveryPointTags",cdk().hashValidator(cdk().validateString))(properties.recoveryPointTags)),errors.collect(cdk().propertyValidator("ruleName",cdk().requiredValidator)(properties.ruleName)),errors.collect(cdk().propertyValidator("ruleName",cdk().validateString)(properties.ruleName)),errors.collect(cdk().propertyValidator("scheduleExpression",cdk().validateString)(properties.scheduleExpression)),errors.collect(cdk().propertyValidator("scheduleExpressionTimezone",cdk().validateString)(properties.scheduleExpressionTimezone)),errors.collect(cdk().propertyValidator("startWindowMinutes",cdk().validateNumber)(properties.startWindowMinutes)),errors.collect(cdk().propertyValidator("targetBackupVault",cdk().requiredValidator)(properties.targetBackupVault)),errors.collect(cdk().propertyValidator("targetBackupVault",cdk().validateString)(properties.targetBackupVault)),errors.wrap('supplied properties not correct for "BackupRuleResourceTypeProperty"')}function convertCfnBackupPlanBackupRuleResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanBackupRuleResourceTypePropertyValidator(properties).assertSuccess(),{CompletionWindowMinutes:cdk().numberToCloudFormation(properties.completionWindowMinutes),CopyActions:cdk().listMapper(convertCfnBackupPlanCopyActionResourceTypePropertyToCloudFormation)(properties.copyActions),EnableContinuousBackup:cdk().booleanToCloudFormation(properties.enableContinuousBackup),IndexActions:cdk().listMapper(convertCfnBackupPlanIndexActionsResourceTypePropertyToCloudFormation)(properties.indexActions),Lifecycle:convertCfnBackupPlanLifecycleResourceTypePropertyToCloudFormation(properties.lifecycle),RecoveryPointTags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.recoveryPointTags),RuleName:cdk().stringToCloudFormation(properties.ruleName),ScheduleExpression:cdk().stringToCloudFormation(properties.scheduleExpression),ScheduleExpressionTimezone:cdk().stringToCloudFormation(properties.scheduleExpressionTimezone),StartWindowMinutes:cdk().numberToCloudFormation(properties.startWindowMinutes),TargetBackupVault:cdk().stringToCloudFormation(properties.targetBackupVault)}):properties}function CfnBackupPlanBackupRuleResourceTypePropertyFromCloudFormation(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("completionWindowMinutes","CompletionWindowMinutes",properties.CompletionWindowMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.CompletionWindowMinutes):void 0),ret.addPropertyResult("copyActions","CopyActions",properties.CopyActions!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupPlanCopyActionResourceTypePropertyFromCloudFormation)(properties.CopyActions):void 0),ret.addPropertyResult("enableContinuousBackup","EnableContinuousBackup",properties.EnableContinuousBackup!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnableContinuousBackup):void 0),ret.addPropertyResult("indexActions","IndexActions",properties.IndexActions!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupPlanIndexActionsResourceTypePropertyFromCloudFormation)(properties.IndexActions):void 0),ret.addPropertyResult("lifecycle","Lifecycle",properties.Lifecycle!=null?CfnBackupPlanLifecycleResourceTypePropertyFromCloudFormation(properties.Lifecycle):void 0),ret.addPropertyResult("recoveryPointTags","RecoveryPointTags",properties.RecoveryPointTags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.RecoveryPointTags):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse().FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("scheduleExpression","ScheduleExpression",properties.ScheduleExpression!=null?cfn_parse().FromCloudFormation.getString(properties.ScheduleExpression):void 0),ret.addPropertyResult("scheduleExpressionTimezone","ScheduleExpressionTimezone",properties.ScheduleExpressionTimezone!=null?cfn_parse().FromCloudFormation.getString(properties.ScheduleExpressionTimezone):void 0),ret.addPropertyResult("startWindowMinutes","StartWindowMinutes",properties.StartWindowMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.StartWindowMinutes):void 0),ret.addPropertyResult("targetBackupVault","TargetBackupVault",properties.TargetBackupVault!=null?cfn_parse().FromCloudFormation.getString(properties.TargetBackupVault):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanBackupPlanResourceTypePropertyValidator(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("advancedBackupSettings",cdk().listValidator(CfnBackupPlanAdvancedBackupSettingResourceTypePropertyValidator))(properties.advancedBackupSettings)),errors.collect(cdk().propertyValidator("backupPlanName",cdk().requiredValidator)(properties.backupPlanName)),errors.collect(cdk().propertyValidator("backupPlanName",cdk().validateString)(properties.backupPlanName)),errors.collect(cdk().propertyValidator("backupPlanRule",cdk().requiredValidator)(properties.backupPlanRule)),errors.collect(cdk().propertyValidator("backupPlanRule",cdk().listValidator(CfnBackupPlanBackupRuleResourceTypePropertyValidator))(properties.backupPlanRule)),errors.wrap('supplied properties not correct for "BackupPlanResourceTypeProperty"')}function convertCfnBackupPlanBackupPlanResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanBackupPlanResourceTypePropertyValidator(properties).assertSuccess(),{AdvancedBackupSettings:cdk().listMapper(convertCfnBackupPlanAdvancedBackupSettingResourceTypePropertyToCloudFormation)(properties.advancedBackupSettings),BackupPlanName:cdk().stringToCloudFormation(properties.backupPlanName),BackupPlanRule:cdk().listMapper(convertCfnBackupPlanBackupRuleResourceTypePropertyToCloudFormation)(properties.backupPlanRule)}):properties}function CfnBackupPlanBackupPlanResourceTypePropertyFromCloudFormation(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("advancedBackupSettings","AdvancedBackupSettings",properties.AdvancedBackupSettings!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupPlanAdvancedBackupSettingResourceTypePropertyFromCloudFormation)(properties.AdvancedBackupSettings):void 0),ret.addPropertyResult("backupPlanName","BackupPlanName",properties.BackupPlanName!=null?cfn_parse().FromCloudFormation.getString(properties.BackupPlanName):void 0),ret.addPropertyResult("backupPlanRule","BackupPlanRule",properties.BackupPlanRule!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupPlanBackupRuleResourceTypePropertyFromCloudFormation)(properties.BackupPlanRule):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupPlanPropsValidator(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("backupPlan",cdk().requiredValidator)(properties.backupPlan)),errors.collect(cdk().propertyValidator("backupPlan",CfnBackupPlanBackupPlanResourceTypePropertyValidator)(properties.backupPlan)),errors.collect(cdk().propertyValidator("backupPlanTags",cdk().hashValidator(cdk().validateString))(properties.backupPlanTags)),errors.wrap('supplied properties not correct for "CfnBackupPlanProps"')}function convertCfnBackupPlanPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupPlanPropsValidator(properties).assertSuccess(),{BackupPlan:convertCfnBackupPlanBackupPlanResourceTypePropertyToCloudFormation(properties.backupPlan),BackupPlanTags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.backupPlanTags)}):properties}function CfnBackupPlanPropsFromCloudFormation(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("backupPlan","BackupPlan",properties.BackupPlan!=null?CfnBackupPlanBackupPlanResourceTypePropertyFromCloudFormation(properties.BackupPlan):void 0),ret.addPropertyResult("backupPlanTags","BackupPlanTags",properties.BackupPlanTags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.BackupPlanTags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBackupSelection extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBackupSelectionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBackupSelection(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}constructor(scope,id,props){super(scope,id,{type:CfnBackupSelection.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_backup_CfnBackupSelectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBackupSelection),error}cdk().requireProperty(props,"backupPlanId",this),cdk().requireProperty(props,"backupSelection",this),this.attrBackupPlanId=cdk().Token.asString(this.getAtt("BackupPlanId",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrSelectionId=cdk().Token.asString(this.getAtt("SelectionId",cdk().ResolutionTypeHint.STRING)),this.backupPlanId=props.backupPlanId,this.backupSelection=props.backupSelection}get cfnProperties(){return{backupPlanId:this.backupPlanId,backupSelection:this.backupSelection}}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",CfnBackupSelection.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBackupSelectionPropsToCloudFormation(props)}}exports.CfnBackupSelection=CfnBackupSelection,_b=JSII_RTTI_SYMBOL_1,CfnBackupSelection[_b]={fqn:"aws-cdk-lib.aws_backup.CfnBackupSelection",version:"2.185.0"},CfnBackupSelection.CFN_RESOURCE_TYPE_NAME="AWS::Backup::BackupSelection";function CfnBackupSelectionConditionResourceTypePropertyValidator(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("conditionKey",cdk().requiredValidator)(properties.conditionKey)),errors.collect(cdk().propertyValidator("conditionKey",cdk().validateString)(properties.conditionKey)),errors.collect(cdk().propertyValidator("conditionType",cdk().requiredValidator)(properties.conditionType)),errors.collect(cdk().propertyValidator("conditionType",cdk().validateString)(properties.conditionType)),errors.collect(cdk().propertyValidator("conditionValue",cdk().requiredValidator)(properties.conditionValue)),errors.collect(cdk().propertyValidator("conditionValue",cdk().validateString)(properties.conditionValue)),errors.wrap('supplied properties not correct for "ConditionResourceTypeProperty"')}function convertCfnBackupSelectionConditionResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupSelectionConditionResourceTypePropertyValidator(properties).assertSuccess(),{ConditionKey:cdk().stringToCloudFormation(properties.conditionKey),ConditionType:cdk().stringToCloudFormation(properties.conditionType),ConditionValue:cdk().stringToCloudFormation(properties.conditionValue)}):properties}function CfnBackupSelectionConditionResourceTypePropertyFromCloudFormation(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("conditionKey","ConditionKey",properties.ConditionKey!=null?cfn_parse().FromCloudFormation.getString(properties.ConditionKey):void 0),ret.addPropertyResult("conditionType","ConditionType",properties.ConditionType!=null?cfn_parse().FromCloudFormation.getString(properties.ConditionType):void 0),ret.addPropertyResult("conditionValue","ConditionValue",properties.ConditionValue!=null?cfn_parse().FromCloudFormation.getString(properties.ConditionValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupSelectionBackupSelectionResourceTypePropertyValidator(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("conditions",cdk().validateObject)(properties.conditions)),errors.collect(cdk().propertyValidator("iamRoleArn",cdk().requiredValidator)(properties.iamRoleArn)),errors.collect(cdk().propertyValidator("iamRoleArn",cdk().validateString)(properties.iamRoleArn)),errors.collect(cdk().propertyValidator("listOfTags",cdk().listValidator(CfnBackupSelectionConditionResourceTypePropertyValidator))(properties.listOfTags)),errors.collect(cdk().propertyValidator("notResources",cdk().listValidator(cdk().validateString))(properties.notResources)),errors.collect(cdk().propertyValidator("resources",cdk().listValidator(cdk().validateString))(properties.resources)),errors.collect(cdk().propertyValidator("selectionName",cdk().requiredValidator)(properties.selectionName)),errors.collect(cdk().propertyValidator("selectionName",cdk().validateString)(properties.selectionName)),errors.wrap('supplied properties not correct for "BackupSelectionResourceTypeProperty"')}function convertCfnBackupSelectionBackupSelectionResourceTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupSelectionBackupSelectionResourceTypePropertyValidator(properties).assertSuccess(),{Conditions:cdk().objectToCloudFormation(properties.conditions),IamRoleArn:cdk().stringToCloudFormation(properties.iamRoleArn),ListOfTags:cdk().listMapper(convertCfnBackupSelectionConditionResourceTypePropertyToCloudFormation)(properties.listOfTags),NotResources:cdk().listMapper(cdk().stringToCloudFormation)(properties.notResources),Resources:cdk().listMapper(cdk().stringToCloudFormation)(properties.resources),SelectionName:cdk().stringToCloudFormation(properties.selectionName)}):properties}function CfnBackupSelectionBackupSelectionResourceTypePropertyFromCloudFormation(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("conditions","Conditions",properties.Conditions!=null?cfn_parse().FromCloudFormation.getAny(properties.Conditions):void 0),ret.addPropertyResult("iamRoleArn","IamRoleArn",properties.IamRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.IamRoleArn):void 0),ret.addPropertyResult("listOfTags","ListOfTags",properties.ListOfTags!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupSelectionConditionResourceTypePropertyFromCloudFormation)(properties.ListOfTags):void 0),ret.addPropertyResult("notResources","NotResources",properties.NotResources!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.NotResources):void 0),ret.addPropertyResult("resources","Resources",properties.Resources!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Resources):void 0),ret.addPropertyResult("selectionName","SelectionName",properties.SelectionName!=null?cfn_parse().FromCloudFormation.getString(properties.SelectionName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupSelectionPropsValidator(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("backupPlanId",cdk().requiredValidator)(properties.backupPlanId)),errors.collect(cdk().propertyValidator("backupPlanId",cdk().validateString)(properties.backupPlanId)),errors.collect(cdk().propertyValidator("backupSelection",cdk().requiredValidator)(properties.backupSelection)),errors.collect(cdk().propertyValidator("backupSelection",CfnBackupSelectionBackupSelectionResourceTypePropertyValidator)(properties.backupSelection)),errors.wrap('supplied properties not correct for "CfnBackupSelectionProps"')}function convertCfnBackupSelectionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupSelectionPropsValidator(properties).assertSuccess(),{BackupPlanId:cdk().stringToCloudFormation(properties.backupPlanId),BackupSelection:convertCfnBackupSelectionBackupSelectionResourceTypePropertyToCloudFormation(properties.backupSelection)}):properties}function CfnBackupSelectionPropsFromCloudFormation(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("backupPlanId","BackupPlanId",properties.BackupPlanId!=null?cfn_parse().FromCloudFormation.getString(properties.BackupPlanId):void 0),ret.addPropertyResult("backupSelection","BackupSelection",properties.BackupSelection!=null?CfnBackupSelectionBackupSelectionResourceTypePropertyFromCloudFormation(properties.BackupSelection):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupSelectionConditionParameterPropertyValidator(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("conditionKey",cdk().validateString)(properties.conditionKey)),errors.collect(cdk().propertyValidator("conditionValue",cdk().validateString)(properties.conditionValue)),errors.wrap('supplied properties not correct for "ConditionParameterProperty"')}function convertCfnBackupSelectionConditionParameterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupSelectionConditionParameterPropertyValidator(properties).assertSuccess(),{ConditionKey:cdk().stringToCloudFormation(properties.conditionKey),ConditionValue:cdk().stringToCloudFormation(properties.conditionValue)}):properties}function CfnBackupSelectionConditionParameterPropertyFromCloudFormation(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("conditionKey","ConditionKey",properties.ConditionKey!=null?cfn_parse().FromCloudFormation.getString(properties.ConditionKey):void 0),ret.addPropertyResult("conditionValue","ConditionValue",properties.ConditionValue!=null?cfn_parse().FromCloudFormation.getString(properties.ConditionValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupSelectionConditionsPropertyValidator(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("stringEquals",cdk().listValidator(CfnBackupSelectionConditionParameterPropertyValidator))(properties.stringEquals)),errors.collect(cdk().propertyValidator("stringLike",cdk().listValidator(CfnBackupSelectionConditionParameterPropertyValidator))(properties.stringLike)),errors.collect(cdk().propertyValidator("stringNotEquals",cdk().listValidator(CfnBackupSelectionConditionParameterPropertyValidator))(properties.stringNotEquals)),errors.collect(cdk().propertyValidator("stringNotLike",cdk().listValidator(CfnBackupSelectionConditionParameterPropertyValidator))(properties.stringNotLike)),errors.wrap('supplied properties not correct for "ConditionsProperty"')}function convertCfnBackupSelectionConditionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupSelectionConditionsPropertyValidator(properties).assertSuccess(),{StringEquals:cdk().listMapper(convertCfnBackupSelectionConditionParameterPropertyToCloudFormation)(properties.stringEquals),StringLike:cdk().listMapper(convertCfnBackupSelectionConditionParameterPropertyToCloudFormation)(properties.stringLike),StringNotEquals:cdk().listMapper(convertCfnBackupSelectionConditionParameterPropertyToCloudFormation)(properties.stringNotEquals),StringNotLike:cdk().listMapper(convertCfnBackupSelectionConditionParameterPropertyToCloudFormation)(properties.stringNotLike)}):properties}function CfnBackupSelectionConditionsPropertyFromCloudFormation(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("stringEquals","StringEquals",properties.StringEquals!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupSelectionConditionParameterPropertyFromCloudFormation)(properties.StringEquals):void 0),ret.addPropertyResult("stringLike","StringLike",properties.StringLike!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupSelectionConditionParameterPropertyFromCloudFormation)(properties.StringLike):void 0),ret.addPropertyResult("stringNotEquals","StringNotEquals",properties.StringNotEquals!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupSelectionConditionParameterPropertyFromCloudFormation)(properties.StringNotEquals):void 0),ret.addPropertyResult("stringNotLike","StringNotLike",properties.StringNotLike!=null?cfn_parse().FromCloudFormation.getArray(CfnBackupSelectionConditionParameterPropertyFromCloudFormation)(properties.StringNotLike):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBackupVault extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBackupVaultPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBackupVault(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}constructor(scope,id,props){super(scope,id,{type:CfnBackupVault.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_backup_CfnBackupVaultProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBackupVault),error}cdk().requireProperty(props,"backupVaultName",this),this.attrBackupVaultArn=cdk().Token.asString(this.getAtt("BackupVaultArn",cdk().ResolutionTypeHint.STRING)),this.attrBackupVaultName=cdk().Token.asString(this.getAtt("BackupVaultName",cdk().ResolutionTypeHint.STRING)),this.accessPolicy=props.accessPolicy,this.backupVaultName=props.backupVaultName,this.backupVaultTags=props.backupVaultTags,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Backup::BackupVault",void 0,{tagPropertyName:"backupVaultTags"}),this.encryptionKeyArn=props.encryptionKeyArn,this.lockConfiguration=props.lockConfiguration,this.notifications=props.notifications,this.node.scope!=null&&cdk().Resource.isResource(this.node.scope)&&this.node.addValidation({validate:()=>this.cfnOptions.deletionPolicy===void 0?["'AWS::Backup::BackupVault' is a stateful resource type, and you must specify a Removal Policy for it. Call 'resource.applyRemovalPolicy()'."]:[]})}get cfnProperties(){return{accessPolicy:this.accessPolicy,backupVaultName:this.backupVaultName,backupVaultTags:this.cdkTagManager.renderTags(this.backupVaultTags),encryptionKeyArn:this.encryptionKeyArn,lockConfiguration:this.lockConfiguration,notifications:this.notifications}}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",CfnBackupVault.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBackupVaultPropsToCloudFormation(props)}}exports.CfnBackupVault=CfnBackupVault,_c=JSII_RTTI_SYMBOL_1,CfnBackupVault[_c]={fqn:"aws-cdk-lib.aws_backup.CfnBackupVault",version:"2.185.0"},CfnBackupVault.CFN_RESOURCE_TYPE_NAME="AWS::Backup::BackupVault";function CfnBackupVaultLockConfigurationTypePropertyValidator(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("changeableForDays",cdk().validateNumber)(properties.changeableForDays)),errors.collect(cdk().propertyValidator("maxRetentionDays",cdk().validateNumber)(properties.maxRetentionDays)),errors.collect(cdk().propertyValidator("minRetentionDays",cdk().requiredValidator)(properties.minRetentionDays)),errors.collect(cdk().propertyValidator("minRetentionDays",cdk().validateNumber)(properties.minRetentionDays)),errors.wrap('supplied properties not correct for "LockConfigurationTypeProperty"')}function convertCfnBackupVaultLockConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupVaultLockConfigurationTypePropertyValidator(properties).assertSuccess(),{ChangeableForDays:cdk().numberToCloudFormation(properties.changeableForDays),MaxRetentionDays:cdk().numberToCloudFormation(properties.maxRetentionDays),MinRetentionDays:cdk().numberToCloudFormation(properties.minRetentionDays)}):properties}function CfnBackupVaultLockConfigurationTypePropertyFromCloudFormation(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("changeableForDays","ChangeableForDays",properties.ChangeableForDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.ChangeableForDays):void 0),ret.addPropertyResult("maxRetentionDays","MaxRetentionDays",properties.MaxRetentionDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxRetentionDays):void 0),ret.addPropertyResult("minRetentionDays","MinRetentionDays",properties.MinRetentionDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinRetentionDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupVaultNotificationObjectTypePropertyValidator(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("backupVaultEvents",cdk().requiredValidator)(properties.backupVaultEvents)),errors.collect(cdk().propertyValidator("backupVaultEvents",cdk().listValidator(cdk().validateString))(properties.backupVaultEvents)),errors.collect(cdk().propertyValidator("snsTopicArn",cdk().requiredValidator)(properties.snsTopicArn)),errors.collect(cdk().propertyValidator("snsTopicArn",cdk().validateString)(properties.snsTopicArn)),errors.wrap('supplied properties not correct for "NotificationObjectTypeProperty"')}function convertCfnBackupVaultNotificationObjectTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupVaultNotificationObjectTypePropertyValidator(properties).assertSuccess(),{BackupVaultEvents:cdk().listMapper(cdk().stringToCloudFormation)(properties.backupVaultEvents),SNSTopicArn:cdk().stringToCloudFormation(properties.snsTopicArn)}):properties}function CfnBackupVaultNotificationObjectTypePropertyFromCloudFormation(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("backupVaultEvents","BackupVaultEvents",properties.BackupVaultEvents!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.BackupVaultEvents):void 0),ret.addPropertyResult("snsTopicArn","SNSTopicArn",properties.SNSTopicArn!=null?cfn_parse().FromCloudFormation.getString(properties.SNSTopicArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBackupVaultPropsValidator(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("accessPolicy",cdk().validateObject)(properties.accessPolicy)),errors.collect(cdk().propertyValidator("backupVaultName",cdk().requiredValidator)(properties.backupVaultName)),errors.collect(cdk().propertyValidator("backupVaultName",cdk().validateString)(properties.backupVaultName)),errors.collect(cdk().propertyValidator("backupVaultTags",cdk().hashValidator(cdk().validateString))(properties.backupVaultTags)),errors.collect(cdk().propertyValidator("encryptionKeyArn",cdk().validateString)(properties.encryptionKeyArn)),errors.collect(cdk().propertyValidator("lockConfiguration",CfnBackupVaultLockConfigurationTypePropertyValidator)(properties.lockConfiguration)),errors.collect(cdk().propertyValidator("notifications",CfnBackupVaultNotificationObjectTypePropertyValidator)(properties.notifications)),errors.wrap('supplied properties not correct for "CfnBackupVaultProps"')}function convertCfnBackupVaultPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBackupVaultPropsValidator(properties).assertSuccess(),{AccessPolicy:cdk().objectToCloudFormation(properties.accessPolicy),BackupVaultName:cdk().stringToCloudFormation(properties.backupVaultName),BackupVaultTags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.backupVaultTags),EncryptionKeyArn:cdk().stringToCloudFormation(properties.encryptionKeyArn),LockConfiguration:convertCfnBackupVaultLockConfigurationTypePropertyToCloudFormation(properties.lockConfiguration),Notifications:convertCfnBackupVaultNotificationObjectTypePropertyToCloudFormation(properties.notifications)}):properties}function CfnBackupVaultPropsFromCloudFormation(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("accessPolicy","AccessPolicy",properties.AccessPolicy!=null?cfn_parse().FromCloudFormation.getAny(properties.AccessPolicy):void 0),ret.addPropertyResult("backupVaultName","BackupVaultName",properties.BackupVaultName!=null?cfn_parse().FromCloudFormation.getString(properties.BackupVaultName):void 0),ret.addPropertyResult("backupVaultTags","BackupVaultTags",properties.BackupVaultTags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.BackupVaultTags):void 0),ret.addPropertyResult("encryptionKeyArn","EncryptionKeyArn",properties.EncryptionKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionKeyArn):void 0),ret.addPropertyResult("lockConfiguration","LockConfiguration",properties.LockConfiguration!=null?CfnBackupVaultLockConfigurationTypePropertyFromCloudFormation(properties.LockConfiguration):void 0),ret.addPropertyResult("notifications","Notifications",properties.Notifications!=null?CfnBackupVaultNotificationObjectTypePropertyFromCloudFormation(properties.Notifications):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFramework extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFrameworkPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnFramework(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}constructor(scope,id,props){super(scope,id,{type:CfnFramework.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_backup_CfnFrameworkProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFramework),error}cdk().requireProperty(props,"frameworkControls",this),this.attrCreationTime=cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING)),this.attrDeploymentStatus=cdk().Token.asString(this.getAtt("DeploymentStatus",cdk().ResolutionTypeHint.STRING)),this.attrFrameworkArn=cdk().Token.asString(this.getAtt("FrameworkArn",cdk().ResolutionTypeHint.STRING)),this.attrFrameworkStatus=cdk().Token.asString(this.getAtt("FrameworkStatus",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Backup::Framework",void 0,{tagPropertyName:"frameworkTags"}),this.frameworkControls=props.frameworkControls,this.frameworkDescription=props.frameworkDescription,this.frameworkName=props.frameworkName,this.frameworkTags=props.frameworkTags}get cfnProperties(){return{frameworkTags:this.cdkTagManager.renderTags(this.frameworkTags),frameworkControls:this.frameworkControls,frameworkDescription:this.frameworkDescription,frameworkName:this.frameworkName}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){