import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetGeoLocationRequest, GetGeoLocationResponse } from "../models/models_0"; import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetGeoLocationCommand}. */ export interface GetGeoLocationCommandInput extends GetGeoLocationRequest { } /** * @public * * The output of {@link GetGeoLocationCommand}. */ export interface GetGeoLocationCommandOutput extends GetGeoLocationResponse, __MetadataBearer { } declare const GetGeoLocationCommand_base: { new (input: GetGeoLocationCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [GetGeoLocationCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets information about whether a specified geographic location is supported for Amazon * Route 53 geolocation resource record sets.

*

Route 53 does not perform authorization for this API because it retrieves information * that is already available to the public.

*

Use the following syntax to determine whether a continent is supported for * geolocation:

*

* GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for * a continent * *

*

Use the following syntax to determine whether a country is supported for * geolocation:

*

* GET /2013-04-01/geolocation?countrycode=two-character country * code * *

*

Use the following syntax to determine whether a subdivision of a country is supported * for geolocation:

*

* GET /2013-04-01/geolocation?countrycode=two-character country * code&subdivisioncode=subdivision * code * *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, GetGeoLocationCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, GetGeoLocationCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * // import type { Route53ClientConfig } from "@aws-sdk/client-route-53"; * const config = {}; // type is Route53ClientConfig * const client = new Route53Client(config); * const input = { // GetGeoLocationRequest * ContinentCode: "STRING_VALUE", * CountryCode: "STRING_VALUE", * SubdivisionCode: "STRING_VALUE", * }; * const command = new GetGeoLocationCommand(input); * const response = await client.send(command); * // { // GetGeoLocationResponse * // GeoLocationDetails: { // GeoLocationDetails * // ContinentCode: "STRING_VALUE", * // ContinentName: "STRING_VALUE", * // CountryCode: "STRING_VALUE", * // CountryName: "STRING_VALUE", * // SubdivisionCode: "STRING_VALUE", * // SubdivisionName: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetGeoLocationCommandInput - {@link GetGeoLocationCommandInput} * @returns {@link GetGeoLocationCommandOutput} * @see {@link GetGeoLocationCommandInput} for command's `input` shape. * @see {@link GetGeoLocationCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link InvalidInput} (client fault) *

The input is not valid.

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

Amazon Route 53 doesn't support the specified geographic location. For a list of * supported geolocation codes, see the GeoLocation data * type.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class GetGeoLocationCommand extends GetGeoLocationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetGeoLocationRequest; output: GetGeoLocationResponse; }; sdk: { input: GetGeoLocationCommandInput; output: GetGeoLocationCommandOutput; }; }; }