@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:23.953Z") public class CfnBotVersion extends CfnResource implements IInspectable
Amazon Lex V2 is the only supported version in AWS CloudFormation .
Specifies a new version of the bot based on the DRAFT
version. If the DRAFT
version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it returns the last created version.
When you specify the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lex.*; CfnBotVersion cfnBotVersion = CfnBotVersion.Builder.create(this, "MyCfnBotVersion") .botId("botId") .botVersionLocaleSpecification(List.of(BotVersionLocaleSpecificationProperty.builder() .botVersionLocaleDetails(BotVersionLocaleDetailsProperty.builder() .sourceBotVersion("sourceBotVersion") .build()) .localeId("localeId") .build())) // the properties below are optional .description("description") .build();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnBotVersion.BotVersionLocaleDetailsProperty
The version of a bot used for a bot locale.
|
static interface |
CfnBotVersion.BotVersionLocaleSpecificationProperty
Specifies the locale that Amazon Lex adds to this version.
|
static class |
CfnBotVersion.Builder
A fluent builder for
CfnBotVersion . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnBotVersion(Construct scope,
java.lang.String id,
CfnBotVersionProps props)
Create a new `AWS::Lex::BotVersion`.
|
protected |
CfnBotVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBotVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrBotVersion()
The version of the bot.
|
java.lang.String |
getBotId()
The unique identifier of the bot.
|
java.lang.Object |
getBotVersionLocaleSpecification()
Specifies the locales that Amazon Lex adds to this version.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
The description of the version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setBotId(java.lang.String value)
The unique identifier of the bot.
|
void |
setBotVersionLocaleSpecification(IResolvable value)
Specifies the locales that Amazon Lex adds to this version.
|
void |
setBotVersionLocaleSpecification(java.util.List<java.lang.Object> value)
Specifies the locales that Amazon Lex adds to this version.
|
void |
setDescription(java.lang.String value)
The description of the version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnBotVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBotVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnBotVersion(Construct scope, java.lang.String id, CfnBotVersionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrBotVersion()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getBotId()
public void setBotId(java.lang.String value)
public java.lang.Object getBotVersionLocaleSpecification()
You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
public void setBotVersionLocaleSpecification(IResolvable value)
You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
public void setBotVersionLocaleSpecification(java.util.List<java.lang.Object> value)
You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
public java.lang.String getDescription()
public void setDescription(java.lang.String value)