Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MessageRequest

import type { MessageRequest } from "https://aws-api.deno.dev/v0.4/services/pinpoint.ts?docs=full";

Specifies the configuration and other settings for a message.

interface MessageRequest {
Addresses?: {
[key: string]: AddressConfiguration | null | undefined;
}
| null;
Context?: {
[key: string]: string | null | undefined;
}
| null;
Endpoints?: {
[key: string]: EndpointSendConfiguration | null | undefined;
}
| null;
MessageConfiguration: DirectMessageConfiguration;
TemplateConfiguration?: TemplateConfiguration | null;
TraceId?: string | null;
}

§Properties

§
Addresses?: {
[key: string]: AddressConfiguration | null | undefined;
}
| null
[src]

A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object. An address can be a push notification token, a phone number, or an email address. You can use an AddressConfiguration object to tailor the message for an address by specifying settings such as content overrides and message variables.

§
Context?: {
[key: string]: string | null | undefined;
}
| null
[src]

A map of custom attributes to attach to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

§
Endpoints?: {
[key: string]: EndpointSendConfiguration | null | undefined;
}
| null
[src]

A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object. You can use an EndpointSendConfiguration object to tailor the message for an endpoint by specifying settings such as content overrides and message variables.

§
MessageConfiguration: DirectMessageConfiguration
[src]

The settings and content for the default message and any default messages that you defined for specific channels.

§
TemplateConfiguration?: TemplateConfiguration | null
[src]

The message template to use for the message.

§
TraceId?: string | null
[src]

The unique identifier for tracing the message. This identifier is visible to message recipients.