DeleteThreatIntelSetCommand

Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.

Example Syntax

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

import { GuardDutyClient, DeleteThreatIntelSetCommand } from "@aws-sdk/client-guardduty"; // ES Modules import
// const { GuardDutyClient, DeleteThreatIntelSetCommand } = require("@aws-sdk/client-guardduty"); // CommonJS import
const client = new GuardDutyClient(config);
const input = { // DeleteThreatIntelSetRequest
  DetectorId: "STRING_VALUE", // required
  ThreatIntelSetId: "STRING_VALUE", // required
};
const command = new DeleteThreatIntelSetCommand(input);
const response = await client.send(command);
// {};

DeleteThreatIntelSetCommand Input

Parameter
Type
Description
DetectorId
Required
string | undefined

The unique ID of the detector that is associated with the threatIntelSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors  API.

ThreatIntelSetId
Required
string | undefined

The unique ID of the threatIntelSet that you want to delete.

DeleteThreatIntelSetCommand Output

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

Throws

Name
Fault
Details
BadRequestException
client

A bad request exception object.

InternalServerErrorException
server

An internal server error exception object.

GuardDutyServiceException
Base exception class for all service exceptions from GuardDuty service.