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 |
Removes a tag from the specified resource.
Synopsis
- data UntagResource = UntagResource' {
- resourceArn :: Text
- tagKeys :: NonEmpty Text
- newUntagResource :: Text -> NonEmpty Text -> UntagResource
- untagResource_resourceArn :: Lens' UntagResource Text
- untagResource_tagKeys :: Lens' UntagResource (NonEmpty Text)
- data UntagResourceResponse = UntagResourceResponse' {
- httpStatus :: Int
- newUntagResourceResponse :: Int -> UntagResourceResponse
- untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
Creating a Request
data UntagResource Source #
See: newUntagResource
smart constructor.
UntagResource' | |
|
Instances
Create a value of UntagResource
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:UntagResource'
, untagResource_resourceArn
- The Amazon Resource Name (ARN) of the resource whose tags are to be
removed.
$sel:tagKeys:UntagResource'
, untagResource_tagKeys
- A list of tag key names to remove from the resource. You don't specify
the value. Both the key and its associated value are removed.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
Request Lenses
untagResource_resourceArn :: Lens' UntagResource Text Source #
The Amazon Resource Name (ARN) of the resource whose tags are to be removed.
untagResource_tagKeys :: Lens' UntagResource (NonEmpty Text) Source #
A list of tag key names to remove from the resource. You don't specify the value. Both the key and its associated value are removed.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
Destructuring the Response
data UntagResourceResponse Source #
See: newUntagResourceResponse
smart constructor.
UntagResourceResponse' | |
|
Instances
newUntagResourceResponse Source #
Create a value of UntagResourceResponse
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:UntagResourceResponse'
, untagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int Source #
The response's http status code.