V2modelsSlot

class V2modelsSlot : KotlinCustomResource

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

Properties

Link copied to clipboard
val botId: Output<String>

Identifier of the bot associated with the slot.

Link copied to clipboard
val botVersion: Output<String>

Version of the bot associated with the slot.

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

Description of the slot.

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

Identifier of the intent that contains the slot.

Link copied to clipboard
val localeId: Output<String>

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>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val slotId: Output<String>

Unique identifier associated with the slot.

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

Unique identifier for the slot type associated with this slot.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
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: