1. Packages
  2. AWS
  3. API Docs
  4. lex
  5. V2modelsBot
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.lex.V2modelsBot

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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 exampleRole = new aws.iam.Role("example", {
        name: "example",
        assumeRolePolicy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [{
                Action: "sts:AssumeRole",
                Effect: "Allow",
                Sid: "",
                Principal: {
                    Service: "lexv2.amazonaws.com",
                },
            }],
        }),
        tags: {
            created_by: "aws",
        },
    });
    const example = new aws.lex.V2modelsBot("example", {
        name: "example",
        description: "Example description",
        dataPrivacies: [{
            childDirected: false,
        }],
        idleSessionTtlInSeconds: 60,
        roleArn: exampleRole.arn,
        type: "Bot",
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example_role = aws.iam.Role("example",
        name="example",
        assume_role_policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [{
                "Action": "sts:AssumeRole",
                "Effect": "Allow",
                "Sid": "",
                "Principal": {
                    "Service": "lexv2.amazonaws.com",
                },
            }],
        }),
        tags={
            "created_by": "aws",
        })
    example = aws.lex.V2modelsBot("example",
        name="example",
        description="Example description",
        data_privacies=[{
            "child_directed": False,
        }],
        idle_session_ttl_in_seconds=60,
        role_arn=example_role.arn,
        type="Bot",
        tags={
            "foo": "bar",
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"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 {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Version": "2012-10-17",
    			"Statement": []map[string]interface{}{
    				map[string]interface{}{
    					"Action": "sts:AssumeRole",
    					"Effect": "Allow",
    					"Sid":    "",
    					"Principal": map[string]interface{}{
    						"Service": "lexv2.amazonaws.com",
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    			Name:             pulumi.String("example"),
    			AssumeRolePolicy: pulumi.String(json0),
    			Tags: pulumi.StringMap{
    				"created_by": pulumi.String("aws"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = lex.NewV2modelsBot(ctx, "example", &lex.V2modelsBotArgs{
    			Name:        pulumi.String("example"),
    			Description: pulumi.String("Example description"),
    			DataPrivacies: lex.V2modelsBotDataPrivacyArray{
    				&lex.V2modelsBotDataPrivacyArgs{
    					ChildDirected: pulumi.Bool(false),
    				},
    			},
    			IdleSessionTtlInSeconds: pulumi.Int(60),
    			RoleArn:                 exampleRole.Arn,
    			Type:                    pulumi.String("Bot"),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleRole = new Aws.Iam.Role("example", new()
        {
            Name = "example",
            AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Action"] = "sts:AssumeRole",
                        ["Effect"] = "Allow",
                        ["Sid"] = "",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Service"] = "lexv2.amazonaws.com",
                        },
                    },
                },
            }),
            Tags = 
            {
                { "created_by", "aws" },
            },
        });
    
        var example = new Aws.Lex.V2modelsBot("example", new()
        {
            Name = "example",
            Description = "Example description",
            DataPrivacies = new[]
            {
                new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
                {
                    ChildDirected = false,
                },
            },
            IdleSessionTtlInSeconds = 60,
            RoleArn = exampleRole.Arn,
            Type = "Bot",
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.lex.V2modelsBot;
    import com.pulumi.aws.lex.V2modelsBotArgs;
    import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("example")
                .assumeRolePolicy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(jsonObject(
                            jsonProperty("Action", "sts:AssumeRole"),
                            jsonProperty("Effect", "Allow"),
                            jsonProperty("Sid", ""),
                            jsonProperty("Principal", jsonObject(
                                jsonProperty("Service", "lexv2.amazonaws.com")
                            ))
                        )))
                    )))
                .tags(Map.of("created_by", "aws"))
                .build());
    
            var example = new V2modelsBot("example", V2modelsBotArgs.builder()
                .name("example")
                .description("Example description")
                .dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
                    .childDirected(false)
                    .build())
                .idleSessionTtlInSeconds(60)
                .roleArn(exampleRole.arn())
                .type("Bot")
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:lex:V2modelsBot
        properties:
          name: example
          description: Example description
          dataPrivacies:
            - childDirected: false
          idleSessionTtlInSeconds: 60
          roleArn: ${exampleRole.arn}
          type: Bot
          tags:
            foo: bar
      exampleRole:
        type: aws:iam:Role
        name: example
        properties:
          name: example
          assumeRolePolicy:
            fn::toJSON:
              Version: 2012-10-17
              Statement:
                - Action: sts:AssumeRole
                  Effect: Allow
                  Sid:
                  Principal:
                    Service: lexv2.amazonaws.com
          tags:
            created_by: aws
    

    Create V2modelsBot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2modelsBot(name: string, args: V2modelsBotArgs, opts?: CustomResourceOptions);
    @overload
    def V2modelsBot(resource_name: str,
                    args: V2modelsBotArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2modelsBot(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    idle_session_ttl_in_seconds: Optional[int] = None,
                    role_arn: Optional[str] = None,
                    data_privacies: Optional[Sequence[V2modelsBotDataPrivacyArgs]] = None,
                    description: Optional[str] = None,
                    members: Optional[Sequence[V2modelsBotMemberArgs]] = None,
                    name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    test_bot_alias_tags: Optional[Mapping[str, str]] = None,
                    timeouts: Optional[V2modelsBotTimeoutsArgs] = None,
                    type: Optional[str] = None)
    func NewV2modelsBot(ctx *Context, name string, args V2modelsBotArgs, opts ...ResourceOption) (*V2modelsBot, error)
    public V2modelsBot(string name, V2modelsBotArgs args, CustomResourceOptions? opts = null)
    public V2modelsBot(String name, V2modelsBotArgs args)
    public V2modelsBot(String name, V2modelsBotArgs args, CustomResourceOptions options)
    
    type: aws:lex:V2modelsBot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args V2modelsBotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args V2modelsBotArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args V2modelsBotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2modelsBotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2modelsBotArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var v2modelsBotResource = new Aws.Lex.V2modelsBot("v2modelsBotResource", new()
    {
        IdleSessionTtlInSeconds = 0,
        RoleArn = "string",
        DataPrivacies = new[]
        {
            new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
            {
                ChildDirected = false,
            },
        },
        Description = "string",
        Members = new[]
        {
            new Aws.Lex.Inputs.V2modelsBotMemberArgs
            {
                AliasId = "string",
                AliasName = "string",
                Id = "string",
                Name = "string",
                Version = "string",
            },
        },
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TestBotAliasTags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Lex.Inputs.V2modelsBotTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Type = "string",
    });
    
    example, err := lex.NewV2modelsBot(ctx, "v2modelsBotResource", &lex.V2modelsBotArgs{
    	IdleSessionTtlInSeconds: pulumi.Int(0),
    	RoleArn:                 pulumi.String("string"),
    	DataPrivacies: lex.V2modelsBotDataPrivacyArray{
    		&lex.V2modelsBotDataPrivacyArgs{
    			ChildDirected: pulumi.Bool(false),
    		},
    	},
    	Description: pulumi.String("string"),
    	Members: lex.V2modelsBotMemberArray{
    		&lex.V2modelsBotMemberArgs{
    			AliasId:   pulumi.String("string"),
    			AliasName: pulumi.String("string"),
    			Id:        pulumi.String("string"),
    			Name:      pulumi.String("string"),
    			Version:   pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TestBotAliasTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &lex.V2modelsBotTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    })
    
    var v2modelsBotResource = new V2modelsBot("v2modelsBotResource", V2modelsBotArgs.builder()
        .idleSessionTtlInSeconds(0)
        .roleArn("string")
        .dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
            .childDirected(false)
            .build())
        .description("string")
        .members(V2modelsBotMemberArgs.builder()
            .aliasId("string")
            .aliasName("string")
            .id("string")
            .name("string")
            .version("string")
            .build())
        .name("string")
        .tags(Map.of("string", "string"))
        .testBotAliasTags(Map.of("string", "string"))
        .timeouts(V2modelsBotTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .type("string")
        .build());
    
    v2models_bot_resource = aws.lex.V2modelsBot("v2modelsBotResource",
        idle_session_ttl_in_seconds=0,
        role_arn="string",
        data_privacies=[{
            "child_directed": False,
        }],
        description="string",
        members=[{
            "alias_id": "string",
            "alias_name": "string",
            "id": "string",
            "name": "string",
            "version": "string",
        }],
        name="string",
        tags={
            "string": "string",
        },
        test_bot_alias_tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        type="string")
    
    const v2modelsBotResource = new aws.lex.V2modelsBot("v2modelsBotResource", {
        idleSessionTtlInSeconds: 0,
        roleArn: "string",
        dataPrivacies: [{
            childDirected: false,
        }],
        description: "string",
        members: [{
            aliasId: "string",
            aliasName: "string",
            id: "string",
            name: "string",
            version: "string",
        }],
        name: "string",
        tags: {
            string: "string",
        },
        testBotAliasTags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        type: "string",
    });
    
    type: aws:lex:V2modelsBot
    properties:
        dataPrivacies:
            - childDirected: false
        description: string
        idleSessionTtlInSeconds: 0
        members:
            - aliasId: string
              aliasName: string
              id: string
              name: string
              version: string
        name: string
        roleArn: string
        tags:
            string: string
        testBotAliasTags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        type: string
    

    V2modelsBot Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The V2modelsBot resource accepts the following input properties:

    IdleSessionTtlInSeconds int
    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.
    RoleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    DataPrivacies List<V2modelsBotDataPrivacy>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    Description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    Members List<V2modelsBotMember>
    List of bot members in a network to be created. See bot_members.
    Name 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.
    Tags Dictionary<string, string>
    List of tags to add to the bot. You can only add tags when you create a bot.
    TestBotAliasTags Dictionary<string, string>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    Timeouts V2modelsBotTimeouts
    Type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    IdleSessionTtlInSeconds int
    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.
    RoleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    DataPrivacies []V2modelsBotDataPrivacyArgs
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    Description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    Members []V2modelsBotMemberArgs
    List of bot members in a network to be created. See bot_members.
    Name 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.
    Tags map[string]string
    List of tags to add to the bot. You can only add tags when you create a bot.
    TestBotAliasTags map[string]string
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    Timeouts V2modelsBotTimeoutsArgs
    Type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    idleSessionTtlInSeconds Integer
    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.
    roleArn String

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    dataPrivacies List<V2modelsBotDataPrivacy>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description String
    Description of the bot. It appears in lists to help you identify a particular bot.
    members List<V2modelsBotMember>
    List of bot members in a network to be created. See bot_members.
    name 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.
    tags Map<String,String>
    List of tags to add to the bot. You can only add tags when you create a bot.
    testBotAliasTags Map<String,String>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeouts
    type String
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    idleSessionTtlInSeconds number
    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.
    roleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    dataPrivacies V2modelsBotDataPrivacy[]
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    members V2modelsBotMember[]
    List of bot members in a network to be created. See bot_members.
    name 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.
    tags {[key: string]: string}
    List of tags to add to the bot. You can only add tags when you create a bot.
    testBotAliasTags {[key: string]: string}
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeouts
    type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    idle_session_ttl_in_seconds int
    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.
    role_arn str

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    data_privacies Sequence[V2modelsBotDataPrivacyArgs]
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description str
    Description of the bot. It appears in lists to help you identify a particular bot.
    members Sequence[V2modelsBotMemberArgs]
    List of bot members in a network to be created. See bot_members.
    name str
    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.
    tags Mapping[str, str]
    List of tags to add to the bot. You can only add tags when you create a bot.
    test_bot_alias_tags Mapping[str, str]
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeoutsArgs
    type str
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    idleSessionTtlInSeconds Number
    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.
    roleArn String

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    dataPrivacies List<Property Map>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description String
    Description of the bot. It appears in lists to help you identify a particular bot.
    members List<Property Map>
    List of bot members in a network to be created. See bot_members.
    name 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.
    tags Map<String>
    List of tags to add to the bot. You can only add tags when you create a bot.
    testBotAliasTags Map<String>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts Property Map
    type String
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2modelsBot resource produces the following output properties:

    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Look up Existing V2modelsBot Resource

    Get an existing V2modelsBot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: V2modelsBotState, opts?: CustomResourceOptions): V2modelsBot
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            data_privacies: Optional[Sequence[V2modelsBotDataPrivacyArgs]] = None,
            description: Optional[str] = None,
            idle_session_ttl_in_seconds: Optional[int] = None,
            members: Optional[Sequence[V2modelsBotMemberArgs]] = None,
            name: Optional[str] = None,
            role_arn: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            test_bot_alias_tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[V2modelsBotTimeoutsArgs] = None,
            type: Optional[str] = None) -> V2modelsBot
    func GetV2modelsBot(ctx *Context, name string, id IDInput, state *V2modelsBotState, opts ...ResourceOption) (*V2modelsBot, error)
    public static V2modelsBot Get(string name, Input<string> id, V2modelsBotState? state, CustomResourceOptions? opts = null)
    public static V2modelsBot get(String name, Output<String> id, V2modelsBotState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    DataPrivacies List<V2modelsBotDataPrivacy>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    Description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    IdleSessionTtlInSeconds int
    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.
    Members List<V2modelsBotMember>
    List of bot members in a network to be created. See bot_members.
    Name 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.
    RoleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    Tags Dictionary<string, string>
    List of tags to add to the bot. You can only add tags when you create a bot.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    TestBotAliasTags Dictionary<string, string>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    Timeouts V2modelsBotTimeouts
    Type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    Arn string
    DataPrivacies []V2modelsBotDataPrivacyArgs
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    Description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    IdleSessionTtlInSeconds int
    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.
    Members []V2modelsBotMemberArgs
    List of bot members in a network to be created. See bot_members.
    Name 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.
    RoleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    Tags map[string]string
    List of tags to add to the bot. You can only add tags when you create a bot.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    TestBotAliasTags map[string]string
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    Timeouts V2modelsBotTimeoutsArgs
    Type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    arn String
    dataPrivacies List<V2modelsBotDataPrivacy>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description String
    Description of the bot. It appears in lists to help you identify a particular bot.
    idleSessionTtlInSeconds Integer
    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.
    members List<V2modelsBotMember>
    List of bot members in a network to be created. See bot_members.
    name 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.
    roleArn String

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    tags Map<String,String>
    List of tags to add to the bot. You can only add tags when you create a bot.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    testBotAliasTags Map<String,String>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeouts
    type String
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    arn string
    dataPrivacies V2modelsBotDataPrivacy[]
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description string
    Description of the bot. It appears in lists to help you identify a particular bot.
    idleSessionTtlInSeconds number
    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.
    members V2modelsBotMember[]
    List of bot members in a network to be created. See bot_members.
    name 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.
    roleArn string

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    tags {[key: string]: string}
    List of tags to add to the bot. You can only add tags when you create a bot.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    testBotAliasTags {[key: string]: string}
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeouts
    type string
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    arn str
    data_privacies Sequence[V2modelsBotDataPrivacyArgs]
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description str
    Description of the bot. It appears in lists to help you identify a particular bot.
    idle_session_ttl_in_seconds int
    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.
    members Sequence[V2modelsBotMemberArgs]
    List of bot members in a network to be created. See bot_members.
    name str
    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.
    role_arn str

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    tags Mapping[str, str]
    List of tags to add to the bot. You can only add tags when you create a bot.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    test_bot_alias_tags Mapping[str, str]
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts V2modelsBotTimeoutsArgs
    type str
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".
    arn String
    dataPrivacies List<Property Map>
    Provides information on additional privacy protections Amazon Lex should use with the bot's data. See data_privacy
    description String
    Description of the bot. It appears in lists to help you identify a particular bot.
    idleSessionTtlInSeconds Number
    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.
    members List<Property Map>
    List of bot members in a network to be created. See bot_members.
    name 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.
    roleArn String

    ARN of an IAM role that has permission to access the bot.

    The following arguments are optional:

    tags Map<String>
    List of tags to add to the bot. You can only add tags when you create a bot.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    testBotAliasTags Map<String>
    List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
    timeouts Property Map
    type String
    Type of a bot to create. Possible values are "Bot" and "BotNetwork".

    Supporting Types

    V2modelsBotDataPrivacy, V2modelsBotDataPrivacyArgs

    ChildDirected bool
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.
    ChildDirected bool
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.
    childDirected Boolean
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.
    childDirected boolean
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.
    child_directed bool
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.
    childDirected Boolean
    (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.

    V2modelsBotMember, V2modelsBotMemberArgs

    AliasId string
    (Required) - Alias ID of a bot that is a member of this network of bots.
    AliasName string
    (Required) - Alias name of a bot that is a member of this network of bots.
    Id string
    (Required) - Unique ID of a bot that is a member of this network of bots.
    Name 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.
    Version string
    (Required) - Version of a bot that is a member of this network of bots.
    AliasId string
    (Required) - Alias ID of a bot that is a member of this network of bots.
    AliasName string
    (Required) - Alias name of a bot that is a member of this network of bots.
    Id string
    (Required) - Unique ID of a bot that is a member of this network of bots.
    Name 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.
    Version string
    (Required) - Version of a bot that is a member of this network of bots.
    aliasId String
    (Required) - Alias ID of a bot that is a member of this network of bots.
    aliasName String
    (Required) - Alias name of a bot that is a member of this network of bots.
    id String
    (Required) - Unique ID of a bot that is a member of this network of bots.
    name 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.
    version String
    (Required) - Version of a bot that is a member of this network of bots.
    aliasId string
    (Required) - Alias ID of a bot that is a member of this network of bots.
    aliasName string
    (Required) - Alias name of a bot that is a member of this network of bots.
    id string
    (Required) - Unique ID of a bot that is a member of this network of bots.
    name 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.
    version string
    (Required) - Version of a bot that is a member of this network of bots.
    alias_id str
    (Required) - Alias ID of a bot that is a member of this network of bots.
    alias_name str
    (Required) - Alias name of a bot that is a member of this network of bots.
    id str
    (Required) - Unique ID of a bot that is a member of this network of bots.
    name str
    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.
    version str
    (Required) - Version of a bot that is a member of this network of bots.
    aliasId String
    (Required) - Alias ID of a bot that is a member of this network of bots.
    aliasName String
    (Required) - Alias name of a bot that is a member of this network of bots.
    id String
    (Required) - Unique ID of a bot that is a member of this network of bots.
    name 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.
    version String
    (Required) - Version of a bot that is a member of this network of bots.

    V2modelsBotTimeouts, V2modelsBotTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi