Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Removes one or more tags from the specified secret.
This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.
Important: If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.
Minimum permissions
To run this command, you must have the following permissions:
- secretsmanager:UntagResource
Related operations
- To add one or more tags to the collection attached to a secret, use
TagResource
. - To view the list of tags attached to a secret, use
DescribeSecret
.
Synopsis
Creating a Request
Creates a value of UntagResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urSecretId
- The identifier for the secret that you want to remove tags from. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.urTagKeys
- A list of tag key names to remove from the secret. 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 .
data UntagResource Source #
See: untagResource
smart constructor.
Instances
Request Lenses
urSecretId :: Lens' UntagResource Text Source #
The identifier for the secret that you want to remove tags from. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
urTagKeys :: Lens' UntagResource [Text] Source #
A list of tag key names to remove from the secret. 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
untagResourceResponse :: UntagResourceResponse Source #
Creates a value of UntagResourceResponse
with the minimum fields required to make a request.
data UntagResourceResponse Source #
See: untagResourceResponse
smart constructor.