amazonka-batch-1.5.0: Amazon Batch SDK.

Copyright(c) 2013-2017 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.DescribeComputeEnvironments

Contents

Description

Describes one or more of your compute environments.

If you are using an unmanaged compute environment, you can use the DescribeComputeEnvironment operation to determine the ecsClusterArn that you should launch your Amazon ECS container instances into.

Synopsis

Creating a Request

describeComputeEnvironments :: DescribeComputeEnvironments Source #

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

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

  • dceComputeEnvironments - A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.
  • dceNextToken - The nextToken value returned from a previous paginated DescribeComputeEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.
  • dceMaxResults - The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. When this parameter is used, DescribeComputeEnvironments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeComputeEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeComputeEnvironments returns up to 100 results and a nextToken value if applicable.

data DescribeComputeEnvironments Source #

See: describeComputeEnvironments smart constructor.

Instances

Eq DescribeComputeEnvironments Source # 
Data DescribeComputeEnvironments Source # 

Methods

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

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

toConstr :: DescribeComputeEnvironments -> Constr #

dataTypeOf :: DescribeComputeEnvironments -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeComputeEnvironments Source # 
Show DescribeComputeEnvironments Source # 
Generic DescribeComputeEnvironments Source # 
Hashable DescribeComputeEnvironments Source # 
ToJSON DescribeComputeEnvironments Source # 
NFData DescribeComputeEnvironments Source # 
AWSRequest DescribeComputeEnvironments Source # 
ToQuery DescribeComputeEnvironments Source # 
ToPath DescribeComputeEnvironments Source # 
ToHeaders DescribeComputeEnvironments Source # 
type Rep DescribeComputeEnvironments Source # 
type Rep DescribeComputeEnvironments = D1 (MetaData "DescribeComputeEnvironments" "Network.AWS.Batch.DescribeComputeEnvironments" "amazonka-batch-1.5.0-AMIOP3EprNVIEIQfz4kyfD" False) (C1 (MetaCons "DescribeComputeEnvironments'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dceComputeEnvironments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_dceNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dceMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs DescribeComputeEnvironments Source # 

Request Lenses

dceComputeEnvironments :: Lens' DescribeComputeEnvironments [Text] Source #

A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.

dceNextToken :: Lens' DescribeComputeEnvironments (Maybe Text) Source #

The nextToken value returned from a previous paginated DescribeComputeEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

dceMaxResults :: Lens' DescribeComputeEnvironments (Maybe Int) Source #

The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. When this parameter is used, DescribeComputeEnvironments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeComputeEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeComputeEnvironments returns up to 100 results and a nextToken value if applicable.

Destructuring the Response

describeComputeEnvironmentsResponse Source #

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

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

  • drsComputeEnvironments - The list of compute environments.
  • drsNextToken - The nextToken value to include in a future DescribeComputeEnvironments request. When the results of a DescribeJobDefinitions request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
  • drsResponseStatus - -- | The response status code.

data DescribeComputeEnvironmentsResponse Source #

See: describeComputeEnvironmentsResponse smart constructor.

Instances

Eq DescribeComputeEnvironmentsResponse Source # 
Data DescribeComputeEnvironmentsResponse Source # 

Methods

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

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

toConstr :: DescribeComputeEnvironmentsResponse -> Constr #

dataTypeOf :: DescribeComputeEnvironmentsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeComputeEnvironmentsResponse Source # 
Show DescribeComputeEnvironmentsResponse Source # 
Generic DescribeComputeEnvironmentsResponse Source # 
NFData DescribeComputeEnvironmentsResponse Source # 
type Rep DescribeComputeEnvironmentsResponse Source # 
type Rep DescribeComputeEnvironmentsResponse = D1 (MetaData "DescribeComputeEnvironmentsResponse" "Network.AWS.Batch.DescribeComputeEnvironments" "amazonka-batch-1.5.0-AMIOP3EprNVIEIQfz4kyfD" False) (C1 (MetaCons "DescribeComputeEnvironmentsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drsComputeEnvironments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ComputeEnvironmentDetail]))) ((:*:) (S1 (MetaSel (Just Symbol "_drsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

drsNextToken :: Lens' DescribeComputeEnvironmentsResponse (Maybe Text) Source #

The nextToken value to include in a future DescribeComputeEnvironments request. When the results of a DescribeJobDefinitions request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.