- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribePendingMaintenanceActionsCommand
Returns a list of resources (for example, instances) that have at least one pending maintenance action.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DocDBClient, DescribePendingMaintenanceActionsCommand } from "@aws-sdk/client-docdb"; // ES Modules import
// const { DocDBClient, DescribePendingMaintenanceActionsCommand } = require("@aws-sdk/client-docdb"); // CommonJS import
const client = new DocDBClient(config);
const input = { // DescribePendingMaintenanceActionsMessage
ResourceIdentifier: "STRING_VALUE",
Filters: [ // FilterList
{ // Filter
Name: "STRING_VALUE", // required
Values: [ // FilterValueList // required
"STRING_VALUE",
],
},
],
Marker: "STRING_VALUE",
MaxRecords: Number("int"),
};
const command = new DescribePendingMaintenanceActionsCommand(input);
const response = await client.send(command);
// { // PendingMaintenanceActionsMessage
// PendingMaintenanceActions: [ // PendingMaintenanceActions
// { // 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",
// },
// ],
// },
// ],
// Marker: "STRING_VALUE",
// };
DescribePendingMaintenanceActionsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Filters | Filter[] | undefined | A filter that specifies one or more resources to return pending maintenance actions for. Supported filters:
|
Marker | string | undefined | An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by |
MaxRecords | number | undefined | The maximum number of records to include in the response. If more records exist than the specified Default: 100 Constraints: Minimum 20, maximum 100. |
ResourceIdentifier | string | undefined | The ARN of a resource to return pending maintenance actions for. |
DescribePendingMaintenanceActionsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Marker | string | undefined | An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by |
PendingMaintenanceActions | ResourcePendingMaintenanceActions[] | undefined | The maintenance actions to be applied. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ResourceNotFoundFault | client | The specified resource ID was not found. |
DocDBServiceException | Base exception class for all service exceptions from DocDB service. |