amazonka-controltower-2.0: Amazon Control Tower 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.ControlTower.Types.ControlOperation

Description

 
Synopsis

Documentation

data ControlOperation Source #

An operation performed by the control.

See: newControlOperation smart constructor.

Constructors

ControlOperation' 

Fields

Instances

Instances details
FromJSON ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

Generic ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

Associated Types

type Rep ControlOperation :: Type -> Type #

Read ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

Show ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

NFData ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

Methods

rnf :: ControlOperation -> () #

Eq ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

Hashable ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

type Rep ControlOperation Source # 
Instance details

Defined in Amazonka.ControlTower.Types.ControlOperation

type Rep ControlOperation = D1 ('MetaData "ControlOperation" "Amazonka.ControlTower.Types.ControlOperation" "amazonka-controltower-2.0-D5OXoInTRe9EXmxA0ATl1r" 'False) (C1 ('MetaCons "ControlOperation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "operationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ControlOperationType))) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ControlOperationStatus)) :*: S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newControlOperation :: ControlOperation Source #

Create a value of ControlOperation 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:endTime:ControlOperation', controlOperation_endTime - The time that the operation finished.

$sel:operationType:ControlOperation', controlOperation_operationType - One of ENABLE_CONTROL or DISABLE_CONTROL.

$sel:startTime:ControlOperation', controlOperation_startTime - The time that the operation began.

$sel:status:ControlOperation', controlOperation_status - One of IN_PROGRESS, SUCEEDED, or FAILED.

$sel:statusMessage:ControlOperation', controlOperation_statusMessage - If the operation result is FAILED, this string contains a message explaining why the operation failed.

controlOperation_endTime :: Lens' ControlOperation (Maybe UTCTime) Source #

The time that the operation finished.

controlOperation_startTime :: Lens' ControlOperation (Maybe UTCTime) Source #

The time that the operation began.

controlOperation_statusMessage :: Lens' ControlOperation (Maybe Text) Source #

If the operation result is FAILED, this string contains a message explaining why the operation failed.