Skip to main content

baidu_channels

Creates, updates, deletes, gets or lists a baidu_channels resource.

Overview

Namebaidu_channels
TypeResource
Idaws.pinpoint.baidu_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that the Baidu channel applies to.
creation_datestringThe date and time when the Baidu channel was enabled.
credentialstringThe API key that you received from the Baidu Cloud Push service to communicate with the service.
enabledbooleanSpecifies whether the Baidu channel is enabled for the application.
has_credentialboolean(Not used) This property is retained only for backward compatibility.
idstring(Deprecated) An identifier for the Baidu channel. This property is retained only for backward compatibility.
is_archivedbooleanSpecifies whether the Baidu channel is archived.
last_modified_bystringThe user who last modified the Baidu channel.
last_modified_datestringThe date and time when the Baidu channel was last modified.
platformstringThe type of messaging or notification platform for the channel. For the Baidu channel, this value is BAIDU.
versionintegerThe current version of the Baidu channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_baidu_channelselectapplication-id, regionRetrieves information about the status and settings of the Baidu channel for an application.
update_baidu_channelupdateapplication-id, region, BaiduChannelRequestEnables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.
delete_baidu_channeldeleteapplication-id, regionDisables the Baidu channel for an application and deletes any existing settings for the channel.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application-idstringThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about the status and settings of the Baidu channel for an application.

SELECT
application_id,
creation_date,
credential,
enabled,
has_credential,
id,
is_archived,
last_modified_by,
last_modified_date,
platform,
version
FROM aws.pinpoint.baidu_channels
WHERE `application-id` = '{{ application-id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.

UPDATE aws.pinpoint.baidu_channels
SET
BaiduChannelRequest = '{{ BaiduChannelRequest }}'
WHERE
`application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
AND BaiduChannelRequest = '{{ BaiduChannelRequest }}' --required
RETURNING
baidu_channel_response;

DELETE examples

Disables the Baidu channel for an application and deletes any existing settings for the channel.

DELETE FROM aws.pinpoint.baidu_channels
WHERE `application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
;