| 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.FraudDetector.GetEventTypes
Description
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_maxResults :: Lens' GetEventTypes (Maybe Natural)
- getEventTypes_name :: Lens' GetEventTypes (Maybe Text)
- getEventTypes_nextToken :: Lens' GetEventTypes (Maybe Text)
- 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.
Constructors
| GetEventTypes' | |
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:maxResults:GetEventTypes', getEventTypes_maxResults - The maximum number of objects to return for the request.
GetEventTypes, getEventTypes_name - The name.
GetEventTypes, getEventTypes_nextToken - The next token for the subsequent request.
Request Lenses
getEventTypes_maxResults :: Lens' GetEventTypes (Maybe Natural) Source #
The maximum number of objects to return for the request.
getEventTypes_name :: Lens' GetEventTypes (Maybe Text) Source #
The name.
getEventTypes_nextToken :: Lens' GetEventTypes (Maybe Text) Source #
The next token for the subsequent request.
Destructuring the Response
data GetEventTypesResponse Source #
See: newGetEventTypesResponse smart constructor.
Constructors
| GetEventTypesResponse' | |
Fields
| |
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.
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.