V2modelsBot

class V2modelsBot : KotlinCustomResource

Resource for managing an AWS Lex V2 Models Bot.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lex.V2modelsBot("example", {
name: "example",
dataPrivacies: [{
childDirected: "boolean",
}],
idleSessionTtlInSeconds: 10,
roleArn: "bot_example_arn",
tags: {
foo: "bar",
},
});
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsBot("example",
name="example",
data_privacies=[aws.lex.V2modelsBotDataPrivacyArgs(
child_directed="boolean",
)],
idle_session_ttl_in_seconds=10,
role_arn="bot_example_arn",
tags={
"foo": "bar",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lex.V2modelsBot("example", new()
{
Name = "example",
DataPrivacies = new[]
{
new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
{
ChildDirected = "boolean",
},
},
IdleSessionTtlInSeconds = 10,
RoleArn = "bot_example_arn",
Tags =
{
{ "foo", "bar" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lex.NewV2modelsBot(ctx, "example", &lex.V2modelsBotArgs{
Name: pulumi.String("example"),
DataPrivacies: lex.V2modelsBotDataPrivacyArray{
&lex.V2modelsBotDataPrivacyArgs{
ChildDirected: pulumi.Bool("boolean"),
},
},
IdleSessionTtlInSeconds: pulumi.Int(10),
RoleArn: pulumi.String("bot_example_arn"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.V2modelsBot;
import com.pulumi.aws.lex.V2modelsBotArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new V2modelsBot("example", V2modelsBotArgs.builder()
.name("example")
.dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
.childDirected("boolean")
.build())
.idleSessionTtlInSeconds(10)
.roleArn("bot_example_arn")
.tags(Map.of("foo", "bar"))
.build());
}
}
resources:
example:
type: aws:lex:V2modelsBot
properties:
name: example
dataPrivacies:
- childDirected: boolean
idleSessionTtlInSeconds: 10
roleArn: bot_example_arn
tags:
foo: bar

Import

Using pulumi import, import Lex V2 Models Bot using the id. For example:

$ pulumi import aws:lex/v2modelsBot:V2modelsBot example bot-id-12345678

Properties

Link copied to clipboard
val arn: Output<String>
Link copied to clipboard

Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy

Link copied to clipboard
val description: Output<String>?

Description of the bot. It appears in lists to help you identify a particular bot.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

Link copied to clipboard

List of bot members in a network to be created. See bot_members.

Link copied to clipboard
val name: Output<String>

Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>

ARN of an IAM role that has permission to access the bot. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>?

List of tags to add to the bot. You can only add tags when you create a bot.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard

List of tags to add to the test alias for a bot. You can only add tags when you create a bot.

Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Type of a bot to create. Possible values are "Bot" and "BotNetwork".

Link copied to clipboard
val urn: Output<String>