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 information about the organization that the user's account belongs to.
This operation can be called from any account in the organization.
Even if a policy type is shown as available in the organization, you can disable it separately at the root level with DisablePolicyType. Use ListRoots to see the status of policy types for a specified root.
Synopsis
- data DescribeOrganization = DescribeOrganization' {
- newDescribeOrganization :: DescribeOrganization
- data DescribeOrganizationResponse = DescribeOrganizationResponse' {}
- newDescribeOrganizationResponse :: Int -> DescribeOrganizationResponse
- describeOrganizationResponse_organization :: Lens' DescribeOrganizationResponse (Maybe Organization)
- describeOrganizationResponse_httpStatus :: Lens' DescribeOrganizationResponse Int
Creating a Request
data DescribeOrganization Source #
See: newDescribeOrganization
smart constructor.
Instances
newDescribeOrganization :: DescribeOrganization Source #
Create a value of DescribeOrganization
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data DescribeOrganizationResponse Source #
See: newDescribeOrganizationResponse
smart constructor.
DescribeOrganizationResponse' | |
|
Instances
newDescribeOrganizationResponse Source #
Create a value of DescribeOrganizationResponse
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:organization:DescribeOrganizationResponse'
, describeOrganizationResponse_organization
- A structure that contains information about the organization.
The AvailablePolicyTypes
part of the response is deprecated, and you
shouldn't use it in your apps. It doesn't include any policy type
supported by Organizations other than SCPs. To determine which policy
types are enabled in your organization, use the ListRoots
operation.
$sel:httpStatus:DescribeOrganizationResponse'
, describeOrganizationResponse_httpStatus
- The response's http status code.
Response Lenses
describeOrganizationResponse_organization :: Lens' DescribeOrganizationResponse (Maybe Organization) Source #
A structure that contains information about the organization.
The AvailablePolicyTypes
part of the response is deprecated, and you
shouldn't use it in your apps. It doesn't include any policy type
supported by Organizations other than SCPs. To determine which policy
types are enabled in your organization, use the ListRoots
operation.
describeOrganizationResponse_httpStatus :: Lens' DescribeOrganizationResponse Int Source #
The response's http status code.