amazonka-inspector2-2.0: Amazon Inspector2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Inspector2.Types.State

Description

 
Synopsis

Documentation

data State Source #

An object that described the state of Amazon Inspector scans for an account.

See: newState smart constructor.

Constructors

State' 

Fields

  • errorCode :: ErrorCode

    The error code explaining why the account failed to enable Amazon Inspector.

  • errorMessage :: Text

    The error message received when the account failed to enable Amazon Inspector.

  • status :: Status

    The status of Amazon Inspector for the account.

Instances

Instances details
FromJSON State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Generic State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Associated Types

type Rep State :: Type -> Type #

Methods

from :: State -> Rep State x #

to :: Rep State x -> State #

Read State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Show State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

NFData State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Methods

rnf :: State -> () #

Eq State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

Hashable State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

Methods

hashWithSalt :: Int -> State -> Int #

hash :: State -> Int #

type Rep State Source # 
Instance details

Defined in Amazonka.Inspector2.Types.State

type Rep State = D1 ('MetaData "State" "Amazonka.Inspector2.Types.State" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "State'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ErrorCode) :*: (S1 ('MetaSel ('Just "errorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status))))

newState Source #

Create a value of State 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:errorCode:State', state_errorCode - The error code explaining why the account failed to enable Amazon Inspector.

$sel:errorMessage:State', state_errorMessage - The error message received when the account failed to enable Amazon Inspector.

$sel:status:State', state_status - The status of Amazon Inspector for the account.

state_errorCode :: Lens' State ErrorCode Source #

The error code explaining why the account failed to enable Amazon Inspector.

state_errorMessage :: Lens' State Text Source #

The error message received when the account failed to enable Amazon Inspector.

state_status :: Lens' State Status Source #

The status of Amazon Inspector for the account.