You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ResourceGroups::Types::CreateGroupInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb

Overview

Note:

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

{
  name: "GroupName", # required
  description: "GroupDescription",
  resource_query: { # required
    type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
    query: "Query", # required
  },
  tags: {
    "TagKey" => "TagValue",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.

Returns:

  • (String)


55
56
57
58
59
60
61
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 55

class CreateGroupInput < Struct.new(
  :name,
  :description,
  :resource_query,
  :tags)
  include Aws::Structure
end

#nameString

The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws; these are reserved. A resource group name must be unique within your account.

Returns:

  • (String)


55
56
57
58
59
60
61
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 55

class CreateGroupInput < Struct.new(
  :name,
  :description,
  :resource_query,
  :tags)
  include Aws::Structure
end

#resource_queryTypes::ResourceQuery

The resource query that determines which AWS resources are members of this group.



55
56
57
58
59
60
61
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 55

class CreateGroupInput < Struct.new(
  :name,
  :description,
  :resource_query,
  :tags)
  include Aws::Structure
end

#tagsHash<String,String>

The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

Returns:

  • (Hash<String,String>)


55
56
57
58
59
60
61
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 55

class CreateGroupInput < Struct.new(
  :name,
  :description,
  :resource_query,
  :tags)
  include Aws::Structure
end