@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
93 lines (92 loc) • 4.06 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DescribePatchBaselinesRequest, DescribePatchBaselinesResult } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link DescribePatchBaselinesCommand}.
*/
export interface DescribePatchBaselinesCommandInput extends DescribePatchBaselinesRequest {
}
/**
* @public
*
* The output of {@link DescribePatchBaselinesCommand}.
*/
export interface DescribePatchBaselinesCommandOutput extends DescribePatchBaselinesResult, __MetadataBearer {
}
declare const DescribePatchBaselinesCommand_base: {
new (input: DescribePatchBaselinesCommandInput): import("@smithy/core/client").CommandImpl<DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [DescribePatchBaselinesCommandInput]): import("@smithy/core/client").CommandImpl<DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Lists the patch baselines in your Amazon Web Services account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, DescribePatchBaselinesCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, DescribePatchBaselinesCommand } = 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 = { // DescribePatchBaselinesRequest
* Filters: [ // PatchOrchestratorFilterList
* { // PatchOrchestratorFilter
* Key: "STRING_VALUE",
* Values: [ // PatchOrchestratorFilterValues
* "STRING_VALUE",
* ],
* },
* ],
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new DescribePatchBaselinesCommand(input);
* const response = await client.send(command);
* // { // DescribePatchBaselinesResult
* // BaselineIdentities: [ // PatchBaselineIdentityList
* // { // PatchBaselineIdentity
* // BaselineId: "STRING_VALUE",
* // BaselineName: "STRING_VALUE",
* // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023",
* // BaselineDescription: "STRING_VALUE",
* // DefaultBaseline: true || false,
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param DescribePatchBaselinesCommandInput - {@link DescribePatchBaselinesCommandInput}
* @returns {@link DescribePatchBaselinesCommandOutput}
* @see {@link DescribePatchBaselinesCommandInput} for command's `input` shape.
* @see {@link DescribePatchBaselinesCommandOutput} 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 DescribePatchBaselinesCommand extends DescribePatchBaselinesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribePatchBaselinesRequest;
output: DescribePatchBaselinesResult;
};
sdk: {
input: DescribePatchBaselinesCommandInput;
output: DescribePatchBaselinesCommandOutput;
};
};
}