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

Delete an OpsItem. You must have permission in Identity and Access Management (IAM) to * delete an OpsItem.

* *

Note the following important information about this operation.

*
    *
  • *

    Deleting an OpsItem is irreversible. You can't restore a deleted OpsItem.

    *
  • *
  • *

    This operation uses an eventual consistency model, which means the * system can take a few minutes to complete this operation. If you delete an OpsItem and * immediately call, for example, GetOpsItem, the deleted OpsItem might still * appear in the response.

    *
  • *
  • *

    This operation is idempotent. The system doesn't throw an exception if you repeatedly * call this operation for the same OpsItem. If the first call is successful, all additional calls * return the same successful response as the first call.

    *
  • *
  • *

    This operation doesn't support cross-account calls. A delegated administrator or * management account can't delete OpsItems in other accounts, even if OpsCenter has been set up for * cross-account administration. For more information about cross-account administration, see * Setting up * OpsCenter to centrally manage OpsItems across accounts in the Systems Manager User Guide.

    *
  • *
*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, DeleteOpsItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, DeleteOpsItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // DeleteOpsItemRequest * OpsItemId: "STRING_VALUE", // required * }; * const command = new DeleteOpsItemCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteOpsItemCommandInput - {@link DeleteOpsItemCommandInput} * @returns {@link DeleteOpsItemCommandOutput} * @see {@link DeleteOpsItemCommandInput} for command's `input` shape. * @see {@link DeleteOpsItemCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

A specified parameter argument isn't valid. Verify the available arguments and try * again.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class DeleteOpsItemCommand extends DeleteOpsItemCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteOpsItemRequest; output: {}; }; sdk: { input: DeleteOpsItemCommandInput; output: DeleteOpsItemCommandOutput; }; }; }