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 a list of metric streams in this account.
Synopsis
- data ListMetricStreams = ListMetricStreams' {}
- newListMetricStreams :: ListMetricStreams
- listMetricStreams_nextToken :: Lens' ListMetricStreams (Maybe Text)
- listMetricStreams_maxResults :: Lens' ListMetricStreams (Maybe Natural)
- data ListMetricStreamsResponse = ListMetricStreamsResponse' {
- entries :: Maybe [MetricStreamEntry]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListMetricStreamsResponse :: Int -> ListMetricStreamsResponse
- listMetricStreamsResponse_entries :: Lens' ListMetricStreamsResponse (Maybe [MetricStreamEntry])
- listMetricStreamsResponse_nextToken :: Lens' ListMetricStreamsResponse (Maybe Text)
- listMetricStreamsResponse_httpStatus :: Lens' ListMetricStreamsResponse Int
Creating a Request
data ListMetricStreams Source #
See: newListMetricStreams
smart constructor.
Instances
newListMetricStreams :: ListMetricStreams Source #
Create a value of ListMetricStreams
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:nextToken:ListMetricStreams'
, listMetricStreams_nextToken
- Include this value, if it was returned by the previous call, to get the
next set of metric streams.
$sel:maxResults:ListMetricStreams'
, listMetricStreams_maxResults
- The maximum number of results to return in one operation.
Request Lenses
listMetricStreams_nextToken :: Lens' ListMetricStreams (Maybe Text) Source #
Include this value, if it was returned by the previous call, to get the next set of metric streams.
listMetricStreams_maxResults :: Lens' ListMetricStreams (Maybe Natural) Source #
The maximum number of results to return in one operation.
Destructuring the Response
data ListMetricStreamsResponse Source #
See: newListMetricStreamsResponse
smart constructor.
ListMetricStreamsResponse' | |
|
Instances
newListMetricStreamsResponse Source #
Create a value of ListMetricStreamsResponse
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:entries:ListMetricStreamsResponse'
, listMetricStreamsResponse_entries
- The array of metric stream information.
$sel:nextToken:ListMetricStreams'
, listMetricStreamsResponse_nextToken
- The token that marks the start of the next batch of returned results.
You can use this token in a subsequent operation to get the next batch
of results.
$sel:httpStatus:ListMetricStreamsResponse'
, listMetricStreamsResponse_httpStatus
- The response's http status code.
Response Lenses
listMetricStreamsResponse_entries :: Lens' ListMetricStreamsResponse (Maybe [MetricStreamEntry]) Source #
The array of metric stream information.
listMetricStreamsResponse_nextToken :: Lens' ListMetricStreamsResponse (Maybe Text) Source #
The token that marks the start of the next batch of returned results. You can use this token in a subsequent operation to get the next batch of results.
listMetricStreamsResponse_httpStatus :: Lens' ListMetricStreamsResponse Int Source #
The response's http status code.