@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
79 lines (78 loc) • 4.05 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { GetDefaultPatchBaselineRequest, GetDefaultPatchBaselineResult } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link GetDefaultPatchBaselineCommand}.
*/
export interface GetDefaultPatchBaselineCommandInput extends GetDefaultPatchBaselineRequest {
}
/**
* @public
*
* The output of {@link GetDefaultPatchBaselineCommand}.
*/
export interface GetDefaultPatchBaselineCommandOutput extends GetDefaultPatchBaselineResult, __MetadataBearer {
}
declare const GetDefaultPatchBaselineCommand_base: {
new (input: GetDefaultPatchBaselineCommandInput): import("@smithy/core/client").CommandImpl<GetDefaultPatchBaselineCommandInput, GetDefaultPatchBaselineCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [GetDefaultPatchBaselineCommandInput]): import("@smithy/core/client").CommandImpl<GetDefaultPatchBaselineCommandInput, GetDefaultPatchBaselineCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Retrieves the default patch baseline. Amazon Web Services Systems Manager supports creating multiple default patch
* baselines. For example, you can create a default patch baseline for each operating system.</p>
* <p>If you don't specify an operating system value, the default patch baseline for Windows is
* returned.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, GetDefaultPatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, GetDefaultPatchBaselineCommand } = 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 = { // GetDefaultPatchBaselineRequest
* 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",
* };
* const command = new GetDefaultPatchBaselineCommand(input);
* const response = await client.send(command);
* // { // GetDefaultPatchBaselineResult
* // BaselineId: "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",
* // };
*
* ```
*
* @param GetDefaultPatchBaselineCommandInput - {@link GetDefaultPatchBaselineCommandInput}
* @returns {@link GetDefaultPatchBaselineCommandOutput}
* @see {@link GetDefaultPatchBaselineCommandInput} for command's `input` shape.
* @see {@link GetDefaultPatchBaselineCommandOutput} 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 GetDefaultPatchBaselineCommand extends GetDefaultPatchBaselineCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetDefaultPatchBaselineRequest;
output: GetDefaultPatchBaselineResult;
};
sdk: {
input: GetDefaultPatchBaselineCommandInput;
output: GetDefaultPatchBaselineCommandOutput;
};
};
}