DeleteLFTagExpressionCommand

Deletes the LF-Tag expression. The caller must be a data lake admin or have DROP permissions on the LF-Tag expression. Deleting a LF-Tag expression will also delete all LFTagPolicy permissions referencing the LF-Tag expression.

Example Syntax

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

import { LakeFormationClient, DeleteLFTagExpressionCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, DeleteLFTagExpressionCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = { // DeleteLFTagExpressionRequest
  Name: "STRING_VALUE", // required
  CatalogId: "STRING_VALUE",
};
const command = new DeleteLFTagExpressionCommand(input);
const response = await client.send(command);
// {};

DeleteLFTagExpressionCommand Input

Parameter
Type
Description
Name
Required
string | undefined

The name for the LF-Tag expression.

CatalogId
string | undefined

The identifier for the Data Catalog. By default, the account ID in which the LF-Tag expression is saved.

DeleteLFTagExpressionCommand Output

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

Throws

Name
Fault
Details
AccessDeniedException
client

Access to a resource was denied.

EntityNotFoundException
client

A specified entity does not exist.

InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationTimeoutException
client

The operation timed out.

LakeFormationServiceException
Base exception class for all service exceptions from LakeFormation service.