Class: AWSCDK::Pinpoint::CfnADMChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnADMChannelProps
- Defined in:
- pinpoint/cfn_adm_channel_props.rb
Overview
Properties for defining a CfnADMChannel.
Instance Attribute Summary collapse
-
#application_id ⇒ String
readonly
The unique identifier for the Amazon Pinpoint application that the ADM channel applies to.
-
#client_id ⇒ String
readonly
The Client ID that you received from Amazon to send messages by using ADM.
-
#client_secret ⇒ String
readonly
The Client Secret that you received from Amazon to send messages by using ADM.
-
#enabled ⇒ Boolean, ...
readonly
Specifies whether to enable the ADM channel for the application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_id:, client_id:, client_secret:, enabled: nil) ⇒ CfnADMChannelProps
constructor
A new instance of CfnADMChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_id:, client_id:, client_secret:, enabled: nil) ⇒ CfnADMChannelProps
Returns a new instance of CfnADMChannelProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 13 def initialize(application_id:, client_id:, client_secret:, enabled: nil) @application_id = application_id Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId") @client_id = client_id Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId") @client_secret = client_secret Jsii::Type.check_type(@client_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientSecret") @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? end |
Instance Attribute Details
#application_id ⇒ String (readonly)
The unique identifier for the Amazon Pinpoint application that the ADM channel applies to.
28 29 30 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 28 def application_id @application_id end |
#client_id ⇒ String (readonly)
The Client ID that you received from Amazon to send messages by using ADM.
33 34 35 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 33 def client_id @client_id end |
#client_secret ⇒ String (readonly)
The Client Secret that you received from Amazon to send messages by using ADM.
38 39 40 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 38 def client_secret @client_secret end |
#enabled ⇒ Boolean, ... (readonly)
Specifies whether to enable the ADM channel for the application.
43 44 45 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 43 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 45 def self.jsii_properties { :application_id => "applicationId", :client_id => "clientId", :client_secret => "clientSecret", :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'pinpoint/cfn_adm_channel_props.rb', line 54 def to_jsii result = {} result.merge!({ "applicationId" => @application_id, "clientId" => @client_id, "clientSecret" => @client_secret, "enabled" => @enabled, }) result.compact end |