amazonka-ecs-2.0: Amazon EC2 Container Service 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.ECS.Types.ProtectedTask

Description

 
Synopsis

Documentation

data ProtectedTask Source #

An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection API.

See: newProtectedTask smart constructor.

Constructors

ProtectedTask' 

Fields

Instances

Instances details
FromJSON ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

Generic ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

Associated Types

type Rep ProtectedTask :: Type -> Type #

Read ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

Show ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

NFData ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

Methods

rnf :: ProtectedTask -> () #

Eq ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

Hashable ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

type Rep ProtectedTask Source # 
Instance details

Defined in Amazonka.ECS.Types.ProtectedTask

type Rep ProtectedTask = D1 ('MetaData "ProtectedTask" "Amazonka.ECS.Types.ProtectedTask" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "ProtectedTask'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expirationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "protectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "taskArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newProtectedTask :: ProtectedTask Source #

Create a value of ProtectedTask 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:expirationDate:ProtectedTask', protectedTask_expirationDate - The epoch time when protection for the task will expire.

$sel:protectionEnabled:ProtectedTask', protectedTask_protectionEnabled - The protection status of the task. If scale-in protection is enabled for a task, the value is true. Otherwise, it is false.

$sel:taskArn:ProtectedTask', protectedTask_taskArn - The task ARN.

protectedTask_expirationDate :: Lens' ProtectedTask (Maybe UTCTime) Source #

The epoch time when protection for the task will expire.

protectedTask_protectionEnabled :: Lens' ProtectedTask (Maybe Bool) Source #

The protection status of the task. If scale-in protection is enabled for a task, the value is true. Otherwise, it is false.