amazonka-secretsmanager-1.6.0: Amazon Secrets Manager SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SecretsManager.UntagResource

Contents

Description

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

untagResource Source #

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

Eq UntagResource Source # 
Data UntagResource Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UntagResource -> c UntagResource #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UntagResource #

toConstr :: UntagResource -> Constr #

dataTypeOf :: UntagResource -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UntagResource) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UntagResource) #

gmapT :: (forall b. Data b => b -> b) -> UntagResource -> UntagResource #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UntagResource -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UntagResource -> r #

gmapQ :: (forall d. Data d => d -> u) -> UntagResource -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UntagResource -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UntagResource -> m UntagResource #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UntagResource -> m UntagResource #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UntagResource -> m UntagResource #

Read UntagResource Source # 
Show UntagResource Source # 
Generic UntagResource Source # 

Associated Types

type Rep UntagResource :: * -> * #

Hashable UntagResource Source # 
ToJSON UntagResource Source # 
NFData UntagResource Source # 

Methods

rnf :: UntagResource -> () #

AWSRequest UntagResource Source # 
ToHeaders UntagResource Source # 
ToPath UntagResource Source # 
ToQuery UntagResource Source # 
type Rep UntagResource Source # 
type Rep UntagResource = D1 * (MetaData "UntagResource" "Network.AWS.SecretsManager.UntagResource" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "UntagResource'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_urSecretId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_urTagKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text]))))
type Rs UntagResource Source # 

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.

Instances

Eq UntagResourceResponse Source # 
Data UntagResourceResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UntagResourceResponse -> c UntagResourceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UntagResourceResponse #

toConstr :: UntagResourceResponse -> Constr #

dataTypeOf :: UntagResourceResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UntagResourceResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UntagResourceResponse) #

gmapT :: (forall b. Data b => b -> b) -> UntagResourceResponse -> UntagResourceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UntagResourceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UntagResourceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UntagResourceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UntagResourceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UntagResourceResponse -> m UntagResourceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UntagResourceResponse -> m UntagResourceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UntagResourceResponse -> m UntagResourceResponse #

Read UntagResourceResponse Source # 
Show UntagResourceResponse Source # 
Generic UntagResourceResponse Source # 
NFData UntagResourceResponse Source # 

Methods

rnf :: UntagResourceResponse -> () #

type Rep UntagResourceResponse Source # 
type Rep UntagResourceResponse = D1 * (MetaData "UntagResourceResponse" "Network.AWS.SecretsManager.UntagResource" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "UntagResourceResponse'" PrefixI False) (U1 *))