{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-create-report-plan-input-schema.json",
  "title": "CreateReportPlanInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-report-plans-api-openapi.yml#/components/schemas/CreateReportPlanInput",
  "type": "object",
  "properties": {
    "ReportPlanName": {
      "type": "string",
      "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": {
      "type": "string",
      "description": "An optional description of the report plan with a maximum of 1,024 characters."
    },
    "ReportDeliveryChannel": {
      "$ref": "#/$defs/ReportDeliveryChannel"
    },
    "ReportSetting": {
      "$ref": "#/$defs/ReportSetting"
    },
    "ReportPlanTags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to assign to the report plan."
    },
    "IdempotencyToken": {
      "type": "string",
      "description": "A customer-chosen string that you can use to distinguish between otherwise identical calls to CreateReportPlanInput. Retrying a successful request with the same idempotency token results in a success message with no action taken."
    }
  },
  "required": [
    "ReportPlanName",
    "ReportDeliveryChannel",
    "ReportSetting"
  ],
  "$defs": {
    "ReportDeliveryChannel": {
      "type": "object",
      "properties": {
        "S3BucketName": {
          "type": "string",
          "description": "The unique name of the S3 bucket that receives your reports."
        },
        "S3KeyPrefix": {
          "type": "string",
          "description": "The prefix for where 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."
        },
        "Formats": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The format of your reports: CSV, JSON, or both. If not specified, the default format is CSV."
        }
      },
      "required": [
        "S3BucketName"
      ]
    },
    "ReportSetting": {
      "type": "object",
      "properties": {
        "ReportTemplate": {
          "type": "string",
          "description": "Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT | SCAN_JOB_REPORT"
        },
        "FrameworkArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Names (ARNs) of the frameworks a report covers."
        },
        "NumberOfFrameworks": {
          "type": "integer",
          "description": "The number of frameworks a report covers."
        },
        "Accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "These are the accounts to be included in the report. Use string value of ROOT to include all organizational units."
        },
        "OrganizationUnits": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "These are the Organizational Units to be included in the report."
        },
        "Regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "These are the Regions to be included in the report. Use the wildcard as the string value to include all Regions."
        }
      },
      "required": [
        "ReportTemplate"
      ]
    }
  }
}