Skip to content

ConfigurationSet

Source: src/AWS/PinpointSMSVoiceV2/ConfigurationSet.ts

An AWS End User Messaging SMS (Pinpoint SMS Voice v2) configuration set — a named set of rules applied to SMS and voice messages sent through it.

Attach EventDestinations to a configuration set to route message events (sends, deliveries, failures) to CloudWatch Logs, Kinesis Data Firehose, or SNS.

Basic Configuration Set

import * as PinpointSMSVoiceV2 from "alchemy/AWS/PinpointSMSVoiceV2";
const configSet = yield* PinpointSMSVoiceV2.ConfigurationSet("Messaging");

Configuration Set with a Default Message Type

const configSet = yield* PinpointSMSVoiceV2.ConfigurationSet("Otp", {
defaultMessageType: "TRANSACTIONAL",
tags: { team: "auth" },
});
const events = yield* SNS.Topic("SmsEvents");
const destination = yield* PinpointSMSVoiceV2.EventDestination("Events", {
configurationSetName: configSet.configurationSetName,
matchingEventTypes: ["ALL"],
snsDestination: { topicArn: events.topicArn },
});