libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.Types.Operation

Description

 
Synopsis

Documentation

data Operation Source #

Describes the API operation.

See: newOperation smart constructor.

Constructors

Operation' 

Fields

Instances

Instances details
Eq Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

Read Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

Show Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

Generic Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

Associated Types

type Rep Operation :: Type -> Type #

NFData Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

Methods

rnf :: Operation -> () #

Hashable Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

FromJSON Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

type Rep Operation Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Operation

type Rep Operation = D1 ('MetaData "Operation" "Amazonka.Lightsail.Types.Operation" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "Operation'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OperationStatus)) :*: (S1 ('MetaSel ('Just "operationDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType)))) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceLocation))))) :*: ((S1 ('MetaSel ('Just "statusChangedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "errorDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "operationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OperationType)) :*: S1 ('MetaSel ('Just "isTerminal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))))

newOperation :: Operation Source #

Create a value of Operation 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:status:Operation', operation_status - The status of the operation.

$sel:operationDetails:Operation', operation_operationDetails - Details about the operation (e.g., Debian-1GB-Ohio-1).

$sel:resourceType:Operation', operation_resourceType - The resource type.

$sel:createdAt:Operation', operation_createdAt - The timestamp when the operation was initialized (e.g., 1479816991.349).

$sel:resourceName:Operation', operation_resourceName - The resource name.

$sel:location:Operation', operation_location - The AWS Region and Availability Zone.

$sel:statusChangedAt:Operation', operation_statusChangedAt - The timestamp when the status was changed (e.g., 1479816991.349).

$sel:errorDetails:Operation', operation_errorDetails - The error details.

$sel:errorCode:Operation', operation_errorCode - The error code.

$sel:id:Operation', operation_id - The ID of the operation.

$sel:operationType:Operation', operation_operationType - The type of operation.

$sel:isTerminal:Operation', operation_isTerminal - A Boolean value indicating whether the operation is terminal.

operation_status :: Lens' Operation (Maybe OperationStatus) Source #

The status of the operation.

operation_operationDetails :: Lens' Operation (Maybe Text) Source #

Details about the operation (e.g., Debian-1GB-Ohio-1).

operation_createdAt :: Lens' Operation (Maybe UTCTime) Source #

The timestamp when the operation was initialized (e.g., 1479816991.349).

operation_location :: Lens' Operation (Maybe ResourceLocation) Source #

The AWS Region and Availability Zone.

operation_statusChangedAt :: Lens' Operation (Maybe UTCTime) Source #

The timestamp when the status was changed (e.g., 1479816991.349).

operation_id :: Lens' Operation (Maybe Text) Source #

The ID of the operation.

operation_isTerminal :: Lens' Operation (Maybe Bool) Source #

A Boolean value indicating whether the operation is terminal.