Class: AWSCDK::Pinpoint::CfnBaiduChannelProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_baidu_channel_props.rb

Overview

Properties for defining a CfnBaiduChannel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, application_id:, secret_key:, enabled: nil) ⇒ CfnBaiduChannelProps

Returns a new instance of CfnBaiduChannelProps.

Parameters:

  • api_key (String)

    The API key that you received from the Baidu Cloud Push service to communicate with the service.

  • application_id (String)

    The unique identifier for the Amazon Pinpoint application that you're configuring the Baidu channel for.

  • secret_key (String)

    The secret key that you received from the Baidu Cloud Push service to communicate with the service.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether to enable the Baidu channel for the application.



13
14
15
16
17
18
19
20
21
22
# File 'pinpoint/cfn_baidu_channel_props.rb', line 13

def initialize(api_key:, application_id:, secret_key:, enabled: nil)
  @api_key = api_key
  Jsii::Type.check_type(@api_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKey")
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @secret_key = secret_key
  Jsii::Type.check_type(@secret_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretKey")
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
end

Instance Attribute Details

#api_keyString (readonly)

The API key that you received from the Baidu Cloud Push service to communicate with the service.



28
29
30
# File 'pinpoint/cfn_baidu_channel_props.rb', line 28

def api_key
  @api_key
end

#application_idString (readonly)

The unique identifier for the Amazon Pinpoint application that you're configuring the Baidu channel for.



33
34
35
# File 'pinpoint/cfn_baidu_channel_props.rb', line 33

def application_id
  @application_id
end

#enabledBoolean, ... (readonly)

Specifies whether to enable the Baidu channel for the application.



43
44
45
# File 'pinpoint/cfn_baidu_channel_props.rb', line 43

def enabled
  @enabled
end

#secret_keyString (readonly)

The secret key that you received from the Baidu Cloud Push service to communicate with the service.



38
39
40
# File 'pinpoint/cfn_baidu_channel_props.rb', line 38

def secret_key
  @secret_key
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'pinpoint/cfn_baidu_channel_props.rb', line 45

def self.jsii_properties
  {
    :api_key => "apiKey",
    :application_id => "applicationId",
    :secret_key => "secretKey",
    :enabled => "enabled",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'pinpoint/cfn_baidu_channel_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "apiKey" => @api_key,
    "applicationId" => @application_id,
    "secretKey" => @secret_key,
    "enabled" => @enabled,
  })
  result.compact
end