amazonka-ecs-0.3.0: Amazon EC2 Container Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.Types

Contents

Synopsis

Service

data ECS Source

Version 2014-11-13 of the Amazon EC2 Container Service service.

Instances

AWSService ECS 
type Sg ECS = V4 
type Er ECS = RESTError 

Error

data RESTError :: *

Instances

Eq RESTError 
Show RESTError 
Generic RESTError 
AWSErrorCode RESTError 
FromXML RESTError 
type Rep RESTError = D1 D1RESTError (C1 C1_0RESTError ((:*:) ((:*:) (S1 S1_0_0RESTError (Rec0 Text)) (S1 S1_0_1RESTError (Rec0 (Maybe ErrorType)))) ((:*:) (S1 S1_0_2RESTError (Rec0 ErrorCode)) (S1 S1_0_3RESTError (Rec0 Text))))) 

XML

NetworkBinding

networkBinding :: NetworkBinding Source

NetworkBinding constructor.

The fields accessible through corresponding lenses are:

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 should be used with the network binding.

nbHostPort :: Lens' NetworkBinding (Maybe Int) Source

The port number on the host that should be used with the network binding.

Cluster

data Cluster Source

Instances

cluster :: Cluster Source

Cluster constructor.

The fields accessible through corresponding lenses are:

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.

ContainerOverride

containerOverride :: ContainerOverride Source

ContainerOverride constructor.

The fields accessible through corresponding lenses are:

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

keyValuePair :: KeyValuePair Source

KeyValuePair constructor.

The fields accessible through corresponding lenses are:

kvpName :: Lens' KeyValuePair (Maybe Text) Source

The name of the key value pair.

kvpValue :: Lens' KeyValuePair (Maybe Text) Source

The value of the key value pair.

TaskOverride

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.

Container

cContainerArn :: Lens' Container (Maybe Text) Source

The Amazon Resource Name (ARN) of the container.

cExitCode :: Lens' Container (Maybe Int) Source

The exit code returned from the container.

cLastStatus :: Lens' Container (Maybe Text) Source

The last known status of the container.

cName :: Lens' Container (Maybe Text) Source

The name 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.

cTaskArn :: Lens' Container (Maybe Text) Source

The Amazon Resource Name (ARN) of the task.

ContainerDefinition

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

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.

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.

Resource

resource :: Resource Source

Resource constructor.

The fields accessible through corresponding lenses are:

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

data Task Source

Instances

Eq Task 
Read Task 
Show Task 
FromXML Task 
ToQuery Task 

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.

tDesiredStatus :: Lens' Task (Maybe Text) Source

The desired status of the task.

tLastStatus :: Lens' Task (Maybe Text) Source

The last known status of the task.

tOverrides :: Lens' Task (Maybe TaskOverride) Source

One or more container overrides.

tTaskArn :: Lens' Task (Maybe Text) Source

The Amazon Resource Name (ARN) of the task.

tTaskDefinitionArn :: Lens' Task (Maybe Text) Source

The Amazon Resource Name (ARN) of the of the task definition that creates the task.

PortMapping

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 should be used with the port mapping.

pmHostPort :: Lens' PortMapping (Maybe Int) Source

The port number on the host that should be used with the port mapping.

TaskDefinition

tdContainerDefinitions :: Lens' TaskDefinition [ContainerDefinition] Source

A list of container definitions in JSON format that describe the different containers that make up your task.

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.

Failure

data Failure Source

Instances

failure :: Failure Source

Failure constructor.

The fields accessible through corresponding lenses are:

fArn :: Lens' Failure (Maybe Text) Source

The Amazon Resource Name (ARN) of the failed resource.

fReason :: Lens' Failure (Maybe Text) Source

The reason for the failure.

ContainerInstance

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.