Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
.
- restoreSecret :: Text -> RestoreSecret
- data RestoreSecret
- rSecretId :: Lens' RestoreSecret Text
- restoreSecretResponse :: Int -> RestoreSecretResponse
- data RestoreSecretResponse
- rrsARN :: Lens' RestoreSecretResponse (Maybe Text)
- rrsName :: Lens' RestoreSecretResponse (Maybe Text)
- rrsResponseStatus :: Lens' RestoreSecretResponse Int
Creating a Request
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.
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.
Response Lenses
rrsName :: Lens' RestoreSecretResponse (Maybe Text) Source #
The friendly name of the secret that was restored.
rrsResponseStatus :: Lens' RestoreSecretResponse Int Source #
- - | The response status code.