Provides a Pinpoint Baidu Channel resource.
resource "aws_pinpoint_app" "app" {}
resource "aws_pinpoint_baidu_channel" "channel" {
application_id = aws_pinpoint_app.app.application_id
api_key = ""
secret_key = ""
}
This resource supports the following arguments:
application_id
- (Required) The application ID.enabled
- (Optional) Specifies whether to enable the channel. Defaults to true
.api_key
- (Required) Platform credential API key from Baidu.secret_key
- (Required) Platform credential Secret key from Baidu.This resource exports no additional attributes.
In Terraform v1.5.0 and later, use an import
block to import Pinpoint Baidu Channel using the application-id
. For example:
import {
to = aws_pinpoint_baidu_channel.channel
id = "application-id"
}
Using terraform import
, import Pinpoint Baidu Channel using the application-id
. For example:
% terraform import aws_pinpoint_baidu_channel.channel application-id