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 |
Deletes the specified set of tag keys and their values from the specified Amazon Lightsail resource.
The untag resource
operation supports tag-based access control via
request tags and resource tags applied to the resource identified by
resource name
. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data UntagResource = UntagResource' {
- resourceArn :: Maybe Text
- resourceName :: Text
- tagKeys :: [Text]
- newUntagResource :: Text -> UntagResource
- untagResource_resourceArn :: Lens' UntagResource (Maybe Text)
- untagResource_resourceName :: Lens' UntagResource Text
- untagResource_tagKeys :: Lens' UntagResource [Text]
- data UntagResourceResponse = UntagResourceResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newUntagResourceResponse :: Int -> UntagResourceResponse
- untagResourceResponse_operations :: Lens' UntagResourceResponse (Maybe [Operation])
- 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 from which you want to
remove a tag.
$sel:resourceName:UntagResource'
, untagResource_resourceName
- The name of the resource from which you are removing a tag.
$sel:tagKeys:UntagResource'
, untagResource_tagKeys
- The tag keys to delete from the specified resource.
Request Lenses
untagResource_resourceArn :: Lens' UntagResource (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource from which you want to remove a tag.
untagResource_resourceName :: Lens' UntagResource Text Source #
The name of the resource from which you are removing a tag.
untagResource_tagKeys :: Lens' UntagResource [Text] Source #
The tag keys to delete from the specified resource.
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:operations:UntagResourceResponse'
, untagResourceResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:UntagResourceResponse'
, untagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
untagResourceResponse_operations :: Lens' UntagResourceResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int Source #
The response's http status code.