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 |
Gets a list of the project policies attached to a project.
To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.
This operation returns paginated results.
Synopsis
- data ListProjectPolicies = ListProjectPolicies' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- projectArn :: Text
- newListProjectPolicies :: Text -> ListProjectPolicies
- listProjectPolicies_maxResults :: Lens' ListProjectPolicies (Maybe Natural)
- listProjectPolicies_nextToken :: Lens' ListProjectPolicies (Maybe Text)
- listProjectPolicies_projectArn :: Lens' ListProjectPolicies Text
- data ListProjectPoliciesResponse = ListProjectPoliciesResponse' {
- nextToken :: Maybe Text
- projectPolicies :: Maybe [ProjectPolicy]
- httpStatus :: Int
- newListProjectPoliciesResponse :: Int -> ListProjectPoliciesResponse
- listProjectPoliciesResponse_nextToken :: Lens' ListProjectPoliciesResponse (Maybe Text)
- listProjectPoliciesResponse_projectPolicies :: Lens' ListProjectPoliciesResponse (Maybe [ProjectPolicy])
- listProjectPoliciesResponse_httpStatus :: Lens' ListProjectPoliciesResponse Int
Creating a Request
data ListProjectPolicies Source #
See: newListProjectPolicies
smart constructor.
ListProjectPolicies' | |
|
Instances
newListProjectPolicies Source #
Create a value of ListProjectPolicies
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:ListProjectPolicies'
, listProjectPolicies_maxResults
- The maximum number of results to return per paginated call. The largest
value you can specify is 5. If you specify a value greater than 5, a
ValidationException error occurs. The default value is 5.
ListProjectPolicies
, listProjectPolicies_nextToken
- If the previous response was incomplete (because there is more results
to retrieve), Amazon Rekognition Custom Labels returns a pagination
token in the response. You can use this pagination token to retrieve the
next set of results.
ListProjectPolicies
, listProjectPolicies_projectArn
- The ARN of the project for which you want to list the project policies.
Request Lenses
listProjectPolicies_maxResults :: Lens' ListProjectPolicies (Maybe Natural) Source #
The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.
listProjectPolicies_nextToken :: Lens' ListProjectPolicies (Maybe Text) Source #
If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
listProjectPolicies_projectArn :: Lens' ListProjectPolicies Text Source #
The ARN of the project for which you want to list the project policies.
Destructuring the Response
data ListProjectPoliciesResponse Source #
See: newListProjectPoliciesResponse
smart constructor.
ListProjectPoliciesResponse' | |
|
Instances
newListProjectPoliciesResponse Source #
Create a value of ListProjectPoliciesResponse
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:
ListProjectPolicies
, listProjectPoliciesResponse_nextToken
- If the response is truncated, Amazon Rekognition returns this token that
you can use in the subsequent request to retrieve the next set of
project policies.
$sel:projectPolicies:ListProjectPoliciesResponse'
, listProjectPoliciesResponse_projectPolicies
- A list of project policies attached to the project.
$sel:httpStatus:ListProjectPoliciesResponse'
, listProjectPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listProjectPoliciesResponse_nextToken :: Lens' ListProjectPoliciesResponse (Maybe Text) Source #
If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of project policies.
listProjectPoliciesResponse_projectPolicies :: Lens' ListProjectPoliciesResponse (Maybe [ProjectPolicy]) Source #
A list of project policies attached to the project.
listProjectPoliciesResponse_httpStatus :: Lens' ListProjectPoliciesResponse Int Source #
The response's http status code.