AWS Amazon Pinpoint GCM Channel
This page shows how to write Terraform and CloudFormation for Amazon Pinpoint GCM Channel and write them securely.
aws_pinpoint_gcm_channel (Terraform)
The GCM Channel in Amazon Pinpoint can be configured in Terraform with the resource name aws_pinpoint_gcm_channel
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
api_key
required - string -
application_id
required - string -
enabled
optional - bool -
id
optional computed - string
Explanation in Terraform Registry
Provides a Pinpoint GCM Channel resource.
Note: Api Key argument will be stored in the raw state as plain-text. Read more about sensitive data in state.
AWS::Pinpoint::GCMChannel (CloudFormation)
The GCMChannel in Pinpoint can be configured in CloudFormation with the resource name AWS::Pinpoint::GCMChannel
. The following sections describe 9 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::Pinpoint::GCMChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html
Properties:
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::GCMChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html
Properties:
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::GCMChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html
Properties:
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::GCMChannel
Properties:
ApplicationId: !Ref applicationid
ApiKey: !Ref apikey
Type: AWS::Pinpoint::GCMChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html
Properties:
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
"resourceType": "AWS::Pinpoint::GCMChannel",
"filePath": "icons/aws/Service/Arch_Mobile/64/Arch_Amazon-Pinpoint_64@5x.png"
},
{
"resourceType": "AWS::Pinpoint::APNSChannel",
"filePath": null
"AWS::Pinpoint::GCMChannel": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html",
"Properties": {
"ApiKey": {
"Required": true,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html#cfn-pinpoint-gcmchannel-apikey",
"type": "AWS::Pinpoint::GCMChannel",
"name": null,
"arn": null,
"feature": "analytics",
"attributes": {
"AppID": "e80e7788d1f04a0ab1fbf51bb0804e92",
"AWS::Pinpoint::GCMChannel": {
"Type": "AWS::Pinpoint::GCMChannel",
"Properties": {}
},
"AWS::GuardDuty::Detector": {
"Type": "AWS::GuardDuty::Detector",
Parameters
ApiKey
The Web API key, also called the server key, that you received from Google to communicate with Google services.
Required: Yes
Type: String
Update requires: No interruption
ApplicationId
The unique identifier for the Amazon Pinpoint application that the GCM channel applies to.
Required: Yes
Type: String
Update requires: Replacement
Enabled
Specifies whether to enable the GCM channel for the Amazon Pinpoint application.
Required: No
Type: Boolean
Update requires: No interruption
Explanation in CloudFormation Registry
A channel is a type of platform that you can deliver messages to. You can use the GCM channel to send push notification messages to the Firebase Cloud Messaging (FCM) service, which replaced the Google Cloud Messaging (GCM) service. Before you use Amazon Pinpoint to send notifications to FCM, you have to enable the GCM channel for an Amazon Pinpoint application.
The GCMChannel resource represents the status and authentication settings of the GCM channel for an application.
Frequently asked questions
What is AWS Amazon Pinpoint GCM Channel?
AWS Amazon Pinpoint GCM Channel is a resource for Amazon Pinpoint of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon Pinpoint GCM Channel?
For CloudFormation, the awslabs/aws-service-catalog-products, awslabs/aws-service-catalog-products and awslabs/aws-service-catalog-products source code examples are useful. See the CloudFormation Example section for further details.