Copyright | (c) 2013-2021 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 |
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cache cluster if a cluster identifier is supplied.
By default, abbreviated information about the clusters is returned. You can use the optional ShowCacheNodeInfo flag to retrieve detailed information about the cache nodes associated with the clusters. These details include the DNS address and port for the cache node endpoint.
If the cluster is in the creating state, only cluster-level information is displayed until all of the nodes are successfully provisioned.
If the cluster is in the deleting state, only cluster-level information is displayed.
If cache nodes are currently being added to the cluster, node endpoint information and creation time for the additional nodes are not displayed until they are completely provisioned. When the cluster state is available, the cluster is ready for use.
If cache nodes are currently being removed from the cluster, no endpoint information for the removed nodes is displayed.
This operation returns paginated results.
Synopsis
- data DescribeCacheClusters = DescribeCacheClusters' {}
- newDescribeCacheClusters :: DescribeCacheClusters
- describeCacheClusters_showCacheClustersNotInReplicationGroups :: Lens' DescribeCacheClusters (Maybe Bool)
- describeCacheClusters_cacheClusterId :: Lens' DescribeCacheClusters (Maybe Text)
- describeCacheClusters_marker :: Lens' DescribeCacheClusters (Maybe Text)
- describeCacheClusters_maxRecords :: Lens' DescribeCacheClusters (Maybe Int)
- describeCacheClusters_showCacheNodeInfo :: Lens' DescribeCacheClusters (Maybe Bool)
- data DescribeCacheClustersResponse = DescribeCacheClustersResponse' {
- cacheClusters :: Maybe [CacheCluster]
- marker :: Maybe Text
- httpStatus :: Int
- newDescribeCacheClustersResponse :: Int -> DescribeCacheClustersResponse
- describeCacheClustersResponse_cacheClusters :: Lens' DescribeCacheClustersResponse (Maybe [CacheCluster])
- describeCacheClustersResponse_marker :: Lens' DescribeCacheClustersResponse (Maybe Text)
- describeCacheClustersResponse_httpStatus :: Lens' DescribeCacheClustersResponse Int
Creating a Request
data DescribeCacheClusters Source #
Represents the input of a DescribeCacheClusters
operation.
See: newDescribeCacheClusters
smart constructor.
DescribeCacheClusters' | |
|
Instances
newDescribeCacheClusters :: DescribeCacheClusters Source #
Create a value of DescribeCacheClusters
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:
$sel:showCacheClustersNotInReplicationGroups:DescribeCacheClusters'
, describeCacheClusters_showCacheClustersNotInReplicationGroups
- An optional flag that can be included in the DescribeCacheCluster
request to show only nodes (API/CLI: clusters) that are not members of
a replication group. In practice, this mean Memcached and single node
Redis clusters.
$sel:cacheClusterId:DescribeCacheClusters'
, describeCacheClusters_cacheClusterId
- The user-supplied cluster identifier. If this parameter is specified,
only information about that specific cluster is returned. This parameter
isn't case sensitive.
$sel:marker:DescribeCacheClusters'
, describeCacheClusters_marker
- An optional marker returned from a prior request. Use this marker for
pagination of results from this operation. If this parameter is
specified, the response includes only records beyond the marker, up to
the value specified by MaxRecords
.
$sel:maxRecords:DescribeCacheClusters'
, describeCacheClusters_maxRecords
- The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a marker is
included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
$sel:showCacheNodeInfo:DescribeCacheClusters'
, describeCacheClusters_showCacheNodeInfo
- An optional flag that can be included in the DescribeCacheCluster
request to retrieve information about the individual cache nodes.
Request Lenses
describeCacheClusters_showCacheClustersNotInReplicationGroups :: Lens' DescribeCacheClusters (Maybe Bool) Source #
An optional flag that can be included in the DescribeCacheCluster
request to show only nodes (API/CLI: clusters) that are not members of
a replication group. In practice, this mean Memcached and single node
Redis clusters.
describeCacheClusters_cacheClusterId :: Lens' DescribeCacheClusters (Maybe Text) Source #
The user-supplied cluster identifier. If this parameter is specified, only information about that specific cluster is returned. This parameter isn't case sensitive.
describeCacheClusters_marker :: Lens' DescribeCacheClusters (Maybe Text) Source #
An optional marker returned from a prior request. Use this marker for
pagination of results from this operation. If this parameter is
specified, the response includes only records beyond the marker, up to
the value specified by MaxRecords
.
describeCacheClusters_maxRecords :: Lens' DescribeCacheClusters (Maybe Int) Source #
The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a marker is
included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
describeCacheClusters_showCacheNodeInfo :: Lens' DescribeCacheClusters (Maybe Bool) Source #
An optional flag that can be included in the DescribeCacheCluster
request to retrieve information about the individual cache nodes.
Destructuring the Response
data DescribeCacheClustersResponse Source #
Represents the output of a DescribeCacheClusters
operation.
See: newDescribeCacheClustersResponse
smart constructor.
DescribeCacheClustersResponse' | |
|
Instances
newDescribeCacheClustersResponse Source #
Create a value of DescribeCacheClustersResponse
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:
$sel:cacheClusters:DescribeCacheClustersResponse'
, describeCacheClustersResponse_cacheClusters
- A list of clusters. Each item in the list contains detailed information
about one cluster.
$sel:marker:DescribeCacheClusters'
, describeCacheClustersResponse_marker
- Provides an identifier to allow retrieval of paginated results.
$sel:httpStatus:DescribeCacheClustersResponse'
, describeCacheClustersResponse_httpStatus
- The response's http status code.
Response Lenses
describeCacheClustersResponse_cacheClusters :: Lens' DescribeCacheClustersResponse (Maybe [CacheCluster]) Source #
A list of clusters. Each item in the list contains detailed information about one cluster.
describeCacheClustersResponse_marker :: Lens' DescribeCacheClustersResponse (Maybe Text) Source #
Provides an identifier to allow retrieval of paginated results.
describeCacheClustersResponse_httpStatus :: Lens' DescribeCacheClustersResponse Int Source #
The response's http status code.