Skip to content

Adds one or more tags to an associated repository

Description

Adds one or more tags to an associated repository.

Usage

codegurureviewer_tag_resource(resourceArn, Tags)

Arguments

  • resourceArn

    [required] The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling list_repository_associations.

  • Tags

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

    • A tag key (for example, CostCenter, Environment, Project, or Secret). Tag keys are case sensitive.
    • An optional field known as a tag value (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.

Value

An empty list.

Request syntax

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