Class: AWSCDK::Pinpoint::CfnVoiceChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnVoiceChannelProps
- Defined in:
- pinpoint/cfn_voice_channel_props.rb
Overview
Properties for defining a CfnVoiceChannel.
Instance Attribute Summary collapse
-
#application_id ⇒ String
readonly
The unique identifier for the Amazon Pinpoint application that the voice channel applies to.
-
#enabled ⇒ Boolean, ...
readonly
Specifies whether to enable the voice channel for the application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_id:, enabled: nil) ⇒ CfnVoiceChannelProps
constructor
A new instance of CfnVoiceChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_id:, enabled: nil) ⇒ CfnVoiceChannelProps
Returns a new instance of CfnVoiceChannelProps.
11 12 13 14 15 16 |
# File 'pinpoint/cfn_voice_channel_props.rb', line 11 def initialize(application_id:, enabled: nil) @application_id = application_id Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId") @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 voice channel applies to.
22 23 24 |
# File 'pinpoint/cfn_voice_channel_props.rb', line 22 def application_id @application_id end |
#enabled ⇒ Boolean, ... (readonly)
Specifies whether to enable the voice channel for the application.
27 28 29 |
# File 'pinpoint/cfn_voice_channel_props.rb', line 27 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'pinpoint/cfn_voice_channel_props.rb', line 29 def self.jsii_properties { :application_id => "applicationId", :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'pinpoint/cfn_voice_channel_props.rb', line 36 def to_jsii result = {} result.merge!({ "applicationId" => @application_id, "enabled" => @enabled, }) result.compact end |