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 |
Lists the permissions an account has to configure Amazon Inspector.
This operation returns paginated results.
Synopsis
- data ListAccountPermissions = ListAccountPermissions' {}
- newListAccountPermissions :: ListAccountPermissions
- listAccountPermissions_maxResults :: Lens' ListAccountPermissions (Maybe Natural)
- listAccountPermissions_nextToken :: Lens' ListAccountPermissions (Maybe Text)
- listAccountPermissions_service :: Lens' ListAccountPermissions (Maybe Service)
- data ListAccountPermissionsResponse = ListAccountPermissionsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- permissions :: [Permission]
- newListAccountPermissionsResponse :: Int -> ListAccountPermissionsResponse
- listAccountPermissionsResponse_nextToken :: Lens' ListAccountPermissionsResponse (Maybe Text)
- listAccountPermissionsResponse_httpStatus :: Lens' ListAccountPermissionsResponse Int
- listAccountPermissionsResponse_permissions :: Lens' ListAccountPermissionsResponse [Permission]
Creating a Request
data ListAccountPermissions Source #
See: newListAccountPermissions
smart constructor.
ListAccountPermissions' | |
|
Instances
newListAccountPermissions :: ListAccountPermissions Source #
Create a value of ListAccountPermissions
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:ListAccountPermissions'
, listAccountPermissions_maxResults
- The maximum number of results to return in the response.
ListAccountPermissions
, listAccountPermissions_nextToken
- A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
ListAccountPermissions
, listAccountPermissions_service
- The service scan type to check permissions for.
Request Lenses
listAccountPermissions_maxResults :: Lens' ListAccountPermissions (Maybe Natural) Source #
The maximum number of results to return in the response.
listAccountPermissions_nextToken :: Lens' ListAccountPermissions (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
listAccountPermissions_service :: Lens' ListAccountPermissions (Maybe Service) Source #
The service scan type to check permissions for.
Destructuring the Response
data ListAccountPermissionsResponse Source #
See: newListAccountPermissionsResponse
smart constructor.
ListAccountPermissionsResponse' | |
|
Instances
newListAccountPermissionsResponse Source #
Create a value of ListAccountPermissionsResponse
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:
ListAccountPermissions
, listAccountPermissionsResponse_nextToken
- A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
$sel:httpStatus:ListAccountPermissionsResponse'
, listAccountPermissionsResponse_httpStatus
- The response's http status code.
$sel:permissions:ListAccountPermissionsResponse'
, listAccountPermissionsResponse_permissions
- Contains details on the permissions an account has to configure Amazon
Inspector.
Response Lenses
listAccountPermissionsResponse_nextToken :: Lens' ListAccountPermissionsResponse (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
listAccountPermissionsResponse_httpStatus :: Lens' ListAccountPermissionsResponse Int Source #
The response's http status code.
listAccountPermissionsResponse_permissions :: Lens' ListAccountPermissionsResponse [Permission] Source #
Contains details on the permissions an account has to configure Amazon Inspector.