| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.ECS.Types
Contents
- data ECS
- data JSONError :: *
- data NetworkBinding
- networkBinding :: NetworkBinding
- nbBindIP :: Lens' NetworkBinding (Maybe Text)
- nbContainerPort :: Lens' NetworkBinding (Maybe Int)
- nbHostPort :: Lens' NetworkBinding (Maybe Int)
- data Cluster
- cluster :: Cluster
- cClusterArn :: Lens' Cluster (Maybe Text)
- cClusterName :: Lens' Cluster (Maybe Text)
- cStatus :: Lens' Cluster (Maybe Text)
- data Volume
- volume :: Volume
- vHost :: Lens' Volume (Maybe HostVolumeProperties)
- vName :: Lens' Volume (Maybe Text)
- data ContainerOverride
- containerOverride :: ContainerOverride
- coCommand :: Lens' ContainerOverride [Text]
- coName :: Lens' ContainerOverride (Maybe Text)
- data KeyValuePair
- keyValuePair :: KeyValuePair
- kvpName :: Lens' KeyValuePair (Maybe Text)
- kvpValue :: Lens' KeyValuePair (Maybe Text)
- data VolumeFrom
- volumeFrom :: VolumeFrom
- vfReadOnly :: Lens' VolumeFrom (Maybe Bool)
- vfSourceContainer :: Lens' VolumeFrom (Maybe Text)
- data TaskOverride
- taskOverride :: TaskOverride
- toContainerOverrides :: Lens' TaskOverride [ContainerOverride]
- data HostVolumeProperties
- hostVolumeProperties :: HostVolumeProperties
- hvpSourcePath :: Lens' HostVolumeProperties (Maybe Text)
- data Container
- container :: Container
- cContainerArn :: Lens' Container (Maybe Text)
- cExitCode :: Lens' Container (Maybe Int)
- cLastStatus :: Lens' Container (Maybe Text)
- cName :: Lens' Container (Maybe Text)
- cNetworkBindings :: Lens' Container [NetworkBinding]
- cReason :: Lens' Container (Maybe Text)
- cTaskArn :: Lens' Container (Maybe Text)
- data ContainerDefinition
- containerDefinition :: ContainerDefinition
- cdCommand :: Lens' ContainerDefinition [Text]
- cdCpu :: Lens' ContainerDefinition (Maybe Int)
- cdEntryPoint :: Lens' ContainerDefinition [Text]
- cdEnvironment :: Lens' ContainerDefinition [KeyValuePair]
- cdEssential :: Lens' ContainerDefinition (Maybe Bool)
- cdImage :: Lens' ContainerDefinition (Maybe Text)
- cdLinks :: Lens' ContainerDefinition [Text]
- cdMemory :: Lens' ContainerDefinition (Maybe Int)
- cdMountPoints :: Lens' ContainerDefinition [MountPoint]
- cdName :: Lens' ContainerDefinition (Maybe Text)
- cdPortMappings :: Lens' ContainerDefinition [PortMapping]
- cdVolumesFrom :: Lens' ContainerDefinition [VolumeFrom]
- data Resource
- resource :: Resource
- rDoubleValue :: Lens' Resource (Maybe Double)
- rIntegerValue :: Lens' Resource (Maybe Int)
- rLongValue :: Lens' Resource (Maybe Integer)
- rName :: Lens' Resource (Maybe Text)
- rStringSetValue :: Lens' Resource [Text]
- rType :: Lens' Resource (Maybe Text)
- data Task
- task :: Task
- tClusterArn :: Lens' Task (Maybe Text)
- tContainerInstanceArn :: Lens' Task (Maybe Text)
- tContainers :: Lens' Task [Container]
- tDesiredStatus :: Lens' Task (Maybe Text)
- tLastStatus :: Lens' Task (Maybe Text)
- tOverrides :: Lens' Task (Maybe TaskOverride)
- tTaskArn :: Lens' Task (Maybe Text)
- tTaskDefinitionArn :: Lens' Task (Maybe Text)
- data PortMapping
- portMapping :: PortMapping
- pmContainerPort :: Lens' PortMapping (Maybe Int)
- pmHostPort :: Lens' PortMapping (Maybe Int)
- data TaskDefinition
- taskDefinition :: TaskDefinition
- tdContainerDefinitions :: Lens' TaskDefinition [ContainerDefinition]
- tdFamily :: Lens' TaskDefinition (Maybe Text)
- tdRevision :: Lens' TaskDefinition (Maybe Int)
- tdTaskDefinitionArn :: Lens' TaskDefinition (Maybe Text)
- tdVolumes :: Lens' TaskDefinition [Volume]
- data Failure
- failure :: Failure
- fArn :: Lens' Failure (Maybe Text)
- fReason :: Lens' Failure (Maybe Text)
- data ContainerInstance
- containerInstance :: ContainerInstance
- ciAgentConnected :: Lens' ContainerInstance (Maybe Bool)
- ciContainerInstanceArn :: Lens' ContainerInstance (Maybe Text)
- ciEc2InstanceId :: Lens' ContainerInstance (Maybe Text)
- ciRegisteredResources :: Lens' ContainerInstance [Resource]
- ciRemainingResources :: Lens' ContainerInstance [Resource]
- ciStatus :: Lens' ContainerInstance (Maybe Text)
- data MountPoint
- mountPoint :: MountPoint
- mpContainerPath :: Lens' MountPoint (Maybe Text)
- mpReadOnly :: Lens' MountPoint (Maybe Bool)
- mpSourceVolume :: Lens' MountPoint (Maybe Text)
Service
Version 2014-11-13 of the Amazon EC2 Container Service service.
Error
data JSONError :: *
NetworkBinding
data NetworkBinding Source
networkBinding :: NetworkBinding Source
NetworkBinding constructor.
The fields accessible through corresponding lenses are:
nbBindIP::MaybeTextnbContainerPort::MaybeIntnbHostPort::MaybeInt
nbBindIP :: Lens' NetworkBinding (Maybe Text) Source
The IP address that the container is bound to on the container instance.
nbContainerPort :: Lens' NetworkBinding (Maybe Int) Source
The port number on the container that is be used with the network binding.
nbHostPort :: Lens' NetworkBinding (Maybe Int) Source
The port number on the host that is used with the network binding.
Cluster
Cluster constructor.
The fields accessible through corresponding lenses are:
cClusterArn::MaybeTextcClusterName::MaybeTextcStatus::MaybeText
cClusterArn :: Lens' Cluster (Maybe Text) Source
The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains
the 'arn:aws:ecs' namespace, followed by the region of the cluster, the AWS
account ID of the cluster owner, the cluster namespace, and then the cluster
name. For example, arn:aws:ecs:region:012345678910:cluster/test.
cClusterName :: Lens' Cluster (Maybe Text) Source
A user-generated string that you can use to identify your cluster.
cStatus :: Lens' Cluster (Maybe Text) Source
The status of the cluster. The valid values are ACTIVE or INACTIVE. ACTIVE
indicates that you can register container instances with the cluster and the
associated instances can accept tasks.
Volume
vHost :: Lens' Volume (Maybe HostVolumeProperties) Source
The path on the host container instance that is presented to the containers which access the volume. If this parameter is empty, then the Docker daemon assigns a host path for you.
vName :: Lens' Volume (Maybe Text) Source
The name of the volume. This name is referenced in the sourceVolume parameter
of container definition mountPoints.
ContainerOverride
data ContainerOverride Source
coCommand :: Lens' ContainerOverride [Text] Source
The command to send to the container that receives the override.
coName :: Lens' ContainerOverride (Maybe Text) Source
The name of the container that receives the override.
KeyValuePair
data KeyValuePair Source
VolumeFrom
data VolumeFrom Source
volumeFrom :: VolumeFrom Source
VolumeFrom constructor.
The fields accessible through corresponding lenses are:
vfReadOnly :: Lens' VolumeFrom (Maybe Bool) Source
If this value is true, the container has read-only access to the volume. If
this value is false, then the container can write to the volume. The default
value is false.
vfSourceContainer :: Lens' VolumeFrom (Maybe Text) Source
The name of the container to mount volumes from.
TaskOverride
data TaskOverride Source
taskOverride :: TaskOverride Source
TaskOverride constructor.
The fields accessible through corresponding lenses are:
toContainerOverrides :: Lens' TaskOverride [ContainerOverride] Source
One or more container overrides to send when running a task.
HostVolumeProperties
hostVolumeProperties :: HostVolumeProperties Source
HostVolumeProperties constructor.
The fields accessible through corresponding lenses are:
hvpSourcePath :: Lens' HostVolumeProperties (Maybe Text) Source
The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you.
Container
cContainerArn :: Lens' Container (Maybe Text) Source
The Amazon Resource Name (ARN) of the container.
cReason :: Lens' Container (Maybe Text) Source
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
ContainerDefinition
containerDefinition :: ContainerDefinition Source
ContainerDefinition constructor.
The fields accessible through corresponding lenses are:
cdCommand::[Text]cdCpu::MaybeIntcdEntryPoint::[Text]cdEnvironment::[KeyValuePair]cdEssential::MaybeBoolcdImage::MaybeTextcdLinks::[Text]cdMemory::MaybeIntcdMountPoints::[MountPoint]cdName::MaybeTextcdPortMappings::[PortMapping]cdVolumesFrom::[VolumeFrom]
cdCommand :: Lens' ContainerDefinition [Text] Source
The CMD that is passed to the container. For more information on the Docker CMD parameter, see https://docs.docker.com/reference/builder/#cmd.
cdCpu :: Lens' ContainerDefinition (Maybe Int) Source
The number of cpu units reserved for the container. A container instance has
1,024 cpu units for every CPU core.
cdEntryPoint :: Lens' ContainerDefinition [Text] Source
Early versions of the Amazon ECS container agent do not properly handle entryPoint parameters. If you have problems using entryPoint, update your container
agent or enter your commands and arguments as command array items instead.
The ENTRYPOINT that is passed to the container. For more information on the
Docker ENTRYPOINT parameter, see https://docs.docker.com/reference/builder/#entrypoint.
cdEnvironment :: Lens' ContainerDefinition [KeyValuePair] Source
The environment variables to pass to a container.
cdEssential :: Lens' ContainerDefinition (Maybe Bool) Source
If the essential parameter of a container is marked as true, the failure of
that container will stop the task. If the essential parameter of a container
is marked as false, then its failure will not affect the rest of the
containers in a task.
cdImage :: Lens' ContainerDefinition (Maybe Text) Source
The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with 'repository-url/image:tag.
cdLinks :: Lens' ContainerDefinition [Text] Source
The link parameter allows containers to communicate with each other without
the need for port mappings, using the name parameter. For more information on
linking Docker containers, see https://docs.docker.com/userguide/dockerlinks/.
cdMemory :: Lens' ContainerDefinition (Maybe Int) Source
The number of MiB of memory reserved for the container. Docker will allocate a minimum of 4 MiB of memory to a container.
cdMountPoints :: Lens' ContainerDefinition [MountPoint] Source
The mount points for data volumes in your container.
cdName :: Lens' ContainerDefinition (Maybe Text) Source
The name of a container. If you are linking multiple containers together in a
task definition, the name of one container can be entered in the links of
another container to connect the containers.
cdPortMappings :: Lens' ContainerDefinition [PortMapping] Source
The list of port mappings for the container.
cdVolumesFrom :: Lens' ContainerDefinition [VolumeFrom] Source
Data volumes to mount from another container.
Resource
Resource constructor.
The fields accessible through corresponding lenses are:
rDoubleValue::MaybeDoublerIntegerValue::MaybeIntrLongValue::MaybeIntegerrName::MaybeTextrStringSetValue::[Text]rType::MaybeText
rDoubleValue :: Lens' Resource (Maybe Double) Source
When the doubleValue type is set, the value of the resource must be a double
precision floating-point type.
rIntegerValue :: Lens' Resource (Maybe Int) Source
When the integerValue type is set, the value of the resource must be an
integer.
rLongValue :: Lens' Resource (Maybe Integer) Source
When the longValue type is set, the value of the resource must be an extended
precision floating-point type.
rName :: Lens' Resource (Maybe Text) Source
The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined
resource.
rStringSetValue :: Lens' Resource [Text] Source
When the stringSetValue type is set, the value of the resource must be a
string type.
rType :: Lens' Resource (Maybe Text) Source
The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
Task
Task constructor.
The fields accessible through corresponding lenses are:
tClusterArn :: Lens' Task (Maybe Text) Source
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
tContainerInstanceArn :: Lens' Task (Maybe Text) Source
The Amazon Resource Name (ARN) of the container instances that host the task.
tContainers :: Lens' Task [Container] Source
The containers associated with the task.
tOverrides :: Lens' Task (Maybe TaskOverride) Source
One or more container overrides.
tTaskDefinitionArn :: Lens' Task (Maybe Text) Source
The Amazon Resource Name (ARN) of the of the task definition that creates the task.
PortMapping
data PortMapping Source
portMapping :: PortMapping Source
PortMapping constructor.
The fields accessible through corresponding lenses are:
pmContainerPort :: Lens' PortMapping (Maybe Int) Source
The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container will automatically receive a host port in the 49153 to 65535 port range.
pmHostPort :: Lens' PortMapping (Maybe Int) Source
The port number on the container instance to reserve for your container. You
can specify a non-reserved host port for your container port mapping, or you
can omit the hostPort while specifying a containerPort and your container
will automatically receive a port in the 49153 to 65535 port range. You
should not attempt to specify a host port in the 49153 to 65535 port range,
since these are reserved for automatic assignment.
The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376,
and the Amazon ECS Container Agent port 51678. Any host port that was
previously specified in a running task is also reserved while the task is
running (once a task stops, the host port is released).The current reserved
ports are displayed in the remainingResources of DescribeContainerInstances
output, and a container instance may have up to 50 reserved ports at a time,
including the default reserved ports (automatically assigned ports do not
count toward this limit).
TaskDefinition
data TaskDefinition Source
taskDefinition :: TaskDefinition Source
TaskDefinition constructor.
The fields accessible through corresponding lenses are:
tdContainerDefinitions :: Lens' TaskDefinition [ContainerDefinition] Source
A list of container definitions in JSON format that describe the different containers that make up your task. For more information on container definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.
tdFamily :: Lens' TaskDefinition (Maybe Text) Source
The family of your task definition. You can think of the family as the name
of your task definition.
tdRevision :: Lens' TaskDefinition (Maybe Int) Source
The revision of the task in a particular family. You can think of the revision as a version number of a task definition in a family. When you register a task definition for the first time, the revision is '1', and each time you register a task definition in the same family, the revision value increases by one.
tdTaskDefinitionArn :: Lens' TaskDefinition (Maybe Text) Source
The full Amazon Resource Name (ARN) of the of the task definition.
tdVolumes :: Lens' TaskDefinition [Volume] Source
The list of volumes in a task. For more information on volume definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2Container Service Developer Guide.
Failure
ContainerInstance
data ContainerInstance Source
containerInstance :: ContainerInstance Source
ContainerInstance constructor.
The fields accessible through corresponding lenses are:
ciAgentConnected :: Lens' ContainerInstance (Maybe Bool) Source
This parameter returns true if the agent is actually connected to Amazon ECS.
Registered instances with an agent that may be unhealthy or stopped will
return false, and instances without a connected agent cannot accept placement
request.
ciContainerInstanceArn :: Lens' ContainerInstance (Maybe Text) Source
The Amazon Resource Name (ARN) of the container instance. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID.
ciEc2InstanceId :: Lens' ContainerInstance (Maybe Text) Source
The Amazon EC2 instance ID of the container instance.
ciRegisteredResources :: Lens' ContainerInstance [Resource] Source
The registered resources on the container instance that are in use by current tasks.
ciRemainingResources :: Lens' ContainerInstance [Resource] Source
The remaining resources of the container instance that are available for new tasks.
ciStatus :: Lens' ContainerInstance (Maybe Text) Source
The status of the container instance. The valid values are ACTIVE or INACTIVE.
ACTIVE indicates that the container instance can accept tasks.
MountPoint
data MountPoint Source
mountPoint :: MountPoint Source
MountPoint constructor.
The fields accessible through corresponding lenses are:
mpContainerPath :: Lens' MountPoint (Maybe Text) Source
The path on the container to mount the host volume at.
mpReadOnly :: Lens' MountPoint (Maybe Bool) Source
If this value is true, the container has read-only access to the volume. If
this value is false, then the container can write to the volume. The default
value is false.
mpSourceVolume :: Lens' MountPoint (Maybe Text) Source
The name of the volume to mount.