Skip to main content

gcm_channels

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

Overview

Namegcm_channels
TypeResource
Idaws.pinpoint.gcm_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that the GCM channel applies to.
creation_datestringThe date and time when the GCM channel was enabled.
credentialstringThe Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
default_authentication_methodstringThe default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
enabledbooleanSpecifies whether the GCM channel is enabled for the application.
has_credentialboolean(Not used) This property is retained only for backward compatibility.
has_fcm_service_credentialsbooleanReturns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
idstring(Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.
is_archivedbooleanSpecifies whether the GCM channel is archived.
last_modified_bystringThe user who last modified the GCM channel.
last_modified_datestringThe date and time when the GCM channel was last modified.
platformstringThe type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.
versionintegerThe current version of the GCM channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_gcm_channelselectapplication-id, regionRetrieves information about the status and settings of the GCM channel for an application.
update_gcm_channelupdateapplication-id, region, GCMChannelRequestEnables the GCM channel for an application or updates the status and settings of the GCM channel for an application.
delete_gcm_channeldeleteapplication-id, regionDisables the GCM 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 GCM channel for an application.

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

UPDATE examples

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

UPDATE aws.pinpoint.gcm_channels
SET
GCMChannelRequest = '{{ GCMChannelRequest }}'
WHERE
`application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
AND GCMChannelRequest = '{{ GCMChannelRequest }}' --required
RETURNING
gcm_channel_response;

DELETE examples

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

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