{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-backup-reportplan.json",
  "title": "AWSBackupReportPlanProperties",
  "description": "Contains detailed information about a report plan in AWS Backup Audit Manager.. 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-reportplan.json",
    "sourceSha256": "685507286fb298211bb3b48010829fee9779aba0a8e8930591564802c655367f"
  },
  "type": "object",
  "properties": {
    "ReportPlanName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "[a-zA-Z][_a-zA-Z0-9]*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_)."
    },
    "ReportPlanDescription": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1024,
          "pattern": ".*\\S.*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "An optional description of the report plan with a maximum of 1,024 characters."
    },
    "ReportPlanTags": {
      "description": "Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "ReportDeliveryChannel": {
      "type": "object",
      "description": "A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.",
      "properties": {
        "Formats": {
          "type": "array",
          "description": "A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV.",
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "S3BucketName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The unique name of the S3 bucket that receives your reports."
        },
        "S3KeyPrefix": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The prefix for where AWS Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix."
        }
      },
      "required": [
        "S3BucketName"
      ],
      "additionalProperties": false
    },
    "ReportSetting": {
      "type": "object",
      "description": "Identifies the report template for the report. Reports are built using a report template.",
      "properties": {
        "ReportTemplate": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Identifies the report template for the report. Reports are built using a report template. The report templates are: `BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`"
        },
        "FrameworkArns": {
          "type": "array",
          "description": "The Amazon Resource Names (ARNs) of the frameworks a report covers.",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Accounts": {
          "type": "array",
          "description": "The list of AWS accounts that a report covers.",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "OrganizationUnits": {
          "type": "array",
          "description": "The list of AWS organization units that a report covers.",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Regions": {
          "type": "array",
          "description": "The list of AWS regions that a report covers.",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "ReportTemplate"
      ],
      "additionalProperties": false
    }
  },
  "typeName": "AWS::Backup::ReportPlan",
  "createOnlyProperties": [
    "/properties/ReportPlanName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "primaryIdentifier": [
    "/properties/ReportPlanArn"
  ],
  "additionalProperties": false,
  "$defs": {
    "Tag": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "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": "AWSBackupReportPlanTagDefinition",
      "additionalProperties": false
    }
  },
  "taggable": true,
  "required": [
    "ReportDeliveryChannel",
    "ReportSetting"
  ],
  "readOnlyProperties": [
    "/properties/ReportPlanArn"
  ]
}
