Provides a Pinpoint App resource.
resource "aws_pinpoint_app" "example" {
name = "test-app"
limits {
maximum_duration = 600
}
quiet_time {
start = "00:00"
end = "06:00"
}
}
This resource supports the following arguments:
name
- (Optional) The application name. By default generated by Terraformname_prefix
- (Optional) The name of the Pinpoint application. Conflicts with name
campaign_hook
- (Optional) Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaignlimits
- (Optional) The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its ownquiet_time
- (Optional) The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its owntags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.campaign_hook
supports the following:
lambda_function_name
- (Optional) Lambda function name or ARN to be called for delivery. Conflicts with web_url
mode
- (Required if lambda_function_name
or web_url
are provided) What mode Lambda should be invoked in. Valid values for this parameter are DELIVERY
, FILTER
. web_url
- (Optional) Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request. Conflicts with lambda_function_name
limits
supports the following:
daily
- (Optional) The maximum number of messages that the campaign can send daily.maximum_duration
- (Optional) The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60.messages_per_second
- (Optional) The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000.total
- (Optional) The maximum total number of messages that the campaign can send.quiet_time
supports the following:
end
- (Optional) The default end time for quiet time in ISO 8601 format. Required if start
is setstart
- (Optional) The default start time for quiet time in ISO 8601 format. Required if end
is setThis resource exports the following attributes in addition to the arguments above:
application_id
- The Application ID of the Pinpoint App.arn
- Amazon Resource Name (ARN) of the PinPoint Applicationtags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import Pinpoint App using the application-id
. For example:
import {
to = aws_pinpoint_app.name
id = "application-id"
}
Using terraform import
, import Pinpoint App using the application-id
. For example:
% terraform import aws_pinpoint_app.name application-id