Table: aws_pinpoint_app - Query AWS Pinpoint Applications using SQL
The AWS Pinpoint Applications is a service that enables you to engage your customers by sending them targeted and transactional emails, text messages, push notifications, and voice messages. It provides insights about your users and their behavior, and it allows you to define which users to target, determine the right messages to send, schedule the best time to deliver the messages, and then track the results of your campaign. Pinpoint makes it easy to run targeted campaigns to drive user engagement in mobile apps.
Table Usage Guide
The aws_pinpoint_app
table in Steampipe provides you with information about applications within AWS Pinpoint. This table allows you, as a DevOps engineer, to query application-specific details, including application ID, name, creation date, settings, and limits. You can utilize this table to gather insights on applications, such as the application's settings, limits, and other associated metadata. The schema outlines the various attributes of the AWS Pinpoint application for you, including the application ID, name, creation date, and associated tags.
Examples
Basic info
Discover the segments that are associated with your AWS Pinpoint applications. This allows you to assess the elements within each application, such as its unique identifier, name, and Amazon Resource Number (ARN), as well as any limits set for the application.
select id, name, arn, limitsfrom aws_pinpoint_app;
select id, name, arn, limitsfrom aws_pinpoint_app;
Get quiet time for application
Discover the segments that have a specified quiet time within an application, allowing you to understand when the application is least active. This can be particularly useful for scheduling maintenance or updates during those periods to minimize user disruption.
select id, quiet_time -> 'Start' as start_time, quiet_time -> 'End' as end_timefrom aws_pinpoint_app;
select id, json_extract(quiet_time, '$.Start') as start_time, json_extract(quiet_time, '$.End') as end_timefrom aws_pinpoint_app;
Get campaign hook details for application
Analyze the settings to understand the details of campaign hooks for a specific application. This is beneficial for assessing the elements within the campaign hook, including the lambda function name, mode, and web URL.
select id, campaign_hook -> 'LambdaFunctionName' as lambda_function_name, campaign_hook -> 'Mode' as mode, campaign_hook -> 'WebUrl' as web_urlfrom aws_pinpoint_app;
select id, json_extract(campaign_hook, '$.LambdaFunctionName') as lambda_function_name, json_extract(campaign_hook, '$.Mode') as mode, json_extract(campaign_hook, '$.WebUrl') as web_urlfrom aws_pinpoint_app;
List the limits of applications
This query is used to gain insights into the restrictions placed on different aspects of applications, such as daily usage, total usage, session limits, maximum duration, and messages per second. This information can be invaluable for managing resource allocation and ensuring that applications are not exceeding their designated limits.
select id, limits -> 'Daily' as daily, limits -> 'Total' as total, limits -> 'Session' as session, limits -> 'MaximumDuration' as maximum_duration, limits -> 'MessagesPerSecond' as messages_per_secondfrom aws_pinpoint_app;
select id, json_extract(limits, '$.Daily') as daily, json_extract(limits, '$.Total') as total, json_extract(limits, '$.Session') as session, json_extract(limits, '$.MaximumDuration') as maximum_duration, json_extract(limits, '$.MessagesPerSecond') as messages_per_secondfrom aws_pinpoint_app;
Schema for aws_pinpoint_app
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
arn | text | The Amazon Resource Name (ARN) of the application. | |
campaign_hook | jsonb | The settings for the AWS Lambda function to invoke by default as a code hook for campaigns in the application. | |
id | text | = | The unique identifier for the application. |
last_modified_date | timestamp with time zone | The date and time, in ISO 8601 format, when the application's settings were last modified. | |
limits | jsonb | The default sending limits for campaigns in the application. | |
name | text | The display name of the application. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
quiet_time | jsonb | The default quiet time for campaigns in the application. | |
region | text | The AWS Region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tags | jsonb | A map of tags for the resource. | |
title | text | Title of the resource. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_pinpoint_app