Skip to content

/AWS1/CL_DPLDIAGNOSTICS

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

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_errorcode TYPE /AWS1/DPLLIFECYCLEERRORCODE /AWS1/DPLLIFECYCLEERRORCODE

The associated error code:

  • Success: The specified script ran.

  • ScriptMissing: The specified script was not found in the specified location.

  • ScriptNotExecutable: The specified script is not a recognized executable file type.

  • ScriptTimedOut: The specified script did not finish running in the specified time period.

  • ScriptFailed: The specified script failed to run as expected.

  • UnknownError: The specified script did not run for an unknown reason.

iv_scriptname TYPE /AWS1/DPLSCRIPTNAME /AWS1/DPLSCRIPTNAME

The name of the script.

iv_message TYPE /AWS1/DPLLIFECYCLEMESSAGE /AWS1/DPLLIFECYCLEMESSAGE

The message associated with the error.

iv_logtail TYPE /AWS1/DPLLOGTAIL /AWS1/DPLLOGTAIL

The last portion of the diagnostic log.

If available, CodeDeploy returns up to the last 4 KB of the diagnostic log.


Queryable Attributes

errorCode

The associated error code:

  • Success: The specified script ran.

  • ScriptMissing: The specified script was not found in the specified location.

  • ScriptNotExecutable: The specified script is not a recognized executable file type.

  • ScriptTimedOut: The specified script did not finish running in the specified time period.

  • ScriptFailed: The specified script failed to run as expected.

  • UnknownError: The specified script did not run for an unknown reason.

Accessible with the following methods

Method Description
GET_ERRORCODE() Getter for ERRORCODE, with configurable default
ASK_ERRORCODE() Getter for ERRORCODE w/ exceptions if field has no value
HAS_ERRORCODE() Determine if ERRORCODE has a value

scriptName

The name of the script.

Accessible with the following methods

Method Description
GET_SCRIPTNAME() Getter for SCRIPTNAME, with configurable default
ASK_SCRIPTNAME() Getter for SCRIPTNAME w/ exceptions if field has no value
HAS_SCRIPTNAME() Determine if SCRIPTNAME has a value

message

The message associated with the error.

Accessible with the following methods

Method Description
GET_MESSAGE() Getter for MESSAGE, with configurable default
ASK_MESSAGE() Getter for MESSAGE w/ exceptions if field has no value
HAS_MESSAGE() Determine if MESSAGE has a value

logTail

The last portion of the diagnostic log.

If available, CodeDeploy returns up to the last 4 KB of the diagnostic log.

Accessible with the following methods

Method Description
GET_LOGTAIL() Getter for LOGTAIL, with configurable default
ASK_LOGTAIL() Getter for LOGTAIL w/ exceptions if field has no value
HAS_LOGTAIL() Determine if LOGTAIL has a value