{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-transfer-agreement.json",
  "title": "AWSTransferAgreementProperties",
  "description": "Resource Type definition for AWS::Transfer::Agreement. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-transfer-agreement.json",
    "sourceSha256": "4cf57c19bad53ad83a6af32c9b7a808c2bbef1b4d74c7be84e0513ee46d8df26"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[\\w\\- ]*$",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A textual description for the agreement."
    },
    "ServerId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^s-([0-9a-f]{17})$",
          "minLength": 19,
          "maxLength": 19
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A unique identifier for the server."
    },
    "LocalProfileId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^p-([0-9a-f]{17})$",
          "minLength": 19,
          "maxLength": 19
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A unique identifier for the local profile."
    },
    "PartnerProfileId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^p-([0-9a-f]{17})$",
          "minLength": 19,
          "maxLength": 19
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A unique identifier for the partner profile."
    },
    "BaseDirectory": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^$|/.*",
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Specifies the base directory for the agreement."
    },
    "AccessRole": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:.*role/.*",
          "minLength": 20,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Specifies the access role for the agreement."
    },
    "Status": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Specifies the status of the agreement."
    },
    "Tags": {
      "description": "Key-value pairs that can be used to group and search for agreements. Tags are metadata attached to agreements for any purpose.",
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Transfer::Agreement",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/AgreementId",
    "/properties/ServerId"
  ],
  "$defs": {
    "Tag": {
      "description": "Creates a key-value pair for a specific resource.",
      "type": "object",
      "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 name assigned to the tag that you create."
        },
        "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": "Contains one or more values that you assigned to the key name you create."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSTransferAgreementTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "ServerId",
    "LocalProfileId",
    "PartnerProfileId",
    "BaseDirectory",
    "AccessRole"
  ],
  "readOnlyProperties": [
    "/properties/AgreementId",
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/ServerId"
  ]
}
