Copyright | (c) 2013-2021 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 |
Applies tags to an AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise server, or to server backups.
Synopsis
- data TagResource = TagResource' {
- resourceArn :: Text
- tags :: [Tag]
- newTagResource :: Text -> TagResource
- tagResource_resourceArn :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource [Tag]
- data TagResourceResponse = TagResourceResponse' {
- httpStatus :: Int
- newTagResourceResponse :: Int -> TagResourceResponse
- tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
Creating a Request
data TagResource Source #
See: newTagResource
smart constructor.
TagResource' | |
|
Instances
Create a value of TagResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceArn:TagResource'
, tagResource_resourceArn
- The Amazon Resource Number (ARN) of a resource to which you want to
apply tags. For example,
arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE
.
$sel:tags:TagResource'
, tagResource_tags
- A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
servers or backups.
- 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 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.
Request Lenses
tagResource_resourceArn :: Lens' TagResource Text Source #
The Amazon Resource Number (ARN) of a resource to which you want to
apply tags. For example,
arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE
.
tagResource_tags :: Lens' TagResource [Tag] Source #
A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.
- 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 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
TagResourceResponse' | |
|
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int Source #
The response's http status code.