Class CfnBot

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:32.043Z") @Stability(Stable) public class CfnBot extends CfnResource implements IInspectable

Amazon Lex V2 is the only supported version in AWS CloudFormation .

Specifies an Amazon Lex conversational bot.

You must configure an intent based on the AMAZON.FallbackIntent built-in intent. If you don't add one, creating the bot will fail.

Example:

 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnBot

      protected CfnBot(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnBot

      protected CfnBot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnBot

      @Stability(Stable) public CfnBot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBotProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the bot.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The unique identifier of the bot.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDataPrivacy

      @Stability(Stable) @NotNull public Object getDataPrivacy()
      By default, data stored by Amazon Lex is encrypted.
    • setDataPrivacy

      @Stability(Stable) public void setDataPrivacy(@NotNull Object value)
      By default, data stored by Amazon Lex is encrypted.
    • getIdleSessionTtlInSeconds

      @Stability(Stable) @NotNull public Number getIdleSessionTtlInSeconds()
      The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
    • setIdleSessionTtlInSeconds

      @Stability(Stable) public void setIdleSessionTtlInSeconds(@NotNull Number value)
      The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the bot locale.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the bot locale.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.
    • getAutoBuildBotLocales

      @Stability(Stable) @Nullable public Object getAutoBuildBotLocales()
      Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.
    • setAutoBuildBotLocales

      @Stability(Stable) public void setAutoBuildBotLocales(@Nullable Boolean value)
      Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.
    • setAutoBuildBotLocales

      @Stability(Stable) public void setAutoBuildBotLocales(@Nullable IResolvable value)
      Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.
    • getBotFileS3Location

      @Stability(Stable) @Nullable public Object getBotFileS3Location()
      The Amazon S3 location of files used to import a bot.
    • setBotFileS3Location

      @Stability(Stable) public void setBotFileS3Location(@Nullable IResolvable value)
      The Amazon S3 location of files used to import a bot.
    • setBotFileS3Location

      @Stability(Stable) public void setBotFileS3Location(@Nullable CfnBot.S3LocationProperty value)
      The Amazon S3 location of files used to import a bot.
    • getBotLocales

      @Stability(Stable) @Nullable public Object getBotLocales()
      A list of locales for the bot.
    • setBotLocales

      @Stability(Stable) public void setBotLocales(@Nullable IResolvable value)
      A list of locales for the bot.
    • setBotLocales

      @Stability(Stable) public void setBotLocales(@Nullable List<Object> value)
      A list of locales for the bot.
    • getBotTags

      @Stability(Stable) @Nullable public Object getBotTags()
      A list of tags to add to the bot.
    • setBotTags

      @Stability(Stable) public void setBotTags(@Nullable IResolvable value)
      A list of tags to add to the bot.
    • setBotTags

      @Stability(Stable) public void setBotTags(@Nullable List<Object> value)
      A list of tags to add to the bot.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the version.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the version.
    • getTestBotAliasSettings

      @Stability(Stable) @Nullable public Object getTestBotAliasSettings()
      Specifies configuration settings for the alias used to test the bot.
    • setTestBotAliasSettings

      @Stability(Stable) public void setTestBotAliasSettings(@Nullable IResolvable value)
      Specifies configuration settings for the alias used to test the bot.
    • setTestBotAliasSettings

      @Stability(Stable) public void setTestBotAliasSettings(@Nullable CfnBot.TestBotAliasSettingsProperty value)
      Specifies configuration settings for the alias used to test the bot.
    • getTestBotAliasTags

      @Stability(Stable) @Nullable public Object getTestBotAliasTags()
      A list of tags to add to the test alias for a bot.
    • setTestBotAliasTags

      @Stability(Stable) public void setTestBotAliasTags(@Nullable IResolvable value)
      A list of tags to add to the test alias for a bot.
    • setTestBotAliasTags

      @Stability(Stable) public void setTestBotAliasTags(@Nullable List<Object> value)
      A list of tags to add to the test alias for a bot.