Package software.amazon.awscdk.alexa.ask
Class CfnSkill.SkillPackageProperty.Builder
java.lang.Object
software.amazon.awscdk.alexa.ask.CfnSkill.SkillPackageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSkill.SkillPackageProperty>
- Enclosing interface:
CfnSkill.SkillPackageProperty
@Stability(Stable)
public static final class CfnSkill.SkillPackageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSkill.SkillPackageProperty>
A builder for
CfnSkill.SkillPackageProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.overrides
(CfnSkill.OverridesProperty overrides) Sets the value ofCfnSkill.SkillPackageProperty.getOverrides()
overrides
(IResolvable overrides) Sets the value ofCfnSkill.SkillPackageProperty.getOverrides()
Sets the value ofCfnSkill.SkillPackageProperty.getS3Bucket()
s3BucketRole
(String s3BucketRole) Sets the value ofCfnSkill.SkillPackageProperty.getS3BucketRole()
Sets the value ofCfnSkill.SkillPackageProperty.getS3Key()
s3ObjectVersion
(String s3ObjectVersion) Sets the value ofCfnSkill.SkillPackageProperty.getS3ObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3Bucket
Sets the value ofCfnSkill.SkillPackageProperty.getS3Bucket()
- Parameters:
s3Bucket
- The name of the Amazon S3 bucket where the .zip file that contains the skill package is stored. This parameter is required.- Returns:
this
-
s3Key
Sets the value ofCfnSkill.SkillPackageProperty.getS3Key()
- Parameters:
s3Key
- The location and name of the skill package .zip file. This parameter is required.- Returns:
this
-
overrides
Sets the value ofCfnSkill.SkillPackageProperty.getOverrides()
- Parameters:
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.- Returns:
this
-
overrides
@Stability(Stable) public CfnSkill.SkillPackageProperty.Builder overrides(CfnSkill.OverridesProperty overrides) Sets the value ofCfnSkill.SkillPackageProperty.getOverrides()
- Parameters:
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.- Returns:
this
-
s3BucketRole
Sets the value ofCfnSkill.SkillPackageProperty.getS3BucketRole()
- Parameters:
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.- Returns:
this
-
s3ObjectVersion
@Stability(Stable) public CfnSkill.SkillPackageProperty.Builder s3ObjectVersion(String s3ObjectVersion) Sets the value ofCfnSkill.SkillPackageProperty.getS3ObjectVersion()
- Parameters:
s3ObjectVersion
- If you have S3 versioning enabled, the version ID of the skill package.zip file.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSkill.SkillPackageProperty>
- Returns:
- a new instance of
CfnSkill.SkillPackageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-