Interface Diagnostics.Builder

    • Method Detail

      • errorCode

        Diagnostics.Builder errorCode​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LifecycleErrorCode, LifecycleErrorCode
      • errorCode

        Diagnostics.Builder errorCode​(LifecycleErrorCode 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LifecycleErrorCode, LifecycleErrorCode
      • scriptName

        Diagnostics.Builder scriptName​(String scriptName)

        The name of the script.

        Parameters:
        scriptName - The name of the script.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • message

        Diagnostics.Builder message​(String message)

        The message associated with the error.

        Parameters:
        message - The message associated with the error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • logTail

        Diagnostics.Builder logTail​(String logTail)

        The last portion of the diagnostic log.

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

        Parameters:
        logTail - The last portion of the diagnostic log.

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

        Returns:
        Returns a reference to this object so that method calls can be chained together.