import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConfigServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConfigServiceClient"; import type { DeleteConformancePackRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteConformancePackCommand}. */ export interface DeleteConformancePackCommandInput extends DeleteConformancePackRequest { } /** * @public * * The output of {@link DeleteConformancePackCommand}. */ export interface DeleteConformancePackCommandOutput extends __MetadataBearer { } declare const DeleteConformancePackCommand_base: { new (input: DeleteConformancePackCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteConformancePackCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the specified conformance pack and all the Config rules, remediation actions, and all evaluation results within that * conformance pack.

*

Config sets the conformance pack to DELETE_IN_PROGRESS until the deletion is complete. * You cannot update a conformance pack while it is in this state.

* *

* Recommendation: Consider excluding the AWS::Config::ResourceCompliance resource type from recording before deleting rules *

*

Deleting rules creates configuration items (CIs) for AWS::Config::ResourceCompliance * that can affect your costs for the configuration recorder. If you are deleting rules which evaluate a large number of resource types, * this can lead to a spike in the number of CIs recorded.

*

To avoid the associated costs, you can opt to disable recording * for the AWS::Config::ResourceCompliance resource type before deleting rules, and re-enable recording after the rules have been deleted.

*

However, since deleting rules is an asynchronous process, it might take an hour or more to complete. During the time * when recording is disabled for AWS::Config::ResourceCompliance, rule evaluations will not be recorded in the associated resource’s history.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, DeleteConformancePackCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, DeleteConformancePackCommand } = require("@aws-sdk/client-config-service"); // CommonJS import * // import type { ConfigServiceClientConfig } from "@aws-sdk/client-config-service"; * const config = {}; // type is ConfigServiceClientConfig * const client = new ConfigServiceClient(config); * const input = { // DeleteConformancePackRequest * ConformancePackName: "STRING_VALUE", // required * }; * const command = new DeleteConformancePackCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteConformancePackCommandInput - {@link DeleteConformancePackCommandInput} * @returns {@link DeleteConformancePackCommandOutput} * @see {@link DeleteConformancePackCommandInput} for command's `input` shape. * @see {@link DeleteConformancePackCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link NoSuchConformancePackException} (client fault) *

You specified one or more conformance packs that do not exist.

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

You see this exception in the following cases:

* * * @throws {@link ConfigServiceServiceException} *

Base exception class for all service exceptions from ConfigService service.

* * * @public */ export declare class DeleteConformancePackCommand extends DeleteConformancePackCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteConformancePackRequest; output: {}; }; sdk: { input: DeleteConformancePackCommandInput; output: DeleteConformancePackCommandOutput; }; }; }