Class: Aws::ECS::Types::CreateClusterRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass CreateClusterRequest data as a hash:

{
  cluster_name: "String",
  tags: [
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_nameString

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.

Returns:

  • (String)


1511
1512
1513
1514
1515
# File 'lib/aws-sdk-ecs/types.rb', line 1511

class CreateClusterRequest < Struct.new(
  :cluster_name,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

Returns:



1511
1512
1513
1514
1515
# File 'lib/aws-sdk-ecs/types.rb', line 1511

class CreateClusterRequest < Struct.new(
  :cluster_name,
  :tags)
  include Aws::Structure
end