import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ApplyPendingMaintenanceActionMessage, ApplyPendingMaintenanceActionResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @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 ApplyPendingMaintenanceActionResult, __MetadataBearer { } declare const ApplyPendingMaintenanceActionCommand_base: { new (input: ApplyPendingMaintenanceActionCommandInput): import("@smithy/core/client").CommandImpl; new (input: ApplyPendingMaintenanceActionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

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

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, ApplyPendingMaintenanceActionCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, ApplyPendingMaintenanceActionCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // ApplyPendingMaintenanceActionMessage * ResourceIdentifier: "STRING_VALUE", // required * ApplyAction: "STRING_VALUE", // required * OptInType: "STRING_VALUE", // required * }; * const command = new ApplyPendingMaintenanceActionCommand(input); * const response = await client.send(command); * // { // ApplyPendingMaintenanceActionResult * // 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 RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link InvalidDBClusterStateFault} (client fault) *

The requested operation can't be performed while the cluster is in this state.

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

The DB instance isn't in a valid state.

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

The specified resource ID was not found.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To apply pending maintenance actions * ```javascript * // The following example applies the pending maintenance actions for a DB cluster. * const input = { * ApplyAction: "system-update", * OptInType: "immediate", * ResourceIdentifier: "arn:aws:rds:us-east-1:123456789012:cluster:my-db-cluster" * }; * const command = new ApplyPendingMaintenanceActionCommand(input); * const response = await client.send(command); * /* response is * { * ResourcePendingMaintenanceActions: { * PendingMaintenanceActionDetails: [ * { * Action: "system-update", * CurrentApplyDate: "2021-01-23T01:07:36.100Z", * Description: "Upgrade to Aurora PostgreSQL 3.3.2", * OptInStatus: "immediate" * } * ], * ResourceIdentifier: "arn:aws:rds:us-east-1:123456789012:cluster:my-db-cluster" * } * } * *\/ * ``` * * @public */ export declare class ApplyPendingMaintenanceActionCommand extends ApplyPendingMaintenanceActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ApplyPendingMaintenanceActionMessage; output: ApplyPendingMaintenanceActionResult; }; sdk: { input: ApplyPendingMaintenanceActionCommandInput; output: ApplyPendingMaintenanceActionCommandOutput; }; }; }