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

Class: Aws::MachineLearning::Types::AddTagsInput

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

Overview

Note:

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

{
  tags: [ # required
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
  resource_id: "EntityId", # required
  resource_type: "BatchPrediction", # required, accepts BatchPrediction, DataSource, Evaluation, MLModel
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

The ID of the ML object to tag. For example, exampleModelId.

Returns:

  • (String)


39
40
41
42
43
44
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 39

class AddTagsInput < Struct.new(
  :tags,
  :resource_id,
  :resource_type)
  include Aws::Structure
end

#resource_typeString

The type of the ML object to tag.

Returns:

  • (String)


39
40
41
42
43
44
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 39

class AddTagsInput < Struct.new(
  :tags,
  :resource_id,
  :resource_type)
  include Aws::Structure
end

#tagsArray<Types::Tag>

The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

Returns:



39
40
41
42
43
44
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 39

class AddTagsInput < Struct.new(
  :tags,
  :resource_id,
  :resource_type)
  include Aws::Structure
end