UNPKG

@aws-sdk/client-ssm

Version:

AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native

96 lines (95 loc) 5 kB
import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RegisterPatchBaselineForPatchGroupRequest, RegisterPatchBaselineForPatchGroupResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RegisterPatchBaselineForPatchGroupCommand}. */ export interface RegisterPatchBaselineForPatchGroupCommandInput extends RegisterPatchBaselineForPatchGroupRequest { } /** * @public * * The output of {@link RegisterPatchBaselineForPatchGroupCommand}. */ export interface RegisterPatchBaselineForPatchGroupCommandOutput extends RegisterPatchBaselineForPatchGroupResult, __MetadataBearer { } declare const RegisterPatchBaselineForPatchGroupCommand_base: { new (input: RegisterPatchBaselineForPatchGroupCommandInput): import("@smithy/core/client").CommandImpl<RegisterPatchBaselineForPatchGroupCommandInput, RegisterPatchBaselineForPatchGroupCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; new (input: RegisterPatchBaselineForPatchGroupCommandInput): import("@smithy/core/client").CommandImpl<RegisterPatchBaselineForPatchGroupCommandInput, RegisterPatchBaselineForPatchGroupCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * <p>Registers a patch baseline for a patch group.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, RegisterPatchBaselineForPatchGroupCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, RegisterPatchBaselineForPatchGroupCommand } = 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 = { // RegisterPatchBaselineForPatchGroupRequest * BaselineId: "STRING_VALUE", // required * PatchGroup: "STRING_VALUE", // required * }; * const command = new RegisterPatchBaselineForPatchGroupCommand(input); * const response = await client.send(command); * // { // RegisterPatchBaselineForPatchGroupResult * // BaselineId: "STRING_VALUE", * // PatchGroup: "STRING_VALUE", * // }; * * ``` * * @param RegisterPatchBaselineForPatchGroupCommandInput - {@link RegisterPatchBaselineForPatchGroupCommandInput} * @returns {@link RegisterPatchBaselineForPatchGroupCommandOutput} * @see {@link RegisterPatchBaselineForPatchGroupCommandInput} for command's `input` shape. * @see {@link RegisterPatchBaselineForPatchGroupCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link AlreadyExistsException} (client fault) * <p>Error returned if an attempt is made to register a patch group with a patch baseline that is * already registered with a different patch baseline.</p> * * @throws {@link DoesNotExistException} (client fault) * <p>Error returned when the ID specified for a resource, such as a maintenance window or patch * baseline, doesn't exist.</p> * <p>For information about resource quotas in Amazon Web Services Systems Manager, see <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm">Systems Manager service quotas</a> in the * <i>Amazon Web Services General Reference</i>.</p> * * @throws {@link InternalServerError} (server fault) * <p>An error occurred on the server side.</p> * * @throws {@link InvalidResourceId} (client fault) * <p>The resource ID isn't valid. Verify that you entered the correct ID and try again.</p> * * @throws {@link ResourceLimitExceededException} (client fault) * <p>Error returned when the caller has exceeded the default resource quotas. For example, too * many maintenance windows or patch baselines have been created.</p> * <p>For information about resource quotas in Systems Manager, see <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm">Systems Manager service quotas</a> in the * <i>Amazon Web Services General Reference</i>.</p> * * @throws {@link SSMServiceException} * <p>Base exception class for all service exceptions from SSM service.</p> * * * @public */ export declare class RegisterPatchBaselineForPatchGroupCommand extends RegisterPatchBaselineForPatchGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RegisterPatchBaselineForPatchGroupRequest; output: RegisterPatchBaselineForPatchGroupResult; }; sdk: { input: RegisterPatchBaselineForPatchGroupCommandInput; output: RegisterPatchBaselineForPatchGroupCommandOutput; }; }; }