import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeregisterAccountRequest, DeregisterAccountResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeregisterAccountCommand}. */ export interface DeregisterAccountCommandInput extends DeregisterAccountRequest { } /** * @public * * The output of {@link DeregisterAccountCommand}. */ export interface DeregisterAccountCommandOutput extends DeregisterAccountResponse, __MetadataBearer { } declare const DeregisterAccountCommand_base: { new (input: DeregisterAccountCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DeregisterAccountCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deregisters an account in Audit Manager.

* *

Before you deregister, you can use the UpdateSettings API operation to set your preferred data retention policy. By * default, Audit Manager retains your data. If you want to delete your data, you can * use the DeregistrationPolicy attribute to request the deletion of your * data.

*

For more information about data retention, see Data * Protection in the Audit Manager User Guide. *

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AuditManagerClient, DeregisterAccountCommand } from "@aws-sdk/client-auditmanager"; // ES Modules import * // const { AuditManagerClient, DeregisterAccountCommand } = require("@aws-sdk/client-auditmanager"); // CommonJS import * // import type { AuditManagerClientConfig } from "@aws-sdk/client-auditmanager"; * const config = {}; // type is AuditManagerClientConfig * const client = new AuditManagerClient(config); * const input = {}; * const command = new DeregisterAccountCommand(input); * const response = await client.send(command); * // { // DeregisterAccountResponse * // status: "ACTIVE" || "INACTIVE" || "PENDING_ACTIVATION", * // }; * * ``` * * @param DeregisterAccountCommandInput - {@link DeregisterAccountCommandInput} * @returns {@link DeregisterAccountCommandOutput} * @see {@link DeregisterAccountCommandInput} for command's `input` shape. * @see {@link DeregisterAccountCommandOutput} for command's `response` shape. * @see {@link AuditManagerClientResolvedConfig | config} for AuditManagerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Your account isn't registered with Audit Manager. Check the delegated * administrator setup on the Audit Manager settings page, and try again.

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

An internal service error occurred during the processing of your request. Try again * later.

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

The resource that's specified in the request can't be found.

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

The request has invalid or missing parameters.

* * @throws {@link AuditManagerServiceException} *

Base exception class for all service exceptions from AuditManager service.

* * * @public */ export declare class DeregisterAccountCommand extends DeregisterAccountCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: DeregisterAccountResponse; }; sdk: { input: DeregisterAccountCommandInput; output: DeregisterAccountCommandOutput; }; }; }