Copyright | (c) 2013-2018 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 |
Retrieves information about an organizational unit (OU).
This operation can be called only from the organization's master account.
- describeOrganizationalUnit :: Text -> DescribeOrganizationalUnit
- data DescribeOrganizationalUnit
- douOrganizationalUnitId :: Lens' DescribeOrganizationalUnit Text
- describeOrganizationalUnitResponse :: Int -> DescribeOrganizationalUnitResponse
- data DescribeOrganizationalUnitResponse
- doursOrganizationalUnit :: Lens' DescribeOrganizationalUnitResponse (Maybe OrganizationalUnit)
- doursResponseStatus :: Lens' DescribeOrganizationalUnitResponse Int
Creating a Request
describeOrganizationalUnit Source #
Creates a value of DescribeOrganizationalUnit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
douOrganizationalUnitId
- The unique identifier (ID) of the organizational unit that you want details about. You can get the ID from theListOrganizationalUnitsForParent
operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
data DescribeOrganizationalUnit Source #
See: describeOrganizationalUnit
smart constructor.
Request Lenses
douOrganizationalUnitId :: Lens' DescribeOrganizationalUnit Text Source #
The unique identifier (ID) of the organizational unit that you want details about. You can get the ID from the ListOrganizationalUnitsForParent
operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
Destructuring the Response
describeOrganizationalUnitResponse Source #
Creates a value of DescribeOrganizationalUnitResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
doursOrganizationalUnit
- A structure that contains details about the specified OU.doursResponseStatus
- -- | The response status code.
data DescribeOrganizationalUnitResponse Source #
See: describeOrganizationalUnitResponse
smart constructor.
Response Lenses
doursOrganizationalUnit :: Lens' DescribeOrganizationalUnitResponse (Maybe OrganizationalUnit) Source #
A structure that contains details about the specified OU.
doursResponseStatus :: Lens' DescribeOrganizationalUnitResponse Int Source #
- - | The response status code.