{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-describe-workflow-response-schema.json",
  "title": "DescribeWorkflowResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-describeworkflow-api-openapi.yml#/components/schemas/DescribeWorkflowResponse",
  "type": "object",
  "properties": {
    "Workflow": {
      "$ref": "#/$defs/DescribedWorkflow"
    }
  },
  "required": [
    "Workflow"
  ],
  "$defs": {
    "CopyStepDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the step, used as an identifier."
        },
        "DestinationFileLocation": {
          "$ref": "#/$defs/InputFileLocation"
        },
        "OverwriteExisting": {
          "type": "string",
          "enum": [
            "TRUE",
            "FALSE"
          ],
          "description": "A flag that indicates whether to overwrite an existing file of the same name. The default is FALSE. If the workflow is processing a file that has the same name as an existing file, the behavior is as follows: If OverwriteExisting is TRUE, the existing file is replaced with the file being processed. If OverwriteExisting is FALSE, nothing happens, and the workflow processing stops."
        },
        "SourceFileLocation": {
          "type": "string",
          "description": "Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. To use the previous file as the input, enter ${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. To use the originally uploaded file location as input for this step, enter ${original.file}."
        }
      }
    },
    "CustomStepDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the step, used as an identifier."
        },
        "Target": {
          "type": "string",
          "description": "The ARN for the Lambda function that is being called."
        },
        "TimeoutSeconds": {
          "type": "integer",
          "description": "Timeout, in seconds, for the step."
        },
        "SourceFileLocation": {
          "type": "string",
          "description": "Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. To use the previous file as the input, enter ${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. To use the originally uploaded file location as input for this step, enter ${original.file}."
        }
      }
    },
    "DecryptStepDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the step, used as an identifier."
        },
        "Type": {
          "type": "string",
          "enum": [
            "PGP"
          ],
          "description": "The type of encryption used. Currently, this value must be PGP."
        },
        "SourceFileLocation": {
          "type": "string",
          "description": "Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. To use the previous file as the input, enter ${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. To use the originally uploaded file location as input for this step, enter ${original.file}."
        },
        "OverwriteExisting": {
          "type": "string",
          "enum": [
            "TRUE",
            "FALSE"
          ],
          "description": "A flag that indicates whether to overwrite an existing file of the same name. The default is FALSE. If the workflow is processing a file that has the same name as an existing file, the behavior is as follows: If OverwriteExisting is TRUE, the existing file is replaced with the file being processed. If OverwriteExisting is FALSE, nothing happens, and the workflow processing stops."
        },
        "DestinationFileLocation": {
          "$ref": "#/$defs/InputFileLocation"
        }
      },
      "required": [
        "Type",
        "DestinationFileLocation"
      ]
    },
    "DeleteStepDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the step, used as an identifier."
        },
        "SourceFileLocation": {
          "type": "string",
          "description": "Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. To use the previous file as the input, enter ${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. To use the originally uploaded file location as input for this step, enter ${original.file}."
        }
      }
    },
    "DescribedWorkflow": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "Specifies the unique Amazon Resource Name (ARN) for the workflow."
        },
        "Description": {
          "type": "string",
          "description": "Specifies the text description for the workflow."
        },
        "Steps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkflowStep"
          },
          "description": "Specifies the details for the steps that are in the specified workflow."
        },
        "OnExceptionSteps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkflowStep"
          },
          "description": "Specifies the steps (actions) to take if errors are encountered during execution of the workflow."
        },
        "WorkflowId": {
          "type": "string",
          "description": "A unique identifier for the workflow."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose."
        },
        "StructuredLogDestinations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies the log groups to which your workflow logs are sent. To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows: arn:partition:logs:region-name:amazon-account-id:log-group:log-group-name:* For example, arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*"
        }
      },
      "required": [
        "Arn"
      ]
    },
    "EfsFileLocation": {
      "type": "object",
      "properties": {
        "FileSystemId": {
          "type": "string",
          "description": "The identifier of the file system, assigned by Amazon EFS."
        },
        "Path": {
          "type": "string",
          "description": "The pathname for the folder being used by a workflow."
        }
      }
    },
    "InputFileLocation": {
      "type": "object",
      "properties": {
        "S3FileLocation": {
          "$ref": "#/$defs/S3InputFileLocation"
        },
        "EfsFileLocation": {
          "$ref": "#/$defs/EfsFileLocation"
        }
      }
    },
    "S3InputFileLocation": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Specifies the S3 bucket for the customer input file."
        },
        "Key": {
          "type": "string",
          "description": "The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object."
        }
      }
    },
    "S3Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name assigned to the tag that you create."
        },
        "Value": {
          "type": "string",
          "description": "The value that corresponds to the key."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name assigned to the tag that you create."
        },
        "Value": {
          "type": "string",
          "description": "Contains one or more values that you assigned to the key name you create."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "TagStepDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the step, used as an identifier."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/S3Tag"
          },
          "description": "Array that contains from 1 to 10 key/value pairs."
        },
        "SourceFileLocation": {
          "type": "string",
          "description": "Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. To use the previous file as the input, enter ${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. To use the originally uploaded file location as input for this step, enter ${original.file}."
        }
      }
    },
    "WorkflowStep": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "COPY",
            "CUSTOM",
            "TAG",
            "DELETE",
            "DECRYPT"
          ],
          "description": "Currently, the following step types are supported. COPY - Copy the file to another location. CUSTOM - Perform a custom step with an Lambda function target. DECRYPT - Decrypt a file that was encrypted before it was uploaded. DELETE - Delete the file. TAG - Add a tag to the file."
        },
        "CopyStepDetails": {
          "$ref": "#/$defs/CopyStepDetails"
        },
        "CustomStepDetails": {
          "$ref": "#/$defs/CustomStepDetails"
        },
        "DeleteStepDetails": {
          "$ref": "#/$defs/DeleteStepDetails"
        },
        "TagStepDetails": {
          "$ref": "#/$defs/TagStepDetails"
        },
        "DecryptStepDetails": {
          "$ref": "#/$defs/DecryptStepDetails"
        }
      }
    }
  }
}