amazonka-snowball-1.6.0: Amazon Import/Export Snowball SDK.

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

Network.AWS.Snowball.GetJobUnlockCode

Contents

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

Creating a Request

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 the UnlockCode value for, for example JID123e4567-e89b-12d3-a456-426655440000 .

data GetJobUnlockCode #

See: getJobUnlockCode smart constructor.

Instances
Eq GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Data GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetJobUnlockCode -> c GetJobUnlockCode #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetJobUnlockCode #

toConstr :: GetJobUnlockCode -> Constr #

dataTypeOf :: GetJobUnlockCode -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetJobUnlockCode) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetJobUnlockCode) #

gmapT :: (forall b. Data b => b -> b) -> GetJobUnlockCode -> GetJobUnlockCode #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetJobUnlockCode -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetJobUnlockCode -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetJobUnlockCode -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetJobUnlockCode -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetJobUnlockCode -> m GetJobUnlockCode #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetJobUnlockCode -> m GetJobUnlockCode #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetJobUnlockCode -> m GetJobUnlockCode #

Read GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Show GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Generic GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Associated Types

type Rep GetJobUnlockCode :: * -> * #

Hashable GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

ToJSON GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

AWSRequest GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Associated Types

type Rs GetJobUnlockCode :: * #

ToHeaders GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

ToPath GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

ToQuery GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

NFData GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Methods

rnf :: GetJobUnlockCode -> () #

type Rep GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

type Rep GetJobUnlockCode = D1 (MetaData "GetJobUnlockCode" "Network.AWS.Snowball.GetJobUnlockCode" "amazonka-snowball-1.6.0-8yJ8aNw8nw6I7L9Jr6XQX1" True) (C1 (MetaCons "GetJobUnlockCode'" PrefixI True) (S1 (MetaSel (Just "_gjucJobId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetJobUnlockCode # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Request Lenses

gjucJobId :: Lens' GetJobUnlockCode Text #

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 #

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 - 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 - -- | The response status code.

data GetJobUnlockCodeResponse #

See: getJobUnlockCodeResponse smart constructor.

Instances
Eq GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Data GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetJobUnlockCodeResponse -> c GetJobUnlockCodeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetJobUnlockCodeResponse #

toConstr :: GetJobUnlockCodeResponse -> Constr #

dataTypeOf :: GetJobUnlockCodeResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetJobUnlockCodeResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetJobUnlockCodeResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetJobUnlockCodeResponse -> GetJobUnlockCodeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetJobUnlockCodeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetJobUnlockCodeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetJobUnlockCodeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetJobUnlockCodeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetJobUnlockCodeResponse -> m GetJobUnlockCodeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetJobUnlockCodeResponse -> m GetJobUnlockCodeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetJobUnlockCodeResponse -> m GetJobUnlockCodeResponse #

Read GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Show GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Generic GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

Associated Types

type Rep GetJobUnlockCodeResponse :: * -> * #

NFData GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

type Rep GetJobUnlockCodeResponse # 
Instance details

Defined in Network.AWS.Snowball.GetJobUnlockCode

type Rep GetJobUnlockCodeResponse = D1 (MetaData "GetJobUnlockCodeResponse" "Network.AWS.Snowball.GetJobUnlockCode" "amazonka-snowball-1.6.0-8yJ8aNw8nw6I7L9Jr6XQX1" False) (C1 (MetaCons "GetJobUnlockCodeResponse'" PrefixI True) (S1 (MetaSel (Just "_gjucrsUnlockCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gjucrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gjucrsUnlockCode :: Lens' GetJobUnlockCodeResponse (Maybe Text) #

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 #

  • - | The response status code.