DescribeOrganization
Source:
src/AWS/Organizations/DescribeOrganization.ts
Runtime binding for organizations:DescribeOrganization.
Retrieves information about the organization that the calling account belongs to — its id, ARN, feature set, and management account. Available from any account in the organization.
Account-level operation — Organizations is a management-account-scoped
global service, so the binding takes no resource argument. Provide the
implementation with Effect.provide(AWS.Organizations.DescribeOrganizationHttp).
Reading the Organization Tree
Section titled “Reading the Organization Tree”// init — account-level binding, no resource argumentconst describeOrganization = yield* AWS.Organizations.DescribeOrganization();
// runtimeconst { Organization } = yield* describeOrganization();console.log(Organization?.Id, Organization?.MasterAccountId);