import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeOrganizationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeOrganizationCommand}. */ export interface DescribeOrganizationCommandInput { } /** * @public * * The output of {@link DescribeOrganizationCommand}. */ export interface DescribeOrganizationCommandOutput extends DescribeOrganizationResponse, __MetadataBearer { } declare const DescribeOrganizationCommand_base: { new (input: DescribeOrganizationCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeOrganizationCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves information about the organization that the user's account belongs * to.

*

You can call this operation from any account in a 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.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OrganizationsClient, DescribeOrganizationCommand } from "@aws-sdk/client-organizations"; // ES Modules import * // const { OrganizationsClient, DescribeOrganizationCommand } = require("@aws-sdk/client-organizations"); // CommonJS import * // import type { OrganizationsClientConfig } from "@aws-sdk/client-organizations"; * const config = {}; // type is OrganizationsClientConfig * const client = new OrganizationsClient(config); * const input = {}; * const command = new DescribeOrganizationCommand(input); * const response = await client.send(command); * // { // DescribeOrganizationResponse * // Organization: { // Organization * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // FeatureSet: "ALL" || "CONSOLIDATED_BILLING", * // MasterAccountArn: "STRING_VALUE", * // MasterAccountId: "STRING_VALUE", * // MasterAccountEmail: "STRING_VALUE", * // AvailablePolicyTypes: [ // PolicyTypes * // { // PolicyTypeSummary * // Type: "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "TAG_POLICY" || "BACKUP_POLICY" || "AISERVICES_OPT_OUT_POLICY" || "CHATBOT_POLICY" || "DECLARATIVE_POLICY_EC2" || "SECURITYHUB_POLICY" || "INSPECTOR_POLICY" || "UPGRADE_ROLLOUT_POLICY" || "BEDROCK_POLICY" || "S3_POLICY" || "NETWORK_SECURITY_DIRECTOR_POLICY", * // Status: "ENABLED" || "PENDING_ENABLE" || "PENDING_DISABLE", * // }, * // ], * // }, * // }; * * ``` * * @param DescribeOrganizationCommandInput - {@link DescribeOrganizationCommandInput} * @returns {@link DescribeOrganizationCommandOutput} * @see {@link DescribeOrganizationCommandInput} for command's `input` shape. * @see {@link DescribeOrganizationCommandOutput} for command's `response` shape. * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have permissions to perform the requested operation. The user or role that * is making the request must have at least one IAM permissions policy attached that * grants the required permissions. For more information, see Access Management in the * IAM User Guide.

* * @throws {@link AWSOrganizationsNotInUseException} (client fault) *

Your account isn't a member of an organization. To make this request, you must use the * credentials of an account that belongs to an organization.

* * @throws {@link ConcurrentModificationException} (client fault) *

The target of the operation is currently being modified by a different request. Try * again later.

* * @throws {@link ServiceException} (server fault) *

Organizations can't complete your request because of an internal service error. Try again * later.

* * @throws {@link TooManyRequestsException} (client fault) *

You have sent too many requests in too short a period of time. The quota helps protect * against denial-of-service attacks. Try again later.

*

For information about quotas that affect Organizations, see Quotas for Organizations in the * Organizations User Guide.

* * @throws {@link OrganizationsServiceException} *

Base exception class for all service exceptions from Organizations service.

* * * @example To get information about an organization * ```javascript * // The following example shows how to request information about the current user's organization:/n/n * const input = { /* empty *\/ }; * const command = new DescribeOrganizationCommand(input); * const response = await client.send(command); * /* response is * { * Organization: { * Arn: "arn:aws:organizations::111111111111:organization/o-exampleorgid", * AvailablePolicyTypes: [ * { * Status: "ENABLED", * Type: "SERVICE_CONTROL_POLICY" * } * ], * FeatureSet: "ALL", * Id: "o-exampleorgid", * MasterAccountArn: "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111", * MasterAccountEmail: "bill@example.com" * } * } * *\/ * ``` * * @public */ export declare class DescribeOrganizationCommand extends DescribeOrganizationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: DescribeOrganizationResponse; }; sdk: { input: DescribeOrganizationCommandInput; output: DescribeOrganizationCommandOutput; }; }; }