AWS Amazon Pinpoint Baidu Channel
This page shows how to write Terraform and CloudFormation for Amazon Pinpoint Baidu Channel and write them securely.
aws_pinpoint_baidu_channel (Terraform)
The Baidu Channel in Amazon Pinpoint can be configured in Terraform with the resource name aws_pinpoint_baidu_channel
. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_pinpoint_baidu_channel" "this" {
api_key = var.api_key
application_id = var.application_id
enabled = var.enabled
secret_key = var.secret_key
}
Parameters
-
api_key
required - string -
application_id
required - string -
enabled
optional - bool -
id
optional computed - string -
secret_key
required - string
Explanation in Terraform Registry
Provides a Pinpoint Baidu Channel resource.
Note: All arguments including the Api Key and Secret Key will be stored in the raw state as plain-text. Read more about sensitive data in state.
AWS::Pinpoint::BaiduChannel (CloudFormation)
The BaiduChannel in Pinpoint can be configured in CloudFormation with the resource name AWS::Pinpoint::BaiduChannel
. The following sections describe 8 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::Pinpoint::BaiduChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html
Properties:
SecretKey: !Ref 'SecretKey'
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::BaiduChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html
Properties:
SecretKey: !Ref 'SecretKey'
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::BaiduChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html
Properties:
SecretKey: !Ref 'SecretKey'
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
Type: AWS::Pinpoint::BaiduChannel
Properties:
ApplicationId: !Ref applicationid
ApiKey: !Ref apikey
SecretKey: !Ref secretkey
Type: AWS::Pinpoint::BaiduChannel
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html
Properties:
SecretKey: !Ref 'SecretKey'
ApiKey: !Ref 'ApiKey'
ApplicationId: !Ref 'ApplicationId'
"resourceType": "AWS::Pinpoint::BaiduChannel",
"filePath": "icons/aws/Service/Arch_Mobile/64/Arch_Amazon-Pinpoint_64@5x.png"
},
{
"resourceType": "AWS::Pinpoint::GCMChannel",
"filePath": "icons/aws/Service/Arch_Mobile/64/Arch_Amazon-Pinpoint_64@5x.png"
"AWS::Pinpoint::BaiduChannel": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html",
"Properties": {
"SecretKey": {
"Required": true,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html#cfn-pinpoint-baiduchannel-secretkey",
"AWS::Pinpoint::BaiduChannel": {
"Type": "AWS::Pinpoint::BaiduChannel",
"Properties": {}
},
"AWS::ApiGateway::BasePathMapping": {
"Type": "AWS::ApiGateway::BasePathMapping",
Parameters
ApiKey
The API key that you received from the Baidu Cloud Push service to communicate with the service.
Required: Yes
Type: String
Update requires: No interruption
ApplicationId
The unique identifier for the Amazon Pinpoint application that you're configuring the Baidu channel for.
Required: Yes
Type: String
Update requires: Replacement
Enabled
Specifies whether to enable the Baidu channel for the application.
Required: No
Type: Boolean
Update requires: No interruption
SecretKey
The secret key that you received from the Baidu Cloud Push service to communicate with the service.
Required: Yes
Type: String
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 Baidu channel to send notifications to the Baidu Cloud Push notification service. Before you can use Amazon Pinpoint to send notifications to the Baidu Cloud Push service, you have to enable the Baidu channel for an Amazon Pinpoint application.
The BaiduChannel resource represents the status and authentication settings of the Baidu channel for an application.
Frequently asked questions
What is AWS Amazon Pinpoint Baidu Channel?
AWS Amazon Pinpoint Baidu 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 Baidu Channel?
For Terraform, the niveklabs/aws source code example is useful. See the Terraform Example section for further details.
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.