DeleteMapCommand

Deletes a map resource from your Amazon Web Services account.

This operation deletes the resource permanently. If the map is being used in an application, the map may not render.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { LocationClient, DeleteMapCommand } from "@aws-sdk/client-location"; // ES Modules import
// const { LocationClient, DeleteMapCommand } = require("@aws-sdk/client-location"); // CommonJS import
const client = new LocationClient(config);
const input = { // DeleteMapRequest
  MapName: "STRING_VALUE", // required
};
const command = new DeleteMapCommand(input);
const response = await client.send(command);
// {};

DeleteMapCommand Input

See DeleteMapCommandInput for more details

Parameter
Type
Description
MapName
Required
string | undefined

The name of the map resource to be deleted.

DeleteMapCommand Output

See DeleteMapCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
AccessDeniedException
client

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

InternalServerException
server

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

ResourceNotFoundException
client

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

ThrottlingException
client

The request was denied because of request throttling.

ValidationException
client

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

LocationServiceException
Base exception class for all service exceptions from Location service.