Skip to content

Tag Resource

opensearchserviceserverless_tag_resource R Documentation

Associates tags with an OpenSearch Serverless resource

Description

Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.

Usage

opensearchserviceserverless_tag_resource(resourceArn, tags)

Arguments

resourceArn

[required] The Amazon Resource Name (ARN) of the resource. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.

tags

[required] A list of tags (key-value pairs) to add to the resource. All tag keys in the request must be unique.

Value

An empty list.

Request syntax

svc$tag_resource(
  resourceArn = "string",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)