Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Cancels the scheduled deletion of a secret by removing the DeletedDate
time stamp. You can access a secret again after it has been restored.
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:RestoreSecret
. For more
information, see
IAM policy actions for Secrets Manager
and
Authentication and access control in Secrets Manager.
Synopsis
- data RestoreSecret = RestoreSecret' {}
- newRestoreSecret :: Text -> RestoreSecret
- restoreSecret_secretId :: Lens' RestoreSecret Text
- data RestoreSecretResponse = RestoreSecretResponse' {}
- newRestoreSecretResponse :: Int -> RestoreSecretResponse
- restoreSecretResponse_arn :: Lens' RestoreSecretResponse (Maybe Text)
- restoreSecretResponse_name :: Lens' RestoreSecretResponse (Maybe Text)
- restoreSecretResponse_httpStatus :: Lens' RestoreSecretResponse Int
Creating a Request
data RestoreSecret Source #
See: newRestoreSecret
smart constructor.
RestoreSecret' | |
|
Instances
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
- The ARN or name of the secret to restore.
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
restoreSecret_secretId :: Lens' RestoreSecret Text Source #
The ARN or name of the secret to restore.
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 RestoreSecretResponse Source #
See: newRestoreSecretResponse
smart constructor.
Instances
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:
RestoreSecretResponse
, restoreSecretResponse_arn
- The ARN of the secret that was restored.
RestoreSecretResponse
, restoreSecretResponse_name
- The 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 name of the secret that was restored.
restoreSecretResponse_httpStatus :: Lens' RestoreSecretResponse Int Source #
The response's http status code.