| 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 |
Amazonka.CloudWatchEvents.ListReplays
Description
Lists your replays. You can either list all the replays or you can provide a prefix to match to the replay names. Filter parameters are exclusive.
Synopsis
- data ListReplays = ListReplays' {
- eventSourceArn :: Maybe Text
- state :: Maybe ReplayState
- nextToken :: Maybe Text
- namePrefix :: Maybe Text
- limit :: Maybe Natural
- newListReplays :: ListReplays
- listReplays_eventSourceArn :: Lens' ListReplays (Maybe Text)
- listReplays_state :: Lens' ListReplays (Maybe ReplayState)
- listReplays_nextToken :: Lens' ListReplays (Maybe Text)
- listReplays_namePrefix :: Lens' ListReplays (Maybe Text)
- listReplays_limit :: Lens' ListReplays (Maybe Natural)
- data ListReplaysResponse = ListReplaysResponse' {}
- newListReplaysResponse :: Int -> ListReplaysResponse
- listReplaysResponse_replays :: Lens' ListReplaysResponse (Maybe [Replay])
- listReplaysResponse_nextToken :: Lens' ListReplaysResponse (Maybe Text)
- listReplaysResponse_httpStatus :: Lens' ListReplaysResponse Int
Creating a Request
data ListReplays Source #
See: newListReplays smart constructor.
Constructors
| ListReplays' | |
Fields
| |
Instances
newListReplays :: ListReplays Source #
Create a value of ListReplays 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:eventSourceArn:ListReplays', listReplays_eventSourceArn - The ARN of the archive from which the events are replayed.
$sel:state:ListReplays', listReplays_state - The state of the replay.
$sel:nextToken:ListReplays', listReplays_nextToken - The token returned by a previous call to retrieve the next set of
results.
$sel:namePrefix:ListReplays', listReplays_namePrefix - A name prefix to filter the replays returned. Only replays with name
that match the prefix are returned.
$sel:limit:ListReplays', listReplays_limit - The maximum number of replays to retrieve.
Request Lenses
listReplays_eventSourceArn :: Lens' ListReplays (Maybe Text) Source #
The ARN of the archive from which the events are replayed.
listReplays_state :: Lens' ListReplays (Maybe ReplayState) Source #
The state of the replay.
listReplays_nextToken :: Lens' ListReplays (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listReplays_namePrefix :: Lens' ListReplays (Maybe Text) Source #
A name prefix to filter the replays returned. Only replays with name that match the prefix are returned.
listReplays_limit :: Lens' ListReplays (Maybe Natural) Source #
The maximum number of replays to retrieve.
Destructuring the Response
data ListReplaysResponse Source #
See: newListReplaysResponse smart constructor.
Constructors
| ListReplaysResponse' | |
Instances
newListReplaysResponse Source #
Arguments
| :: Int | |
| -> ListReplaysResponse |
Create a value of ListReplaysResponse 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:replays:ListReplaysResponse', listReplaysResponse_replays - An array of Replay objects that contain information about the replay.
$sel:nextToken:ListReplays', listReplaysResponse_nextToken - The token returned by a previous call to retrieve the next set of
results.
$sel:httpStatus:ListReplaysResponse', listReplaysResponse_httpStatus - The response's http status code.
Response Lenses
listReplaysResponse_replays :: Lens' ListReplaysResponse (Maybe [Replay]) Source #
An array of Replay objects that contain information about the replay.
listReplaysResponse_nextToken :: Lens' ListReplaysResponse (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listReplaysResponse_httpStatus :: Lens' ListReplaysResponse Int Source #
The response's http status code.