Class: Aws::Pinpoint::Types::GCMChannelRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpoint/types.rb

Overview

Specifies the status and settings of the GCM channel for an application. This channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#api_keyString

The Web API Key, also referred to as an API_KEY or *server key*, that you received from Google to communicate with Google services.

Returns:

  • (String)


5738
5739
5740
5741
5742
5743
5744
5745
# File 'lib/aws-sdk-pinpoint/types.rb', line 5738

class GCMChannelRequest < Struct.new(
  :api_key,
  :default_authentication_method,
  :enabled,
  :service_json)
  SENSITIVE = []
  include Aws::Structure
end

#default_authentication_methodString

The default authentication method used for GCM. Values are either “TOKEN” or “KEY”. Defaults to “KEY”.

Returns:

  • (String)


5738
5739
5740
5741
5742
5743
5744
5745
# File 'lib/aws-sdk-pinpoint/types.rb', line 5738

class GCMChannelRequest < Struct.new(
  :api_key,
  :default_authentication_method,
  :enabled,
  :service_json)
  SENSITIVE = []
  include Aws::Structure
end

#enabledBoolean

Specifies whether to enable the GCM channel for the application.

Returns:

  • (Boolean)


5738
5739
5740
5741
5742
5743
5744
5745
# File 'lib/aws-sdk-pinpoint/types.rb', line 5738

class GCMChannelRequest < Struct.new(
  :api_key,
  :default_authentication_method,
  :enabled,
  :service_json)
  SENSITIVE = []
  include Aws::Structure
end

#service_jsonString

The contents of the JSON file provided by Google during registration in order to generate an access token for authentication. For more information see [Migrate from legacy FCM APIs to HTTP v1].

[1]: firebase.google.com/docs/cloud-messaging/migrate-v1

Returns:

  • (String)


5738
5739
5740
5741
5742
5743
5744
5745
# File 'lib/aws-sdk-pinpoint/types.rb', line 5738

class GCMChannelRequest < Struct.new(
  :api_key,
  :default_authentication_method,
  :enabled,
  :service_json)
  SENSITIVE = []
  include Aws::Structure
end