| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.OpsWorks.TagResource
Description
Apply cost-allocation tags to a specified stack or layer in AWS OpsWorks Stacks. For more information about how tagging works, see Tags in the AWS OpsWorks User Guide.
Creating a Request
Arguments
| :: Text | |
| -> TagResource |
Creates a value of TagResource with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trResourceARN- The stack or layer's Amazon Resource Number (ARN).trTags- 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.
data TagResource Source #
See: tagResource smart constructor.
Instances
Request Lenses
trResourceARN :: Lens' TagResource Text Source #
The stack or layer's Amazon Resource Number (ARN).
trTags :: Lens' TagResource (HashMap Text Text) Source #
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.
Destructuring the Response
tagResourceResponse :: TagResourceResponse Source #
Creates a value of TagResourceResponse with the minimum fields required to make a request.
data TagResourceResponse Source #
See: tagResourceResponse smart constructor.