import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetMessageInsightsRequest, GetMessageInsightsResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetMessageInsightsCommand}. */ export interface GetMessageInsightsCommandInput extends GetMessageInsightsRequest { } /** * @public * * The output of {@link GetMessageInsightsCommand}. */ export interface GetMessageInsightsCommandOutput extends GetMessageInsightsResponse, __MetadataBearer { } declare const GetMessageInsightsCommand_base: { new (input: GetMessageInsightsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetMessageInsightsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Provides information about a specific message, including the from address, the * subject, the recipient address, email tags, as well as events associated with the message.

*

You can execute this operation no more than once per second.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SESv2Client, GetMessageInsightsCommand } from "@aws-sdk/client-sesv2"; // ES Modules import * // const { SESv2Client, GetMessageInsightsCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import * // import type { SESv2ClientConfig } from "@aws-sdk/client-sesv2"; * const config = {}; // type is SESv2ClientConfig * const client = new SESv2Client(config); * const input = { // GetMessageInsightsRequest * MessageId: "STRING_VALUE", // required * }; * const command = new GetMessageInsightsCommand(input); * const response = await client.send(command); * // { // GetMessageInsightsResponse * // MessageId: "STRING_VALUE", * // FromEmailAddress: "STRING_VALUE", * // Subject: "STRING_VALUE", * // EmailTags: [ // MessageTagList * // { // MessageTag * // Name: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // Insights: [ // EmailInsightsList * // { // EmailInsights * // Destination: "STRING_VALUE", * // Isp: "STRING_VALUE", * // Events: [ // InsightsEvents * // { // InsightsEvent * // Timestamp: new Date("TIMESTAMP"), * // Type: "SEND" || "REJECT" || "BOUNCE" || "COMPLAINT" || "DELIVERY" || "OPEN" || "CLICK" || "RENDERING_FAILURE" || "DELIVERY_DELAY" || "SUBSCRIPTION", * // Details: { // EventDetails * // Bounce: { // Bounce * // BounceType: "UNDETERMINED" || "TRANSIENT" || "PERMANENT", * // BounceSubType: "STRING_VALUE", * // DiagnosticCode: "STRING_VALUE", * // }, * // Complaint: { // Complaint * // ComplaintSubType: "STRING_VALUE", * // ComplaintFeedbackType: "STRING_VALUE", * // }, * // }, * // }, * // ], * // }, * // ], * // }; * * ``` * * @param GetMessageInsightsCommandInput - {@link GetMessageInsightsCommandInput} * @returns {@link GetMessageInsightsCommandOutput} * @see {@link GetMessageInsightsCommandInput} for command's `input` shape. * @see {@link GetMessageInsightsCommandOutput} for command's `response` shape. * @see {@link SESv2ClientResolvedConfig | config} for SESv2Client's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The input you provided is invalid.

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

The resource you attempted to access doesn't exist.

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

Too many requests have been made to the operation.

* * @throws {@link SESv2ServiceException} *

Base exception class for all service exceptions from SESv2 service.

* * * @public */ export declare class GetMessageInsightsCommand extends GetMessageInsightsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetMessageInsightsRequest; output: GetMessageInsightsResponse; }; sdk: { input: GetMessageInsightsCommandInput; output: GetMessageInsightsCommandOutput; }; }; }