@aws-cdk/alexa-ask
Advanced tools
Comparing version 1.156.1 to 1.157.0
@@ -13,3 +13,3 @@ import * as cdk from '@aws-cdk/core'; | ||
/** | ||
* `Alexa::ASK::Skill.AuthenticationConfiguration` | ||
* 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. | ||
* | ||
@@ -20,3 +20,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-authenticationconfiguration | ||
/** | ||
* `Alexa::ASK::Skill.SkillPackage` | ||
* 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 . | ||
* | ||
@@ -27,3 +27,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-skillpackage | ||
/** | ||
* `Alexa::ASK::Skill.VendorId` | ||
* 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. | ||
* | ||
@@ -37,4 +37,4 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-vendorid | ||
* | ||
* 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 | ||
@@ -59,3 +59,3 @@ * @stability external | ||
/** | ||
* `Alexa::ASK::Skill.AuthenticationConfiguration` | ||
* 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. | ||
* | ||
@@ -66,3 +66,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-authenticationconfiguration | ||
/** | ||
* `Alexa::ASK::Skill.SkillPackage` | ||
* 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 . | ||
* | ||
@@ -73,3 +73,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-skillpackage | ||
/** | ||
* `Alexa::ASK::Skill.VendorId` | ||
* 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. | ||
* | ||
@@ -105,3 +105,5 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-vendorid | ||
/** | ||
* The `AuthenticationConfiguration` property type specifies the Login with Amazon (LWA) configuration used to authenticate with the Alexa service. Only Login with Amazon security profiles created through the are supported for authentication. A client ID, client secret, and refresh token are required. You can generate a client ID and client secret by creating a new on the Amazon Developer Portal or you can retrieve them from an existing profile. You can then retrieve the refresh token using the Alexa Skills Kit CLI. For instructions, see in the . | ||
* | ||
* `AuthenticationConfiguration` is a property of the `Alexa::ASK::Skill` resource. | ||
* | ||
@@ -115,3 +117,3 @@ * @struct | ||
/** | ||
* `CfnSkill.AuthenticationConfigurationProperty.ClientId` | ||
* Client ID from Login with Amazon (LWA). | ||
* | ||
@@ -122,3 +124,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-clientid | ||
/** | ||
* `CfnSkill.AuthenticationConfigurationProperty.ClientSecret` | ||
* Client secret from Login with Amazon (LWA). | ||
* | ||
@@ -129,3 +131,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-clientsecret | ||
/** | ||
* `CfnSkill.AuthenticationConfigurationProperty.RefreshToken` | ||
* Refresh token from Login with Amazon (LWA). This token is secret. | ||
* | ||
@@ -139,3 +141,5 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-refreshtoken | ||
/** | ||
* The `Overrides` property type provides overrides to the skill package to apply when creating or updating the skill. Values provided here do not modify the contents of the original skill package. Currently, only overriding values inside of the skill manifest component of the package is supported. | ||
* | ||
* `Overrides` is a property of the `Alexa::ASK::Skill SkillPackage` property type. | ||
* | ||
@@ -149,3 +153,3 @@ * @struct | ||
/** | ||
* `CfnSkill.OverridesProperty.Manifest` | ||
* Overrides to apply to the skill manifest inside of the skill package. The skill manifest contains metadata about the skill. For more information, see . | ||
* | ||
@@ -159,3 +163,5 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-overrides.html#cfn-ask-skill-overrides-manifest | ||
/** | ||
* The `SkillPackage` property type contains configuration details 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. More details about the skill package format are located in the . | ||
* | ||
* `SkillPackage` is a property of the `Alexa::ASK::Skill` resource. | ||
* | ||
@@ -169,3 +175,3 @@ * @struct | ||
/** | ||
* `CfnSkill.SkillPackageProperty.Overrides` | ||
* Overrides to the skill package to apply when creating or updating the skill. Values provided here do not modify the contents of the original skill package. Currently, only overriding values inside of the skill manifest component of the package is supported. | ||
* | ||
@@ -176,3 +182,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-overrides | ||
/** | ||
* `CfnSkill.SkillPackageProperty.S3Bucket` | ||
* The name of the Amazon S3 bucket where the .zip file that contains the skill package is stored. | ||
* | ||
@@ -183,3 +189,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3bucket | ||
/** | ||
* `CfnSkill.SkillPackageProperty.S3BucketRole` | ||
* ARN of the IAM role that grants the Alexa service ( `alexa-appkit.amazon.com` ) permission to access the bucket and retrieve the skill package. This property is optional. If you do not provide it, the bucket must be publicly accessible or configured with a policy that allows this access. Otherwise, AWS CloudFormation cannot create the skill. | ||
* | ||
@@ -190,3 +196,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3bucketrole | ||
/** | ||
* `CfnSkill.SkillPackageProperty.S3Key` | ||
* The location and name of the skill package .zip file. | ||
* | ||
@@ -197,3 +203,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3key | ||
/** | ||
* `CfnSkill.SkillPackageProperty.S3ObjectVersion` | ||
* If you have S3 versioning enabled, the version ID of the skill package.zip file. | ||
* | ||
@@ -200,0 +206,0 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3objectversion |
@@ -10,3 +10,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2022-05-13T00:25:31.154Z","fingerprint":"c3v4V23GAyaH2Vya4fY/1t36thLXnjx/Fay27Mys9Es="} | ||
// @cfn2ts:meta@ {"generated":"2022-05-20T21:31:34.584Z","fingerprint":"YOfqJQrC71rc8oPLQ6A2Uc6rSSlOUlPuN86M4CLm6O4="} | ||
/* eslint-disable max-len */ // This is generated code - line lengths are difficult to control | ||
@@ -73,4 +73,4 @@ const cdk = require("@aws-cdk/core"); | ||
* | ||
* 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 | ||
@@ -148,3 +148,3 @@ * @stability external | ||
_a = JSII_RTTI_SYMBOL_1; | ||
CfnSkill[_a] = { fqn: "@aws-cdk/alexa-ask.CfnSkill", version: "1.156.1" }; | ||
CfnSkill[_a] = { fqn: "@aws-cdk/alexa-ask.CfnSkill", version: "1.157.0" }; | ||
/** | ||
@@ -324,2 +324,2 @@ * The CloudFormation resource type name for this resource class. | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNrLmdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFzay5nZW5lcmF0ZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIO0FBRXRILDRCQUE0QixDQUFDLGlFQUFpRTtBQUU5RixxQ0FBcUM7QUFDckMsZ0VBQWdFO0FBa0NoRTs7Ozs7O0dBTUc7QUFDSCxTQUFTLHNCQUFzQixDQUFDLFVBQWU7SUFDM0MsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQztLQUFFO0lBQ25FLE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLENBQUM7SUFDM0MsSUFBSSxPQUFPLFVBQVUsS0FBSyxRQUFRLEVBQUU7UUFDaEMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxvQ0FBb0MsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUMvRztJQUNELE1BQU0sQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLGlCQUFpQixDQUFDLDZCQUE2QixFQUFFLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQ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c2tpbGwtYXV0aGVudGljYXRpb25jb25maWd1cmF0aW9uLWNsaWVudGlkXG4gICAgICAgICAqL1xuICAgICAgICByZWFkb25seSBjbGllbnRJZDogc3RyaW5nO1xuICAgICAgICAvKipcbiAgICAgICAgICogQ2xpZW50IHNlY3JldCBmcm9tIExvZ2luIHdpdGggQW1hem9uIChMV0EpLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAbGluayBodHRwOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9BV1NDbG91ZEZvcm1hdGlvbi9sYXRlc3QvVXNlckd1aWRlL2F3cy1wcm9wZXJ0aWVzLWFzay1za2lsbC1hdXRoZW50aWNhdGlvbmNvbmZpZ3VyYXRpb24uaHRtbCNjZm4tYXNrLXNraWxsLWF1dGhlbnRpY2F0aW9uY29uZmlndXJhdGlvbi1jbGllbnRzZWNyZXRcbiAgICAgICAgICovXG4gICAgICAgIHJlYWRvbmx5IGNsaWVudFNlY3JldDogc3RyaW5nO1xuICAgICAgICAvKipcbiAgICAgICAgICogUmVmcmVzaCB0b2tlbiBmcm9tIExvZ2luIHdpdGggQW1hem9uIChMV0EpLiBUaGlzIHRva2VuIGlzIHNlY3JldC5cbiAgICAgICAgICpcbiAgICAgICAgICogQGxpbmsgaHR0cDovL2RvY3MuYXdzLmFtYXpvbi5jb20vQVdTQ2xvdWRGb3JtYXRpb24vbGF0ZXN0L1VzZXJHdWlkZS9hd3MtcHJvcGVydGllcy1hc2stc2tpbGwtYXV0aGVudGljYXRpb25jb25maWd1cmF0aW9uLmh0bWwjY2ZuLWFzay1za2lsbC1hdXRoZW50aWNhdGlvbmNvbmZpZ3VyYXRpb24tcmVmcmVzaHRva2VuXG4gICAgICAgICAqL1xuICAgICAgICByZWFkb25seSByZWZyZXNoVG9rZW46IHN0cmluZztcbiAgICB9XG59XG5cbi8qKlxuICogRGV0ZXJtaW5lIHdoZXRoZXIgdGhlIGdpdmVuIHByb3BlcnRpZXMgbWF0Y2ggdGhvc2Ugb2YgYSBg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kUHJvcGVydGllc0FzRXh0cmEocHJvcGVydGllcyk7XG4gICAgcmV0dXJuIHJldDtcbn1cbiJdfQ== |
{ | ||
"name": "@aws-cdk/alexa-ask", | ||
"version": "1.156.1", | ||
"version": "1.157.0", | ||
"description": "The CDK Construct Library for Alexa::ASK", | ||
@@ -83,14 +83,14 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assertions": "1.156.1", | ||
"@aws-cdk/cdk-build-tools": "1.156.1", | ||
"@aws-cdk/cfn2ts": "1.156.1", | ||
"@aws-cdk/pkglint": "1.156.1", | ||
"@aws-cdk/assertions": "1.157.0", | ||
"@aws-cdk/cdk-build-tools": "1.157.0", | ||
"@aws-cdk/cfn2ts": "1.157.0", | ||
"@aws-cdk/pkglint": "1.157.0", | ||
"@types/jest": "^27.5.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/core": "1.156.1", | ||
"@aws-cdk/core": "1.157.0", | ||
"constructs": "^3.3.69" | ||
}, | ||
"peerDependencies": { | ||
"@aws-cdk/core": "1.156.1", | ||
"@aws-cdk/core": "1.157.0", | ||
"constructs": "^3.3.69" | ||
@@ -97,0 +97,0 @@ }, |
@@ -30,4 +30,11 @@ # Alexa Skills Kit Construct Library | ||
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) if you are interested in contributing to this construct library.) | ||
<!--BEGIN CFNONLY DISCLAIMER--> | ||
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. | ||
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly. | ||
For more information on the resources and properties available for this service, see the [CloudFormation documentation for Alexa::ASK](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Alexa_ASK.html). | ||
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.) | ||
<!--END CFNONLY DISCLAIMER--> |
Sorry, the diff of this file is not supported yet
151496
968
40
+ Added@aws-cdk/cloud-assembly-schema@1.157.0(transitive)
+ Added@aws-cdk/core@1.157.0(transitive)
+ Added@aws-cdk/cx-api@1.157.0(transitive)
+ Added@aws-cdk/region-info@1.157.0(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.156.1(transitive)
- Removed@aws-cdk/core@1.156.1(transitive)
- Removed@aws-cdk/cx-api@1.156.1(transitive)
- Removed@aws-cdk/region-info@1.156.1(transitive)
Updated@aws-cdk/core@1.157.0