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.RestoreSecret

Contents

Description

Cancels the scheduled deletion of a secret by removing the DeletedDate time stamp. This makes the secret accessible to query once again.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:RestoreSecret

Related operations

  • To delete a secret, use DeleteSecret .

Synopsis

Creating a Request

restoreSecret Source #

Creates a value of RestoreSecret with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rSecretId - Specifies the secret that you want to restore from a previously scheduled deletion. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

data RestoreSecret Source #

See: restoreSecret smart constructor.

Instances

Eq RestoreSecret Source # 
Data RestoreSecret Source # 

Methods

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

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

toConstr :: RestoreSecret -> Constr #

dataTypeOf :: RestoreSecret -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreSecret Source # 
Show RestoreSecret Source # 
Generic RestoreSecret Source # 

Associated Types

type Rep RestoreSecret :: * -> * #

Hashable RestoreSecret Source # 
ToJSON RestoreSecret Source # 
NFData RestoreSecret Source # 

Methods

rnf :: RestoreSecret -> () #

AWSRequest RestoreSecret Source # 
ToHeaders RestoreSecret Source # 
ToPath RestoreSecret Source # 
ToQuery RestoreSecret Source # 
type Rep RestoreSecret Source # 
type Rep RestoreSecret = D1 * (MetaData "RestoreSecret" "Network.AWS.SecretsManager.RestoreSecret" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" True) (C1 * (MetaCons "RestoreSecret'" PrefixI True) (S1 * (MetaSel (Just Symbol "_rSecretId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs RestoreSecret Source # 

Request Lenses

rSecretId :: Lens' RestoreSecret Text Source #

Specifies the secret that you want to restore from a previously scheduled deletion. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

Destructuring the Response

restoreSecretResponse Source #

Creates a value of RestoreSecretResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rrsARN - The ARN of the secret that was restored.
  • rrsName - The friendly name of the secret that was restored.
  • rrsResponseStatus - -- | The response status code.

data RestoreSecretResponse Source #

See: restoreSecretResponse smart constructor.

Instances

Eq RestoreSecretResponse Source # 
Data RestoreSecretResponse Source # 

Methods

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

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

toConstr :: RestoreSecretResponse -> Constr #

dataTypeOf :: RestoreSecretResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreSecretResponse Source # 
Show RestoreSecretResponse Source # 
Generic RestoreSecretResponse Source # 
NFData RestoreSecretResponse Source # 

Methods

rnf :: RestoreSecretResponse -> () #

type Rep RestoreSecretResponse Source # 
type Rep RestoreSecretResponse = D1 * (MetaData "RestoreSecretResponse" "Network.AWS.SecretsManager.RestoreSecret" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "RestoreSecretResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_rrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

rrsARN :: Lens' RestoreSecretResponse (Maybe Text) Source #

The ARN of the secret that was restored.

rrsName :: Lens' RestoreSecretResponse (Maybe Text) Source #

The friendly name of the secret that was restored.

rrsResponseStatus :: Lens' RestoreSecretResponse Int Source #

  • - | The response status code.