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

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

Network.AWS.Snowball.UpdateJob

Contents

Description

While a job's JobState value is New , you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.

Synopsis

Creating a Request

updateJob Source #

Arguments

:: Text

ujJobId

-> UpdateJob 

Creates a value of UpdateJob with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateJob Source #

See: updateJob smart constructor.

Instances

Eq UpdateJob Source # 
Data UpdateJob Source # 

Methods

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

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

toConstr :: UpdateJob -> Constr #

dataTypeOf :: UpdateJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateJob Source # 
Show UpdateJob Source # 
Generic UpdateJob Source # 

Associated Types

type Rep UpdateJob :: * -> * #

Hashable UpdateJob Source # 
ToJSON UpdateJob Source # 
NFData UpdateJob Source # 

Methods

rnf :: UpdateJob -> () #

AWSRequest UpdateJob Source # 
ToPath UpdateJob Source # 
ToHeaders UpdateJob Source # 

Methods

toHeaders :: UpdateJob -> [Header] #

ToQuery UpdateJob Source # 
type Rep UpdateJob Source # 
type Rs UpdateJob Source # 

Request Lenses

ujAddressId :: Lens' UpdateJob (Maybe Text) Source #

The ID of the updated Address object.

ujShippingOption :: Lens' UpdateJob (Maybe ShippingOption) Source #

The updated shipping option value of this job's ShippingDetails object.

ujResources :: Lens' UpdateJob (Maybe JobResource) Source #

The updated S3Resource object (for a single Amazon S3 bucket or key range), or the updated JobResource object (for multiple buckets or key ranges).

ujDescription :: Lens' UpdateJob (Maybe Text) Source #

The updated description of this job's JobMetadata object.

ujRoleARN :: Lens' UpdateJob (Maybe Text) Source #

The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRole AWS Identity and Access Management (IAM) API action.

ujSnowballCapacityPreference :: Lens' UpdateJob (Maybe SnowballCapacity) Source #

The updated SnowballCapacityPreference of this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.

ujJobId :: Lens' UpdateJob Text Source #

The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000 .

Destructuring the Response

updateJobResponse Source #

Creates a value of UpdateJobResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateJobResponse Source #

See: updateJobResponse smart constructor.

Instances

Eq UpdateJobResponse Source # 
Data UpdateJobResponse Source # 

Methods

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

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

toConstr :: UpdateJobResponse -> Constr #

dataTypeOf :: UpdateJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateJobResponse Source # 
Show UpdateJobResponse Source # 
Generic UpdateJobResponse Source # 
NFData UpdateJobResponse Source # 

Methods

rnf :: UpdateJobResponse -> () #

type Rep UpdateJobResponse Source # 
type Rep UpdateJobResponse = D1 (MetaData "UpdateJobResponse" "Network.AWS.Snowball.UpdateJob" "amazonka-snowball-1.4.5-GVXH7ePYHlf2lvcBgzg5iA" True) (C1 (MetaCons "UpdateJobResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_ujrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

ujrsResponseStatus :: Lens' UpdateJobResponse Int Source #

  • - | The response status code.