getSlotType

Provides details about a specific Amazon Lex Slot Type.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const flowerTypes = aws.lex.getSlotType({
name: "FlowerTypes",
version: "1",
});
import pulumi
import pulumi_aws as aws
flower_types = aws.lex.get_slot_type(name="FlowerTypes",
version="1")
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",
});
});
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
})
}
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());
}
}
variables:
flowerTypes:
fn::invoke:
function: aws:lex:getSlotType
arguments:
name: FlowerTypes
version: '1'

Return

A collection of values returned by getSlotType.

Parameters

argument

A collection of arguments for invoking getSlotType.


suspend fun getSlotType(name: String, version: String? = null): GetSlotTypeResult

Return

A collection of values returned by getSlotType.

Parameters

name

Name of the slot type. The name is case sensitive.

version

Version of the slot type.

See also


suspend fun getSlotType(argument: suspend GetSlotTypePlainArgsBuilder.() -> Unit): GetSlotTypeResult

Return

A collection of values returned by getSlotType.

Parameters

argument

Builder for com.pulumi.aws.lex.kotlin.inputs.GetSlotTypePlainArgs.

See also