Skip to content

Set Tags For Resource

inspector_set_tags_for_resource R Documentation

Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template

Description

Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.

Usage

inspector_set_tags_for_resource(resourceArn, tags)

Arguments

resourceArn

[required] The ARN of the assessment template that you want to set tags to.

tags

A collection of key and value pairs that you want to set to the assessment template.

Value

An empty list.

Request syntax

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

Examples

## Not run: 
# Sets tags (key and value pairs) to the assessment template that is
# specified by the ARN of the assessment template.
svc$set_tags_for_resource(
  resourceArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX...",
  tags = list(
    list(
      key = "Example",
      value = "example"
    )
  )
)

## End(Not run)