V2modelsSlotArgs

data class V2modelsSlotArgs(val botId: Output<String>? = null, val botVersion: Output<String>? = null, val description: Output<String>? = null, val intentId: Output<String>? = null, val localeId: Output<String>? = null, val multipleValuesSettings: Output<List<V2modelsSlotMultipleValuesSettingArgs>>? = null, val name: Output<String>? = null, val obfuscationSettings: Output<List<V2modelsSlotObfuscationSettingArgs>>? = null, val slotTypeId: Output<String>? = null, val timeouts: Output<V2modelsSlotTimeoutsArgs>? = null, val valueElicitationSetting: Output<V2modelsSlotValueElicitationSettingArgs>? = null) : ConvertibleToJava<V2modelsSlotArgs>

Resource for managing an AWS Lex V2 Models Slot.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lex.V2modelsSlot("example", {
botId: exampleAwsLexv2modelsBot.id,
botVersion: exampleAwsLexv2modelsBotVersion.botVersion,
intentId: exampleAwsLexv2modelsIntent.id,
localeId: exampleAwsLexv2modelsBotLocale.localeId,
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsSlot("example",
bot_id=example_aws_lexv2models_bot["id"],
bot_version=example_aws_lexv2models_bot_version["botVersion"],
intent_id=example_aws_lexv2models_intent["id"],
locale_id=example_aws_lexv2models_bot_locale["localeId"],
name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lex.V2modelsSlot("example", new()
{
BotId = exampleAwsLexv2modelsBot.Id,
BotVersion = exampleAwsLexv2modelsBotVersion.BotVersion,
IntentId = exampleAwsLexv2modelsIntent.Id,
LocaleId = exampleAwsLexv2modelsBotLocale.LocaleId,
Name = "example",
});
});
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.NewV2modelsSlot(ctx, "example", &lex.V2modelsSlotArgs{
BotId: pulumi.Any(exampleAwsLexv2modelsBot.Id),
BotVersion: pulumi.Any(exampleAwsLexv2modelsBotVersion.BotVersion),
IntentId: pulumi.Any(exampleAwsLexv2modelsIntent.Id),
LocaleId: pulumi.Any(exampleAwsLexv2modelsBotLocale.LocaleId),
Name: pulumi.String("example"),
})
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.V2modelsSlot;
import com.pulumi.aws.lex.V2modelsSlotArgs;
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 V2modelsSlot("example", V2modelsSlotArgs.builder()
.botId(exampleAwsLexv2modelsBot.id())
.botVersion(exampleAwsLexv2modelsBotVersion.botVersion())
.intentId(exampleAwsLexv2modelsIntent.id())
.localeId(exampleAwsLexv2modelsBotLocale.localeId())
.name("example")
.build());
}
}
resources:
example:
type: aws:lex:V2modelsSlot
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: ${exampleAwsLexv2modelsBotVersion.botVersion}
intentId: ${exampleAwsLexv2modelsIntent.id}
localeId: ${exampleAwsLexv2modelsBotLocale.localeId}
name: example

Import

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

$ pulumi import aws:lex/v2modelsSlot:V2modelsSlot example bot-1234,1,intent-5678,en-US,slot-9012

Constructors

Link copied to clipboard
constructor(botId: Output<String>? = null, botVersion: Output<String>? = null, description: Output<String>? = null, intentId: Output<String>? = null, localeId: Output<String>? = null, multipleValuesSettings: Output<List<V2modelsSlotMultipleValuesSettingArgs>>? = null, name: Output<String>? = null, obfuscationSettings: Output<List<V2modelsSlotObfuscationSettingArgs>>? = null, slotTypeId: Output<String>? = null, timeouts: Output<V2modelsSlotTimeoutsArgs>? = null, valueElicitationSetting: Output<V2modelsSlotValueElicitationSettingArgs>? = null)

Properties

Link copied to clipboard
val botId: Output<String>? = null

Identifier of the bot associated with the slot.

Link copied to clipboard
val botVersion: Output<String>? = null

Version of the bot associated with the slot.

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

Description of the slot.

Link copied to clipboard
val intentId: Output<String>? = null

Identifier of the intent that contains the slot.

Link copied to clipboard
val localeId: Output<String>? = null

Identifier of the language and locale that the slot will be used in.

Link copied to clipboard

Whether the slot returns multiple values in one response. See the multiple_values_setting argument reference below.

Link copied to clipboard
val name: Output<String>? = null

Name of the slot.

Link copied to clipboard

Determines how slot values are used in Amazon CloudWatch logs. See the obfuscation_setting argument reference below.

Link copied to clipboard
val slotTypeId: Output<String>? = null

Unique identifier for the slot type associated with this slot.

Link copied to clipboard
val timeouts: Output<V2modelsSlotTimeoutsArgs>? = null
Link copied to clipboard

Prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot. The following arguments are optional:

Functions

Link copied to clipboard
open override fun toJava(): V2modelsSlotArgs