{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-backup-backupvault.json",
  "title": "AWSBackupBackupVaultProperties",
  "description": "Resource Type definition for AWS::Backup::BackupVault. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-backup-backupvault.json",
    "sourceSha256": "a179c4b29c2b8ba00767d4d1c53b53124fb7e4b9bd32dba21dcc92a139b56d25"
  },
  "type": "object",
  "properties": {
    "AccessPolicy": {
      "type": [
        "object",
        "string"
      ]
    },
    "BackupVaultName": {
      "$ref": "#/$defs/BackupVaultNamePattern"
    },
    "BackupVaultTags": {
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "^.{1,128}$": {
          "type": "string"
        }
      }
    },
    "EncryptionKeyArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Notifications": {
      "$ref": "#/$defs/NotificationObjectType"
    },
    "LockConfiguration": {
      "$ref": "#/$defs/LockConfigurationType"
    }
  },
  "typeName": "AWS::Backup::BackupVault",
  "primaryIdentifier": [
    "/properties/BackupVaultName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/BackupVaultArn"
  ],
  "$defs": {
    "NotificationObjectType": {
      "type": "object",
      "title": "AWSBackupBackupVaultNotificationObjectTypeDefinition",
      "properties": {
        "BackupVaultEvents": {
          "type": "array",
          "insertionOrder": false,
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "SNSTopicArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "SNSTopicArn",
        "BackupVaultEvents"
      ],
      "additionalProperties": false
    },
    "LockConfigurationType": {
      "type": "object",
      "title": "AWSBackupBackupVaultLockConfigurationTypeDefinition",
      "properties": {
        "MinRetentionDays": {
          "type": "integer"
        },
        "MaxRetentionDays": {
          "type": "integer"
        },
        "ChangeableForDays": {
          "type": "integer"
        }
      },
      "required": [
        "MinRetentionDays"
      ],
      "additionalProperties": false
    },
    "BackupVaultNamePattern": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9\\-\\_]{2,50}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSBackupBackupVaultBackupVaultNamePatternDefinition"
    }
  },
  "taggable": true,
  "required": [
    "BackupVaultName"
  ],
  "createOnlyProperties": [
    "/properties/BackupVaultName",
    "/properties/EncryptionKeyArn"
  ],
  "writeOnlyProperties": [
    "/properties/LockConfiguration/ChangeableForDays"
  ]
}
