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 assignee of the specified Amazon Web Services account with the specified permission set.
This operation returns paginated results.
Synopsis
- data ListAccountAssignments = ListAccountAssignments' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- instanceArn :: Text
- accountId :: Text
- permissionSetArn :: Text
- newListAccountAssignments :: Text -> Text -> Text -> ListAccountAssignments
- listAccountAssignments_nextToken :: Lens' ListAccountAssignments (Maybe Text)
- listAccountAssignments_maxResults :: Lens' ListAccountAssignments (Maybe Natural)
- listAccountAssignments_instanceArn :: Lens' ListAccountAssignments Text
- listAccountAssignments_accountId :: Lens' ListAccountAssignments Text
- listAccountAssignments_permissionSetArn :: Lens' ListAccountAssignments Text
- data ListAccountAssignmentsResponse = ListAccountAssignmentsResponse' {}
- newListAccountAssignmentsResponse :: Int -> ListAccountAssignmentsResponse
- listAccountAssignmentsResponse_accountAssignments :: Lens' ListAccountAssignmentsResponse (Maybe [AccountAssignment])
- listAccountAssignmentsResponse_nextToken :: Lens' ListAccountAssignmentsResponse (Maybe Text)
- listAccountAssignmentsResponse_httpStatus :: Lens' ListAccountAssignmentsResponse Int
Creating a Request
data ListAccountAssignments Source #
See: newListAccountAssignments
smart constructor.
ListAccountAssignments' | |
|
Instances
newListAccountAssignments Source #
:: Text | |
-> Text | |
-> Text | |
-> ListAccountAssignments |
Create a value of ListAccountAssignments
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:ListAccountAssignments'
, listAccountAssignments_nextToken
- The pagination token for the list API. Initially the value is null. Use
the output of previous API calls to make subsequent calls.
$sel:maxResults:ListAccountAssignments'
, listAccountAssignments_maxResults
- The maximum number of results to display for the assignment.
$sel:instanceArn:ListAccountAssignments'
, listAccountAssignments_instanceArn
- The ARN of the SSO instance under which the operation will be executed.
For more information about ARNs, see
Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces
in the Amazon Web Services General Reference.
$sel:accountId:ListAccountAssignments'
, listAccountAssignments_accountId
- The identifier of the Amazon Web Services account from which to list the
assignments.
$sel:permissionSetArn:ListAccountAssignments'
, listAccountAssignments_permissionSetArn
- The ARN of the permission set from which to list assignments.
Request Lenses
listAccountAssignments_nextToken :: Lens' ListAccountAssignments (Maybe Text) Source #
The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.
listAccountAssignments_maxResults :: Lens' ListAccountAssignments (Maybe Natural) Source #
The maximum number of results to display for the assignment.
listAccountAssignments_instanceArn :: Lens' ListAccountAssignments Text Source #
The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
listAccountAssignments_accountId :: Lens' ListAccountAssignments Text Source #
The identifier of the Amazon Web Services account from which to list the assignments.
listAccountAssignments_permissionSetArn :: Lens' ListAccountAssignments Text Source #
The ARN of the permission set from which to list assignments.
Destructuring the Response
data ListAccountAssignmentsResponse Source #
See: newListAccountAssignmentsResponse
smart constructor.
ListAccountAssignmentsResponse' | |
|
Instances
newListAccountAssignmentsResponse Source #
Create a value of ListAccountAssignmentsResponse
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:accountAssignments:ListAccountAssignmentsResponse'
, listAccountAssignmentsResponse_accountAssignments
- The list of assignments that match the input Amazon Web Services account
and permission set.
$sel:nextToken:ListAccountAssignments'
, listAccountAssignmentsResponse_nextToken
- The pagination token for the list API. Initially the value is null. Use
the output of previous API calls to make subsequent calls.
$sel:httpStatus:ListAccountAssignmentsResponse'
, listAccountAssignmentsResponse_httpStatus
- The response's http status code.
Response Lenses
listAccountAssignmentsResponse_accountAssignments :: Lens' ListAccountAssignmentsResponse (Maybe [AccountAssignment]) Source #
The list of assignments that match the input Amazon Web Services account and permission set.
listAccountAssignmentsResponse_nextToken :: Lens' ListAccountAssignmentsResponse (Maybe Text) Source #
The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.
listAccountAssignmentsResponse_httpStatus :: Lens' ListAccountAssignmentsResponse Int Source #
The response's http status code.