| 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.SubmitTaskStateChange
Description
This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a task changed states.
Synopsis
- data SubmitTaskStateChange = SubmitTaskStateChange' {
- attachments :: Maybe [AttachmentStateChange]
- cluster :: Maybe Text
- containers :: Maybe [ContainerStateChange]
- executionStoppedAt :: Maybe POSIX
- managedAgents :: Maybe [ManagedAgentStateChange]
- pullStartedAt :: Maybe POSIX
- pullStoppedAt :: Maybe POSIX
- reason :: Maybe Text
- status :: Maybe Text
- task :: Maybe Text
- newSubmitTaskStateChange :: SubmitTaskStateChange
- submitTaskStateChange_attachments :: Lens' SubmitTaskStateChange (Maybe [AttachmentStateChange])
- submitTaskStateChange_cluster :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_containers :: Lens' SubmitTaskStateChange (Maybe [ContainerStateChange])
- submitTaskStateChange_executionStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- submitTaskStateChange_managedAgents :: Lens' SubmitTaskStateChange (Maybe [ManagedAgentStateChange])
- submitTaskStateChange_pullStartedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- submitTaskStateChange_pullStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- submitTaskStateChange_reason :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_status :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_task :: Lens' SubmitTaskStateChange (Maybe Text)
- data SubmitTaskStateChangeResponse = SubmitTaskStateChangeResponse' {
- acknowledgment :: Maybe Text
- httpStatus :: Int
- newSubmitTaskStateChangeResponse :: Int -> SubmitTaskStateChangeResponse
- submitTaskStateChangeResponse_acknowledgment :: Lens' SubmitTaskStateChangeResponse (Maybe Text)
- submitTaskStateChangeResponse_httpStatus :: Lens' SubmitTaskStateChangeResponse Int
Creating a Request
data SubmitTaskStateChange Source #
See: newSubmitTaskStateChange smart constructor.
Constructors
| SubmitTaskStateChange' | |
Fields
| |
Instances
newSubmitTaskStateChange :: SubmitTaskStateChange Source #
Create a value of SubmitTaskStateChange 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:
SubmitTaskStateChange, submitTaskStateChange_attachments - Any attachments associated with the state change request.
$sel:cluster:SubmitTaskStateChange', submitTaskStateChange_cluster - The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task.
SubmitTaskStateChange, submitTaskStateChange_containers - Any containers that's associated with the state change request.
SubmitTaskStateChange, submitTaskStateChange_executionStoppedAt - The Unix timestamp for the time when the task execution stopped.
SubmitTaskStateChange, submitTaskStateChange_managedAgents - The details for the managed agent that's associated with the task.
SubmitTaskStateChange, submitTaskStateChange_pullStartedAt - The Unix timestamp for the time when the container image pull started.
SubmitTaskStateChange, submitTaskStateChange_pullStoppedAt - The Unix timestamp for the time when the container image pull completed.
SubmitTaskStateChange, submitTaskStateChange_reason - The reason for the state change request.
SubmitTaskStateChange, submitTaskStateChange_status - The status of the state change request.
$sel:task:SubmitTaskStateChange', submitTaskStateChange_task - The task ID or full ARN of the task in the state change request.
Request Lenses
submitTaskStateChange_attachments :: Lens' SubmitTaskStateChange (Maybe [AttachmentStateChange]) Source #
Any attachments associated with the state change request.
submitTaskStateChange_cluster :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
submitTaskStateChange_containers :: Lens' SubmitTaskStateChange (Maybe [ContainerStateChange]) Source #
Any containers that's associated with the state change request.
submitTaskStateChange_executionStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for the time when the task execution stopped.
submitTaskStateChange_managedAgents :: Lens' SubmitTaskStateChange (Maybe [ManagedAgentStateChange]) Source #
The details for the managed agent that's associated with the task.
submitTaskStateChange_pullStartedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for the time when the container image pull started.
submitTaskStateChange_pullStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for the time when the container image pull completed.
submitTaskStateChange_reason :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The reason for the state change request.
submitTaskStateChange_status :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The status of the state change request.
submitTaskStateChange_task :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The task ID or full ARN of the task in the state change request.
Destructuring the Response
data SubmitTaskStateChangeResponse Source #
See: newSubmitTaskStateChangeResponse smart constructor.
Constructors
| SubmitTaskStateChangeResponse' | |
Fields
| |
Instances
newSubmitTaskStateChangeResponse Source #
Create a value of SubmitTaskStateChangeResponse 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:acknowledgment:SubmitTaskStateChangeResponse', submitTaskStateChangeResponse_acknowledgment - Acknowledgement of the state change.
$sel:httpStatus:SubmitTaskStateChangeResponse', submitTaskStateChangeResponse_httpStatus - The response's http status code.
Response Lenses
submitTaskStateChangeResponse_acknowledgment :: Lens' SubmitTaskStateChangeResponse (Maybe Text) Source #
Acknowledgement of the state change.
submitTaskStateChangeResponse_httpStatus :: Lens' SubmitTaskStateChangeResponse Int Source #
The response's http status code.