libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeDeploy.Types.Diagnostics

Description

 
Synopsis

Documentation

data Diagnostics Source #

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

See: newDiagnostics smart constructor.

Constructors

Diagnostics' 

Fields

  • logTail :: Maybe Text

    The last portion of the diagnostic log.

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

  • errorCode :: Maybe LifecycleErrorCode

    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.
  • scriptName :: Maybe Text

    The name of the script.

  • message :: Maybe Text

    The message associated with the error.

Instances

Instances details
Eq Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

Read Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

Show Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

Generic Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

Associated Types

type Rep Diagnostics :: Type -> Type #

NFData Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

Methods

rnf :: Diagnostics -> () #

Hashable Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

FromJSON Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

type Rep Diagnostics Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.Diagnostics

type Rep Diagnostics = D1 ('MetaData "Diagnostics" "Amazonka.CodeDeploy.Types.Diagnostics" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "Diagnostics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "logTail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LifecycleErrorCode))) :*: (S1 ('MetaSel ('Just "scriptName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDiagnostics :: Diagnostics Source #

Create a value of Diagnostics with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:logTail:Diagnostics', diagnostics_logTail - The last portion of the diagnostic log.

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

$sel:errorCode:Diagnostics', diagnostics_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.

$sel:scriptName:Diagnostics', diagnostics_scriptName - The name of the script.

$sel:message:Diagnostics', diagnostics_message - The message associated with the error.

diagnostics_logTail :: Lens' Diagnostics (Maybe Text) Source #

The last portion of the diagnostic log.

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

diagnostics_errorCode :: Lens' Diagnostics (Maybe LifecycleErrorCode) Source #

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.

diagnostics_message :: Lens' Diagnostics (Maybe Text) Source #

The message associated with the error.