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 |
Retrieves a paginated list of access policies for an identity (an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user) or an IoT SiteWise Monitor resource (a portal or project).
This operation returns paginated results.
Synopsis
- data ListAccessPolicies = ListAccessPolicies' {}
- newListAccessPolicies :: ListAccessPolicies
- listAccessPolicies_resourceId :: Lens' ListAccessPolicies (Maybe Text)
- listAccessPolicies_resourceType :: Lens' ListAccessPolicies (Maybe ResourceType)
- listAccessPolicies_identityType :: Lens' ListAccessPolicies (Maybe IdentityType)
- listAccessPolicies_nextToken :: Lens' ListAccessPolicies (Maybe Text)
- listAccessPolicies_iamArn :: Lens' ListAccessPolicies (Maybe Text)
- listAccessPolicies_identityId :: Lens' ListAccessPolicies (Maybe Text)
- listAccessPolicies_maxResults :: Lens' ListAccessPolicies (Maybe Natural)
- data ListAccessPoliciesResponse = ListAccessPoliciesResponse' {}
- newListAccessPoliciesResponse :: Int -> ListAccessPoliciesResponse
- listAccessPoliciesResponse_nextToken :: Lens' ListAccessPoliciesResponse (Maybe Text)
- listAccessPoliciesResponse_httpStatus :: Lens' ListAccessPoliciesResponse Int
- listAccessPoliciesResponse_accessPolicySummaries :: Lens' ListAccessPoliciesResponse [AccessPolicySummary]
Creating a Request
data ListAccessPolicies Source #
See: newListAccessPolicies
smart constructor.
ListAccessPolicies' | |
|
Instances
newListAccessPolicies :: ListAccessPolicies Source #
Create a value of ListAccessPolicies
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:resourceId:ListAccessPolicies'
, listAccessPolicies_resourceId
- The ID of the resource. This parameter is required if you specify
resourceType
.
$sel:resourceType:ListAccessPolicies'
, listAccessPolicies_resourceType
- The type of resource (portal or project). This parameter is required if
you specify resourceId
.
$sel:identityType:ListAccessPolicies'
, listAccessPolicies_identityType
- The type of identity (Amazon Web Services SSO user, Amazon Web Services
SSO group, or IAM user). This parameter is required if you specify
identityId
.
$sel:nextToken:ListAccessPolicies'
, listAccessPolicies_nextToken
- The token to be used for the next set of paginated results.
$sel:iamArn:ListAccessPolicies'
, listAccessPolicies_iamArn
- The ARN of the IAM user. For more information, see
IAM ARNs
in the IAM User Guide. This parameter is required if you specify IAM
for identityType
.
$sel:identityId:ListAccessPolicies'
, listAccessPolicies_identityId
- The ID of the identity. This parameter is required if you specify USER
or GROUP
for identityType
.
$sel:maxResults:ListAccessPolicies'
, listAccessPolicies_maxResults
- The maximum number of results to return for each paginated request.
Default: 50
Request Lenses
listAccessPolicies_resourceId :: Lens' ListAccessPolicies (Maybe Text) Source #
The ID of the resource. This parameter is required if you specify
resourceType
.
listAccessPolicies_resourceType :: Lens' ListAccessPolicies (Maybe ResourceType) Source #
The type of resource (portal or project). This parameter is required if
you specify resourceId
.
listAccessPolicies_identityType :: Lens' ListAccessPolicies (Maybe IdentityType) Source #
The type of identity (Amazon Web Services SSO user, Amazon Web Services
SSO group, or IAM user). This parameter is required if you specify
identityId
.
listAccessPolicies_nextToken :: Lens' ListAccessPolicies (Maybe Text) Source #
The token to be used for the next set of paginated results.
listAccessPolicies_iamArn :: Lens' ListAccessPolicies (Maybe Text) Source #
The ARN of the IAM user. For more information, see
IAM ARNs
in the IAM User Guide. This parameter is required if you specify IAM
for identityType
.
listAccessPolicies_identityId :: Lens' ListAccessPolicies (Maybe Text) Source #
The ID of the identity. This parameter is required if you specify USER
or GROUP
for identityType
.
listAccessPolicies_maxResults :: Lens' ListAccessPolicies (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
Default: 50
Destructuring the Response
data ListAccessPoliciesResponse Source #
See: newListAccessPoliciesResponse
smart constructor.
ListAccessPoliciesResponse' | |
|
Instances
newListAccessPoliciesResponse Source #
Create a value of ListAccessPoliciesResponse
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:ListAccessPolicies'
, listAccessPoliciesResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListAccessPoliciesResponse'
, listAccessPoliciesResponse_httpStatus
- The response's http status code.
$sel:accessPolicySummaries:ListAccessPoliciesResponse'
, listAccessPoliciesResponse_accessPolicySummaries
- A list that summarizes each access policy.
Response Lenses
listAccessPoliciesResponse_nextToken :: Lens' ListAccessPoliciesResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listAccessPoliciesResponse_httpStatus :: Lens' ListAccessPoliciesResponse Int Source #
The response's http status code.
listAccessPoliciesResponse_accessPolicySummaries :: Lens' ListAccessPoliciesResponse [AccessPolicySummary] Source #
A list that summarizes each access policy.