Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Lists the organizational units (OUs) in a parent organizational unit or root.
This operation can be called only from the organization's master account.
This operation returns paginated results.
- listOrganizationalUnitsForParent :: Text -> ListOrganizationalUnitsForParent
- data ListOrganizationalUnitsForParent
- loufpNextToken :: Lens' ListOrganizationalUnitsForParent (Maybe Text)
- loufpMaxResults :: Lens' ListOrganizationalUnitsForParent (Maybe Natural)
- loufpParentId :: Lens' ListOrganizationalUnitsForParent Text
- listOrganizationalUnitsForParentResponse :: Int -> ListOrganizationalUnitsForParentResponse
- data ListOrganizationalUnitsForParentResponse
- loufprsNextToken :: Lens' ListOrganizationalUnitsForParentResponse (Maybe Text)
- loufprsOrganizationalUnits :: Lens' ListOrganizationalUnitsForParentResponse [OrganizationalUnit]
- loufprsResponseStatus :: Lens' ListOrganizationalUnitsForParentResponse Int
Creating a Request
listOrganizationalUnitsForParent Source #
Creates a value of ListOrganizationalUnitsForParent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
loufpNextToken
- Use this parameter if you receive aNextToken
response in a previous request that indicates that there is more output available. Set it to the value of the previous call'sNextToken
response to indicate where the output should continue from.loufpMaxResults
- (Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, theNextToken
response element is present and has a value (is not null). Include that value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results.loufpParentId
- The unique identifier (ID) of the root or OU whose child OUs you want to list. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
data ListOrganizationalUnitsForParent Source #
See: listOrganizationalUnitsForParent
smart constructor.
Request Lenses
loufpNextToken :: Lens' ListOrganizationalUnitsForParent (Maybe Text) Source #
Use this parameter if you receive a NextToken
response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken
response to indicate where the output should continue from.
loufpMaxResults :: Lens' ListOrganizationalUnitsForParent (Maybe Natural) Source #
(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken
response element is present and has a value (is not null). Include that value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.
loufpParentId :: Lens' ListOrganizationalUnitsForParent Text Source #
The unique identifier (ID) of the root or OU whose child OUs you want to list. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
Destructuring the Response
listOrganizationalUnitsForParentResponse Source #
Creates a value of ListOrganizationalUnitsForParentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
loufprsNextToken
- If present, this value indicates that there is more output available than is included in the current response. Use this value in theNextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
.loufprsOrganizationalUnits
- A list of the OUs in the specified root or parent OU.loufprsResponseStatus
- -- | The response status code.
data ListOrganizationalUnitsForParentResponse Source #
See: listOrganizationalUnitsForParentResponse
smart constructor.
Response Lenses
loufprsNextToken :: Lens' ListOrganizationalUnitsForParentResponse (Maybe Text) Source #
If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.
loufprsOrganizationalUnits :: Lens' ListOrganizationalUnitsForParentResponse [OrganizationalUnit] Source #
A list of the OUs in the specified root or parent OU.
loufprsResponseStatus :: Lens' ListOrganizationalUnitsForParentResponse Int Source #
- - | The response status code.