Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.DirectConnect.TagResource
Description
Adds the specified tags to the specified Direct Connect resource. Each Direct Connect resource can have a maximum of 50 tags.
Each tag consists of a key and an optional value. If a tag with the same key is already associated with the Direct Connect resource, this action updates its value.
Creating a Request
Arguments
:: Text | |
-> NonEmpty Tag | |
-> 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 Amazon Resource Name (ARN) of the Direct Connect resource. Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678ghtrTags
- The list of tags to add.
data TagResource #
Container for the parameters to the TagResource operation.
See: tagResource
smart constructor.
Instances
Request Lenses
trResourceARN :: Lens' TagResource Text #
The Amazon Resource Name (ARN) of the Direct Connect resource. Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh
Destructuring the Response
Arguments
:: Int | |
-> TagResourceResponse |
Creates a value of TagResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trrsResponseStatus
- -- | The response status code.
data TagResourceResponse #
The response received when TagResource is called.
See: tagResourceResponse
smart constructor.
Response Lenses
trrsResponseStatus :: Lens' TagResourceResponse Int #
- - | The response status code.