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 |
Gets all event types or a specific event type if name is provided. This
is a paginated API. If you provide a null maxResults
, this action
retrieves a maximum of 10 records per page. If you provide a
maxResults
, the value must be between 5 and 10. To get the next page
results, provide the pagination token from the GetEventTypesResponse
as part of your request. A null pagination token fetches the records
from the beginning.
Synopsis
- data GetEventTypes = GetEventTypes' {}
- newGetEventTypes :: GetEventTypes
- getEventTypes_nextToken :: Lens' GetEventTypes (Maybe Text)
- getEventTypes_name :: Lens' GetEventTypes (Maybe Text)
- getEventTypes_maxResults :: Lens' GetEventTypes (Maybe Natural)
- data GetEventTypesResponse = GetEventTypesResponse' {
- eventTypes :: Maybe [Sensitive EventType]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetEventTypesResponse :: Int -> GetEventTypesResponse
- getEventTypesResponse_eventTypes :: Lens' GetEventTypesResponse (Maybe [EventType])
- getEventTypesResponse_nextToken :: Lens' GetEventTypesResponse (Maybe Text)
- getEventTypesResponse_httpStatus :: Lens' GetEventTypesResponse Int
Creating a Request
data GetEventTypes Source #
See: newGetEventTypes
smart constructor.
Instances
newGetEventTypes :: GetEventTypes Source #
Create a value of GetEventTypes
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:GetEventTypes'
, getEventTypes_nextToken
- The next token for the subsequent request.
$sel:name:GetEventTypes'
, getEventTypes_name
- The name.
$sel:maxResults:GetEventTypes'
, getEventTypes_maxResults
- The maximum number of objects to return for the request.
Request Lenses
getEventTypes_nextToken :: Lens' GetEventTypes (Maybe Text) Source #
The next token for the subsequent request.
getEventTypes_name :: Lens' GetEventTypes (Maybe Text) Source #
The name.
getEventTypes_maxResults :: Lens' GetEventTypes (Maybe Natural) Source #
The maximum number of objects to return for the request.
Destructuring the Response
data GetEventTypesResponse Source #
See: newGetEventTypesResponse
smart constructor.
GetEventTypesResponse' | |
|
Instances
newGetEventTypesResponse Source #
Create a value of GetEventTypesResponse
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:eventTypes:GetEventTypesResponse'
, getEventTypesResponse_eventTypes
- An array of event types.
$sel:nextToken:GetEventTypes'
, getEventTypesResponse_nextToken
- The next page token.
$sel:httpStatus:GetEventTypesResponse'
, getEventTypesResponse_httpStatus
- The response's http status code.
Response Lenses
getEventTypesResponse_eventTypes :: Lens' GetEventTypesResponse (Maybe [EventType]) Source #
An array of event types.
getEventTypesResponse_nextToken :: Lens' GetEventTypesResponse (Maybe Text) Source #
The next page token.
getEventTypesResponse_httpStatus :: Lens' GetEventTypesResponse Int Source #
The response's http status code.