Skip to content

Tag Resource

codegurusecurity_tag_resource R Documentation

Use to add one or more tags to an existing scan

Description

Use to add one or more tags to an existing scan.

Usage

codegurusecurity_tag_resource(resourceArn, tags)

Arguments

resourceArn

[required] The ARN of the ScanName object. You can retrieve this ARN by calling create_scan, list_scans, or get_scan.

tags

[required] An array of key-value pairs used to tag an existing scan. A tag is a custom attribute label with two parts:

  • A tag key. For example, CostCenter, Environment, or Secret. Tag keys are case sensitive.

  • An optional tag value field. For example, 111122223333, Production, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.

Value

An empty list.

Request syntax

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