Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ECS
- data RESTError :: *
- ns :: Text
- 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 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 TaskOverride
- taskOverride :: TaskOverride
- toContainerOverrides :: Lens' TaskOverride [ContainerOverride]
- 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)
- cdName :: Lens' ContainerDefinition (Maybe Text)
- cdPortMappings :: Lens' ContainerDefinition [PortMapping]
- 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)
- 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)
Service
Version 2014-11-13
of the Amazon EC2 Container Service service.
Error
data RESTError :: *
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
data NetworkBinding Source
Eq NetworkBinding | |
Ord NetworkBinding | |
Read NetworkBinding | |
Show NetworkBinding | |
FromXML NetworkBinding | |
ToQuery NetworkBinding |
networkBinding :: NetworkBinding Source
NetworkBinding
constructor.
The fields accessible through corresponding lenses are:
nbBindIP
::
Maybe
Text
nbContainerPort
::
Maybe
Int
nbHostPort
::
Maybe
Int
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
Cluster
constructor.
The fields accessible through corresponding lenses are:
cClusterArn
::
Maybe
Text
cClusterName
::
Maybe
Text
cStatus
::
Maybe
Text
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
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
Eq KeyValuePair | |
Ord KeyValuePair | |
Read KeyValuePair | |
Show KeyValuePair | |
FromXML KeyValuePair | |
ToQuery KeyValuePair |
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.
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
::
Maybe
Int
cdEntryPoint
::
[Text
]cdEnvironment
::
[KeyValuePair
]cdEssential
::
Maybe
Bool
cdImage
::
Maybe
Text
cdLinks
::
[Text
]cdMemory
::
Maybe
Int
cdName
::
Maybe
Text
cdPortMappings
::
[PortMapping
]
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
constructor.
The fields accessible through corresponding lenses are:
rDoubleValue
::
Maybe
Double
rIntegerValue
::
Maybe
Int
rLongValue
::
Maybe
Integer
rName
::
Maybe
Text
rStringSetValue
::
[Text
]rType
::
Maybe
Text
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
Eq PortMapping | |
Ord PortMapping | |
Read PortMapping | |
Show PortMapping | |
FromXML PortMapping | |
ToQuery 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
data TaskDefinition Source
Eq TaskDefinition | |
Read TaskDefinition | |
Show TaskDefinition | |
FromXML TaskDefinition | |
ToQuery TaskDefinition |
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.
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
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.