amazonka-batch-1.6.1: Amazon Batch 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.Batch.RegisterJobDefinition

Contents

Description

Registers an AWS Batch job definition.

Synopsis

Creating a Request

registerJobDefinition Source #

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

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

  • rjdRetryStrategy - The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.
  • rjdParameters - Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.
  • rjdTimeout - The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide .
  • rjdContainerProperties - An object with various properties specific for container-based jobs. This parameter is required if the type parameter is container .
  • rjdJobDefinitionName - The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
  • rjdType - The type of job definition.

data RegisterJobDefinition Source #

See: registerJobDefinition smart constructor.

Instances
Eq RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Data RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Methods

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

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

toConstr :: RegisterJobDefinition -> Constr #

dataTypeOf :: RegisterJobDefinition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Show RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Generic RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Associated Types

type Rep RegisterJobDefinition :: Type -> Type #

Hashable RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

ToJSON RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

AWSRequest RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Associated Types

type Rs RegisterJobDefinition :: Type #

ToHeaders RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

ToPath RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

ToQuery RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

NFData RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Methods

rnf :: RegisterJobDefinition -> () #

type Rep RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

type Rep RegisterJobDefinition = D1 (MetaData "RegisterJobDefinition" "Network.AWS.Batch.RegisterJobDefinition" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "RegisterJobDefinition'" PrefixI True) ((S1 (MetaSel (Just "_rjdRetryStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RetryStrategy)) :*: (S1 (MetaSel (Just "_rjdParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_rjdTimeout") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe JobTimeout)))) :*: (S1 (MetaSel (Just "_rjdContainerProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContainerProperties)) :*: (S1 (MetaSel (Just "_rjdJobDefinitionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rjdType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 JobDefinitionType)))))
type Rs RegisterJobDefinition Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Request Lenses

rjdRetryStrategy :: Lens' RegisterJobDefinition (Maybe RetryStrategy) Source #

The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.

rjdParameters :: Lens' RegisterJobDefinition (HashMap Text Text) Source #

Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.

rjdTimeout :: Lens' RegisterJobDefinition (Maybe JobTimeout) Source #

The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide .

rjdContainerProperties :: Lens' RegisterJobDefinition (Maybe ContainerProperties) Source #

An object with various properties specific for container-based jobs. This parameter is required if the type parameter is container .

rjdJobDefinitionName :: Lens' RegisterJobDefinition Text Source #

The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

Destructuring the Response

registerJobDefinitionResponse Source #

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

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

data RegisterJobDefinitionResponse Source #

See: registerJobDefinitionResponse smart constructor.

Instances
Eq RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Data RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Methods

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

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

toConstr :: RegisterJobDefinitionResponse -> Constr #

dataTypeOf :: RegisterJobDefinitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Show RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Generic RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

Associated Types

type Rep RegisterJobDefinitionResponse :: Type -> Type #

NFData RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

type Rep RegisterJobDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Batch.RegisterJobDefinition

type Rep RegisterJobDefinitionResponse = D1 (MetaData "RegisterJobDefinitionResponse" "Network.AWS.Batch.RegisterJobDefinition" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "RegisterJobDefinitionResponse'" PrefixI True) ((S1 (MetaSel (Just "_rjdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_rjdrsJobDefinitionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_rjdrsJobDefinitionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rjdrsRevision") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

rjdrsJobDefinitionARN :: Lens' RegisterJobDefinitionResponse Text Source #

The Amazon Resource Name (ARN) of the job definition.

rjdrsRevision :: Lens' RegisterJobDefinitionResponse Int Source #

The revision of the job definition.