| 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 |
Network.AWS.Snowball.GetJobUnlockCode
Description
Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created.
The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time.
As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
Synopsis
- getJobUnlockCode :: Text -> GetJobUnlockCode
- data GetJobUnlockCode
- gjucJobId :: Lens' GetJobUnlockCode Text
- getJobUnlockCodeResponse :: Int -> GetJobUnlockCodeResponse
- data GetJobUnlockCodeResponse
- gjucrsUnlockCode :: Lens' GetJobUnlockCodeResponse (Maybe Text)
- gjucrsResponseStatus :: Lens' GetJobUnlockCodeResponse Int
Creating a Request
Arguments
| :: Text | |
| -> GetJobUnlockCode |
Creates a value of GetJobUnlockCode with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gjucJobId- The ID for the job that you want to get theUnlockCodevalue for, for exampleJID123e4567-e89b-12d3-a456-426655440000.
data GetJobUnlockCode Source #
See: getJobUnlockCode smart constructor.
Instances
Request Lenses
gjucJobId :: Lens' GetJobUnlockCode Text Source #
The ID for the job that you want to get the UnlockCode value for, for example JID123e4567-e89b-12d3-a456-426655440000 .
Destructuring the Response
getJobUnlockCodeResponse Source #
Arguments
| :: Int | |
| -> GetJobUnlockCodeResponse |
Creates a value of GetJobUnlockCodeResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gjucrsUnlockCode- TheUnlockCodevalue for the specified job. TheUnlockCodevalue can be accessed for up to 90 days after the job has been created.gjucrsResponseStatus- -- | The response status code.
data GetJobUnlockCodeResponse Source #
See: getJobUnlockCodeResponse smart constructor.
Instances
Response Lenses
gjucrsUnlockCode :: Lens' GetJobUnlockCodeResponse (Maybe Text) Source #
The UnlockCode value for the specified job. The UnlockCode value can be accessed for up to 90 days after the job has been created.
gjucrsResponseStatus :: Lens' GetJobUnlockCodeResponse Int Source #
- - | The response status code.