import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DeleteDocumentRequest, DeleteDocumentResult } from "../models/models_0"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteDocumentCommand}. */ export interface DeleteDocumentCommandInput extends DeleteDocumentRequest { } /** * @public * * The output of {@link DeleteDocumentCommand}. */ export interface DeleteDocumentCommandOutput extends DeleteDocumentResult, __MetadataBearer { } declare const DeleteDocumentCommand_base: { new (input: DeleteDocumentCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteDocumentCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the * document.

*

Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed nodes that are associated with the document.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, DeleteDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, DeleteDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // DeleteDocumentRequest * Name: "STRING_VALUE", // required * DocumentVersion: "STRING_VALUE", * VersionName: "STRING_VALUE", * Force: true || false, * }; * const command = new DeleteDocumentCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteDocumentCommandInput - {@link DeleteDocumentCommandInput} * @returns {@link DeleteDocumentCommandOutput} * @see {@link DeleteDocumentCommandInput} for command's `input` shape. * @see {@link DeleteDocumentCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link AssociatedInstances} (client fault) *

You must disassociate a document from all managed nodes before you can delete it.

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

An error occurred on the server side.

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

The specified SSM document doesn't exist.

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

You attempted to delete a document while it is still shared. You must stop sharing the * document before you can delete it.

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

There are concurrent updates for a resource that supports one update at a time.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class DeleteDocumentCommand extends DeleteDocumentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteDocumentRequest; output: {}; }; sdk: { input: DeleteDocumentCommandInput; output: DeleteDocumentCommandOutput; }; }; }