amazonka-ecs-1.3.4: 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.CreateCluster

Contents

Description

Creates a new Amazon ECS cluster. By default, your account receives a 'default' cluster when you launch your first container instance. However, you can create your own cluster with a unique name with the CreateCluster action.

See: AWS API Reference for CreateCluster.

Synopsis

Creating a Request

createCluster :: CreateCluster Source

Creates a value of CreateCluster with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ccClusterName :: Lens' CreateCluster (Maybe Text) Source

The name of your cluster. If you do not specify a name for your cluster, you create a cluster named 'default'. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

Destructuring the Response

createClusterResponse Source

Creates a value of CreateClusterResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

ccrsCluster :: Lens' CreateClusterResponse (Maybe Cluster) Source

The full description of your new cluster.