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

Class: Aws::SageMaker::Types::AddTagsInput

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

Overview

Note:

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

{
  resource_arn: "ResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The Amazon Resource Name (ARN) of the resource that you want to tag.

Returns:

  • (String)


36
37
38
39
40
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 36

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

#tagsArray<Types::Tag>

An array of Tag objects. Each tag is a key-value pair. Only the key parameter is required. If you don't specify a value, Amazon SageMaker sets the value to an empty string.

Returns:



36
37
38
39
40
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 36

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