{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ServerId"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AgreementId",
  "/properties/ServerId"
 ],
 "properties": {
  "AccessRole": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "arn:.*role/.*",
   "type": "string"
  },
  "AgreementId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^a-([0-9a-f]{17})$",
   "type": "string"
  },
  "Arn": {
   "maxLength": 1600,
   "minLength": 20,
   "pattern": "arn:.*",
   "type": "string"
  },
  "BaseDirectory": {
   "maxLength": 1024,
   "minLength": 0,
   "pattern": "^(|/.*)$",
   "type": "string"
  },
  "CustomDirectories": {
   "additionalProperties": false,
   "properties": {
    "FailedFilesDirectory": {
     "maxLength": 1024,
     "minLength": 0,
     "pattern": "(|/.*)",
     "type": "string"
    },
    "MdnFilesDirectory": {
     "maxLength": 1024,
     "minLength": 0,
     "pattern": "(|/.*)",
     "type": "string"
    },
    "PayloadFilesDirectory": {
     "maxLength": 1024,
     "minLength": 0,
     "pattern": "(|/.*)",
     "type": "string"
    },
    "StatusFilesDirectory": {
     "maxLength": 1024,
     "minLength": 0,
     "pattern": "(|/.*)",
     "type": "string"
    },
    "TemporaryFilesDirectory": {
     "maxLength": 1024,
     "minLength": 0,
     "pattern": "(|/.*)",
     "type": "string"
    }
   },
   "required": [
    "FailedFilesDirectory",
    "MdnFilesDirectory",
    "PayloadFilesDirectory",
    "StatusFilesDirectory",
    "TemporaryFilesDirectory"
   ],
   "type": "object"
  },
  "Description": {
   "maxLength": 200,
   "minLength": 1,
   "pattern": "^[\\u0021-\\u007E]+$",
   "type": "string"
  },
  "EnforceMessageSigning": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "LocalProfileId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^p-([0-9a-f]{17})$",
   "type": "string"
  },
  "PartnerProfileId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^p-([0-9a-f]{17})$",
   "type": "string"
  },
  "PreserveFilename": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "ServerId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^s-([0-9a-f]{17})$",
   "type": "string"
  },
  "Status": {
   "enum": [
    "ACTIVE",
    "INACTIVE"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/AgreementId",
  "/properties/Arn"
 ],
 "required": [
  "ServerId",
  "LocalProfileId",
  "PartnerProfileId",
  "AccessRole"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-transfer",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Transfer::Agreement"
}
