| 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.MacieV2.ListInvitations
Description
Retrieves information about the Amazon Macie membership invitations that were received by an account.
This operation returns paginated results.
Synopsis
- data ListInvitations = ListInvitations' {}
- newListInvitations :: ListInvitations
- listInvitations_maxResults :: Lens' ListInvitations (Maybe Natural)
- listInvitations_nextToken :: Lens' ListInvitations (Maybe Text)
- data ListInvitationsResponse = ListInvitationsResponse' {
- invitations :: Maybe [Invitation]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListInvitationsResponse :: Int -> ListInvitationsResponse
- listInvitationsResponse_invitations :: Lens' ListInvitationsResponse (Maybe [Invitation])
- listInvitationsResponse_nextToken :: Lens' ListInvitationsResponse (Maybe Text)
- listInvitationsResponse_httpStatus :: Lens' ListInvitationsResponse Int
Creating a Request
data ListInvitations Source #
See: newListInvitations smart constructor.
Constructors
| ListInvitations' | |
Instances
newListInvitations :: ListInvitations Source #
Create a value of ListInvitations 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:ListInvitations', listInvitations_maxResults - The maximum number of items to include in each page of a paginated
response.
ListInvitations, listInvitations_nextToken - The nextToken string that specifies which page of results to return in a
paginated response.
Request Lenses
listInvitations_maxResults :: Lens' ListInvitations (Maybe Natural) Source #
The maximum number of items to include in each page of a paginated response.
listInvitations_nextToken :: Lens' ListInvitations (Maybe Text) Source #
The nextToken string that specifies which page of results to return in a paginated response.
Destructuring the Response
data ListInvitationsResponse Source #
See: newListInvitationsResponse smart constructor.
Constructors
| ListInvitationsResponse' | |
Fields
| |
Instances
newListInvitationsResponse Source #
Create a value of ListInvitationsResponse 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:invitations:ListInvitationsResponse', listInvitationsResponse_invitations - An array of objects, one for each invitation that was received by the
account.
ListInvitations, listInvitationsResponse_nextToken - The string to use in a subsequent request to get the next page of
results in a paginated response. This value is null if there are no
additional pages.
$sel:httpStatus:ListInvitationsResponse', listInvitationsResponse_httpStatus - The response's http status code.
Response Lenses
listInvitationsResponse_invitations :: Lens' ListInvitationsResponse (Maybe [Invitation]) Source #
An array of objects, one for each invitation that was received by the account.
listInvitationsResponse_nextToken :: Lens' ListInvitationsResponse (Maybe Text) Source #
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
listInvitationsResponse_httpStatus :: Lens' ListInvitationsResponse Int Source #
The response's http status code.