{
  "typeName" : "AWS::Backup::LogicallyAirGappedBackupVault",
  "description" : "Resource Type definition for AWS::Backup::LogicallyAirGappedBackupVault",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "NotificationObjectType" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "BackupVaultEvents" : {
          "type" : "array",
          "insertionOrder" : false,
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "SNSTopicArn" : {
          "type" : "string"
        }
      },
      "required" : [ "SNSTopicArn", "BackupVaultEvents" ]
    },
    "BackupVaultNamePattern" : {
      "type" : "string",
      "pattern" : "^[a-zA-Z0-9\\-\\_]{2,50}$"
    }
  },
  "properties" : {
    "AccessPolicy" : {
      "type" : [ "object", "string" ]
    },
    "BackupVaultName" : {
      "$ref" : "#/definitions/BackupVaultNamePattern"
    },
    "MinRetentionDays" : {
      "type" : "integer"
    },
    "MaxRetentionDays" : {
      "type" : "integer"
    },
    "BackupVaultTags" : {
      "type" : "object",
      "additionalProperties" : false,
      "patternProperties" : {
        "^.{1,128}$" : {
          "type" : "string"
        }
      }
    },
    "Notifications" : {
      "$ref" : "#/definitions/NotificationObjectType"
    },
    "EncryptionKeyArn" : {
      "type" : "string"
    },
    "BackupVaultArn" : {
      "type" : "string"
    },
    "VaultState" : {
      "type" : "string"
    },
    "VaultType" : {
      "type" : "string"
    },
    "MpaApprovalTeamArn" : {
      "type" : "string"
    }
  },
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/BackupVaultTags",
    "permissions" : [ "backup:TagResource", "backup:UntagResource", "backup:ListTags" ]
  },
  "required" : [ "BackupVaultName", "MinRetentionDays", "MaxRetentionDays" ],
  "createOnlyProperties" : [ "/properties/BackupVaultName", "/properties/MinRetentionDays", "/properties/MaxRetentionDays", "/properties/EncryptionKeyArn" ],
  "readOnlyProperties" : [ "/properties/BackupVaultArn", "/properties/VaultState", "/properties/VaultType" ],
  "primaryIdentifier" : [ "/properties/BackupVaultName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "backup:TagResource", "backup:AssociateBackupVaultMpaApprovalTeam", "backup:CreateLogicallyAirGappedBackupVault", "backup:PutBackupVaultAccessPolicy", "backup:PutBackupVaultNotifications", "backup-storage:Mount", "backup-storage:MountCapsule", "backup:DescribeBackupVault", "mpa:GetApprovalTeam", "kms:DescribeKey", "kms:CreateGrant" ]
    },
    "read" : {
      "permissions" : [ "backup:DescribeBackupVault", "backup:GetBackupVaultNotifications", "backup:GetBackupVaultAccessPolicy", "backup:ListTags" ]
    },
    "update" : {
      "permissions" : [ "backup:AssociateBackupVaultMpaApprovalTeam", "backup:DescribeBackupVault", "backup:DeleteBackupVaultAccessPolicy", "backup:DeleteBackupVaultNotifications", "backup:DeleteBackupVaultLockConfiguration", "backup:GetBackupVaultAccessPolicy", "backup:ListTags", "backup:TagResource", "backup:UntagResource", "backup:PutBackupVaultAccessPolicy", "backup:PutBackupVaultNotifications", "backup:PutBackupVaultLockConfiguration", "mpa:GetApprovalTeam" ]
    },
    "delete" : {
      "permissions" : [ "backup:DeleteBackupVault" ]
    },
    "list" : {
      "permissions" : [ "backup:ListBackupVaults" ]
    }
  }
}