Class: AWSCDK::Pinpoint::CfnBaiduChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnBaiduChannelProps
- Defined in:
- pinpoint/cfn_baidu_channel_props.rb
Overview
Properties for defining a CfnBaiduChannel.
Instance Attribute Summary collapse
-
#api_key ⇒ String
readonly
The API key that you received from the Baidu Cloud Push service to communicate with the service.
-
#application_id ⇒ String
readonly
The unique identifier for the Amazon Pinpoint application that you're configuring the Baidu channel for.
-
#enabled ⇒ Boolean, ...
readonly
Specifies whether to enable the Baidu channel for the application.
-
#secret_key ⇒ String
readonly
The secret key that you received from the Baidu Cloud Push service to communicate with the service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key:, application_id:, secret_key:, enabled: nil) ⇒ CfnBaiduChannelProps
constructor
A new instance of CfnBaiduChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_key:, application_id:, secret_key:, enabled: nil) ⇒ CfnBaiduChannelProps
Returns a new instance of CfnBaiduChannelProps.
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_key ⇒ String (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_id ⇒ String (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 |
#enabled ⇒ Boolean, ... (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_key ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |