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 |
Synopsis
- data Container = Container' {
- gpuIds :: Maybe [Text]
- networkBindings :: Maybe [NetworkBinding]
- managedAgents :: Maybe [ManagedAgent]
- image :: Maybe Text
- containerArn :: Maybe Text
- networkInterfaces :: Maybe [NetworkInterface]
- taskArn :: Maybe Text
- lastStatus :: Maybe Text
- memory :: Maybe Text
- reason :: Maybe Text
- name :: Maybe Text
- imageDigest :: Maybe Text
- exitCode :: Maybe Int
- healthStatus :: Maybe HealthStatus
- cpu :: Maybe Text
- runtimeId :: Maybe Text
- memoryReservation :: Maybe Text
- newContainer :: Container
- container_gpuIds :: Lens' Container (Maybe [Text])
- container_networkBindings :: Lens' Container (Maybe [NetworkBinding])
- container_managedAgents :: Lens' Container (Maybe [ManagedAgent])
- container_image :: Lens' Container (Maybe Text)
- container_containerArn :: Lens' Container (Maybe Text)
- container_networkInterfaces :: Lens' Container (Maybe [NetworkInterface])
- container_taskArn :: Lens' Container (Maybe Text)
- container_lastStatus :: Lens' Container (Maybe Text)
- container_memory :: Lens' Container (Maybe Text)
- container_reason :: Lens' Container (Maybe Text)
- container_name :: Lens' Container (Maybe Text)
- container_imageDigest :: Lens' Container (Maybe Text)
- container_exitCode :: Lens' Container (Maybe Int)
- container_healthStatus :: Lens' Container (Maybe HealthStatus)
- container_cpu :: Lens' Container (Maybe Text)
- container_runtimeId :: Lens' Container (Maybe Text)
- container_memoryReservation :: Lens' Container (Maybe Text)
Documentation
A Docker container that is part of a task.
See: newContainer
smart constructor.
Container' | |
|
Instances
newContainer :: Container Source #
Create a value of Container
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:gpuIds:Container'
, container_gpuIds
- The IDs of each GPU assigned to the container.
$sel:networkBindings:Container'
, container_networkBindings
- The network bindings associated with the container.
$sel:managedAgents:Container'
, container_managedAgents
- The details of any Amazon ECS managed agents associated with the
container.
$sel:image:Container'
, container_image
- The image used for the container.
$sel:containerArn:Container'
, container_containerArn
- The Amazon Resource Name (ARN) of the container.
$sel:networkInterfaces:Container'
, container_networkInterfaces
- The network interfaces associated with the container.
$sel:taskArn:Container'
, container_taskArn
- The ARN of the task.
$sel:lastStatus:Container'
, container_lastStatus
- The last known status of the container.
$sel:memory:Container'
, container_memory
- The hard limit (in MiB) of memory set for the container.
$sel:reason:Container'
, container_reason
- A short (255 max characters) human-readable string to provide additional
details about a running or stopped container.
$sel:name:Container'
, container_name
- The name of the container.
$sel:imageDigest:Container'
, container_imageDigest
- The container image manifest digest.
The imageDigest
is only returned if the container is using an image
hosted in Amazon ECR, otherwise it is omitted.
$sel:exitCode:Container'
, container_exitCode
- The exit code returned from the container.
$sel:healthStatus:Container'
, container_healthStatus
- The health status of the container. If health checks are not configured
for this container in its task definition, then it reports the health
status as UNKNOWN
.
$sel:cpu:Container'
, container_cpu
- The number of CPU units set for the container. The value will be 0
if
no value was specified in the container definition when the task
definition was registered.
$sel:runtimeId:Container'
, container_runtimeId
- The ID of the Docker container.
$sel:memoryReservation:Container'
, container_memoryReservation
- The soft limit (in MiB) of memory set for the container.
container_gpuIds :: Lens' Container (Maybe [Text]) Source #
The IDs of each GPU assigned to the container.
container_networkBindings :: Lens' Container (Maybe [NetworkBinding]) Source #
The network bindings associated with the container.
container_managedAgents :: Lens' Container (Maybe [ManagedAgent]) Source #
The details of any Amazon ECS managed agents associated with the container.
container_containerArn :: Lens' Container (Maybe Text) Source #
The Amazon Resource Name (ARN) of the container.
container_networkInterfaces :: Lens' Container (Maybe [NetworkInterface]) Source #
The network interfaces associated with the container.
container_lastStatus :: Lens' Container (Maybe Text) Source #
The last known status of the container.
container_memory :: Lens' Container (Maybe Text) Source #
The hard limit (in MiB) of memory set for the container.
container_reason :: Lens' Container (Maybe Text) Source #
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
container_imageDigest :: Lens' Container (Maybe Text) Source #
The container image manifest digest.
The imageDigest
is only returned if the container is using an image
hosted in Amazon ECR, otherwise it is omitted.
container_exitCode :: Lens' Container (Maybe Int) Source #
The exit code returned from the container.
container_healthStatus :: Lens' Container (Maybe HealthStatus) Source #
The health status of the container. If health checks are not configured
for this container in its task definition, then it reports the health
status as UNKNOWN
.