Skip to content

Tag Resource

configservice_tag_resource R Documentation

Associates the specified tags to a resource with the specified ResourceArn

Description

Associates the specified tags to a resource with the specified ResourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. If existing tags are specified, however, then their values will be updated. When a resource is deleted, the tags associated with that resource are deleted as well.

Usage

configservice_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:

  • ConfigurationRecorder

  • ConfigRule

  • OrganizationConfigRule

  • ConformancePack

  • OrganizationConformancePack

  • ConfigurationAggregator

  • AggregationAuthorization

  • StoredQuery

Tags

[required] An array of tag object.

Value

An empty list.

Request syntax

svc$tag_resource(
  ResourceArn = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)