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 |
Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.
This operation returns only those permissions that have been explicitly granted.
For information about permissions, see Security and Access Control to Metadata and Data.
Synopsis
- data ListPermissions = ListPermissions' {}
- newListPermissions :: ListPermissions
- listPermissions_catalogId :: Lens' ListPermissions (Maybe Text)
- listPermissions_includeRelated :: Lens' ListPermissions (Maybe Text)
- listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural)
- listPermissions_nextToken :: Lens' ListPermissions (Maybe Text)
- listPermissions_principal :: Lens' ListPermissions (Maybe DataLakePrincipal)
- listPermissions_resource :: Lens' ListPermissions (Maybe Resource)
- listPermissions_resourceType :: Lens' ListPermissions (Maybe DataLakeResourceType)
- data ListPermissionsResponse = ListPermissionsResponse' {}
- newListPermissionsResponse :: Int -> ListPermissionsResponse
- listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text)
- listPermissionsResponse_principalResourcePermissions :: Lens' ListPermissionsResponse (Maybe [PrincipalResourcePermissions])
- 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:
ListPermissions
, listPermissions_catalogId
- The identifier for the Data Catalog. By default, the account ID. The
Data Catalog is the persistent metadata store. It contains database
definitions, table definitions, and other control information to manage
your Lake Formation environment.
$sel:includeRelated:ListPermissions'
, listPermissions_includeRelated
- Indicates that related permissions should be included in the results.
$sel:maxResults:ListPermissions'
, listPermissions_maxResults
- The maximum number of results to return.
ListPermissions
, listPermissions_nextToken
- A continuation token, if this is not the first call to retrieve this
list.
ListPermissions
, listPermissions_principal
- Specifies a principal to filter the permissions returned.
ListPermissions
, listPermissions_resource
- A resource where you will get a list of the principal permissions.
This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.
ListPermissions
, listPermissions_resourceType
- Specifies a resource type to filter the permissions returned.
Request Lenses
listPermissions_catalogId :: Lens' ListPermissions (Maybe Text) Source #
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
listPermissions_includeRelated :: Lens' ListPermissions (Maybe Text) Source #
Indicates that related permissions should be included in the results.
listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #
The maximum number of results to return.
listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #
A continuation token, if this is not the first call to retrieve this list.
listPermissions_principal :: Lens' ListPermissions (Maybe DataLakePrincipal) Source #
Specifies a principal to filter the permissions returned.
listPermissions_resource :: Lens' ListPermissions (Maybe Resource) Source #
A resource where you will get a list of the principal permissions.
This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.
listPermissions_resourceType :: Lens' ListPermissions (Maybe DataLakeResourceType) Source #
Specifies a resource type to filter the permissions returned.
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:
ListPermissions
, listPermissionsResponse_nextToken
- A continuation token, if this is not the first call to retrieve this
list.
$sel:principalResourcePermissions:ListPermissionsResponse'
, listPermissionsResponse_principalResourcePermissions
- A list of principals and their permissions on the resource for the
specified principal and resource types.
$sel:httpStatus:ListPermissionsResponse'
, listPermissionsResponse_httpStatus
- The response's http status code.
Response Lenses
listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #
A continuation token, if this is not the first call to retrieve this list.
listPermissionsResponse_principalResourcePermissions :: Lens' ListPermissionsResponse (Maybe [PrincipalResourcePermissions]) Source #
A list of principals and their permissions on the resource for the specified principal and resource types.
listPermissionsResponse_httpStatus :: Lens' ListPermissionsResponse Int Source #
The response's http status code.