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 |
Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
This operation returns paginated results.
Synopsis
- data ListEntitlements = ListEntitlements' {}
- newListEntitlements :: ListEntitlements
- listEntitlements_nextToken :: Lens' ListEntitlements (Maybe Text)
- listEntitlements_maxResults :: Lens' ListEntitlements (Maybe Natural)
- data ListEntitlementsResponse = ListEntitlementsResponse' {}
- newListEntitlementsResponse :: Int -> ListEntitlementsResponse
- listEntitlementsResponse_nextToken :: Lens' ListEntitlementsResponse (Maybe Text)
- listEntitlementsResponse_entitlements :: Lens' ListEntitlementsResponse (Maybe [ListedEntitlement])
- listEntitlementsResponse_httpStatus :: Lens' ListEntitlementsResponse Int
Creating a Request
data ListEntitlements Source #
See: newListEntitlements
smart constructor.
ListEntitlements' | |
|
Instances
newListEntitlements :: ListEntitlements Source #
Create a value of ListEntitlements
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:ListEntitlements'
, listEntitlements_nextToken
- The token that identifies which batch of results that you want to see.
For example, you submit a ListEntitlements request with MaxResults set
at 5. The service returns the first batch of results (up to 5) and a
NextToken value. To see the next batch of results, you can submit the
ListEntitlements request a second time and specify the NextToken value.
$sel:maxResults:ListEntitlements'
, listEntitlements_maxResults
- The maximum number of results to return per API request. For example,
you submit a ListEntitlements request with MaxResults set at 5. Although
20 items match your request, the service returns no more than the first
5 items. (The service also returns a NextToken value that you can use to
fetch the next batch of results.) The service might return fewer results
than the MaxResults value. If MaxResults is not included in the request,
the service defaults to pagination with a maximum of 20 results per
page.
Request Lenses
listEntitlements_nextToken :: Lens' ListEntitlements (Maybe Text) Source #
The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.
listEntitlements_maxResults :: Lens' ListEntitlements (Maybe Natural) Source #
The maximum number of results to return per API request. For example, you submit a ListEntitlements request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 20 results per page.
Destructuring the Response
data ListEntitlementsResponse Source #
See: newListEntitlementsResponse
smart constructor.
ListEntitlementsResponse' | |
|
Instances
newListEntitlementsResponse Source #
Create a value of ListEntitlementsResponse
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:ListEntitlements'
, listEntitlementsResponse_nextToken
- The token that identifies which batch of results that you want to see.
For example, you submit a ListEntitlements request with MaxResults set
at 5. The service returns the first batch of results (up to 5) and a
NextToken value. To see the next batch of results, you can submit the
ListEntitlements request a second time and specify the NextToken value.
$sel:entitlements:ListEntitlementsResponse'
, listEntitlementsResponse_entitlements
- A list of entitlements that have been granted to you from other AWS
accounts.
$sel:httpStatus:ListEntitlementsResponse'
, listEntitlementsResponse_httpStatus
- The response's http status code.
Response Lenses
listEntitlementsResponse_nextToken :: Lens' ListEntitlementsResponse (Maybe Text) Source #
The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.
listEntitlementsResponse_entitlements :: Lens' ListEntitlementsResponse (Maybe [ListedEntitlement]) Source #
A list of entitlements that have been granted to you from other AWS accounts.
listEntitlementsResponse_httpStatus :: Lens' ListEntitlementsResponse Int Source #
The response's http status code.