{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-transfer-workflow.json",
  "title": "AWSTransferWorkflowProperties",
  "description": "Resource Type definition for AWS::Transfer::Workflow. 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-workflow.json",
    "sourceSha256": "eb8a1b628673708aa1116c62e48ae909eef5e9ac945b86237dd6524bbf1d0386"
  },
  "type": "object",
  "properties": {
    "OnExceptionSteps": {
      "description": "Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.",
      "type": "array",
      "maxItems": 8,
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/WorkflowStep"
      }
    },
    "Steps": {
      "description": "Specifies the details for the steps that are in the specified workflow.",
      "type": "array",
      "maxItems": 8,
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/WorkflowStep"
      }
    },
    "Tags": {
      "description": "Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.",
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[\\w\\- ]*$",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A textual description for the workflow."
    }
  },
  "typeName": "AWS::Transfer::Workflow",
  "taggable": true,
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/WorkflowId"
  ],
  "required": [
    "Steps"
  ],
  "$defs": {
    "S3Tag": {
      "description": "Specifies the key-value pair that are assigned to a file during the execution of a Tagging step.",
      "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": "The value that corresponds to the key."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSTransferWorkflowS3TagDefinition",
      "additionalProperties": false
    },
    "EfsInputFileLocation": {
      "description": "Specifies the details for an EFS file.",
      "type": "object",
      "properties": {
        "FileSystemId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(arn:aws[-a-z]*:elasticfilesystem:[0-9a-z-:]+:(access-point/fsap|file-system/fs)-[0-9a-f]{8,40}|fs(ap)?-[0-9a-f]{8,40})$",
              "minLength": 0,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the EFS filesystem that contains the file."
        },
        "Path": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[^\\x00]+$",
              "minLength": 1,
              "maxLength": 65536
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name assigned to the file when it was created in EFS. You use the object path to retrieve the object."
        }
      },
      "title": "AWSTransferWorkflowEfsInputFileLocationDefinition",
      "additionalProperties": false
    },
    "S3InputFileLocation": {
      "description": "Specifies the details for a S3 file.",
      "type": "object",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$",
              "minLength": 3,
              "maxLength": 63
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the S3 bucket that contains the file."
        },
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*",
              "minLength": 0,
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name assigned to the file when it was created in S3. You use the object key to retrieve the object."
        }
      },
      "title": "AWSTransferWorkflowS3InputFileLocationDefinition",
      "additionalProperties": false
    },
    "InputFileLocation": {
      "description": "Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps.",
      "type": "object",
      "properties": {
        "S3FileLocation": {
          "$ref": "#/$defs/S3InputFileLocation"
        },
        "EfsFileLocation": {
          "$ref": "#/$defs/EfsInputFileLocation"
        }
      },
      "title": "AWSTransferWorkflowInputFileLocationDefinition",
      "additionalProperties": false
    },
    "S3FileLocation": {
      "description": "Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.",
      "type": "object",
      "properties": {
        "S3FileLocation": {
          "$ref": "#/$defs/S3InputFileLocation"
        }
      },
      "title": "AWSTransferWorkflowS3FileLocationDefinition",
      "additionalProperties": false
    },
    "WorkflowStep": {
      "description": "The basic building block of a workflow.",
      "type": "object",
      "properties": {
        "CopyStepDetails": {
          "description": "Details for a step that performs a file copy.",
          "type": "object",
          "properties": {
            "DestinationFileLocation": {
              "$ref": "#/$defs/S3FileLocation"
            },
            "Name": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[\\w-]*$",
                  "minLength": 0,
                  "maxLength": 30
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The name of the step, used as an identifier."
            },
            "OverwriteExisting": {
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "TRUE",
                    "FALSE"
                  ]
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE."
            },
            "SourceFileLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^\\$\\{(\\w+.)+\\w+\\}$",
                  "minLength": 0,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which file to use as input to the workflow step."
            }
          },
          "additionalProperties": false
        },
        "CustomStepDetails": {
          "description": "Details for a step that invokes a lambda function.",
          "type": "object",
          "properties": {
            "Name": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[\\w-]*$",
                  "minLength": 0,
                  "maxLength": 30
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The name of the step, used as an identifier."
            },
            "Target": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "arn:[a-z-]+:lambda:.*$",
                  "minLength": 0,
                  "maxLength": 170
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The ARN for the lambda function that is being called."
            },
            "TimeoutSeconds": {
              "description": "Timeout, in seconds, for the step.",
              "type": "integer",
              "minimum": 1,
              "maximum": 1800
            },
            "SourceFileLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^\\$\\{(\\w+.)+\\w+\\}$",
                  "minLength": 0,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which file to use as input to the workflow step."
            }
          },
          "additionalProperties": false
        },
        "DecryptStepDetails": {
          "description": "Details for a step that performs a file decryption.",
          "type": "object",
          "properties": {
            "DestinationFileLocation": {
              "$ref": "#/$defs/InputFileLocation"
            },
            "Name": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[\\w-]*$",
                  "minLength": 0,
                  "maxLength": 30
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The name of the step, used as an identifier."
            },
            "Type": {
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "PGP"
                  ]
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which encryption method to use."
            },
            "OverwriteExisting": {
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "TRUE",
                    "FALSE"
                  ]
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE."
            },
            "SourceFileLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^\\$\\{(\\w+.)+\\w+\\}$",
                  "minLength": 0,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which file to use as input to the workflow step."
            }
          },
          "additionalProperties": false
        },
        "DeleteStepDetails": {
          "description": "Details for a step that deletes the file.",
          "type": "object",
          "properties": {
            "Name": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[\\w-]*$",
                  "minLength": 0,
                  "maxLength": 30
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The name of the step, used as an identifier."
            },
            "SourceFileLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^\\$\\{(\\w+.)+\\w+\\}$",
                  "minLength": 0,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which file to use as input to the workflow step."
            }
          },
          "additionalProperties": false
        },
        "TagStepDetails": {
          "description": "Details for a step that creates one or more tags.",
          "type": "object",
          "properties": {
            "Name": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[\\w-]*$",
                  "minLength": 0,
                  "maxLength": 30
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The name of the step, used as an identifier."
            },
            "Tags": {
              "description": "Array that contains from 1 to 10 key/value pairs.",
              "type": "array",
              "maxItems": 10,
              "uniqueItems": true,
              "insertionOrder": false,
              "items": {
                "$ref": "#/$defs/S3Tag"
              }
            },
            "SourceFileLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^\\$\\{(\\w+.)+\\w+\\}$",
                  "minLength": 0,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "Specifies which file to use as input to the workflow step."
            }
          },
          "additionalProperties": false
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "COPY",
                "CUSTOM",
                "DECRYPT",
                "DELETE",
                "TAG"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSTransferWorkflowWorkflowStepDefinition",
      "additionalProperties": false
    },
    "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": "AWSTransferWorkflowTagDefinition",
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/WorkflowId",
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/Steps",
    "/properties/OnExceptionSteps",
    "/properties/Description"
  ]
}
