V2models Bot Args
data class V2modelsBotArgs(val dataPrivacies: Output<List<V2modelsBotDataPrivacyArgs>>? = null, val description: Output<String>? = null, val idleSessionTtlInSeconds: Output<Int>? = null, val members: Output<List<V2modelsBotMemberArgs>>? = null, val name: Output<String>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val testBotAliasTags: Output<Map<String, String>>? = null, val timeouts: Output<V2modelsBotTimeoutsArgs>? = null, val type: Output<String>? = null) : ConvertibleToJava<V2modelsBotArgs>
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",
},
});
Content copied to clipboard
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",
})
Content copied to clipboard
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:lex:V2modelsBot
properties:
name: example
dataPrivacies:
- childDirected: boolean
idleSessionTtlInSeconds: 10
roleArn: bot_example_arn
tags:
foo: bar
Content copied to clipboard
Import
Using pulumi import
, import Lex V2 Models Bot using the id
. For example:
$ pulumi import aws:lex/v2modelsBot:V2modelsBot example bot-id-12345678
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(dataPrivacies: Output<List<V2modelsBotDataPrivacyArgs>>? = null, description: Output<String>? = null, idleSessionTtlInSeconds: Output<Int>? = null, members: Output<List<V2modelsBotMemberArgs>>? = null, name: Output<String>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null, testBotAliasTags: Output<Map<String, String>>? = null, timeouts: Output<V2modelsBotTimeoutsArgs>? = null, type: Output<String>? = null)
Properties
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
Description of the bot. It appears in lists to help you identify a particular bot.
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
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