import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DisableAWSOrganizationsAccessInput, DisableAWSOrganizationsAccessOutput } from "../models/models_0"; import type { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DisableAWSOrganizationsAccessCommand}. */ export interface DisableAWSOrganizationsAccessCommandInput extends DisableAWSOrganizationsAccessInput { } /** * @public * * The output of {@link DisableAWSOrganizationsAccessCommand}. */ export interface DisableAWSOrganizationsAccessCommandOutput extends DisableAWSOrganizationsAccessOutput, __MetadataBearer { } declare const DisableAWSOrganizationsAccessCommand_base: { new (input: DisableAWSOrganizationsAccessCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DisableAWSOrganizationsAccessCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Disable portfolio sharing through the Organizations service. This command will not * delete your current shares, but prevents you from creating new shares throughout your * organization. Current shares are not kept in sync with your organization structure if the structure * changes after calling this API. Only the management account in the organization can call this API.

*

You cannot call this API if there are active delegated administrators in the organization.

*

Note that a delegated administrator is not authorized to invoke DisableAWSOrganizationsAccess.

* *

If you share an Service Catalog portfolio in an organization within * Organizations, and then disable Organizations access for Service Catalog, * the portfolio access permissions will not sync with the latest changes to the organization * structure. Specifically, accounts that you removed from the organization after * disabling Service Catalog access will retain access to the previously shared portfolio.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceCatalogClient, DisableAWSOrganizationsAccessCommand } from "@aws-sdk/client-service-catalog"; // ES Modules import * // const { ServiceCatalogClient, DisableAWSOrganizationsAccessCommand } = require("@aws-sdk/client-service-catalog"); // CommonJS import * // import type { ServiceCatalogClientConfig } from "@aws-sdk/client-service-catalog"; * const config = {}; // type is ServiceCatalogClientConfig * const client = new ServiceCatalogClient(config); * const input = {}; * const command = new DisableAWSOrganizationsAccessCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DisableAWSOrganizationsAccessCommandInput - {@link DisableAWSOrganizationsAccessCommandInput} * @returns {@link DisableAWSOrganizationsAccessCommandOutput} * @see {@link DisableAWSOrganizationsAccessCommandInput} for command's `input` shape. * @see {@link DisableAWSOrganizationsAccessCommandOutput} for command's `response` shape. * @see {@link ServiceCatalogClientResolvedConfig | config} for ServiceCatalogClient's `config` shape. * * @throws {@link InvalidStateException} (client fault) *

An attempt was made to modify a resource that is in a state that is not valid. * Check your resources to ensure that they are in valid states before retrying the operation.

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

The operation is not supported.

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

The specified resource was not found.

* * @throws {@link ServiceCatalogServiceException} *

Base exception class for all service exceptions from ServiceCatalog service.

* * * @public */ export declare class DisableAWSOrganizationsAccessCommand extends DisableAWSOrganizationsAccessCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: {}; }; sdk: { input: DisableAWSOrganizationsAccessCommandInput; output: DisableAWSOrganizationsAccessCommandOutput; }; }; }