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

Contents

Description

Disables automatic scheduled rotation and cancels the rotation of a secret if one is currently in progress.

To re-enable scheduled rotation, call RotateSecret with AutomaticallyRotateAfterDays set to a value greater than 0. This will immediately rotate your secret and then enable the automatic schedule.

To successfully start a rotation, the staging label AWSPENDING must be in one of the following states:

  • Not be attached to any version at all
  • Attached to the same version as the staging label AWSCURRENT

If the staging label AWSPENDING is attached to a different version than the version with AWSCURRENT then the attempt to rotate fails.

Minimum permissions

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

  • secretsmanager:CancelRotateSecret

Related operations

  • To configure rotation for a secret or to manually trigger a rotation, use RotateSecret .
  • To get the rotation configuration details for a secret, use DescribeSecret .
  • To list all of the currently available secrets, use ListSecrets .
  • To list all of the versions currently associated with a secret, use ListSecretVersionIds .

Synopsis

Creating a Request

cancelRotateSecret Source #

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

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

  • crsSecretId - Specifies the secret for which you want to cancel a rotation request. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

data CancelRotateSecret Source #

See: cancelRotateSecret smart constructor.

Instances

Eq CancelRotateSecret Source # 
Data CancelRotateSecret Source # 

Methods

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

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

toConstr :: CancelRotateSecret -> Constr #

dataTypeOf :: CancelRotateSecret -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelRotateSecret Source # 
Show CancelRotateSecret Source # 
Generic CancelRotateSecret Source # 
Hashable CancelRotateSecret Source # 
ToJSON CancelRotateSecret Source # 
NFData CancelRotateSecret Source # 

Methods

rnf :: CancelRotateSecret -> () #

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

Request Lenses

crsSecretId :: Lens' CancelRotateSecret Text Source #

Specifies the secret for which you want to cancel a rotation request. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

Destructuring the Response

cancelRotateSecretResponse Source #

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

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

  • crsrsVersionId - The unique identifier of the version of the secret that was created during the rotation. This version might not be complete, and should be evaluated for possible deletion. At the very least, you should remove the VersionStage value AWSPENDING to enable this version to be deleted. Failing to clean up a cancelled rotation can block you from successfully starting future rotations.
  • crsrsARN - The ARN of the secret for which rotation was canceled.
  • crsrsName - The friendly name of the secret for which rotation was canceled.
  • crsrsResponseStatus - -- | The response status code.

data CancelRotateSecretResponse Source #

See: cancelRotateSecretResponse smart constructor.

Instances

Eq CancelRotateSecretResponse Source # 
Data CancelRotateSecretResponse Source # 

Methods

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

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

toConstr :: CancelRotateSecretResponse -> Constr #

dataTypeOf :: CancelRotateSecretResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelRotateSecretResponse Source # 
Show CancelRotateSecretResponse Source # 
Generic CancelRotateSecretResponse Source # 
NFData CancelRotateSecretResponse Source # 
type Rep CancelRotateSecretResponse Source # 
type Rep CancelRotateSecretResponse = D1 * (MetaData "CancelRotateSecretResponse" "Network.AWS.SecretsManager.CancelRotateSecret" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "CancelRotateSecretResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_crsrsVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_crsrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_crsrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_crsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

crsrsVersionId :: Lens' CancelRotateSecretResponse (Maybe Text) Source #

The unique identifier of the version of the secret that was created during the rotation. This version might not be complete, and should be evaluated for possible deletion. At the very least, you should remove the VersionStage value AWSPENDING to enable this version to be deleted. Failing to clean up a cancelled rotation can block you from successfully starting future rotations.

crsrsARN :: Lens' CancelRotateSecretResponse (Maybe Text) Source #

The ARN of the secret for which rotation was canceled.

crsrsName :: Lens' CancelRotateSecretResponse (Maybe Text) Source #

The friendly name of the secret for which rotation was canceled.