DeleteDataGrantCommand

This operation deletes a data grant.

Example Syntax

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

import { DataExchangeClient, DeleteDataGrantCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
// const { DataExchangeClient, DeleteDataGrantCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
const client = new DataExchangeClient(config);
const input = { // DeleteDataGrantRequest
  DataGrantId: "STRING_VALUE", // required
};
const command = new DeleteDataGrantCommand(input);
const response = await client.send(command);
// {};

DeleteDataGrantCommand Input

See DeleteDataGrantCommandInput for more details

Parameter
Type
Description
DataGrantId
Required
string | undefined

The ID of the data grant to delete.

DeleteDataGrantCommand Output

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

Throws

Name
Fault
Details
AccessDeniedException
client

Access to the resource is denied.

InternalServerException
server

An exception occurred with the service.

ResourceNotFoundException
client

The resource couldn't be found.

ThrottlingException
client

The limit on the number of requests per second was exceeded.

ValidationException
client

The request was invalid.

DataExchangeServiceException
Base exception class for all service exceptions from DataExchange service.