Class: AWSCDK::AlexaAsk::CfnSkillProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AlexaAsk::CfnSkillProps
- Defined in:
- alexa_ask/cfn_skill_props.rb
Overview
Properties for defining a CfnSkill.
Instance Attribute Summary collapse
-
#authentication_configuration ⇒ AWSCDK::IResolvable, AWSCDK::AlexaAsk::CfnSkill::AuthenticationConfigurationProperty
readonly
Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
-
#skill_package ⇒ AWSCDK::IResolvable, AWSCDK::AlexaAsk::CfnSkill::SkillPackageProperty
readonly
Configuration for the skill package that contains the components of the Alexa skill.
-
#vendor_id ⇒ String
readonly
The vendor ID associated with the Amazon developer account that will host the skill.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authentication_configuration:, skill_package:, vendor_id:) ⇒ CfnSkillProps
constructor
A new instance of CfnSkillProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authentication_configuration:, skill_package:, vendor_id:) ⇒ CfnSkillProps
Returns a new instance of CfnSkillProps.
12 13 14 15 16 17 18 19 |
# File 'alexa_ask/cfn_skill_props.rb', line 12 def initialize(authentication_configuration:, skill_package:, vendor_id:) @authentication_configuration = authentication_configuration.is_a?(Hash) ? ::AWSCDK::AlexaAsk::CfnSkill::AuthenticationConfigurationProperty.new(**authentication_configuration.transform_keys(&:to_sym)) : authentication_configuration Jsii::Type.check_type(@authentication_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmFsZXhhX2Fzay5DZm5Ta2lsbC5BdXRoZW50aWNhdGlvbkNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "authenticationConfiguration") @skill_package = skill_package.is_a?(Hash) ? ::AWSCDK::AlexaAsk::CfnSkill::SkillPackageProperty.new(**skill_package.transform_keys(&:to_sym)) : skill_package Jsii::Type.check_type(@skill_package, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmFsZXhhX2Fzay5DZm5Ta2lsbC5Ta2lsbFBhY2thZ2VQcm9wZXJ0eSJ9XX19")), "skillPackage") @vendor_id = vendor_id Jsii::Type.check_type(@vendor_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vendorId") end |
Instance Attribute Details
#authentication_configuration ⇒ AWSCDK::IResolvable, AWSCDK::AlexaAsk::CfnSkill::AuthenticationConfigurationProperty (readonly)
Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
Only Login with Amazon clients created through the are supported. The client ID, client secret, and refresh token are required.
27 28 29 |
# File 'alexa_ask/cfn_skill_props.rb', line 27 def authentication_configuration @authentication_configuration end |
#skill_package ⇒ AWSCDK::IResolvable, AWSCDK::AlexaAsk::CfnSkill::SkillPackageProperty (readonly)
Configuration for the skill package that contains the components of the Alexa skill.
Skill packages are retrieved from an Amazon S3 bucket and key and used to create and update the skill. For more information about the skill package format, see the .
34 35 36 |
# File 'alexa_ask/cfn_skill_props.rb', line 34 def skill_package @skill_package end |
#vendor_id ⇒ String (readonly)
The vendor ID associated with the Amazon developer account that will host the skill.
Details for retrieving the vendor ID are in . The provided LWA credentials must be linked to the developer account associated with this vendor ID.
41 42 43 |
# File 'alexa_ask/cfn_skill_props.rb', line 41 def vendor_id @vendor_id end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File 'alexa_ask/cfn_skill_props.rb', line 43 def self.jsii_properties { :authentication_configuration => "authenticationConfiguration", :skill_package => "skillPackage", :vendor_id => "vendorId", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'alexa_ask/cfn_skill_props.rb', line 51 def to_jsii result = {} result.merge!({ "authenticationConfiguration" => @authentication_configuration, "skillPackage" => @skill_package, "vendorId" => @vendor_id, }) result.compact end |