import { Uint8ArrayBlobAdapter } from "@smithy/core/serde"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetLatestConfigurationRequest, GetLatestConfigurationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetLatestConfigurationCommand}. */ export interface GetLatestConfigurationCommandInput extends GetLatestConfigurationRequest { } /** * @public */ export type GetLatestConfigurationCommandOutputType = Omit & { Configuration?: Uint8ArrayBlobAdapter; }; /** * @public * * The output of {@link GetLatestConfigurationCommand}. */ export interface GetLatestConfigurationCommandOutput extends GetLatestConfigurationCommandOutputType, __MetadataBearer { } declare const GetLatestConfigurationCommand_base: { new (input: GetLatestConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetLatestConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves the latest deployed configuration. This API may return empty configuration * data if the client already has the latest version. For more information about this API * action and to view example CLI commands that show how to use it with the StartConfigurationSession API action, see Retrieving the * configuration in the AppConfig User Guide.

* *

Note the following important information.

*
    *
  • *

    Each configuration token is only valid for one call to * GetLatestConfiguration. The GetLatestConfiguration * response includes a NextPollConfigurationToken that should always * replace the token used for the just-completed call in preparation for the next * one.

    *
  • *
  • *

    * GetLatestConfiguration is a priced call. For more information, see * Pricing.

    *
  • *
*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppConfigDataClient, GetLatestConfigurationCommand } from "@aws-sdk/client-appconfigdata"; // ES Modules import * // const { AppConfigDataClient, GetLatestConfigurationCommand } = require("@aws-sdk/client-appconfigdata"); // CommonJS import * // import type { AppConfigDataClientConfig } from "@aws-sdk/client-appconfigdata"; * const config = {}; // type is AppConfigDataClientConfig * const client = new AppConfigDataClient(config); * const input = { // GetLatestConfigurationRequest * ConfigurationToken: "STRING_VALUE", // required * }; * const command = new GetLatestConfigurationCommand(input); * const response = await client.send(command); * // { // GetLatestConfigurationResponse * // NextPollConfigurationToken: "STRING_VALUE", * // NextPollIntervalInSeconds: Number("int"), * // ContentType: "STRING_VALUE", * // Configuration: new Uint8Array(), * // VersionLabel: "STRING_VALUE", * // }; * * ``` * * @param GetLatestConfigurationCommandInput - {@link GetLatestConfigurationCommandInput} * @returns {@link GetLatestConfigurationCommandOutput} * @see {@link GetLatestConfigurationCommandInput} for command's `input` shape. * @see {@link GetLatestConfigurationCommandOutput} for command's `response` shape. * @see {@link AppConfigDataClientResolvedConfig | config} for AppConfigDataClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The input fails to satisfy the constraints specified by the service.

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

There was an internal failure in the service.

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

The requested resource could not be found.

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

The request was denied due to request throttling.

* * @throws {@link AppConfigDataServiceException} *

Base exception class for all service exceptions from AppConfigData service.

* * * @public */ export declare class GetLatestConfigurationCommand extends GetLatestConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetLatestConfigurationRequest; output: GetLatestConfigurationResponse; }; sdk: { input: GetLatestConfigurationCommandInput; output: GetLatestConfigurationCommandOutput; }; }; }