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

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

Overview

Note:

When making an API call, you may pass GCMChannelRequest data as a hash:

{
  api_key: "__string", # required
  enabled: false,
}

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.

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)


7527
7528
7529
7530
7531
# File 'lib/aws-sdk-pinpoint/types.rb', line 7527

class GCMChannelRequest < Struct.new(
  :api_key,
  :enabled)
  include Aws::Structure
end

#enabledBoolean

Specifies whether to enable the GCM channel for the application.

Returns:

  • (Boolean)


7527
7528
7529
7530
7531
# File 'lib/aws-sdk-pinpoint/types.rb', line 7527

class GCMChannelRequest < Struct.new(
  :api_key,
  :enabled)
  include Aws::Structure
end