V2models Slot
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",
});Content copied to clipboard
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")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.V2modelsSlot("example", new()
{
BotId = exampleAwsLexv2modelsBot.Id,
BotVersion = exampleAwsLexv2modelsBotVersion.BotVersion,
IntentId = exampleAwsLexv2modelsIntent.Id,
LocaleId = exampleAwsLexv2modelsBotLocale.LocaleId,
Name = "example",
});
});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.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
})
}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.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());
}
}Content copied to clipboard
resources:
example:
type: aws:lex:V2modelsSlot
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: ${exampleAwsLexv2modelsBotVersion.botVersion}
intentId: ${exampleAwsLexv2modelsIntent.id}
localeId: ${exampleAwsLexv2modelsBotLocale.localeId}
name: exampleContent copied to clipboard
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-9012Content copied to clipboard