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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.RegisterTaskDefinition

Contents

Description

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 on task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

See: AWS API Reference for RegisterTaskDefinition.

Synopsis

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:

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. You can think of the family 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:

Response Lenses