Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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' {
- status :: Maybe Text
- managedAgents :: Maybe [ManagedAgentStateChange]
- cluster :: Maybe Text
- attachments :: Maybe [AttachmentStateChange]
- executionStoppedAt :: Maybe POSIX
- pullStoppedAt :: Maybe POSIX
- containers :: Maybe [ContainerStateChange]
- reason :: Maybe Text
- task :: Maybe Text
- pullStartedAt :: Maybe POSIX
- newSubmitTaskStateChange :: SubmitTaskStateChange
- submitTaskStateChange_status :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_managedAgents :: Lens' SubmitTaskStateChange (Maybe [ManagedAgentStateChange])
- submitTaskStateChange_cluster :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_attachments :: Lens' SubmitTaskStateChange (Maybe [AttachmentStateChange])
- submitTaskStateChange_executionStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- submitTaskStateChange_pullStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- submitTaskStateChange_containers :: Lens' SubmitTaskStateChange (Maybe [ContainerStateChange])
- submitTaskStateChange_reason :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_task :: Lens' SubmitTaskStateChange (Maybe Text)
- submitTaskStateChange_pullStartedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime)
- 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.
SubmitTaskStateChange' | |
|
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:
$sel:status:SubmitTaskStateChange'
, submitTaskStateChange_status
- The status of the state change request.
$sel:managedAgents:SubmitTaskStateChange'
, submitTaskStateChange_managedAgents
- The details for the managed agent associated with the task.
$sel:cluster:SubmitTaskStateChange'
, submitTaskStateChange_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task.
$sel:attachments:SubmitTaskStateChange'
, submitTaskStateChange_attachments
- Any attachments associated with the state change request.
$sel:executionStoppedAt:SubmitTaskStateChange'
, submitTaskStateChange_executionStoppedAt
- The Unix timestamp for when the task execution stopped.
$sel:pullStoppedAt:SubmitTaskStateChange'
, submitTaskStateChange_pullStoppedAt
- The Unix timestamp for when the container image pull completed.
$sel:containers:SubmitTaskStateChange'
, submitTaskStateChange_containers
- Any containers associated with the state change request.
$sel:reason:SubmitTaskStateChange'
, submitTaskStateChange_reason
- The reason for the state change request.
$sel:task:SubmitTaskStateChange'
, submitTaskStateChange_task
- The task ID or full ARN of the task in the state change request.
$sel:pullStartedAt:SubmitTaskStateChange'
, submitTaskStateChange_pullStartedAt
- The Unix timestamp for when the container image pull began.
Request Lenses
submitTaskStateChange_status :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The status of the state change request.
submitTaskStateChange_managedAgents :: Lens' SubmitTaskStateChange (Maybe [ManagedAgentStateChange]) Source #
The details for the managed agent associated with the task.
submitTaskStateChange_cluster :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
submitTaskStateChange_attachments :: Lens' SubmitTaskStateChange (Maybe [AttachmentStateChange]) Source #
Any attachments associated with the state change request.
submitTaskStateChange_executionStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for when the task execution stopped.
submitTaskStateChange_pullStoppedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for when the container image pull completed.
submitTaskStateChange_containers :: Lens' SubmitTaskStateChange (Maybe [ContainerStateChange]) Source #
Any containers associated with the state change request.
submitTaskStateChange_reason :: Lens' SubmitTaskStateChange (Maybe Text) Source #
The reason for 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.
submitTaskStateChange_pullStartedAt :: Lens' SubmitTaskStateChange (Maybe UTCTime) Source #
The Unix timestamp for when the container image pull began.
Destructuring the Response
data SubmitTaskStateChangeResponse Source #
See: newSubmitTaskStateChangeResponse
smart constructor.
SubmitTaskStateChangeResponse' | |
|
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.