Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Registers a new task definition from the supplied family
and
containerDefinitions
. Optionally, you can add data volumes to your
containers with the volumes
parameter. For more information about task
definition parameters and defaults, see
Amazon ECS Task Definitions
in the Amazon EC2 Container Service Developer Guide.
- registerTaskDefinition :: Text -> RegisterTaskDefinition
- data RegisterTaskDefinition
- rtdVolumes :: Lens' RegisterTaskDefinition [Volume]
- rtdFamily :: Lens' RegisterTaskDefinition Text
- rtdContainerDefinitions :: Lens' RegisterTaskDefinition [ContainerDefinition]
- registerTaskDefinitionResponse :: Int -> RegisterTaskDefinitionResponse
- data RegisterTaskDefinitionResponse
- rtdrsTaskDefinition :: Lens' RegisterTaskDefinitionResponse (Maybe TaskDefinition)
- rtdrsResponseStatus :: Lens' RegisterTaskDefinitionResponse Int
Creating a Request
registerTaskDefinition Source #
Creates a value of RegisterTaskDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterTaskDefinition Source #
See: registerTaskDefinition
smart constructor.
Request Lenses
rtdVolumes :: Lens' RegisterTaskDefinition [Volume] Source #
A list of volume definitions in JSON format that containers in your task may use.
rtdFamily :: Lens' RegisterTaskDefinition Text Source #
You must specify a family
for a task definition, which allows you to
track multiple versions of the same task definition. The family
is
used as a name for your task definition. Up to 255 letters (uppercase
and lowercase), numbers, hyphens, and underscores are allowed.
rtdContainerDefinitions :: Lens' RegisterTaskDefinition [ContainerDefinition] Source #
A list of container definitions in JSON format that describe the different containers that make up your task.
Destructuring the Response
registerTaskDefinitionResponse Source #
Creates a value of RegisterTaskDefinitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterTaskDefinitionResponse Source #
See: registerTaskDefinitionResponse
smart constructor.
Response Lenses
rtdrsTaskDefinition :: Lens' RegisterTaskDefinitionResponse (Maybe TaskDefinition) Source #
The full description of the registered task definition.
rtdrsResponseStatus :: Lens' RegisterTaskDefinitionResponse Int Source #
The response status code.