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 |
Lists all GuardDuty membership invitations that were sent to the current AWS account.
This operation returns paginated results.
Synopsis
- data ListInvitations = ListInvitations' {}
- newListInvitations :: ListInvitations
- listInvitations_nextToken :: Lens' ListInvitations (Maybe Text)
- listInvitations_maxResults :: Lens' ListInvitations (Maybe Natural)
- 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.
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:nextToken:ListInvitations'
, listInvitations_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the list action. For
subsequent calls to the action, fill nextToken in the request with the
value of NextToken from the previous response to continue listing data.
$sel:maxResults:ListInvitations'
, listInvitations_maxResults
- You can use this parameter to indicate the maximum number of items that
you want in the response. The default value is 50. The maximum value is
50.
Request Lenses
listInvitations_nextToken :: Lens' ListInvitations (Maybe Text) Source #
You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listInvitations_maxResults :: Lens' ListInvitations (Maybe Natural) Source #
You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 50. The maximum value is 50.
Destructuring the Response
data ListInvitationsResponse Source #
See: newListInvitationsResponse
smart constructor.
ListInvitationsResponse' | |
|
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
- A list of invitation descriptions.
$sel:nextToken:ListInvitations'
, listInvitationsResponse_nextToken
- The pagination parameter to be used on the next list operation to
retrieve more items.
$sel:httpStatus:ListInvitationsResponse'
, listInvitationsResponse_httpStatus
- The response's http status code.
Response Lenses
listInvitationsResponse_invitations :: Lens' ListInvitationsResponse (Maybe [Invitation]) Source #
A list of invitation descriptions.
listInvitationsResponse_nextToken :: Lens' ListInvitationsResponse (Maybe Text) Source #
The pagination parameter to be used on the next list operation to retrieve more items.
listInvitationsResponse_httpStatus :: Lens' ListInvitationsResponse Int Source #
The response's http status code.