| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.ManagedBlockChain.TagResource
Description
Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value.
When you specify a tag key that already exists, the tag value is
 overwritten with the new value. Use UntagResource to remove tag keys.
A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
Synopsis
- data TagResource = TagResource' {}
 - newTagResource :: Text -> TagResource
 - tagResource_resourceArn :: Lens' TagResource Text
 - tagResource_tags :: Lens' TagResource (HashMap Text Text)
 - data TagResourceResponse = TagResourceResponse' {
- httpStatus :: Int
 
 - newTagResourceResponse :: Int -> TagResourceResponse
 - tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
 
Creating a Request
data TagResource Source #
See: newTagResource smart constructor.
Constructors
| TagResource' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> TagResource | 
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 Name (ARN) of the resource. For more information
 about ARNs and their format, see
 Amazon Resource Names (ARNs)
 in the Amazon Web Services General Reference.
TagResource, tagResource_tags - The tags to assign to the specified resource. Tag values can be empty,
 for example, "MyTagKey" : "". You can specify multiple key-value
 pairs in a single request, with an overall maximum of 50 tags added to
 each resource.
Request Lenses
tagResource_resourceArn :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) of the resource. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
tagResource_tags :: Lens' TagResource (HashMap Text Text) Source #
The tags to assign to the specified resource. Tag values can be empty,
 for example, "MyTagKey" : "". You can specify multiple key-value
 pairs in a single request, with an overall maximum of 50 tags added to
 each resource.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse smart constructor.
Constructors
| TagResourceResponse' | |
Fields 
  | |
Instances
newTagResourceResponse Source #
Arguments
| :: Int | |
| -> TagResourceResponse | 
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.