/AWS1/CL_ECSPROTECTEDTASK¶
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.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
IV_TASKARN
TYPE /AWS1/ECSSTRING
/AWS1/ECSSTRING
¶
The task ARN.
IV_PROTECTIONENABLED
TYPE /AWS1/ECSBOOLEAN
/AWS1/ECSBOOLEAN
¶
The protection status of the task. If scale-in protection is on for a task, the value is
true
. Otherwise, it isfalse
.
IV_EXPIRATIONDATE
TYPE /AWS1/ECSTIMESTAMP
/AWS1/ECSTIMESTAMP
¶
The epoch time when protection for the task will expire.
Queryable Attributes¶
taskArn¶
The task ARN.
Accessible with the following methods¶
Method | Description |
---|---|
GET_TASKARN() |
Getter for TASKARN, with configurable default |
ASK_TASKARN() |
Getter for TASKARN w/ exceptions if field has no value |
HAS_TASKARN() |
Determine if TASKARN has a value |
protectionEnabled¶
The protection status of the task. If scale-in protection is on for a task, the value is
true
. Otherwise, it isfalse
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_PROTECTIONENABLED() |
Getter for PROTECTIONENABLED |
expirationDate¶
The epoch time when protection for the task will expire.
Accessible with the following methods¶
Method | Description |
---|---|
GET_EXPIRATIONDATE() |
Getter for EXPIRATIONDATE, with configurable default |
ASK_EXPIRATIONDATE() |
Getter for EXPIRATIONDATE w/ exceptions if field has no valu |
HAS_EXPIRATIONDATE() |
Determine if EXPIRATIONDATE has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_PROTECTEDTASKS
¶
TYPES TT_PROTECTEDTASKS TYPE STANDARD TABLE OF REF TO /AWS1/CL_ECSPROTECTEDTASK WITH DEFAULT KEY
.