import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { ApplyPendingMaintenanceActionMessage, ApplyPendingMaintenanceActionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ApplyPendingMaintenanceActionCommand}. */ export interface ApplyPendingMaintenanceActionCommandInput extends ApplyPendingMaintenanceActionMessage { } /** * @public * * The output of {@link ApplyPendingMaintenanceActionCommand}. */ export interface ApplyPendingMaintenanceActionCommandOutput extends ApplyPendingMaintenanceActionResponse, __MetadataBearer { } declare const ApplyPendingMaintenanceActionCommand_base: { new (input: ApplyPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ApplyPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Applies a pending maintenance action to a resource (for example, to a replication * instance).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ApplyPendingMaintenanceActionCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ApplyPendingMaintenanceActionCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // ApplyPendingMaintenanceActionMessage * ReplicationInstanceArn: "STRING_VALUE", // required * ApplyAction: "STRING_VALUE", // required * OptInType: "STRING_VALUE", // required * }; * const command = new ApplyPendingMaintenanceActionCommand(input); * const response = await client.send(command); * // { // ApplyPendingMaintenanceActionResponse * // ResourcePendingMaintenanceActions: { // ResourcePendingMaintenanceActions * // ResourceIdentifier: "STRING_VALUE", * // PendingMaintenanceActionDetails: [ // PendingMaintenanceActionDetails * // { // PendingMaintenanceAction * // Action: "STRING_VALUE", * // AutoAppliedAfterDate: new Date("TIMESTAMP"), * // ForcedApplyDate: new Date("TIMESTAMP"), * // OptInStatus: "STRING_VALUE", * // CurrentApplyDate: new Date("TIMESTAMP"), * // Description: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param ApplyPendingMaintenanceActionCommandInput - {@link ApplyPendingMaintenanceActionCommandInput} * @returns {@link ApplyPendingMaintenanceActionCommandOutput} * @see {@link ApplyPendingMaintenanceActionCommandInput} for command's `input` shape. * @see {@link ApplyPendingMaintenanceActionCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link ResourceNotFoundFault} (client fault) *

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @public */ export declare class ApplyPendingMaintenanceActionCommand extends ApplyPendingMaintenanceActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ApplyPendingMaintenanceActionMessage; output: ApplyPendingMaintenanceActionResponse; }; sdk: { input: ApplyPendingMaintenanceActionCommandInput; output: ApplyPendingMaintenanceActionCommandOutput; }; }; }