| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Batch.DescribeComputeEnvironments
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.
- describeComputeEnvironments :: DescribeComputeEnvironments
- data DescribeComputeEnvironments
- dceComputeEnvironments :: Lens' DescribeComputeEnvironments [Text]
- dceNextToken :: Lens' DescribeComputeEnvironments (Maybe Text)
- dceMaxResults :: Lens' DescribeComputeEnvironments (Maybe Int)
- describeComputeEnvironmentsResponse :: Int -> DescribeComputeEnvironmentsResponse
- data DescribeComputeEnvironmentsResponse
- drsComputeEnvironments :: Lens' DescribeComputeEnvironmentsResponse [ComputeEnvironmentDetail]
- drsNextToken :: Lens' DescribeComputeEnvironmentsResponse (Maybe Text)
- drsResponseStatus :: Lens' DescribeComputeEnvironmentsResponse Int
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- ThenextTokenvalue returned from a previous paginatedDescribeComputeEnvironmentsrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.dceMaxResults- The maximum number of cluster results returned byDescribeComputeEnvironmentsin paginated output. When this parameter is used,DescribeComputeEnvironmentsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeComputeEnvironmentsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenDescribeComputeEnvironmentsreturns up to 100 results and anextTokenvalue if applicable.
data DescribeComputeEnvironments Source #
See: describeComputeEnvironments smart constructor.
Instances
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 #
Arguments
| :: Int | |
| -> DescribeComputeEnvironmentsResponse |
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- ThenextTokenvalue to include in a futureDescribeComputeEnvironmentsrequest. When the results of aDescribeJobDefinitionsrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.drsResponseStatus- -- | The response status code.
data DescribeComputeEnvironmentsResponse Source #
See: describeComputeEnvironmentsResponse smart constructor.
Instances
Response Lenses
drsComputeEnvironments :: Lens' DescribeComputeEnvironmentsResponse [ComputeEnvironmentDetail] Source #
The list of compute environments.
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.
drsResponseStatus :: Lens' DescribeComputeEnvironmentsResponse Int Source #
- - | The response status code.