Amazon CodeDeploy · JSON Structure

Amazon Codedeploy Diagnostics Structure

Diagnostic information about executable scripts that are part of a deployment.

Type: object Properties: 4
AmazonDeploymentDevOpsCI/CDRelease ManagementBlue/Green Deployment

Diagnostics is a JSON Structure definition published by Amazon CodeDeploy, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

errorCode scriptName message logTail

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codedeploy/refs/heads/main/json-structure/amazon-codedeploy-diagnostics-structure.json",
  "name": "Diagnostics",
  "description": "Diagnostic information about executable scripts that are part of a deployment.",
  "type": "object",
  "properties": {
    "errorCode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LifecycleErrorCode"
        },
        {
          "description": "<p>The associated error code:</p> <ul> <li> <p>Success: The specified script ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The specified script did not finish running in the specified time period.</p> </li> <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li> <li> <p>UnknownError: The specified script did not run for an unknown reason.</p> </li> </ul>"
        }
      ]
    },
    "scriptName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ScriptName"
        },
        {
          "description": "The name of the script."
        }
      ]
    },
    "message": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LifecycleMessage"
        },
        {
          "description": "The message associated with the error."
        }
      ]
    },
    "logTail": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LogTail"
        },
        {
          "description": "<p>The last portion of the diagnostic log.</p> <p>If available, CodeDeploy returns up to the last 4 KB of the diagnostic log.</p>"
        }
      ]
    }
  }
}