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

A batch request for storing geofence geometries into a given geofence collection, or * updates the geometry of an existing geofence if a geofence ID is included in the request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LocationClient, BatchPutGeofenceCommand } from "@aws-sdk/client-location"; // ES Modules import * // const { LocationClient, BatchPutGeofenceCommand } = require("@aws-sdk/client-location"); // CommonJS import * const client = new LocationClient(config); * const input = { // BatchPutGeofenceRequest * CollectionName: "STRING_VALUE", // required * Entries: [ // BatchPutGeofenceRequestEntryList // required * { // BatchPutGeofenceRequestEntry * GeofenceId: "STRING_VALUE", // required * Geometry: { // GeofenceGeometry * Polygon: [ // LinearRings * [ // LinearRing * [ // Position * Number("double"), * ], * ], * ], * Circle: { // Circle * Center: [ // required * Number("double"), * ], * Radius: Number("double"), // required * }, * Geobuf: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * }, * GeofenceProperties: { // PropertyMap * "": "STRING_VALUE", * }, * }, * ], * }; * const command = new BatchPutGeofenceCommand(input); * const response = await client.send(command); * // { // BatchPutGeofenceResponse * // Successes: [ // BatchPutGeofenceSuccessList // required * // { // BatchPutGeofenceSuccess * // GeofenceId: "STRING_VALUE", // required * // CreateTime: new Date("TIMESTAMP"), // required * // UpdateTime: new Date("TIMESTAMP"), // required * // }, * // ], * // Errors: [ // BatchPutGeofenceErrorList // required * // { // BatchPutGeofenceError * // GeofenceId: "STRING_VALUE", // required * // Error: { // BatchItemError * // Code: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // }, * // ], * // }; * * ``` * * @param BatchPutGeofenceCommandInput - {@link BatchPutGeofenceCommandInput} * @returns {@link BatchPutGeofenceCommandOutput} * @see {@link BatchPutGeofenceCommandInput} for command's `input` shape. * @see {@link BatchPutGeofenceCommandOutput} 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 BatchPutGeofenceCommand extends BatchPutGeofenceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchPutGeofenceRequest; output: BatchPutGeofenceResponse; }; sdk: { input: BatchPutGeofenceCommandInput; output: BatchPutGeofenceCommandOutput; }; }; }