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 RAM permissions.
Synopsis
- data ListPermissions = ListPermissions' {}
- newListPermissions :: ListPermissions
- listPermissions_resourceType :: Lens' ListPermissions (Maybe Text)
- listPermissions_nextToken :: Lens' ListPermissions (Maybe Text)
- listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural)
- data ListPermissionsResponse = ListPermissionsResponse' {}
- newListPermissionsResponse :: Int -> ListPermissionsResponse
- listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text)
- listPermissionsResponse_permissions :: Lens' ListPermissionsResponse (Maybe [ResourceSharePermissionSummary])
- listPermissionsResponse_httpStatus :: Lens' ListPermissionsResponse Int
Creating a Request
data ListPermissions Source #
See: newListPermissions
smart constructor.
ListPermissions' | |
|
Instances
newListPermissions :: ListPermissions Source #
Create a value of ListPermissions
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:resourceType:ListPermissions'
, listPermissions_resourceType
- Specifies the resource type for which to list permissions. For example,
to list only permissions that apply to EC2 subnets, specify
ec2:Subnet
.
$sel:nextToken:ListPermissions'
, listPermissions_nextToken
- The token for the next page of results.
$sel:maxResults:ListPermissions'
, listPermissions_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
Request Lenses
listPermissions_resourceType :: Lens' ListPermissions (Maybe Text) Source #
Specifies the resource type for which to list permissions. For example,
to list only permissions that apply to EC2 subnets, specify
ec2:Subnet
.
listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #
The token for the next page of results.
listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
Destructuring the Response
data ListPermissionsResponse Source #
See: newListPermissionsResponse
smart constructor.
ListPermissionsResponse' | |
|
Instances
newListPermissionsResponse Source #
Create a value of ListPermissionsResponse
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:ListPermissions'
, listPermissionsResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:permissions:ListPermissionsResponse'
, listPermissionsResponse_permissions
- Information about the permissions.
$sel:httpStatus:ListPermissionsResponse'
, listPermissionsResponse_httpStatus
- The response's http status code.
Response Lenses
listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
listPermissionsResponse_permissions :: Lens' ListPermissionsResponse (Maybe [ResourceSharePermissionSummary]) Source #
Information about the permissions.
listPermissionsResponse_httpStatus :: Lens' ListPermissionsResponse Int Source #
The response's http status code.