import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetectToxicContentRequest, DetectToxicContentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetectToxicContentCommand}. */ export interface DetectToxicContentCommandInput extends DetectToxicContentRequest { } /** * @public * * The output of {@link DetectToxicContentCommand}. */ export interface DetectToxicContentCommandOutput extends DetectToxicContentResponse, __MetadataBearer { } declare const DetectToxicContentCommand_base: { new (input: DetectToxicContentCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetectToxicContentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Performs toxicity analysis on the list of text strings that you provide as input. * The API response contains a results list that matches the size of the input list. * For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendClient, DetectToxicContentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import * // const { ComprehendClient, DetectToxicContentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import * // import type { ComprehendClientConfig } from "@aws-sdk/client-comprehend"; * const config = {}; // type is ComprehendClientConfig * const client = new ComprehendClient(config); * const input = { // DetectToxicContentRequest * TextSegments: [ // ListOfTextSegments // required * { // TextSegment * Text: "STRING_VALUE", // required * }, * ], * LanguageCode: "en" || "es" || "fr" || "de" || "it" || "pt" || "ar" || "hi" || "ja" || "ko" || "zh" || "zh-TW", // required * }; * const command = new DetectToxicContentCommand(input); * const response = await client.send(command); * // { // DetectToxicContentResponse * // ResultList: [ // ListOfToxicLabels * // { // ToxicLabels * // Labels: [ // ListOfToxicContent * // { // ToxicContent * // Name: "GRAPHIC" || "HARASSMENT_OR_ABUSE" || "HATE_SPEECH" || "INSULT" || "PROFANITY" || "SEXUAL" || "VIOLENCE_OR_THREAT", * // Score: Number("float"), * // }, * // ], * // Toxicity: Number("float"), * // }, * // ], * // }; * * ``` * * @param DetectToxicContentCommandInput - {@link DetectToxicContentCommandInput} * @returns {@link DetectToxicContentCommandOutput} * @see {@link DetectToxicContentCommandInput} for command's `input` shape. * @see {@link DetectToxicContentCommandOutput} for command's `response` shape. * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link InvalidRequestException} (client fault) *

The request is invalid.

* * @throws {@link TextSizeLimitExceededException} (client fault) *

The size of the input text exceeds the limit. Use a smaller document.

* * @throws {@link UnsupportedLanguageException} (client fault) *

Amazon Comprehend can't process the language of the input text. For a list of supported languages, * Supported languages in the Comprehend Developer Guide. *

* * @throws {@link ComprehendServiceException} *

Base exception class for all service exceptions from Comprehend service.

* * * @public */ export declare class DetectToxicContentCommand extends DetectToxicContentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetectToxicContentRequest; output: DetectToxicContentResponse; }; sdk: { input: DetectToxicContentCommandInput; output: DetectToxicContentCommandOutput; }; }; }