import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CreatePatchBaselineRequest, CreatePatchBaselineResult } from "../models/models_0"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreatePatchBaselineCommand}. */ export interface CreatePatchBaselineCommandInput extends CreatePatchBaselineRequest { } /** * @public * * The output of {@link CreatePatchBaselineCommand}. */ export interface CreatePatchBaselineCommandOutput extends CreatePatchBaselineResult, __MetadataBearer { } declare const CreatePatchBaselineCommand_base: { new (input: CreatePatchBaselineCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreatePatchBaselineCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a patch baseline.

* *

For information about valid key-value pairs in PatchFilters for each supported * operating system type, see PatchFilter.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, CreatePatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, CreatePatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // CreatePatchBaselineRequest * 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", * Name: "STRING_VALUE", // required * GlobalFilters: { // PatchFilterGroup * PatchFilters: [ // PatchFilterList // required * { // PatchFilter * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required * Values: [ // PatchFilterValueList // required * "STRING_VALUE", * ], * }, * ], * }, * ApprovalRules: { // PatchRuleGroup * PatchRules: [ // PatchRuleList // required * { // PatchRule * PatchFilterGroup: { * PatchFilters: [ // required * { * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required * Values: [ // required * "STRING_VALUE", * ], * }, * ], * }, * ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", * ApproveAfterDays: Number("int"), * ApproveUntilDate: "STRING_VALUE", * EnableNonSecurity: true || false, * }, * ], * }, * ApprovedPatches: [ // PatchIdList * "STRING_VALUE", * ], * ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", * ApprovedPatchesEnableNonSecurity: true || false, * RejectedPatches: [ * "STRING_VALUE", * ], * RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", * Description: "STRING_VALUE", * Sources: [ // PatchSourceList * { // PatchSource * Name: "STRING_VALUE", // required * Products: [ // PatchSourceProductList // required * "STRING_VALUE", * ], * Configuration: "STRING_VALUE", // required * }, * ], * AvailableSecurityUpdatesComplianceStatus: "COMPLIANT" || "NON_COMPLIANT", * ClientToken: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreatePatchBaselineCommand(input); * const response = await client.send(command); * // { // CreatePatchBaselineResult * // BaselineId: "STRING_VALUE", * // }; * * ``` * * @param CreatePatchBaselineCommandInput - {@link CreatePatchBaselineCommandInput} * @returns {@link CreatePatchBaselineCommandOutput} * @see {@link CreatePatchBaselineCommandInput} for command's `input` shape. * @see {@link CreatePatchBaselineCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link IdempotentParameterMismatch} (client fault) *

Error returned when an idempotent operation is retried and the parameters don't match the * original call to the API with the same idempotency token.

* * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

* * @throws {@link ResourceLimitExceededException} (client fault) *

Error returned when the caller has exceeded the default resource quotas. For example, too * many maintenance windows or patch baselines have been created.

*

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the * Amazon Web Services General Reference.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class CreatePatchBaselineCommand extends CreatePatchBaselineCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePatchBaselineRequest; output: CreatePatchBaselineResult; }; sdk: { input: CreatePatchBaselineCommandInput; output: CreatePatchBaselineCommandOutput; }; }; }