{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-update-agreement-request-schema.json",
  "title": "UpdateAgreementRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-updateagreement-api-openapi.yml#/components/schemas/UpdateAgreementRequest",
  "type": "object",
  "properties": {
    "AgreementId": {
      "type": "string",
      "description": "A unique identifier for the agreement. This identifier is returned when you create an agreement."
    },
    "ServerId": {
      "type": "string",
      "description": "A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses."
    },
    "Description": {
      "type": "string",
      "description": "To replace the existing description, provide a short description for the agreement."
    },
    "Status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ],
      "description": "You can update the status for the agreement, either activating an inactive agreement or the reverse."
    },
    "LocalProfileId": {
      "type": "string",
      "description": "A unique identifier for the AS2 local profile. To change the local profile identifier, provide a new value here."
    },
    "PartnerProfileId": {
      "type": "string",
      "description": "A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here."
    },
    "BaseDirectory": {
      "type": "string",
      "description": "To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example, /amzn-s3-demo-bucket/home/mydirectory ."
    },
    "AccessRole": {
      "type": "string",
      "description": "Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use. For AS2 connectors With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containin"
    },
    "PreserveFilename": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it. ENABLED: the filename provided by your trading parter is preserved when the file is saved. DISABLED (default value): when Transfer Family saves the file, the filename is adjusted, as described in File names and locations."
    },
    "EnforceMessageSigning": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Determines whether or not unsigned messages from your trading partners will be accepted. ENABLED: Transfer Family rejects unsigned messages from your trading partner. DISABLED (default value): Transfer Family accepts unsigned messages from your trading partner."
    },
    "CustomDirectories": {
      "$ref": "#/$defs/CustomDirectoriesType"
    }
  },
  "required": [
    "AgreementId",
    "ServerId"
  ],
  "$defs": {
    "CustomDirectoriesType": {
      "type": "object",
      "properties": {
        "FailedFilesDirectory": {
          "type": "string",
          "description": "Specifies a location to store failed AS2 message files."
        },
        "MdnFilesDirectory": {
          "type": "string",
          "description": "Specifies a location to store MDN files."
        },
        "PayloadFilesDirectory": {
          "type": "string",
          "description": "Specifies a location to store the payload for AS2 message files."
        },
        "StatusFilesDirectory": {
          "type": "string",
          "description": "Specifies a location to store AS2 status messages."
        },
        "TemporaryFilesDirectory": {
          "type": "string",
          "description": "Specifies a location to store temporary AS2 message files."
        }
      },
      "required": [
        "FailedFilesDirectory",
        "MdnFilesDirectory",
        "PayloadFilesDirectory",
        "StatusFilesDirectory",
        "TemporaryFilesDirectory"
      ]
    }
  }
}