UNPKG

@aws-sdk/client-ssm

Version:

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

102 lines (101 loc) 4.52 kB
import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UnlabelParameterVersionRequest, UnlabelParameterVersionResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UnlabelParameterVersionCommand}. */ export interface UnlabelParameterVersionCommandInput extends UnlabelParameterVersionRequest { } /** * @public * * The output of {@link UnlabelParameterVersionCommand}. */ export interface UnlabelParameterVersionCommandOutput extends UnlabelParameterVersionResult, __MetadataBearer { } declare const UnlabelParameterVersionCommand_base: { new (input: UnlabelParameterVersionCommandInput): import("@smithy/core/client").CommandImpl<UnlabelParameterVersionCommandInput, UnlabelParameterVersionCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; new (input: UnlabelParameterVersionCommandInput): import("@smithy/core/client").CommandImpl<UnlabelParameterVersionCommandInput, UnlabelParameterVersionCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * <p>Remove a label or labels from a parameter.</p> * <p>Parameter names can't contain spaces. The service removes any spaces specified for the * beginning or end of a parameter name. If the specified name for a parameter contains spaces * between characters, the request fails with a <code>ValidationException</code> error.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, UnlabelParameterVersionCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, UnlabelParameterVersionCommand } = 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 = { // UnlabelParameterVersionRequest * Name: "STRING_VALUE", // required * ParameterVersion: Number("long"), // required * Labels: [ // ParameterLabelList // required * "STRING_VALUE", * ], * }; * const command = new UnlabelParameterVersionCommand(input); * const response = await client.send(command); * // { // UnlabelParameterVersionResult * // RemovedLabels: [ // ParameterLabelList * // "STRING_VALUE", * // ], * // InvalidLabels: [ * // "STRING_VALUE", * // ], * // }; * * ``` * * @param UnlabelParameterVersionCommandInput - {@link UnlabelParameterVersionCommandInput} * @returns {@link UnlabelParameterVersionCommandOutput} * @see {@link UnlabelParameterVersionCommandInput} for command's `input` shape. * @see {@link UnlabelParameterVersionCommandOutput} 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 ParameterNotFound} (client fault) * <p>The parameter couldn't be found. Verify the name and try again.</p> * <note> * <p>For the <code>DeleteParameter</code> and <code>GetParameter</code> actions, if the * specified parameter doesn't exist, the <code>ParameterNotFound</code> exception is * <i>not</i> recorded in CloudTrail event logs.</p> * </note> * * @throws {@link ParameterVersionNotFound} (client fault) * <p>The specified parameter version wasn't found. Verify the parameter name and version, and try * again.</p> * * @throws {@link TooManyUpdates} (client fault) * <p>There are concurrent updates for a resource that supports one update at a time.</p> * * @throws {@link SSMServiceException} * <p>Base exception class for all service exceptions from SSM service.</p> * * * @public */ export declare class UnlabelParameterVersionCommand extends UnlabelParameterVersionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UnlabelParameterVersionRequest; output: UnlabelParameterVersionResult; }; sdk: { input: UnlabelParameterVersionCommandInput; output: UnlabelParameterVersionCommandOutput; }; }; }