UNPKG

@aws-sdk/client-ssm

Version:

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

121 lines (120 loc) 5.74 kB
import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetParameterRequest, GetParameterResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetParameterCommand}. */ export interface GetParameterCommandInput extends GetParameterRequest { } /** * @public * * The output of {@link GetParameterCommand}. */ export interface GetParameterCommandOutput extends GetParameterResult, __MetadataBearer { } declare const GetParameterCommand_base: { new (input: GetParameterCommandInput): import("@smithy/core/client").CommandImpl<GetParameterCommandInput, GetParameterCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; new (input: GetParameterCommandInput): import("@smithy/core/client").CommandImpl<GetParameterCommandInput, GetParameterCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * <p>Get information about a single parameter by specifying the parameter name.</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> * <note> * <p>To get information about more than one parameter at a time, use the <a>GetParameters</a> operation.</p> * </note> * <note> * <p>Parameter Store throughput defines the number of API transactions per second (TPS) that * Systems Manager can process. This applies to <code>GetParameter</code>, * <code>GetParameters</code>, and <code>PutParameter</code> API calls for your Amazon Web Services account and * Amazon Web Services Region. By default, Parameter Store is configured with a standard throughput quota suitable * for low- to moderate-volume workloads. Applications that retrieve configuration data infrequently * or operate at smaller scale can use this default setting without additional cost.</p> * <p>For higher-volume workloads, you can enable higher throughput. This increases the maximum * number of supported transactions per second for your account and Region. Increased throughput * supports applications and workloads that need concurrent access to multiple parameters. If you * experience <code>ThrottlingException: Rate exceeded</code> errors, enable higher throughput. For * more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-throughput.html">Changing Parameter Store * throughput</a>.</p> * </note> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetParameterCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetParameterCommand } = 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 = { // GetParameterRequest * Name: "STRING_VALUE", // required * WithDecryption: true || false, * }; * const command = new GetParameterCommand(input); * const response = await client.send(command); * // { // GetParameterResult * // Parameter: { // Parameter * // Name: "STRING_VALUE", * // Type: "String" || "StringList" || "SecureString", * // Value: "STRING_VALUE", * // Version: Number("long"), * // Selector: "STRING_VALUE", * // SourceResult: "STRING_VALUE", * // LastModifiedDate: new Date("TIMESTAMP"), * // ARN: "STRING_VALUE", * // DataType: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetParameterCommandInput - {@link GetParameterCommandInput} * @returns {@link GetParameterCommandOutput} * @see {@link GetParameterCommandInput} for command's `input` shape. * @see {@link GetParameterCommandOutput} 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 InvalidKeyId} (client fault) * <p>The query key ID isn't valid.</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 SSMServiceException} * <p>Base exception class for all service exceptions from SSM service.</p> * * * @public */ export declare class GetParameterCommand extends GetParameterCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetParameterRequest; output: GetParameterResult; }; sdk: { input: GetParameterCommandInput; output: GetParameterCommandOutput; }; }; }