amazonka-secretsmanager-1.6.1: 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 # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Data UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

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 # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Show UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Generic UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Associated Types

type Rep UntagResource :: Type -> Type #

Hashable UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

ToJSON UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

AWSRequest UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Associated Types

type Rs UntagResource :: Type #

ToHeaders UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

ToPath UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

ToQuery UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

NFData UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Methods

rnf :: UntagResource -> () #

type Rep UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

type Rep UntagResource = D1 (MetaData "UntagResource" "Network.AWS.SecretsManager.UntagResource" "amazonka-secretsmanager-1.6.1-6zeL5AAjwvS5hEyIAnn7A2" False) (C1 (MetaCons "UntagResource'" PrefixI True) (S1 (MetaSel (Just "_urSecretId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_urTagKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs UntagResource Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

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 # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Data UntagResourceResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

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 # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Show UntagResourceResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Generic UntagResourceResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Associated Types

type Rep UntagResourceResponse :: Type -> Type #

NFData UntagResourceResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

Methods

rnf :: UntagResourceResponse -> () #

type Rep UntagResourceResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.UntagResource

type Rep UntagResourceResponse = D1 (MetaData "UntagResourceResponse" "Network.AWS.SecretsManager.UntagResource" "amazonka-secretsmanager-1.6.1-6zeL5AAjwvS5hEyIAnn7A2" False) (C1 (MetaCons "UntagResourceResponse'" PrefixI False) (U1 :: Type -> Type))