@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
92 lines (91 loc) • 4.17 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DescribeMaintenanceWindowsForTargetRequest, DescribeMaintenanceWindowsForTargetResult } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link DescribeMaintenanceWindowsForTargetCommand}.
*/
export interface DescribeMaintenanceWindowsForTargetCommandInput extends DescribeMaintenanceWindowsForTargetRequest {
}
/**
* @public
*
* The output of {@link DescribeMaintenanceWindowsForTargetCommand}.
*/
export interface DescribeMaintenanceWindowsForTargetCommandOutput extends DescribeMaintenanceWindowsForTargetResult, __MetadataBearer {
}
declare const DescribeMaintenanceWindowsForTargetCommand_base: {
new (input: DescribeMaintenanceWindowsForTargetCommandInput): import("@smithy/core/client").CommandImpl<DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: DescribeMaintenanceWindowsForTargetCommandInput): import("@smithy/core/client").CommandImpl<DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Retrieves information about the maintenance window targets or tasks that a managed node is
* associated with.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, DescribeMaintenanceWindowsForTargetCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, DescribeMaintenanceWindowsForTargetCommand } = require("@aws-sdk/client-ssm"); // CommonJS import
* // import type { SSMClientConfig } from "@aws-sdk/client-ssm";
* const config = {}; // type is SSMClientConfig
* const client = new SSMClient(config);
* const input = { // DescribeMaintenanceWindowsForTargetRequest
* Targets: [ // Targets // required
* { // Target
* Key: "STRING_VALUE",
* Values: [ // TargetValues
* "STRING_VALUE",
* ],
* },
* ],
* ResourceType: "INSTANCE" || "RESOURCE_GROUP", // required
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new DescribeMaintenanceWindowsForTargetCommand(input);
* const response = await client.send(command);
* // { // DescribeMaintenanceWindowsForTargetResult
* // WindowIdentities: [ // MaintenanceWindowsForTargetList
* // { // MaintenanceWindowIdentityForTarget
* // WindowId: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param DescribeMaintenanceWindowsForTargetCommandInput - {@link DescribeMaintenanceWindowsForTargetCommandInput}
* @returns {@link DescribeMaintenanceWindowsForTargetCommandOutput}
* @see {@link DescribeMaintenanceWindowsForTargetCommandInput} for command's `input` shape.
* @see {@link DescribeMaintenanceWindowsForTargetCommandOutput} for command's `response` shape.
* @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape.
*
* @throws {@link InternalServerError} (server fault)
* <p>An error occurred on the server side.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class DescribeMaintenanceWindowsForTargetCommand extends DescribeMaintenanceWindowsForTargetCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeMaintenanceWindowsForTargetRequest;
output: DescribeMaintenanceWindowsForTargetResult;
};
sdk: {
input: DescribeMaintenanceWindowsForTargetCommandInput;
output: DescribeMaintenanceWindowsForTargetCommandOutput;
};
};
}