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.CreateComputeEnvironment

Contents

Description

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute environments.

In a managed compute environment, AWS Batch manages the compute resources within the environment, based on the compute resources that you specify. Instances launched into a managed compute environment use a recent, approved version of the Amazon ECS-optimized AMI. You can choose to use Amazon EC2 On-Demand Instances in your managed compute environment, or you can use Amazon EC2 Spot Instances that only launch when the Spot bid price is below a specified percentage of the On-Demand price.

In an unmanaged compute environment, you can manage your own compute resources. This provides more compute resource configuration options, such as using a custom AMI, but you must ensure that your AMI meets the Amazon ECS container instance AMI specification. For more information, see Container Instance AMIs in the Amazon Elastic Container Service Developer Guide . After you have created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that is associated with it and then manually launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS Container Instance in the Amazon Elastic Container Service Developer Guide .

Synopsis

Creating a Request

createComputeEnvironment Source #

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

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

  • cceState - The state of the compute environment. If the state is ENABLED , then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
  • cceComputeResources - Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.
  • cceComputeEnvironmentName - The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
  • cceType - The type of the compute environment.
  • cceServiceRole - The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.

data CreateComputeEnvironment Source #

See: createComputeEnvironment smart constructor.

Instances
Eq CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Data CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Methods

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

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

toConstr :: CreateComputeEnvironment -> Constr #

dataTypeOf :: CreateComputeEnvironment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Show CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Generic CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Associated Types

type Rep CreateComputeEnvironment :: Type -> Type #

Hashable CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

ToJSON CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

AWSRequest CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Associated Types

type Rs CreateComputeEnvironment :: Type #

ToHeaders CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

ToPath CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

ToQuery CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

NFData CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

type Rep CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

type Rep CreateComputeEnvironment = D1 (MetaData "CreateComputeEnvironment" "Network.AWS.Batch.CreateComputeEnvironment" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "CreateComputeEnvironment'" PrefixI True) ((S1 (MetaSel (Just "_cceState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CEState)) :*: S1 (MetaSel (Just "_cceComputeResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ComputeResource))) :*: (S1 (MetaSel (Just "_cceComputeEnvironmentName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_cceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CEType) :*: S1 (MetaSel (Just "_cceServiceRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateComputeEnvironment Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Request Lenses

cceState :: Lens' CreateComputeEnvironment (Maybe CEState) Source #

The state of the compute environment. If the state is ENABLED , then the compute environment accepts jobs from a queue and can scale out automatically based on queues.

cceComputeResources :: Lens' CreateComputeEnvironment (Maybe ComputeResource) Source #

Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.

cceComputeEnvironmentName :: Lens' CreateComputeEnvironment Text Source #

The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

cceType :: Lens' CreateComputeEnvironment CEType Source #

The type of the compute environment.

cceServiceRole :: Lens' CreateComputeEnvironment Text Source #

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.

Destructuring the Response

createComputeEnvironmentResponse Source #

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

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

data CreateComputeEnvironmentResponse Source #

See: createComputeEnvironmentResponse smart constructor.

Instances
Eq CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Data CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Methods

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

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

toConstr :: CreateComputeEnvironmentResponse -> Constr #

dataTypeOf :: CreateComputeEnvironmentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Show CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Generic CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

Associated Types

type Rep CreateComputeEnvironmentResponse :: Type -> Type #

NFData CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

type Rep CreateComputeEnvironmentResponse Source # 
Instance details

Defined in Network.AWS.Batch.CreateComputeEnvironment

type Rep CreateComputeEnvironmentResponse = D1 (MetaData "CreateComputeEnvironmentResponse" "Network.AWS.Batch.CreateComputeEnvironment" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "CreateComputeEnvironmentResponse'" PrefixI True) (S1 (MetaSel (Just "_ccersComputeEnvironmentName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccersComputeEnvironmentARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ccersComputeEnvironmentARN :: Lens' CreateComputeEnvironmentResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the compute environment.