Class CfnBotVersion
Amazon Lex V2 is the only supported version in AWS CloudFormation .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBotVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnBotVersion
Inherits CfnResource
Implements IInspectable
Remarks
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.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lex-botversion.html
CloudformationResource: AWS::Lex::BotVersion
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var cfnBotVersion = new CfnBotVersion(this, "MyCfnBotVersion", new CfnBotVersionProps {
BotId = "botId",
BotVersionLocaleSpecification = new [] { new BotVersionLocaleSpecificationProperty {
BotVersionLocaleDetails = new BotVersionLocaleDetailsProperty {
SourceBotVersion = "sourceBotVersion"
},
LocaleId = "localeId"
} },
// the properties below are optional
Description = "description"
});
Synopsis
Constructors
CfnBotVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnBotVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnBotVersion(Construct, String, ICfnBotVersionProps) |
Properties
AttrBotVersion | The version of the bot. |
BotId | The unique identifier of the bot. |
BotVersionLocaleSpecification | Specifies the locales that Amazon Lex adds to this version. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | The description of the version. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnBotVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnBotVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnBotVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnBotVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnBotVersion(Construct, String, ICfnBotVersionProps)
public CfnBotVersion(Construct scope, string id, ICfnBotVersionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnBotVersionProps
Resource properties.
Properties
AttrBotVersion
The version of the bot.
public virtual string AttrBotVersion { get; }
Property Value
System.String
Remarks
CloudformationAttribute: BotVersion
BotId
The unique identifier of the bot.
public virtual string BotId { get; set; }
Property Value
System.String
BotVersionLocaleSpecification
Specifies the locales that Amazon Lex adds to this version.
public virtual object BotVersionLocaleSpecification { get; set; }
Property Value
System.Object
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the version.
public virtual string Description { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>