| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MemoryDb.DescribeClusters
Description
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cluster if a cluster name is supplied.
This operation returns paginated results.
Synopsis
- data DescribeClusters = DescribeClusters' {}
- newDescribeClusters :: DescribeClusters
- describeClusters_clusterName :: Lens' DescribeClusters (Maybe Text)
- describeClusters_maxResults :: Lens' DescribeClusters (Maybe Int)
- describeClusters_nextToken :: Lens' DescribeClusters (Maybe Text)
- describeClusters_showShardDetails :: Lens' DescribeClusters (Maybe Bool)
- data DescribeClustersResponse = DescribeClustersResponse' {}
- newDescribeClustersResponse :: Int -> DescribeClustersResponse
- describeClustersResponse_clusters :: Lens' DescribeClustersResponse (Maybe [Cluster])
- describeClustersResponse_nextToken :: Lens' DescribeClustersResponse (Maybe Text)
- describeClustersResponse_httpStatus :: Lens' DescribeClustersResponse Int
Creating a Request
data DescribeClusters Source #
See: newDescribeClusters smart constructor.
Constructors
| DescribeClusters' | |
Fields
| |
Instances
newDescribeClusters :: DescribeClusters Source #
Create a value of DescribeClusters with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeClusters, describeClusters_clusterName - The name of the cluster
$sel:maxResults:DescribeClusters', describeClusters_maxResults - The maximum number of records to include in the response. If more
records exist than the specified MaxResults value, a token is included
in the response so that the remaining results can be retrieved.
DescribeClusters, describeClusters_nextToken - An optional argument to pass in case the total number of records exceeds
the value of MaxResults. If nextToken is returned, there are more
results available. The value of nextToken is a unique pagination token
for each page. Make the call again using the returned token to retrieve
the next page. Keep all other arguments unchanged.
$sel:showShardDetails:DescribeClusters', describeClusters_showShardDetails - An optional flag that can be included in the request to retrieve
information about the individual shard(s).
Request Lenses
describeClusters_clusterName :: Lens' DescribeClusters (Maybe Text) Source #
The name of the cluster
describeClusters_maxResults :: Lens' DescribeClusters (Maybe Int) Source #
The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
describeClusters_nextToken :: Lens' DescribeClusters (Maybe Text) Source #
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
describeClusters_showShardDetails :: Lens' DescribeClusters (Maybe Bool) Source #
An optional flag that can be included in the request to retrieve information about the individual shard(s).
Destructuring the Response
data DescribeClustersResponse Source #
See: newDescribeClustersResponse smart constructor.
Constructors
| DescribeClustersResponse' | |
Fields
| |
Instances
newDescribeClustersResponse Source #
Create a value of DescribeClustersResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeClustersResponse, describeClustersResponse_clusters - A list of clusters
DescribeClusters, describeClustersResponse_nextToken - An optional argument to pass in case the total number of records exceeds
the value of MaxResults. If nextToken is returned, there are more
results available. The value of nextToken is a unique pagination token
for each page. Make the call again using the returned token to retrieve
the next page. Keep all other arguments unchanged.
$sel:httpStatus:DescribeClustersResponse', describeClustersResponse_httpStatus - The response's http status code.
Response Lenses
describeClustersResponse_clusters :: Lens' DescribeClustersResponse (Maybe [Cluster]) Source #
A list of clusters
describeClustersResponse_nextToken :: Lens' DescribeClustersResponse (Maybe Text) Source #
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
describeClustersResponse_httpStatus :: Lens' DescribeClustersResponse Int Source #
The response's http status code.