Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
ProtectedTask' | |
|
Instances
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
.
protectedTask_taskArn :: Lens' ProtectedTask (Maybe Text) Source #
The task ARN.