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
Modifier and TypeClassDescriptionstatic interface
TheAuthenticationConfiguration
property type specifies the Login with Amazon (LWA) configuration used to authenticate with the Alexa service.static final class
A fluent builder forCfnSkill
.static interface
TheOverrides
property type provides overrides to the skill package to apply when creating or updating the skill.static interface
TheSkillPackage
property 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Login with Amazon (LWA) configuration used to authenticate with the Alexa service.void
Login with Amazon (LWA) configuration used to authenticate with the Alexa service.void
Configuration for the skill package that contains the components of the Alexa skill.void
setSkillPackage
(IResolvable value) Configuration for the skill package that contains the components of the Alexa skill.void
setVendorId
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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.
-