getSlotType

Provides details about a specific Amazon Lex Slot Type.

Example Usage

using System.Collections.Generic;
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/v5/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());

    }
}
import pulumi
import pulumi_aws as aws

flower_types = aws.lex.get_slot_type(name="FlowerTypes",
    version="1")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const flowerTypes = aws.lex.getSlotType({
    name: "FlowerTypes",
    version: "1",
});
variables:
  flowerTypes:
    fn::invoke:
      Function: aws:lex:getSlotType
      Arguments:
        name: FlowerTypes
        version: '1'

Using getSlotType

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSlotType(args: GetSlotTypeArgs, opts?: InvokeOptions): Promise<GetSlotTypeResult>
function getSlotTypeOutput(args: GetSlotTypeOutputArgs, opts?: InvokeOptions): Output<GetSlotTypeResult>
def get_slot_type(name: Optional[str] = None,
                  version: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetSlotTypeResult
def get_slot_type_output(name: Optional[pulumi.Input[str]] = None,
                  version: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetSlotTypeResult]
func LookupSlotType(ctx *Context, args *LookupSlotTypeArgs, opts ...InvokeOption) (*LookupSlotTypeResult, error)
func LookupSlotTypeOutput(ctx *Context, args *LookupSlotTypeOutputArgs, opts ...InvokeOption) LookupSlotTypeResultOutput

> Note: This function is named LookupSlotType in the Go SDK.

public static class GetSlotType 
{
    public static Task<GetSlotTypeResult> InvokeAsync(GetSlotTypeArgs args, InvokeOptions? opts = null)
    public static Output<GetSlotTypeResult> Invoke(GetSlotTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSlotTypeResult> getSlotType(GetSlotTypeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:lex/getSlotType:getSlotType
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

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

Version string

Version of the slot type.

Name string

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

Version string

Version of the slot type.

name String

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

version String

Version of the slot type.

name string

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

version string

Version of the slot type.

name str

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

version str

Version of the slot type.

name String

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

version String

Version of the slot type.

getSlotType Result

The following output properties are available:

Checksum string

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

CreatedDate string

Date when the slot type version was created.

Description string

Description of the slot type.

EnumerationValues List<GetSlotTypeEnumerationValue>

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

Date when the $LATEST version of this slot type was updated.

Name string

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

ValueSelectionStrategy string

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

Version string

Version of the slot type.

Checksum string

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

CreatedDate string

Date when the slot type version was created.

Description string

Description of the slot type.

EnumerationValues []GetSlotTypeEnumerationValue

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

Date when the $LATEST version of this slot type was updated.

Name string

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

ValueSelectionStrategy string

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

Version string

Version of the slot type.

checksum String

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

createdDate String

Date when the slot type version was created.

description String

Description of the slot type.

enumerationValues List<GetSlotTypeEnumerationValue>

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

Date when the $LATEST version of this slot type was updated.

name String

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

valueSelectionStrategy String

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

version String

Version of the slot type.

checksum string

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

createdDate string

Date when the slot type version was created.

description string

Description of the slot type.

enumerationValues GetSlotTypeEnumerationValue[]

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

Date when the $LATEST version of this slot type was updated.

name string

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

valueSelectionStrategy string

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

version string

Version of the slot type.

checksum str

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

created_date str

Date when the slot type version was created.

description str

Description of the slot type.

enumeration_values Sequence[GetSlotTypeEnumerationValue]

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

id str

The provider-assigned unique ID for this managed resource.

last_updated_date str

Date when the $LATEST version of this slot type was updated.

name str

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

value_selection_strategy str

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

version str

Version of the slot type.

checksum String

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

createdDate String

Date when the slot type version was created.

description String

Description of the slot type.

enumerationValues List<Property Map>

Set of EnumerationValue objects that defines the values that the slot type can take. Each value can have a set of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

Date when the $LATEST version of this slot type was updated.

name String

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

valueSelectionStrategy String

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned.

version String

Version of the slot type.

Supporting Types

GetSlotTypeEnumerationValue

Synonyms List<string>
Value string
Synonyms []string
Value string
synonyms List<String>
value String
synonyms string[]
value string
synonyms Sequence[str]
value str
synonyms List<String>
value String

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.