Smaws_Client_ECS.CreateClusterCreates 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.
When you call the CreateCluster API operation, Amazon ECS attempts to create the Amazon ECS service-linked role for your account. This is so that it can manage required resources in other Amazon Web Services services on your behalf. However, if the user that makes the call doesn't have permissions to create the service-linked role, it isn't created. For more information, see Using service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NamespaceNotFoundException of Types.namespace_not_found_exception
| `ServerException of Types.server_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_cluster_request ->
(Types.create_cluster_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NamespaceNotFoundException of Types.namespace_not_found_exception
| `ServerException of Types.server_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_cluster_request ->
(Types.create_cluster_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ClientException of Types.client_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NamespaceNotFoundException of Types.namespace_not_found_exception
| `ServerException of Types.server_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result