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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.CreateCluster

Contents

Description

Creates a new Amazon ECS cluster. By default, your account will receive 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.

http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCluster.html

Synopsis

Request

Request constructor

createCluster :: CreateCluster Source

CreateCluster constructor.

The fields accessible through corresponding lenses are:

Request lenses

ccClusterName :: Lens' CreateCluster (Maybe Text) Source

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

Response

Response constructor

createClusterResponse :: CreateClusterResponse Source

CreateClusterResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

ccrCluster :: Lens' CreateClusterResponse (Maybe Cluster) Source

The full description of your new cluster.