AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.lex.getSlotType
Explore with Pulumi AI
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")
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
})
}
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 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'
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:
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.
- Created
Date string - Date when the slot type version was created.
- Description string
- Description of the slot type.
- Enumeration
Values List<GetSlot Type Enumeration Value> - 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.
- Last
Updated stringDate - Date when the $LATEST version of this slot type was updated.
- Name string
- Name of the slot type. The name is not case sensitive.
- Value
Selection stringStrategy - 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.
- Created
Date string - Date when the slot type version was created.
- Description string
- Description of the slot type.
- Enumeration
Values []GetSlot Type Enumeration Value - 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.
- Last
Updated stringDate - Date when the $LATEST version of this slot type was updated.
- Name string
- Name of the slot type. The name is not case sensitive.
- Value
Selection stringStrategy - 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.
- created
Date String - Date when the slot type version was created.
- description String
- Description of the slot type.
- enumeration
Values List<GetSlot Type Enumeration Value> - 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.
- last
Updated StringDate - Date when the $LATEST version of this slot type was updated.
- name String
- Name of the slot type. The name is not case sensitive.
- value
Selection StringStrategy - 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.
- created
Date string - Date when the slot type version was created.
- description string
- Description of the slot type.
- enumeration
Values GetSlot Type Enumeration Value[] - 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.
- last
Updated stringDate - Date when the $LATEST version of this slot type was updated.
- name string
- Name of the slot type. The name is not case sensitive.
- value
Selection stringStrategy - 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[GetSlot Type Enumeration Value] - 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_ strdate - 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_ strstrategy - 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.
- created
Date String - Date when the slot type version was created.
- description String
- Description of the slot type.
- enumeration
Values 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.
- last
Updated StringDate - Date when the $LATEST version of this slot type was updated.
- name String
- Name of the slot type. The name is not case sensitive.
- value
Selection StringStrategy - 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
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.