Skip to content

Tag Resource

opsworks_tag_resource R Documentation

Apply cost-allocation tags to a specified stack or layer in OpsWorks Stacks

Description

Apply cost-allocation tags to a specified stack or layer in OpsWorks Stacks. For more information about how tagging works, see Tags in the OpsWorks User Guide.

Usage

opsworks_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] The stack or layer's Amazon Resource Number (ARN).

Tags

[required] A map that contains tag keys and tag values that are attached to a stack or layer.

  • The key cannot be empty.

  • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: ⁠+ - = . _ : /⁠

  • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: ⁠+ - = . _ : /⁠

  • Leading and trailing white spaces are trimmed from both the key and value.

  • A maximum of 40 tags is allowed for any resource.

Value

An empty list.

Request syntax

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