import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient"; import { GetPlaceRequest, GetPlaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetPlaceCommand}. */ export interface GetPlaceCommandInput extends GetPlaceRequest { } /** * @public * * The output of {@link GetPlaceCommand}. */ export interface GetPlaceCommandOutput extends GetPlaceResponse, __MetadataBearer { } declare const GetPlaceCommand_base: { new (input: GetPlaceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetPlaceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Finds a place by its unique ID. A PlaceId is returned by other search * operations.

* *

A PlaceId is valid only if all of the following are the same in the original * search request and the call to GetPlace.

*
    *
  • *

    Customer Amazon Web Services account

    *
  • *
  • *

    Amazon Web Services Region

    *
  • *
  • *

    Data provider specified in the place index resource

    *
  • *
*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LocationClient, GetPlaceCommand } from "@aws-sdk/client-location"; // ES Modules import * // const { LocationClient, GetPlaceCommand } = require("@aws-sdk/client-location"); // CommonJS import * const client = new LocationClient(config); * const input = { // GetPlaceRequest * IndexName: "STRING_VALUE", // required * PlaceId: "STRING_VALUE", // required * Language: "STRING_VALUE", * Key: "STRING_VALUE", * }; * const command = new GetPlaceCommand(input); * const response = await client.send(command); * // { // GetPlaceResponse * // Place: { // Place * // Label: "STRING_VALUE", * // Geometry: { // PlaceGeometry * // Point: [ // Position * // Number("double"), * // ], * // }, * // AddressNumber: "STRING_VALUE", * // Street: "STRING_VALUE", * // Neighborhood: "STRING_VALUE", * // Municipality: "STRING_VALUE", * // SubRegion: "STRING_VALUE", * // Region: "STRING_VALUE", * // Country: "STRING_VALUE", * // PostalCode: "STRING_VALUE", * // Interpolated: true || false, * // TimeZone: { // TimeZone * // Name: "STRING_VALUE", // required * // Offset: Number("int"), * // }, * // UnitType: "STRING_VALUE", * // UnitNumber: "STRING_VALUE", * // Categories: [ // PlaceCategoryList * // "STRING_VALUE", * // ], * // SupplementalCategories: [ // PlaceSupplementalCategoryList * // "STRING_VALUE", * // ], * // SubMunicipality: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetPlaceCommandInput - {@link GetPlaceCommandInput} * @returns {@link GetPlaceCommandOutput} * @see {@link GetPlaceCommandInput} for command's `input` shape. * @see {@link GetPlaceCommandOutput} for command's `response` shape. * @see {@link LocationClientResolvedConfig | config} for LocationClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The request was denied because of insufficient access or permissions. Check with an * administrator to verify your permissions.

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

The request has failed to process because of an unknown server error, exception, or failure.

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

The resource that you've entered was not found in your AWS account.

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

The request was denied because of request throttling.

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

The input failed to meet the constraints specified by the AWS service.

* * @throws {@link LocationServiceException} *

Base exception class for all service exceptions from Location service.

* * * @public */ export declare class GetPlaceCommand extends GetPlaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPlaceRequest; output: GetPlaceResponse; }; sdk: { input: GetPlaceCommandInput; output: GetPlaceCommandOutput; }; }; }