{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-trusted-advisor/json-schema/amazon-trusted-advisor-add-attachments-to-set-request-schema.json",
  "title": "AddAttachmentsToSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-trusted-advisor-addattachmentstoset-api-openapi.yml#/components/schemas/AddAttachmentsToSetRequest",
  "type": "object",
  "properties": {
    "attachmentSetId": {
      "type": "string",
      "description": "The ID of the attachment set. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists."
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attachment"
      },
      "description": "One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment. In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png."
    },
    "dryRun": {
      "type": "boolean",
      "description": "Specifies whether to validate the request without actually adding the attachments. When set to true, the request is validated but no attachments are stored, and the operation returns a DryRunOperationException. When omitted or set to false, the request runs normally."
    }
  },
  "required": [
    "attachments"
  ],
  "$defs": {
    "Attachment": {
      "type": "object",
      "properties": {
        "fileName": {
          "type": "string",
          "description": "The name of the attachment file."
        },
        "data": {
          "type": "string",
          "format": "byte",
          "description": "The content of the attachment file."
        }
      }
    }
  }
}