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 |
Describes the permissions of a specified resource.
This operation returns paginated results.
Synopsis
- data DescribeResourcePermissions = DescribeResourcePermissions' {
- principalId :: Maybe Text
- authenticationToken :: Maybe (Sensitive Text)
- marker :: Maybe Text
- limit :: Maybe Natural
- resourceId :: Text
- newDescribeResourcePermissions :: Text -> DescribeResourcePermissions
- describeResourcePermissions_principalId :: Lens' DescribeResourcePermissions (Maybe Text)
- describeResourcePermissions_authenticationToken :: Lens' DescribeResourcePermissions (Maybe Text)
- describeResourcePermissions_marker :: Lens' DescribeResourcePermissions (Maybe Text)
- describeResourcePermissions_limit :: Lens' DescribeResourcePermissions (Maybe Natural)
- describeResourcePermissions_resourceId :: Lens' DescribeResourcePermissions Text
- data DescribeResourcePermissionsResponse = DescribeResourcePermissionsResponse' {
- principals :: Maybe [Principal]
- marker :: Maybe Text
- httpStatus :: Int
- newDescribeResourcePermissionsResponse :: Int -> DescribeResourcePermissionsResponse
- describeResourcePermissionsResponse_principals :: Lens' DescribeResourcePermissionsResponse (Maybe [Principal])
- describeResourcePermissionsResponse_marker :: Lens' DescribeResourcePermissionsResponse (Maybe Text)
- describeResourcePermissionsResponse_httpStatus :: Lens' DescribeResourcePermissionsResponse Int
Creating a Request
data DescribeResourcePermissions Source #
See: newDescribeResourcePermissions
smart constructor.
DescribeResourcePermissions' | |
|
Instances
newDescribeResourcePermissions Source #
Create a value of DescribeResourcePermissions
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:principalId:DescribeResourcePermissions'
, describeResourcePermissions_principalId
- The ID of the principal to filter permissions by.
$sel:authenticationToken:DescribeResourcePermissions'
, describeResourcePermissions_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:marker:DescribeResourcePermissions'
, describeResourcePermissions_marker
- The marker for the next set of results. (You received this marker from a
previous call)
$sel:limit:DescribeResourcePermissions'
, describeResourcePermissions_limit
- The maximum number of items to return with this call.
$sel:resourceId:DescribeResourcePermissions'
, describeResourcePermissions_resourceId
- The ID of the resource.
Request Lenses
describeResourcePermissions_principalId :: Lens' DescribeResourcePermissions (Maybe Text) Source #
The ID of the principal to filter permissions by.
describeResourcePermissions_authenticationToken :: Lens' DescribeResourcePermissions (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
describeResourcePermissions_marker :: Lens' DescribeResourcePermissions (Maybe Text) Source #
The marker for the next set of results. (You received this marker from a previous call)
describeResourcePermissions_limit :: Lens' DescribeResourcePermissions (Maybe Natural) Source #
The maximum number of items to return with this call.
describeResourcePermissions_resourceId :: Lens' DescribeResourcePermissions Text Source #
The ID of the resource.
Destructuring the Response
data DescribeResourcePermissionsResponse Source #
See: newDescribeResourcePermissionsResponse
smart constructor.
DescribeResourcePermissionsResponse' | |
|
Instances
newDescribeResourcePermissionsResponse Source #
Create a value of DescribeResourcePermissionsResponse
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:principals:DescribeResourcePermissionsResponse'
, describeResourcePermissionsResponse_principals
- The principals.
$sel:marker:DescribeResourcePermissions'
, describeResourcePermissionsResponse_marker
- The marker to use when requesting the next set of results. If there are
no additional results, the string is empty.
$sel:httpStatus:DescribeResourcePermissionsResponse'
, describeResourcePermissionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeResourcePermissionsResponse_principals :: Lens' DescribeResourcePermissionsResponse (Maybe [Principal]) Source #
The principals.
describeResourcePermissionsResponse_marker :: Lens' DescribeResourcePermissionsResponse (Maybe Text) Source #
The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
describeResourcePermissionsResponse_httpStatus :: Lens' DescribeResourcePermissionsResponse Int Source #
The response's http status code.