amazonka-glue-1.6.0: Amazon Glue 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.Glue.CreateJob

Contents

Description

Creates a new job definition.

Synopsis

Creating a Request

createJob Source #

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

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

  • cjConnections - The connections used for this job.
  • cjLogURI - This field is reserved for future use.
  • cjMaxRetries - The maximum number of times to retry this job if it fails.
  • cjExecutionProperty - An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.
  • cjAllocatedCapacity - The number of AWS Glue data processing units (DPUs) to allocate to this Job. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .
  • cjTimeout - The job timeout in minutes. The default is 2880 minutes (48 hours).
  • cjDefaultArguments - The default arguments for this job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.
  • cjDescription - Description of the job being defined.
  • cjName - The name you assign to this job definition. It must be unique in your account.
  • cjRole - The name or ARN of the IAM role associated with this job.
  • cjCommand - The JobCommand that executes this job.

data CreateJob Source #

See: createJob smart constructor.

Instances

Eq CreateJob Source # 
Data CreateJob Source # 

Methods

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

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

toConstr :: CreateJob -> Constr #

dataTypeOf :: CreateJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateJob Source # 
Show CreateJob Source # 
Generic CreateJob Source # 

Associated Types

type Rep CreateJob :: * -> * #

Hashable CreateJob Source # 
ToJSON CreateJob Source # 
NFData CreateJob Source # 

Methods

rnf :: CreateJob -> () #

AWSRequest CreateJob Source # 
ToHeaders CreateJob Source # 

Methods

toHeaders :: CreateJob -> [Header] #

ToPath CreateJob Source # 
ToQuery CreateJob Source # 
type Rep CreateJob Source # 
type Rep CreateJob = D1 * (MetaData "CreateJob" "Network.AWS.Glue.CreateJob" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "CreateJob'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cjConnections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ConnectionsList))) (S1 * (MetaSel (Just Symbol "_cjLogURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjMaxRetries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjExecutionProperty") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ExecutionProperty))) (S1 * (MetaSel (Just Symbol "_cjAllocatedCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cjTimeout") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjDefaultArguments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) (S1 * (MetaSel (Just Symbol "_cjDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cjCommand") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * JobCommand)))))))
type Rs CreateJob Source # 

Request Lenses

cjConnections :: Lens' CreateJob (Maybe ConnectionsList) Source #

The connections used for this job.

cjLogURI :: Lens' CreateJob (Maybe Text) Source #

This field is reserved for future use.

cjMaxRetries :: Lens' CreateJob (Maybe Int) Source #

The maximum number of times to retry this job if it fails.

cjExecutionProperty :: Lens' CreateJob (Maybe ExecutionProperty) Source #

An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.

cjAllocatedCapacity :: Lens' CreateJob (Maybe Int) Source #

The number of AWS Glue data processing units (DPUs) to allocate to this Job. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .

cjTimeout :: Lens' CreateJob (Maybe Natural) Source #

The job timeout in minutes. The default is 2880 minutes (48 hours).

cjDefaultArguments :: Lens' CreateJob (HashMap Text Text) Source #

The default arguments for this job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.

cjDescription :: Lens' CreateJob (Maybe Text) Source #

Description of the job being defined.

cjName :: Lens' CreateJob Text Source #

The name you assign to this job definition. It must be unique in your account.

cjRole :: Lens' CreateJob Text Source #

The name or ARN of the IAM role associated with this job.

cjCommand :: Lens' CreateJob JobCommand Source #

The JobCommand that executes this job.

Destructuring the Response

createJobResponse Source #

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

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

data CreateJobResponse Source #

See: createJobResponse smart constructor.

Instances

Eq CreateJobResponse Source # 
Data CreateJobResponse Source # 

Methods

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

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

toConstr :: CreateJobResponse -> Constr #

dataTypeOf :: CreateJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateJobResponse Source # 
Show CreateJobResponse Source # 
Generic CreateJobResponse Source # 
NFData CreateJobResponse Source # 

Methods

rnf :: CreateJobResponse -> () #

type Rep CreateJobResponse Source # 
type Rep CreateJobResponse = D1 * (MetaData "CreateJobResponse" "Network.AWS.Glue.CreateJob" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "CreateJobResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cjrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

cjrsName :: Lens' CreateJobResponse (Maybe Text) Source #

The unique name that was provided for this job definition.

cjrsResponseStatus :: Lens' CreateJobResponse Int Source #

  • - | The response status code.