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

main.tf#L7
resource "aws_pinpoint_baidu_channel" "this" {
  api_key        = var.api_key
  application_id = var.application_id
  enabled        = var.enabled
  secret_key     = var.secret_key
}

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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

product.template-us-west-2.yaml#L15
    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'
product.template-ap-south-1.yaml#L15
    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'
product.template-eu-west-1.yaml#L15
    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'
aws-pinpoint-baiduchannel.yaml#L15
    Type: AWS::Pinpoint::BaiduChannel
    Properties:
      ApplicationId: !Ref applicationid
      ApiKey: !Ref apikey
      SecretKey: !Ref secretkey
product.template-us-east-1.yaml#L15
    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'
awsResouceIconMatches.json#L584
        "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"
PinpointBaiduChannelSpecification.json#L3
    "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",
template.json#L1087
    "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.