Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin
import com.pulumi.aws.lex.V2modelsSlotArgs.builder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotMultipleValuesSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotMultipleValuesSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotObfuscationSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotObfuscationSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotSubSlotSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotSubSlotSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotTimeoutsArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotTimeoutsArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotValueElicitationSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotValueElicitationSettingArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS Lex V2 Models Slot.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* 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",
* });
* ```
* ```python
* 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")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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:
* ```sh
* $ pulumi import aws:lex/v2modelsSlot:V2modelsSlot example bot-1234,1,intent-5678,en-US,slot-9012
* ```
* @property botId Identifier of the bot associated with the slot.
* @property botVersion Version of the bot associated with the slot.
* @property description Description of the slot.
* @property intentId Identifier of the intent that contains the slot.
* @property localeId Identifier of the language and locale that the slot will be used in.
* @property multipleValuesSettings Whether the slot returns multiple values in one response. See the `multiple_values_setting` argument reference below.
* @property name Name of the slot.
* @property obfuscationSettings Determines how slot values are used in Amazon CloudWatch logs. See the `obfuscation_setting` argument reference below.
* @property slotTypeId Unique identifier for the slot type associated with this slot.
* @property subSlotSettings Specifications for the constituent sub slots and the expression for the composite slot.
* @property timeouts
* @property valueElicitationSetting Prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
* The following arguments are optional:
*/
public data class V2modelsSlotArgs(
public val botId: Output? = null,
public val botVersion: Output? = null,
public val description: Output? = null,
public val intentId: Output? = null,
public val localeId: Output? = null,
public val multipleValuesSettings: Output>? = null,
public val name: Output? = null,
public val obfuscationSettings: Output>? = null,
public val slotTypeId: Output? = null,
public val subSlotSettings: Output>? = null,
public val timeouts: Output? = null,
public val valueElicitationSetting: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lex.V2modelsSlotArgs =
com.pulumi.aws.lex.V2modelsSlotArgs.builder()
.botId(botId?.applyValue({ args0 -> args0 }))
.botVersion(botVersion?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.intentId(intentId?.applyValue({ args0 -> args0 }))
.localeId(localeId?.applyValue({ args0 -> args0 }))
.multipleValuesSettings(
multipleValuesSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.obfuscationSettings(
obfuscationSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.slotTypeId(slotTypeId?.applyValue({ args0 -> args0 }))
.subSlotSettings(
subSlotSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.valueElicitationSetting(
valueElicitationSetting?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [V2modelsSlotArgs].
*/
@PulumiTagMarker
public class V2modelsSlotArgsBuilder internal constructor() {
private var botId: Output? = null
private var botVersion: Output? = null
private var description: Output? = null
private var intentId: Output? = null
private var localeId: Output? = null
private var multipleValuesSettings: Output>? = null
private var name: Output? = null
private var obfuscationSettings: Output>? = null
private var slotTypeId: Output? = null
private var subSlotSettings: Output>? = null
private var timeouts: Output? = null
private var valueElicitationSetting: Output? = null
/**
* @param value Identifier of the bot associated with the slot.
*/
@JvmName("rriwudmjxaeswjpt")
public suspend fun botId(`value`: Output) {
this.botId = value
}
/**
* @param value Version of the bot associated with the slot.
*/
@JvmName("pjggajiwyyjyjqsx")
public suspend fun botVersion(`value`: Output) {
this.botVersion = value
}
/**
* @param value Description of the slot.
*/
@JvmName("ppgwqcfpgrowoknj")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Identifier of the intent that contains the slot.
*/
@JvmName("tachcrgystqdhbyk")
public suspend fun intentId(`value`: Output) {
this.intentId = value
}
/**
* @param value Identifier of the language and locale that the slot will be used in.
*/
@JvmName("asjlhxcolkwxnohd")
public suspend fun localeId(`value`: Output) {
this.localeId = value
}
/**
* @param value Whether the slot returns multiple values in one response. See the `multiple_values_setting` argument reference below.
*/
@JvmName("prhktqaljeemifhb")
public suspend fun multipleValuesSettings(`value`: Output>) {
this.multipleValuesSettings = value
}
@JvmName("tiwacvplfsiuegpd")
public suspend fun multipleValuesSettings(vararg values: Output) {
this.multipleValuesSettings = Output.all(values.asList())
}
/**
* @param values Whether the slot returns multiple values in one response. See the `multiple_values_setting` argument reference below.
*/
@JvmName("dmhxjvgmxboxnxfi")
public suspend fun multipleValuesSettings(values: List