| 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 |
Amazonka.ECS.GetTaskProtection
Description
Retrieves the protection status of tasks in an Amazon ECS service.
Synopsis
- data GetTaskProtection = GetTaskProtection' {}
- newGetTaskProtection :: Text -> GetTaskProtection
- getTaskProtection_tasks :: Lens' GetTaskProtection (Maybe [Text])
- getTaskProtection_cluster :: Lens' GetTaskProtection Text
- data GetTaskProtectionResponse = GetTaskProtectionResponse' {
- failures :: Maybe [Failure]
- protectedTasks :: Maybe [ProtectedTask]
- httpStatus :: Int
- newGetTaskProtectionResponse :: Int -> GetTaskProtectionResponse
- getTaskProtectionResponse_failures :: Lens' GetTaskProtectionResponse (Maybe [Failure])
- getTaskProtectionResponse_protectedTasks :: Lens' GetTaskProtectionResponse (Maybe [ProtectedTask])
- getTaskProtectionResponse_httpStatus :: Lens' GetTaskProtectionResponse Int
Creating a Request
data GetTaskProtection Source #
See: newGetTaskProtection smart constructor.
Constructors
| GetTaskProtection' | |
Instances
Arguments
| :: Text | |
| -> GetTaskProtection |
Create a value of GetTaskProtection 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:tasks:GetTaskProtection', getTaskProtection_tasks - A list of up to 100 task IDs or full ARN entries.
$sel:cluster:GetTaskProtection', getTaskProtection_cluster - The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the service that the task sets exist in.
Request Lenses
getTaskProtection_tasks :: Lens' GetTaskProtection (Maybe [Text]) Source #
A list of up to 100 task IDs or full ARN entries.
getTaskProtection_cluster :: Lens' GetTaskProtection Text Source #
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist in.
Destructuring the Response
data GetTaskProtectionResponse Source #
See: newGetTaskProtectionResponse smart constructor.
Constructors
| GetTaskProtectionResponse' | |
Fields
| |
Instances
newGetTaskProtectionResponse Source #
Create a value of GetTaskProtectionResponse 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:failures:GetTaskProtectionResponse', getTaskProtectionResponse_failures - Any failures associated with the call.
$sel:protectedTasks:GetTaskProtectionResponse', getTaskProtectionResponse_protectedTasks - A list of tasks with the following information.
taskArn: The task ARN.protectionEnabled: The protection status of the task. If scale-in protection is enabled for a task, the value istrue. Otherwise, it isfalse.expirationDate: The epoch time when protection for the task will expire.
$sel:httpStatus:GetTaskProtectionResponse', getTaskProtectionResponse_httpStatus - The response's http status code.
Response Lenses
getTaskProtectionResponse_failures :: Lens' GetTaskProtectionResponse (Maybe [Failure]) Source #
Any failures associated with the call.
getTaskProtectionResponse_protectedTasks :: Lens' GetTaskProtectionResponse (Maybe [ProtectedTask]) Source #
A list of tasks with the following information.
taskArn: The task ARN.protectionEnabled: The protection status of the task. If scale-in protection is enabled for a task, the value istrue. Otherwise, it isfalse.expirationDate: The epoch time when protection for the task will expire.
getTaskProtectionResponse_httpStatus :: Lens' GetTaskProtectionResponse Int Source #
The response's http status code.