Use the aws_pinpoint_sms_channel
resource to manage Pinpoint SMS Channels.
resource "aws_pinpoint_sms_channel" "sms" {
application_id = aws_pinpoint_app.app.application_id
}
resource "aws_pinpoint_app" "app" {}
This resource supports the following arguments:
application_id
- (Required) ID of the application.enabled
- (Optional) Whether the channel is enabled or disabled. By default, it is set to true
.sender_id
- (Optional) Identifier of the sender for your messages.short_code
- (Optional) Short Code registered with the phone provider.This resource exports the following attributes in addition to the arguments above:
promotional_messages_per_second
- Maximum number of promotional messages that can be sent per second.transactional_messages_per_second
- Maximum number of transactional messages per second that can be sent.In Terraform v1.5.0 and later, use an import
block to import the Pinpoint SMS Channel using the application_id
. For example:
import {
to = aws_pinpoint_sms_channel.sms
id = "application-id"
}
Using terraform import
, import the Pinpoint SMS Channel using the application_id
. For example:
% terraform import aws_pinpoint_sms_channel.sms application-id