{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-backup-backupplan.json",
  "title": "AWSBackupBackupPlanProperties",
  "description": "Resource Type definition for AWS::Backup::BackupPlan. 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-backupplan.json",
    "sourceSha256": "6cd5042b2249cfdba254c1741bda59c4e843a4d003f33f889b2f59a794e8b6ae"
  },
  "type": "object",
  "properties": {
    "BackupPlan": {
      "$ref": "#/$defs/BackupPlanResourceType"
    },
    "BackupPlanTags": {
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "^.{1,128}$": {
          "type": "string"
        }
      }
    }
  },
  "typeName": "AWS::Backup::BackupPlan",
  "additionalProperties": false,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "primaryIdentifier": [
    "/properties/BackupPlanId"
  ],
  "$defs": {
    "BackupPlanResourceType": {
      "type": "object",
      "title": "AWSBackupBackupPlanBackupPlanResourceTypeDefinition",
      "properties": {
        "BackupPlanName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AdvancedBackupSettings": {
          "type": "array",
          "insertionOrder": true,
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/AdvancedBackupSettingResourceType"
          }
        },
        "BackupPlanRule": {
          "type": "array",
          "insertionOrder": true,
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/BackupRuleResourceType"
          }
        }
      },
      "required": [
        "BackupPlanName",
        "BackupPlanRule"
      ],
      "additionalProperties": false
    },
    "BackupRuleResourceType": {
      "type": "object",
      "title": "AWSBackupBackupPlanBackupRuleResourceTypeDefinition",
      "properties": {
        "RuleName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TargetBackupVault": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "StartWindowMinutes": {
          "type": "number"
        },
        "CompletionWindowMinutes": {
          "type": "number"
        },
        "ScheduleExpression": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RecoveryPointTags": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "^.{1,128}$": {
              "type": "string"
            }
          }
        },
        "CopyActions": {
          "type": "array",
          "insertionOrder": true,
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/CopyActionResourceType"
          }
        },
        "Lifecycle": {
          "$ref": "#/$defs/LifecycleResourceType"
        },
        "EnableContinuousBackup": {
          "type": "boolean"
        }
      },
      "required": [
        "TargetBackupVault",
        "RuleName"
      ],
      "additionalProperties": false
    },
    "AdvancedBackupSettingResourceType": {
      "type": "object",
      "title": "AWSBackupBackupPlanAdvancedBackupSettingResourceTypeDefinition",
      "properties": {
        "BackupOptions": {
          "type": "object"
        },
        "ResourceType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "BackupOptions",
        "ResourceType"
      ],
      "additionalProperties": false
    },
    "CopyActionResourceType": {
      "type": "object",
      "title": "AWSBackupBackupPlanCopyActionResourceTypeDefinition",
      "properties": {
        "Lifecycle": {
          "$ref": "#/$defs/LifecycleResourceType"
        },
        "DestinationBackupVaultArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "DestinationBackupVaultArn"
      ],
      "additionalProperties": false
    },
    "LifecycleResourceType": {
      "type": "object",
      "title": "AWSBackupBackupPlanLifecycleResourceTypeDefinition",
      "properties": {
        "MoveToColdStorageAfterDays": {
          "type": "number"
        },
        "DeleteAfterDays": {
          "type": "number"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "BackupPlan"
  ],
  "readOnlyProperties": [
    "/properties/BackupPlanId",
    "/properties/VersionId",
    "/properties/BackupPlanArn"
  ]
}
