Skip to content

Add Tags

machinelearning_add_tags R Documentation

Adds one or more tags to an object, up to a limit of 10

Description

Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key and an optional value. If you add a tag using a key that is already associated with the ML object, add_tags updates the tag's value.

Usage

machinelearning_add_tags(Tags, ResourceId, ResourceType)

Arguments

Tags

[required] 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.

ResourceId

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

ResourceType

[required] The type of the ML object to tag.

Value

A list with the following syntax:

list(
  ResourceId = "string",
  ResourceType = "BatchPrediction"|"DataSource"|"Evaluation"|"MLModel"
)

Request syntax

svc$add_tags(
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  ResourceId = "string",
  ResourceType = "BatchPrediction"|"DataSource"|"Evaluation"|"MLModel"
)