@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
109 lines (108 loc) • 4.92 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DescribeInstancePatchStatesRequest, DescribeInstancePatchStatesResult } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link DescribeInstancePatchStatesCommand}.
*/
export interface DescribeInstancePatchStatesCommandInput extends DescribeInstancePatchStatesRequest {
}
/**
* @public
*
* The output of {@link DescribeInstancePatchStatesCommand}.
*/
export interface DescribeInstancePatchStatesCommandOutput extends DescribeInstancePatchStatesResult, __MetadataBearer {
}
declare const DescribeInstancePatchStatesCommand_base: {
new (input: DescribeInstancePatchStatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: DescribeInstancePatchStatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Retrieves the high-level patch state of one or more managed nodes.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, DescribeInstancePatchStatesCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, DescribeInstancePatchStatesCommand } = 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 = { // DescribeInstancePatchStatesRequest
* InstanceIds: [ // InstanceIdList // required
* "STRING_VALUE",
* ],
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
* const command = new DescribeInstancePatchStatesCommand(input);
* const response = await client.send(command);
* // { // DescribeInstancePatchStatesResult
* // InstancePatchStates: [ // InstancePatchStateList
* // { // InstancePatchState
* // InstanceId: "STRING_VALUE", // required
* // PatchGroup: "STRING_VALUE", // required
* // BaselineId: "STRING_VALUE", // required
* // SnapshotId: "STRING_VALUE",
* // InstallOverrideList: "STRING_VALUE",
* // OwnerInformation: "STRING_VALUE",
* // InstalledCount: Number("int"),
* // InstalledOtherCount: Number("int"),
* // InstalledPendingRebootCount: Number("int"),
* // InstalledRejectedCount: Number("int"),
* // MissingCount: Number("int"),
* // FailedCount: Number("int"),
* // UnreportedNotApplicableCount: Number("int"),
* // NotApplicableCount: Number("int"),
* // AvailableSecurityUpdateCount: Number("int"),
* // OperationStartTime: new Date("TIMESTAMP"), // required
* // OperationEndTime: new Date("TIMESTAMP"), // required
* // Operation: "Scan" || "Install", // required
* // LastNoRebootInstallOperationTime: new Date("TIMESTAMP"),
* // RebootOption: "RebootIfNeeded" || "NoReboot",
* // CriticalNonCompliantCount: Number("int"),
* // SecurityNonCompliantCount: Number("int"),
* // OtherNonCompliantCount: Number("int"),
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param DescribeInstancePatchStatesCommandInput - {@link DescribeInstancePatchStatesCommandInput}
* @returns {@link DescribeInstancePatchStatesCommandOutput}
* @see {@link DescribeInstancePatchStatesCommandInput} for command's `input` shape.
* @see {@link DescribeInstancePatchStatesCommandOutput} 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 InvalidNextToken} (client fault)
* <p>The specified token isn't valid.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class DescribeInstancePatchStatesCommand extends DescribeInstancePatchStatesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeInstancePatchStatesRequest;
output: DescribeInstancePatchStatesResult;
};
sdk: {
input: DescribeInstancePatchStatesCommandInput;
output: DescribeInstancePatchStatesCommandOutput;
};
};
}