Class CfnSkill
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
Alexa::ASK::Skill.
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.alexa.ask.*;
Object manifest;
CfnSkill cfnSkill = CfnSkill.Builder.create(this, "MyCfnSkill")
.authenticationConfiguration(AuthenticationConfigurationProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.refreshToken("refreshToken")
.build())
.skillPackage(SkillPackageProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
// the properties below are optional
.overrides(OverridesProperty.builder()
.manifest(manifest)
.build())
.s3BucketRole("s3BucketRole")
.s3ObjectVersion("s3ObjectVersion")
.build())
.vendorId("vendorId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheAuthenticationConfigurationproperty type specifies the Login with Amazon (LWA) configuration used to authenticate with the Alexa service.static final classA fluent builder forCfnSkill.static interfaceTheOverridesproperty type provides overrides to the skill package to apply when creating or updating the skill.static interfaceTheSkillPackageproperty type contains configuration details for the skill package that contains the components of the Alexa skill.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLogin with Amazon (LWA) configuration used to authenticate with the Alexa service.Configuration for the skill package that contains the components of the Alexa skill.The vendor ID associated with the Amazon developer account that will host the skill.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidLogin with Amazon (LWA) configuration used to authenticate with the Alexa service.voidLogin with Amazon (LWA) configuration used to authenticate with the Alexa service.voidConfiguration for the skill package that contains the components of the Alexa skill.voidsetSkillPackage(IResolvable value) Configuration for the skill package that contains the components of the Alexa skill.voidsetVendorId(String value) The vendor ID associated with the Amazon developer account that will host the skill.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSkill
protected CfnSkill(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSkill
protected CfnSkill(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSkill
@Stability(Stable) public CfnSkill(@NotNull Construct scope, @NotNull String id, @NotNull CfnSkillProps props) Create a newAlexa::ASK::Skill.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAuthenticationConfiguration
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.
-
setAuthenticationConfiguration
@Stability(Stable) public void setAuthenticationConfiguration(@NotNull CfnSkill.AuthenticationConfigurationProperty value) 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.
-
setAuthenticationConfiguration
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.
-
getSkillPackage
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 .
-
setSkillPackage
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 .
-
setSkillPackage
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 .
-
getVendorId
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.
-
setVendorId
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.
-