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 the grants distributed for the specified license.
Synopsis
- data ListDistributedGrants = ListDistributedGrants' {}
- newListDistributedGrants :: ListDistributedGrants
- listDistributedGrants_filters :: Lens' ListDistributedGrants (Maybe [Filter])
- listDistributedGrants_nextToken :: Lens' ListDistributedGrants (Maybe Text)
- listDistributedGrants_grantArns :: Lens' ListDistributedGrants (Maybe [Text])
- listDistributedGrants_maxResults :: Lens' ListDistributedGrants (Maybe Natural)
- data ListDistributedGrantsResponse = ListDistributedGrantsResponse' {}
- newListDistributedGrantsResponse :: Int -> ListDistributedGrantsResponse
- listDistributedGrantsResponse_grants :: Lens' ListDistributedGrantsResponse (Maybe [Grant])
- listDistributedGrantsResponse_nextToken :: Lens' ListDistributedGrantsResponse (Maybe Text)
- listDistributedGrantsResponse_httpStatus :: Lens' ListDistributedGrantsResponse Int
Creating a Request
data ListDistributedGrants Source #
See: newListDistributedGrants
smart constructor.
ListDistributedGrants' | |
|
Instances
newListDistributedGrants :: ListDistributedGrants Source #
Create a value of ListDistributedGrants
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:filters:ListDistributedGrants'
, listDistributedGrants_filters
- Filters to scope the results. The following filters are supported:
LicenseArn
GrantStatus
GranteePrincipalARN
ProductSKU
LicenseIssuerName
$sel:nextToken:ListDistributedGrants'
, listDistributedGrants_nextToken
- Token for the next set of results.
$sel:grantArns:ListDistributedGrants'
, listDistributedGrants_grantArns
- Amazon Resource Names (ARNs) of the grants.
$sel:maxResults:ListDistributedGrants'
, listDistributedGrants_maxResults
- Maximum number of results to return in a single call.
Request Lenses
listDistributedGrants_filters :: Lens' ListDistributedGrants (Maybe [Filter]) Source #
Filters to scope the results. The following filters are supported:
LicenseArn
GrantStatus
GranteePrincipalARN
ProductSKU
LicenseIssuerName
listDistributedGrants_nextToken :: Lens' ListDistributedGrants (Maybe Text) Source #
Token for the next set of results.
listDistributedGrants_grantArns :: Lens' ListDistributedGrants (Maybe [Text]) Source #
Amazon Resource Names (ARNs) of the grants.
listDistributedGrants_maxResults :: Lens' ListDistributedGrants (Maybe Natural) Source #
Maximum number of results to return in a single call.
Destructuring the Response
data ListDistributedGrantsResponse Source #
See: newListDistributedGrantsResponse
smart constructor.
Instances
newListDistributedGrantsResponse Source #
Create a value of ListDistributedGrantsResponse
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:grants:ListDistributedGrantsResponse'
, listDistributedGrantsResponse_grants
- Distributed grant details.
$sel:nextToken:ListDistributedGrants'
, listDistributedGrantsResponse_nextToken
- Token for the next set of results.
$sel:httpStatus:ListDistributedGrantsResponse'
, listDistributedGrantsResponse_httpStatus
- The response's http status code.
Response Lenses
listDistributedGrantsResponse_grants :: Lens' ListDistributedGrantsResponse (Maybe [Grant]) Source #
Distributed grant details.
listDistributedGrantsResponse_nextToken :: Lens' ListDistributedGrantsResponse (Maybe Text) Source #
Token for the next set of results.
listDistributedGrantsResponse_httpStatus :: Lens' ListDistributedGrantsResponse Int Source #
The response's http status code.