All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
com.pulumi.aws.lex.kotlin.LexFunctions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin
import com.pulumi.aws.lex.LexFunctions.getBotAliasPlain
import com.pulumi.aws.lex.LexFunctions.getBotPlain
import com.pulumi.aws.lex.LexFunctions.getIntentPlain
import com.pulumi.aws.lex.LexFunctions.getSlotTypePlain
import com.pulumi.aws.lex.kotlin.inputs.GetBotAliasPlainArgs
import com.pulumi.aws.lex.kotlin.inputs.GetBotAliasPlainArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.GetBotPlainArgs
import com.pulumi.aws.lex.kotlin.inputs.GetBotPlainArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.GetIntentPlainArgs
import com.pulumi.aws.lex.kotlin.inputs.GetIntentPlainArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.GetSlotTypePlainArgs
import com.pulumi.aws.lex.kotlin.inputs.GetSlotTypePlainArgsBuilder
import com.pulumi.aws.lex.kotlin.outputs.GetBotAliasResult
import com.pulumi.aws.lex.kotlin.outputs.GetBotResult
import com.pulumi.aws.lex.kotlin.outputs.GetIntentResult
import com.pulumi.aws.lex.kotlin.outputs.GetSlotTypeResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.aws.lex.kotlin.outputs.GetBotAliasResult.Companion.toKotlin as getBotAliasResultToKotlin
import com.pulumi.aws.lex.kotlin.outputs.GetBotResult.Companion.toKotlin as getBotResultToKotlin
import com.pulumi.aws.lex.kotlin.outputs.GetIntentResult.Companion.toKotlin as getIntentResultToKotlin
import com.pulumi.aws.lex.kotlin.outputs.GetSlotTypeResult.Companion.toKotlin as getSlotTypeResultToKotlin
public object LexFunctions {
/**
* Provides details about a specific Amazon Lex Bot.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const orderFlowersBot = aws.lex.getBot({
* name: "OrderFlowers",
* version: "$LATEST",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* order_flowers_bot = aws.lex.get_bot(name="OrderFlowers",
* version="$LATEST")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var orderFlowersBot = Aws.Lex.GetBot.Invoke(new()
* {
* Name = "OrderFlowers",
* Version = "$LATEST",
* });
* });
* ```
* ```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.LookupBot(ctx, &lex.LookupBotArgs{
* Name: "OrderFlowers",
* Version: pulumi.StringRef("$LATEST"),
* }, nil)
* 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.LexFunctions;
* import com.pulumi.aws.lex.inputs.GetBotArgs;
* 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) {
* final var orderFlowersBot = LexFunctions.getBot(GetBotArgs.builder()
* .name("OrderFlowers")
* .version("$LATEST")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* orderFlowersBot:
* fn::invoke:
* Function: aws:lex:getBot
* Arguments:
* name: OrderFlowers
* version: $LATEST
* ```
*
* @param argument A collection of arguments for invoking getBot.
* @return A collection of values returned by getBot.
*/
public suspend fun getBot(argument: GetBotPlainArgs): GetBotResult =
getBotResultToKotlin(getBotPlain(argument.toJava()).await())
/**
* @see [getBot].
* @param name Name of the bot. The name is case sensitive.
* @param version Version or alias of the bot.
* @return A collection of values returned by getBot.
*/
public suspend fun getBot(name: String, version: String? = null): GetBotResult {
val argument = GetBotPlainArgs(
name = name,
version = version,
)
return getBotResultToKotlin(getBotPlain(argument.toJava()).await())
}
/**
* @see [getBot].
* @param argument Builder for [com.pulumi.aws.lex.kotlin.inputs.GetBotPlainArgs].
* @return A collection of values returned by getBot.
*/
public suspend fun getBot(argument: suspend GetBotPlainArgsBuilder.() -> Unit): GetBotResult {
val builder = GetBotPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getBotResultToKotlin(getBotPlain(builtArgument.toJava()).await())
}
/**
* Provides details about a specific Amazon Lex Bot Alias.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const orderFlowersProd = aws.lex.getBotAlias({
* botName: "OrderFlowers",
* name: "OrderFlowersProd",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* order_flowers_prod = aws.lex.get_bot_alias(bot_name="OrderFlowers",
* name="OrderFlowersProd")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var orderFlowersProd = Aws.Lex.GetBotAlias.Invoke(new()
* {
* BotName = "OrderFlowers",
* Name = "OrderFlowersProd",
* });
* });
* ```
* ```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.LookupBotAlias(ctx, &lex.LookupBotAliasArgs{
* BotName: "OrderFlowers",
* Name: "OrderFlowersProd",
* }, nil)
* 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.LexFunctions;
* import com.pulumi.aws.lex.inputs.GetBotAliasArgs;
* 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) {
* final var orderFlowersProd = LexFunctions.getBotAlias(GetBotAliasArgs.builder()
* .botName("OrderFlowers")
* .name("OrderFlowersProd")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* orderFlowersProd:
* fn::invoke:
* Function: aws:lex:getBotAlias
* Arguments:
* botName: OrderFlowers
* name: OrderFlowersProd
* ```
*
* @param argument A collection of arguments for invoking getBotAlias.
* @return A collection of values returned by getBotAlias.
*/
public suspend fun getBotAlias(argument: GetBotAliasPlainArgs): GetBotAliasResult =
getBotAliasResultToKotlin(getBotAliasPlain(argument.toJava()).await())
/**
* @see [getBotAlias].
* @param botName Name of the bot.
* @param name Name of the bot alias. The name is case sensitive.
* @return A collection of values returned by getBotAlias.
*/
public suspend fun getBotAlias(botName: String, name: String): GetBotAliasResult {
val argument = GetBotAliasPlainArgs(
botName = botName,
name = name,
)
return getBotAliasResultToKotlin(getBotAliasPlain(argument.toJava()).await())
}
/**
* @see [getBotAlias].
* @param argument Builder for [com.pulumi.aws.lex.kotlin.inputs.GetBotAliasPlainArgs].
* @return A collection of values returned by getBotAlias.
*/
public suspend fun getBotAlias(argument: suspend GetBotAliasPlainArgsBuilder.() -> Unit): GetBotAliasResult {
val builder = GetBotAliasPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getBotAliasResultToKotlin(getBotAliasPlain(builtArgument.toJava()).await())
}
/**
* Provides details about a specific Amazon Lex Intent.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const orderFlowers = aws.lex.getIntent({
* name: "OrderFlowers",
* version: "$LATEST",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* order_flowers = aws.lex.get_intent(name="OrderFlowers",
* version="$LATEST")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var orderFlowers = Aws.Lex.GetIntent.Invoke(new()
* {
* Name = "OrderFlowers",
* Version = "$LATEST",
* });
* });
* ```
* ```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.LookupIntent(ctx, &lex.LookupIntentArgs{
* Name: "OrderFlowers",
* Version: pulumi.StringRef("$LATEST"),
* }, nil)
* 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.LexFunctions;
* import com.pulumi.aws.lex.inputs.GetIntentArgs;
* 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) {
* final var orderFlowers = LexFunctions.getIntent(GetIntentArgs.builder()
* .name("OrderFlowers")
* .version("$LATEST")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* orderFlowers:
* fn::invoke:
* Function: aws:lex:getIntent
* Arguments:
* name: OrderFlowers
* version: $LATEST
* ```
*
* @param argument A collection of arguments for invoking getIntent.
* @return A collection of values returned by getIntent.
*/
public suspend fun getIntent(argument: GetIntentPlainArgs): GetIntentResult =
getIntentResultToKotlin(getIntentPlain(argument.toJava()).await())
/**
* @see [getIntent].
* @param name Name of the intent. The name is case sensitive.
* @param version Version of the intent.
* @return A collection of values returned by getIntent.
*/
public suspend fun getIntent(name: String, version: String? = null): GetIntentResult {
val argument = GetIntentPlainArgs(
name = name,
version = version,
)
return getIntentResultToKotlin(getIntentPlain(argument.toJava()).await())
}
/**
* @see [getIntent].
* @param argument Builder for [com.pulumi.aws.lex.kotlin.inputs.GetIntentPlainArgs].
* @return A collection of values returned by getIntent.
*/
public suspend fun getIntent(argument: suspend GetIntentPlainArgsBuilder.() -> Unit): GetIntentResult {
val builder = GetIntentPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getIntentResultToKotlin(getIntentPlain(builtArgument.toJava()).await())
}
/**
* Provides details about a specific Amazon Lex Slot Type.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const flowerTypes = aws.lex.getSlotType({
* name: "FlowerTypes",
* version: "1",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* flower_types = aws.lex.get_slot_type(name="FlowerTypes",
* version="1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var flowerTypes = Aws.Lex.GetSlotType.Invoke(new()
* {
* Name = "FlowerTypes",
* Version = "1",
* });
* });
* ```
* ```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.LookupSlotType(ctx, &lex.LookupSlotTypeArgs{
* Name: "FlowerTypes",
* Version: pulumi.StringRef("1"),
* }, nil)
* 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.LexFunctions;
* import com.pulumi.aws.lex.inputs.GetSlotTypeArgs;
* 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) {
* final var flowerTypes = LexFunctions.getSlotType(GetSlotTypeArgs.builder()
* .name("FlowerTypes")
* .version("1")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* flowerTypes:
* fn::invoke:
* Function: aws:lex:getSlotType
* Arguments:
* name: FlowerTypes
* version: '1'
* ```
*
* @param argument A collection of arguments for invoking getSlotType.
* @return A collection of values returned by getSlotType.
*/
public suspend fun getSlotType(argument: GetSlotTypePlainArgs): GetSlotTypeResult =
getSlotTypeResultToKotlin(getSlotTypePlain(argument.toJava()).await())
/**
* @see [getSlotType].
* @param name Name of the slot type. The name is case sensitive.
* @param version Version of the slot type.
* @return A collection of values returned by getSlotType.
*/
public suspend fun getSlotType(name: String, version: String? = null): GetSlotTypeResult {
val argument = GetSlotTypePlainArgs(
name = name,
version = version,
)
return getSlotTypeResultToKotlin(getSlotTypePlain(argument.toJava()).await())
}
/**
* @see [getSlotType].
* @param argument Builder for [com.pulumi.aws.lex.kotlin.inputs.GetSlotTypePlainArgs].
* @return A collection of values returned by getSlotType.
*/
public suspend fun getSlotType(argument: suspend GetSlotTypePlainArgsBuilder.() -> Unit): GetSlotTypeResult {
val builder = GetSlotTypePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSlotTypeResultToKotlin(getSlotTypePlain(builtArgument.toJava()).await())
}
}