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

Amazonka.SecretsManager.RestoreSecret

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

data RestoreSecret Source #

See: newRestoreSecret smart constructor.

Constructors

RestoreSecret' 

Fields

  • secretId :: Text

    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.

    For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Instances

Instances details
Eq RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Read RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Show RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Generic RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Associated Types

type Rep RestoreSecret :: Type -> Type #

NFData RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Methods

rnf :: RestoreSecret -> () #

Hashable RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

ToJSON RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

AWSRequest RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Associated Types

type AWSResponse RestoreSecret #

ToHeaders RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

ToPath RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

ToQuery RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

type Rep RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

type Rep RestoreSecret = D1 ('MetaData "RestoreSecret" "Amazonka.SecretsManager.RestoreSecret" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "RestoreSecret'" 'PrefixI 'True) (S1 ('MetaSel ('Just "secretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse RestoreSecret Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

newRestoreSecret Source #

Create a value of RestoreSecret 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:RestoreSecret', restoreSecret_secretId - 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.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Request Lenses

restoreSecret_secretId :: 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.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Destructuring the Response

data RestoreSecretResponse Source #

See: newRestoreSecretResponse smart constructor.

Constructors

RestoreSecretResponse' 

Fields

Instances

Instances details
Eq RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Read RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Show RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Generic RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Associated Types

type Rep RestoreSecretResponse :: Type -> Type #

NFData RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

Methods

rnf :: RestoreSecretResponse -> () #

type Rep RestoreSecretResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.RestoreSecret

type Rep RestoreSecretResponse = D1 ('MetaData "RestoreSecretResponse" "Amazonka.SecretsManager.RestoreSecret" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "RestoreSecretResponse'" '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 "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRestoreSecretResponse Source #

Create a value of RestoreSecretResponse 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:arn:RestoreSecretResponse', restoreSecretResponse_arn - The ARN of the secret that was restored.

$sel:name:RestoreSecretResponse', restoreSecretResponse_name - The friendly name of the secret that was restored.

$sel:httpStatus:RestoreSecretResponse', restoreSecretResponse_httpStatus - The response's http status code.

Response Lenses

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

The ARN of the secret that was restored.

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

The friendly name of the secret that was restored.