amazonka-secretsmanager-2.0: Amazon Secrets Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SecretsManager.CancelRotateSecret

Description

Turns off automatic rotation, and if a rotation is currently in progress, cancels the rotation.

If you cancel a rotation in progress, it can leave the VersionStage labels in an unexpected state. You might need to remove the staging label AWSPENDING from the partially created version. You also need to determine whether to roll back to the previous version of the secret by moving the staging label AWSCURRENT to the version that has AWSPENDING. To determine which version has a specific staging label, call ListSecretVersionIds. Then use UpdateSecretVersionStage to change staging labels. For more information, see How rotation works.

To turn on automatic rotation again, call RotateSecret.

Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.

Required permissions: secretsmanager:CancelRotateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

Synopsis

Creating a Request

data CancelRotateSecret Source #

See: newCancelRotateSecret smart constructor.

Constructors

CancelRotateSecret' 

Fields

Instances

Instances details
ToJSON CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

ToHeaders CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

ToPath CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

ToQuery CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

AWSRequest CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Associated Types

type AWSResponse CancelRotateSecret #

Generic CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Associated Types

type Rep CancelRotateSecret :: Type -> Type #

Read CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Show CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

NFData CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Methods

rnf :: CancelRotateSecret -> () #

Eq CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Hashable CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

type AWSResponse CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

type Rep CancelRotateSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

type Rep CancelRotateSecret = D1 ('MetaData "CancelRotateSecret" "Amazonka.SecretsManager.CancelRotateSecret" "amazonka-secretsmanager-2.0-8tljeZ4CwL92E7JavkDb0o" 'False) (C1 ('MetaCons "CancelRotateSecret'" 'PrefixI 'True) (S1 ('MetaSel ('Just "secretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCancelRotateSecret Source #

Create a value of CancelRotateSecret with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:secretId:CancelRotateSecret', cancelRotateSecret_secretId - The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

Request Lenses

cancelRotateSecret_secretId :: Lens' CancelRotateSecret Text Source #

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

Destructuring the Response

data CancelRotateSecretResponse Source #

See: newCancelRotateSecretResponse smart constructor.

Constructors

CancelRotateSecretResponse' 

Fields

  • arn :: Maybe Text

    The ARN of the secret.

  • name :: Maybe Text

    The name of the secret.

  • versionId :: Maybe Text

    The unique identifier of the version of the secret created during the rotation. This version might not be complete, and should be evaluated for possible deletion. We recommend that you remove the VersionStage value AWSPENDING from this version so that Secrets Manager can delete it. Failing to clean up a cancelled rotation can block you from starting future rotations.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Associated Types

type Rep CancelRotateSecretResponse :: Type -> Type #

Read CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Show CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

NFData CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

Eq CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

type Rep CancelRotateSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.CancelRotateSecret

type Rep CancelRotateSecretResponse = D1 ('MetaData "CancelRotateSecretResponse" "Amazonka.SecretsManager.CancelRotateSecret" "amazonka-secretsmanager-2.0-8tljeZ4CwL92E7JavkDb0o" 'False) (C1 ('MetaCons "CancelRotateSecretResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCancelRotateSecretResponse Source #

Create a value of CancelRotateSecretResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CancelRotateSecretResponse, cancelRotateSecretResponse_arn - The ARN of the secret.

CancelRotateSecretResponse, cancelRotateSecretResponse_name - The name of the secret.

CancelRotateSecretResponse, cancelRotateSecretResponse_versionId - The unique identifier of the version of the secret created during the rotation. This version might not be complete, and should be evaluated for possible deletion. We recommend that you remove the VersionStage value AWSPENDING from this version so that Secrets Manager can delete it. Failing to clean up a cancelled rotation can block you from starting future rotations.

$sel:httpStatus:CancelRotateSecretResponse', cancelRotateSecretResponse_httpStatus - The response's http status code.

Response Lenses

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

The unique identifier of the version of the secret created during the rotation. This version might not be complete, and should be evaluated for possible deletion. We recommend that you remove the VersionStage value AWSPENDING from this version so that Secrets Manager can delete it. Failing to clean up a cancelled rotation can block you from starting future rotations.