{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-backup-framework.json",
  "title": "AWSBackupFrameworkProperties",
  "description": "Contains detailed information about a framework. Frameworks contain controls, which evaluate and report on your backup events and resources. Frameworks generate daily compliance results.. 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-framework.json",
    "sourceSha256": "c1ffb651d07c1fbe1d3f88752202cb5a5deb393d295cc895908f5ef315d4f15c"
  },
  "type": "object",
  "properties": {
    "FrameworkName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z][_a-zA-Z0-9]*",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_)."
    },
    "FrameworkDescription": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "An optional description of the framework with a maximum 1,024 characters."
    },
    "FrameworkControls": {
      "description": "Contains detailed information about all of the controls of a framework. Each framework must contain at least one control.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/FrameworkControl"
      }
    },
    "FrameworkTags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair."
    }
  },
  "typeName": "AWS::Backup::Framework",
  "primaryIdentifier": [
    "/properties/FrameworkArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "createOnlyProperties": [
    "/properties/FrameworkName"
  ],
  "additionalProperties": false,
  "$defs": {
    "FrameworkControl": {
      "type": "object",
      "title": "AWSBackupFrameworkFrameworkControlDefinition",
      "properties": {
        "ControlName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of a control. This name is between 1 and 256 characters."
        },
        "ControlInputParameters": {
          "type": "array",
          "description": "A list of ParameterName and ParameterValue pairs.",
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/ControlInputParameter"
          }
        },
        "ControlScope": {
          "type": "object",
          "description": "The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.",
          "properties": {
            "ComplianceResourceIds": {
              "description": "The ID of the only AWS resource that you want your control scope to contain.",
              "type": "array",
              "insertionOrder": false,
              "items": {
                "type": "string"
              }
            },
            "ComplianceResourceTypes": {
              "type": "array",
              "description": "Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.",
              "insertionOrder": false,
              "items": {
                "type": "string"
              }
            },
            "Tags": {
              "type": "array",
              "description": "Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.",
              "insertionOrder": false,
              "items": {
                "$ref": "#/$defs/Tag"
              }
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "ControlName"
      ],
      "additionalProperties": false
    },
    "ControlInputParameter": {
      "type": "object",
      "title": "AWSBackupFrameworkControlInputParameterDefinition",
      "properties": {
        "ParameterName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ParameterValue": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "ParameterName",
        "ParameterValue"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "title": "AWSBackupFrameworkTagDefinition",
      "additionalProperties": false
    }
  },
  "taggable": true,
  "required": [
    "FrameworkControls"
  ],
  "readOnlyProperties": [
    "/properties/FrameworkArn",
    "/properties/CreationTime",
    "/properties/FrameworkStatus",
    "/properties/DeploymentStatus"
  ]
}
