Class CfnSkill
A CloudFormation Alexa::ASK::Skill
.
Inherited Members
Namespace: Amazon.CDK.Alexa.Ask
Assembly: Amazon.CDK.Alexa.Ask.dll
Syntax (csharp)
public class CfnSkill : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnSkill
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The Alexa::ASK::Skill
resource creates an Alexa skill that enables customers to access new abilities. For more information about developing a skill, see the .
CloudformationResource: Alexa::ASK::Skill
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Alexa.Ask;
var manifest;
var cfnSkill = new CfnSkill(this, "MyCfnSkill", new CfnSkillProps {
AuthenticationConfiguration = new AuthenticationConfigurationProperty {
ClientId = "clientId",
ClientSecret = "clientSecret",
RefreshToken = "refreshToken"
},
SkillPackage = new SkillPackageProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key",
// the properties below are optional
Overrides = new OverridesProperty {
Manifest = manifest
},
S3BucketRole = "s3BucketRole",
S3ObjectVersion = "s3ObjectVersion"
},
VendorId = "vendorId"
});
Synopsis
Constructors
CfnSkill(Construct, String, ICfnSkillProps) | Create a new |
CfnSkill(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSkill(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AuthenticationConfiguration | Login with Amazon (LWA) configuration used to authenticate with the Alexa service. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
SkillPackage | Configuration for the skill package that contains the components of the Alexa skill. |
VendorId | The vendor ID associated with the Amazon developer account that will host the skill. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSkill(Construct, String, ICfnSkillProps)
Create a new Alexa::ASK::Skill
.
public CfnSkill(Construct scope, string id, ICfnSkillProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnSkillProps
- resource properties.
CfnSkill(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSkill(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSkill(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSkill(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AuthenticationConfiguration
Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
public virtual object AuthenticationConfiguration { get; set; }
Property Value
System.Object
Remarks
Only Login with Amazon clients created through the are supported. The client ID, client secret, and refresh token are required.
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
SkillPackage
Configuration for the skill package that contains the components of the Alexa skill.
public virtual object SkillPackage { get; set; }
Property Value
System.Object
Remarks
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 .
VendorId
The vendor ID associated with the Amazon developer account that will host the skill.
public virtual string VendorId { get; set; }
Property Value
System.String
Remarks
Details for retrieving the vendor ID are in . The provided LWA credentials must be linked to the developer account associated with this vendor ID.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>