Class: AWSCDK::Pinpoint::CfnVoiceChannelProps

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

Overview

Properties for defining a CfnVoiceChannel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id:, enabled: nil) ⇒ CfnVoiceChannelProps

Returns a new instance of CfnVoiceChannelProps.

Parameters:

  • application_id (String)

    The unique identifier for the Amazon Pinpoint application that the voice channel applies to.

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

    Specifies whether to enable the voice channel for the application.



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_idString (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

#enabledBoolean, ... (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_propertiesObject



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_jsiiObject



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