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 container changed states.
Synopsis
- data SubmitContainerStateChange = SubmitContainerStateChange' {}
- newSubmitContainerStateChange :: SubmitContainerStateChange
- submitContainerStateChange_networkBindings :: Lens' SubmitContainerStateChange (Maybe [NetworkBinding])
- submitContainerStateChange_status :: Lens' SubmitContainerStateChange (Maybe Text)
- submitContainerStateChange_cluster :: Lens' SubmitContainerStateChange (Maybe Text)
- submitContainerStateChange_containerName :: Lens' SubmitContainerStateChange (Maybe Text)
- submitContainerStateChange_reason :: Lens' SubmitContainerStateChange (Maybe Text)
- submitContainerStateChange_exitCode :: Lens' SubmitContainerStateChange (Maybe Int)
- submitContainerStateChange_task :: Lens' SubmitContainerStateChange (Maybe Text)
- submitContainerStateChange_runtimeId :: Lens' SubmitContainerStateChange (Maybe Text)
- data SubmitContainerStateChangeResponse = SubmitContainerStateChangeResponse' {
- acknowledgment :: Maybe Text
- httpStatus :: Int
- newSubmitContainerStateChangeResponse :: Int -> SubmitContainerStateChangeResponse
- submitContainerStateChangeResponse_acknowledgment :: Lens' SubmitContainerStateChangeResponse (Maybe Text)
- submitContainerStateChangeResponse_httpStatus :: Lens' SubmitContainerStateChangeResponse Int
Creating a Request
data SubmitContainerStateChange Source #
See: newSubmitContainerStateChange
smart constructor.
SubmitContainerStateChange' | |
|
Instances
newSubmitContainerStateChange :: SubmitContainerStateChange Source #
Create a value of SubmitContainerStateChange
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:networkBindings:SubmitContainerStateChange'
, submitContainerStateChange_networkBindings
- The network bindings of the container.
$sel:status:SubmitContainerStateChange'
, submitContainerStateChange_status
- The status of the state change request.
$sel:cluster:SubmitContainerStateChange'
, submitContainerStateChange_cluster
- The short name or full ARN of the cluster that hosts the container.
$sel:containerName:SubmitContainerStateChange'
, submitContainerStateChange_containerName
- The name of the container.
$sel:reason:SubmitContainerStateChange'
, submitContainerStateChange_reason
- The reason for the state change request.
$sel:exitCode:SubmitContainerStateChange'
, submitContainerStateChange_exitCode
- The exit code returned for the state change request.
$sel:task:SubmitContainerStateChange'
, submitContainerStateChange_task
- The task ID or full Amazon Resource Name (ARN) of the task that hosts
the container.
$sel:runtimeId:SubmitContainerStateChange'
, submitContainerStateChange_runtimeId
- The ID of the Docker container.
Request Lenses
submitContainerStateChange_networkBindings :: Lens' SubmitContainerStateChange (Maybe [NetworkBinding]) Source #
The network bindings of the container.
submitContainerStateChange_status :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The status of the state change request.
submitContainerStateChange_cluster :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The short name or full ARN of the cluster that hosts the container.
submitContainerStateChange_containerName :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The name of the container.
submitContainerStateChange_reason :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The reason for the state change request.
submitContainerStateChange_exitCode :: Lens' SubmitContainerStateChange (Maybe Int) Source #
The exit code returned for the state change request.
submitContainerStateChange_task :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.
submitContainerStateChange_runtimeId :: Lens' SubmitContainerStateChange (Maybe Text) Source #
The ID of the Docker container.
Destructuring the Response
data SubmitContainerStateChangeResponse Source #
See: newSubmitContainerStateChangeResponse
smart constructor.
SubmitContainerStateChangeResponse' | |
|
Instances
Eq SubmitContainerStateChangeResponse Source # | |
Read SubmitContainerStateChangeResponse Source # | |
Show SubmitContainerStateChangeResponse Source # | |
Generic SubmitContainerStateChangeResponse Source # | |
NFData SubmitContainerStateChangeResponse Source # | |
Defined in Amazonka.ECS.SubmitContainerStateChange rnf :: SubmitContainerStateChangeResponse -> () # | |
type Rep SubmitContainerStateChangeResponse Source # | |
Defined in Amazonka.ECS.SubmitContainerStateChange type Rep SubmitContainerStateChangeResponse = D1 ('MetaData "SubmitContainerStateChangeResponse" "Amazonka.ECS.SubmitContainerStateChange" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "SubmitContainerStateChangeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "acknowledgment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newSubmitContainerStateChangeResponse Source #
Create a value of SubmitContainerStateChangeResponse
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:SubmitContainerStateChangeResponse'
, submitContainerStateChangeResponse_acknowledgment
- Acknowledgement of the state change.
$sel:httpStatus:SubmitContainerStateChangeResponse'
, submitContainerStateChangeResponse_httpStatus
- The response's http status code.
Response Lenses
submitContainerStateChangeResponse_acknowledgment :: Lens' SubmitContainerStateChangeResponse (Maybe Text) Source #
Acknowledgement of the state change.
submitContainerStateChangeResponse_httpStatus :: Lens' SubmitContainerStateChangeResponse Int Source #
The response's http status code.