1. Packages
  2. AWS
  3. API Docs
  4. lex
  5. getSlotType
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.lex.getSlotType

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

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",
});
Copy
import pulumi
import pulumi_aws as aws

flower_types = aws.lex.get_slot_type(name="FlowerTypes",
    version="1")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  flowerTypes:
    fn::invoke:
      function: aws:lex:getSlotType
      arguments:
        name: FlowerTypes
        version: '1'
Copy

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>
Copy
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]
Copy
func LookupSlotType(ctx *Context, args *LookupSlotTypeArgs, opts ...InvokeOption) (*LookupSlotTypeResult, error)
func LookupSlotTypeOutput(ctx *Context, args *LookupSlotTypeOutputArgs, opts ...InvokeOption) LookupSlotTypeResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSlotTypeResult> getSlotType(GetSlotTypeArgs args, InvokeOptions options)
public static Output<GetSlotTypeResult> getSlotType(GetSlotTypeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:lex/getSlotType:getSlotType
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the slot type. The name is case sensitive.
Version string
Version of the slot type.
Name This property is required. string
Name of the slot type. The name is case sensitive.
Version string
Version of the slot type.
name This property is required. String
Name of the slot type. The name is case sensitive.
version String
Version of the slot type.
name This property is required. string
Name of the slot type. The name is case sensitive.
version string
Version of the slot type.
name This property is required. str
Name of the slot type. The name is case sensitive.
version str
Version of the slot type.
name This property is required. 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 This property is required. List<string>
Value This property is required. string
Synonyms This property is required. []string
Value This property is required. string
synonyms This property is required. List<String>
value This property is required. String
synonyms This property is required. string[]
value This property is required. string
synonyms This property is required. Sequence[str]
value This property is required. str
synonyms This property is required. List<String>
value This property is required. String

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi