1. Packages
  2. AWS Classic
  3. API Docs
  4. lex
  5. V2modelsSlotType

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi

aws.lex.V2modelsSlotType

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi

    Resource for managing an AWS Lex V2 Models Slot Type.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.iam.RolePolicyAttachment("test", {
        role: testAwsIamRole.name,
        policyArn: `arn:${current.partition}:iam::aws:policy/AmazonLexFullAccess`,
    });
    const testV2modelsBot = new aws.lex.V2modelsBot("test", {
        name: "testbot",
        idleSessionTtlInSeconds: 60,
        roleArn: testAwsIamRole.arn,
        dataPrivacies: [{
            childDirected: true,
        }],
    });
    const testV2modelsBotLocale = new aws.lex.V2modelsBotLocale("test", {
        localeId: "en_US",
        botId: testV2modelsBot.id,
        botVersion: "DRAFT",
        nLuIntentConfidenceThreshold: 0.7,
    });
    const testV2modelsBotVersion = new aws.lex.V2modelsBotVersion("test", {
        botId: testV2modelsBot.id,
        localeSpecification: testV2modelsBotLocale.localeId.apply(localeId => {
            [localeId]: {
                sourceBotVersion: "DRAFT",
            },
        }),
    });
    const testV2modelsSlotType = new aws.lex.V2modelsSlotType("test", {
        botId: testV2modelsBot.id,
        botVersion: testV2modelsBotLocale.botVersion,
        name: "test",
        localeId: testV2modelsBotLocale.localeId,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.iam.RolePolicyAttachment("test",
        role=test_aws_iam_role["name"],
        policy_arn=f"arn:{current['partition']}:iam::aws:policy/AmazonLexFullAccess")
    test_v2models_bot = aws.lex.V2modelsBot("test",
        name="testbot",
        idle_session_ttl_in_seconds=60,
        role_arn=test_aws_iam_role["arn"],
        data_privacies=[aws.lex.V2modelsBotDataPrivacyArgs(
            child_directed=True,
        )])
    test_v2models_bot_locale = aws.lex.V2modelsBotLocale("test",
        locale_id="en_US",
        bot_id=test_v2models_bot.id,
        bot_version="DRAFT",
        n_lu_intent_confidence_threshold=0.7)
    test_v2models_bot_version = aws.lex.V2modelsBotVersion("test",
        bot_id=test_v2models_bot.id,
        locale_specification=test_v2models_bot_locale.locale_id.apply(lambda locale_id: {
            locale_id: {
                "sourceBotVersion": "DRAFT",
            },
        }))
    test_v2models_slot_type = aws.lex.V2modelsSlotType("test",
        bot_id=test_v2models_bot.id,
        bot_version=test_v2models_bot_locale.bot_version,
        name="test",
        locale_id=test_v2models_bot_locale.locale_id)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"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 := iam.NewRolePolicyAttachment(ctx, "test", &iam.RolePolicyAttachmentArgs{
    Role: pulumi.Any(testAwsIamRole.Name),
    PolicyArn: pulumi.String(fmt.Sprintf("arn:%v:iam::aws:policy/AmazonLexFullAccess", current.Partition)),
    })
    if err != nil {
    return err
    }
    testV2modelsBot, err := lex.NewV2modelsBot(ctx, "test", &lex.V2modelsBotArgs{
    Name: pulumi.String("testbot"),
    IdleSessionTtlInSeconds: pulumi.Int(60),
    RoleArn: pulumi.Any(testAwsIamRole.Arn),
    DataPrivacies: lex.V2modelsBotDataPrivacyArray{
    &lex.V2modelsBotDataPrivacyArgs{
    ChildDirected: pulumi.Bool(true),
    },
    },
    })
    if err != nil {
    return err
    }
    testV2modelsBotLocale, err := lex.NewV2modelsBotLocale(ctx, "test", &lex.V2modelsBotLocaleArgs{
    LocaleId: pulumi.String("en_US"),
    BotId: testV2modelsBot.ID(),
    BotVersion: pulumi.String("DRAFT"),
    NLuIntentConfidenceThreshold: pulumi.Float64(0.7),
    })
    if err != nil {
    return err
    }
    _, err = lex.NewV2modelsBotVersion(ctx, "test", &lex.V2modelsBotVersionArgs{
    BotId: testV2modelsBot.ID(),
    LocaleSpecification: testV2modelsBotLocale.LocaleId.ApplyT(func(localeId string) (map[string]map[string]interface{}, error) {
    return map[string]map[string]interface{}{
    localeId: map[string]interface{}{
    "sourceBotVersion": "DRAFT",
    },
    }, nil
    }).(pulumi.Map[string]map[string]interface{}Output),
    })
    if err != nil {
    return err
    }
    _, err = lex.NewV2modelsSlotType(ctx, "test", &lex.V2modelsSlotTypeArgs{
    BotId: testV2modelsBot.ID(),
    BotVersion: testV2modelsBotLocale.BotVersion,
    Name: pulumi.String("test"),
    LocaleId: testV2modelsBotLocale.LocaleId,
    })
    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 test = new Aws.Iam.RolePolicyAttachment("test", new()
        {
            Role = testAwsIamRole.Name,
            PolicyArn = $"arn:{current.Partition}:iam::aws:policy/AmazonLexFullAccess",
        });
    
        var testV2modelsBot = new Aws.Lex.V2modelsBot("test", new()
        {
            Name = "testbot",
            IdleSessionTtlInSeconds = 60,
            RoleArn = testAwsIamRole.Arn,
            DataPrivacies = new[]
            {
                new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
                {
                    ChildDirected = true,
                },
            },
        });
    
        var testV2modelsBotLocale = new Aws.Lex.V2modelsBotLocale("test", new()
        {
            LocaleId = "en_US",
            BotId = testV2modelsBot.Id,
            BotVersion = "DRAFT",
            NLuIntentConfidenceThreshold = 0.7,
        });
    
        var testV2modelsBotVersion = new Aws.Lex.V2modelsBotVersion("test", new()
        {
            BotId = testV2modelsBot.Id,
            LocaleSpecification = testV2modelsBotLocale.LocaleId.Apply(localeId => 
            {
                { localeId, 
                {
                    { "sourceBotVersion", "DRAFT" },
                } },
            }),
        });
    
        var testV2modelsSlotType = new Aws.Lex.V2modelsSlotType("test", new()
        {
            BotId = testV2modelsBot.Id,
            BotVersion = testV2modelsBotLocale.BotVersion,
            Name = "test",
            LocaleId = testV2modelsBotLocale.LocaleId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.RolePolicyAttachment;
    import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
    import com.pulumi.aws.lex.V2modelsBot;
    import com.pulumi.aws.lex.V2modelsBotArgs;
    import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;
    import com.pulumi.aws.lex.V2modelsBotLocale;
    import com.pulumi.aws.lex.V2modelsBotLocaleArgs;
    import com.pulumi.aws.lex.V2modelsBotVersion;
    import com.pulumi.aws.lex.V2modelsBotVersionArgs;
    import com.pulumi.aws.lex.V2modelsSlotType;
    import com.pulumi.aws.lex.V2modelsSlotTypeArgs;
    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) {
            var test = new RolePolicyAttachment("test", RolePolicyAttachmentArgs.builder()        
                .role(testAwsIamRole.name())
                .policyArn(String.format("arn:%s:iam::aws:policy/AmazonLexFullAccess", current.partition()))
                .build());
    
            var testV2modelsBot = new V2modelsBot("testV2modelsBot", V2modelsBotArgs.builder()        
                .name("testbot")
                .idleSessionTtlInSeconds(60)
                .roleArn(testAwsIamRole.arn())
                .dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
                    .childDirected(true)
                    .build())
                .build());
    
            var testV2modelsBotLocale = new V2modelsBotLocale("testV2modelsBotLocale", V2modelsBotLocaleArgs.builder()        
                .localeId("en_US")
                .botId(testV2modelsBot.id())
                .botVersion("DRAFT")
                .nLuIntentConfidenceThreshold(0.7)
                .build());
    
            var testV2modelsBotVersion = new V2modelsBotVersion("testV2modelsBotVersion", V2modelsBotVersionArgs.builder()        
                .botId(testV2modelsBot.id())
                .localeSpecification(testV2modelsBotLocale.localeId().applyValue(localeId -> Map.of(localeId, Map.of("sourceBotVersion", "DRAFT"))))
                .build());
    
            var testV2modelsSlotType = new V2modelsSlotType("testV2modelsSlotType", V2modelsSlotTypeArgs.builder()        
                .botId(testV2modelsBot.id())
                .botVersion(testV2modelsBotLocale.botVersion())
                .name("test")
                .localeId(testV2modelsBotLocale.localeId())
                .build());
    
        }
    }
    
    resources:
      test:
        type: aws:iam:RolePolicyAttachment
        properties:
          role: ${testAwsIamRole.name}
          policyArn: arn:${current.partition}:iam::aws:policy/AmazonLexFullAccess
      testV2modelsBot:
        type: aws:lex:V2modelsBot
        name: test
        properties:
          name: testbot
          idleSessionTtlInSeconds: 60
          roleArn: ${testAwsIamRole.arn}
          dataPrivacies:
            - childDirected: true
      testV2modelsBotLocale:
        type: aws:lex:V2modelsBotLocale
        name: test
        properties:
          localeId: en_US
          botId: ${testV2modelsBot.id}
          botVersion: DRAFT
          nLuIntentConfidenceThreshold: 0.7
      testV2modelsBotVersion:
        type: aws:lex:V2modelsBotVersion
        name: test
        properties:
          botId: ${testV2modelsBot.id}
          localeSpecification:
            ${testV2modelsBotLocale.localeId}:
              sourceBotVersion: DRAFT
      testV2modelsSlotType:
        type: aws:lex:V2modelsSlotType
        name: test
        properties:
          botId: ${testV2modelsBot.id}
          botVersion: ${testV2modelsBotLocale.botVersion}
          name: test
          localeId: ${testV2modelsBotLocale.localeId}
    

    Create V2modelsSlotType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2modelsSlotType(name: string, args: V2modelsSlotTypeArgs, opts?: CustomResourceOptions);
    @overload
    def V2modelsSlotType(resource_name: str,
                         args: V2modelsSlotTypeArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2modelsSlotType(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         bot_id: Optional[str] = None,
                         bot_version: Optional[str] = None,
                         locale_id: Optional[str] = None,
                         composite_slot_type_setting: Optional[V2modelsSlotTypeCompositeSlotTypeSettingArgs] = None,
                         description: Optional[str] = None,
                         external_source_setting: Optional[V2modelsSlotTypeExternalSourceSettingArgs] = None,
                         name: Optional[str] = None,
                         parent_slot_type_signature: Optional[str] = None,
                         slot_type_values: Optional[V2modelsSlotTypeSlotTypeValuesArgs] = None,
                         timeouts: Optional[V2modelsSlotTypeTimeoutsArgs] = None,
                         value_selection_setting: Optional[V2modelsSlotTypeValueSelectionSettingArgs] = None)
    func NewV2modelsSlotType(ctx *Context, name string, args V2modelsSlotTypeArgs, opts ...ResourceOption) (*V2modelsSlotType, error)
    public V2modelsSlotType(string name, V2modelsSlotTypeArgs args, CustomResourceOptions? opts = null)
    public V2modelsSlotType(String name, V2modelsSlotTypeArgs args)
    public V2modelsSlotType(String name, V2modelsSlotTypeArgs args, CustomResourceOptions options)
    
    type: aws:lex:V2modelsSlotType
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args V2modelsSlotTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args V2modelsSlotTypeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args V2modelsSlotTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2modelsSlotTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2modelsSlotTypeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var v2modelsSlotTypeResource = new Aws.Lex.V2modelsSlotType("v2modelsSlotTypeResource", new()
    {
        BotId = "string",
        BotVersion = "string",
        LocaleId = "string",
        CompositeSlotTypeSetting = new Aws.Lex.Inputs.V2modelsSlotTypeCompositeSlotTypeSettingArgs
        {
            SubSlots = new[]
            {
                "any",
            },
        },
        Description = "string",
        ExternalSourceSetting = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingArgs
        {
            GrammarSlotTypeSetting = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs
            {
                Source = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs
                {
                    KmsKeyArn = "string",
                    S3BucketName = "string",
                    S3ObjectKey = "string",
                },
            },
        },
        Name = "string",
        ParentSlotTypeSignature = "string",
        SlotTypeValues = new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesArgs
        {
            SlotTypeValues = new[]
            {
                "any",
            },
            Synonyms = new[]
            {
                new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesSynonymArgs
                {
                    Value = "string",
                },
            },
        },
        Timeouts = new Aws.Lex.Inputs.V2modelsSlotTypeTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        ValueSelectionSetting = new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingArgs
        {
            ResolutionStrategy = "string",
            AdvancedRecognitionSettings = new[]
            {
                new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs
                {
                    AudioRecognitionSetting = "string",
                },
            },
            RegexFilters = new[]
            {
                new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingRegexFilterArgs
                {
                    Pattern = "string",
                },
            },
        },
    });
    
    example, err := lex.NewV2modelsSlotType(ctx, "v2modelsSlotTypeResource", &lex.V2modelsSlotTypeArgs{
    	BotId:      pulumi.String("string"),
    	BotVersion: pulumi.String("string"),
    	LocaleId:   pulumi.String("string"),
    	CompositeSlotTypeSetting: &lex.V2modelsSlotTypeCompositeSlotTypeSettingArgs{
    		SubSlots: pulumi.Array{
    			pulumi.Any("any"),
    		},
    	},
    	Description: pulumi.String("string"),
    	ExternalSourceSetting: &lex.V2modelsSlotTypeExternalSourceSettingArgs{
    		GrammarSlotTypeSetting: &lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs{
    			Source: &lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs{
    				KmsKeyArn:    pulumi.String("string"),
    				S3BucketName: pulumi.String("string"),
    				S3ObjectKey:  pulumi.String("string"),
    			},
    		},
    	},
    	Name:                    pulumi.String("string"),
    	ParentSlotTypeSignature: pulumi.String("string"),
    	SlotTypeValues: &lex.V2modelsSlotTypeSlotTypeValuesArgs{
    		SlotTypeValues: pulumi.Array{
    			pulumi.Any("any"),
    		},
    		Synonyms: lex.V2modelsSlotTypeSlotTypeValuesSynonymArray{
    			&lex.V2modelsSlotTypeSlotTypeValuesSynonymArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    	},
    	Timeouts: &lex.V2modelsSlotTypeTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	ValueSelectionSetting: &lex.V2modelsSlotTypeValueSelectionSettingArgs{
    		ResolutionStrategy: pulumi.String("string"),
    		AdvancedRecognitionSettings: lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArray{
    			&lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs{
    				AudioRecognitionSetting: pulumi.String("string"),
    			},
    		},
    		RegexFilters: lex.V2modelsSlotTypeValueSelectionSettingRegexFilterArray{
    			&lex.V2modelsSlotTypeValueSelectionSettingRegexFilterArgs{
    				Pattern: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var v2modelsSlotTypeResource = new V2modelsSlotType("v2modelsSlotTypeResource", V2modelsSlotTypeArgs.builder()        
        .botId("string")
        .botVersion("string")
        .localeId("string")
        .compositeSlotTypeSetting(V2modelsSlotTypeCompositeSlotTypeSettingArgs.builder()
            .subSlots("any")
            .build())
        .description("string")
        .externalSourceSetting(V2modelsSlotTypeExternalSourceSettingArgs.builder()
            .grammarSlotTypeSetting(V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs.builder()
                .source(V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs.builder()
                    .kmsKeyArn("string")
                    .s3BucketName("string")
                    .s3ObjectKey("string")
                    .build())
                .build())
            .build())
        .name("string")
        .parentSlotTypeSignature("string")
        .slotTypeValues(V2modelsSlotTypeSlotTypeValuesArgs.builder()
            .slotTypeValues("any")
            .synonyms(V2modelsSlotTypeSlotTypeValuesSynonymArgs.builder()
                .value("string")
                .build())
            .build())
        .timeouts(V2modelsSlotTypeTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .valueSelectionSetting(V2modelsSlotTypeValueSelectionSettingArgs.builder()
            .resolutionStrategy("string")
            .advancedRecognitionSettings(V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs.builder()
                .audioRecognitionSetting("string")
                .build())
            .regexFilters(V2modelsSlotTypeValueSelectionSettingRegexFilterArgs.builder()
                .pattern("string")
                .build())
            .build())
        .build());
    
    v2models_slot_type_resource = aws.lex.V2modelsSlotType("v2modelsSlotTypeResource",
        bot_id="string",
        bot_version="string",
        locale_id="string",
        composite_slot_type_setting=aws.lex.V2modelsSlotTypeCompositeSlotTypeSettingArgs(
            sub_slots=["any"],
        ),
        description="string",
        external_source_setting=aws.lex.V2modelsSlotTypeExternalSourceSettingArgs(
            grammar_slot_type_setting=aws.lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs(
                source=aws.lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs(
                    kms_key_arn="string",
                    s3_bucket_name="string",
                    s3_object_key="string",
                ),
            ),
        ),
        name="string",
        parent_slot_type_signature="string",
        slot_type_values=aws.lex.V2modelsSlotTypeSlotTypeValuesArgs(
            slot_type_values=["any"],
            synonyms=[aws.lex.V2modelsSlotTypeSlotTypeValuesSynonymArgs(
                value="string",
            )],
        ),
        timeouts=aws.lex.V2modelsSlotTypeTimeoutsArgs(
            create="string",
            delete="string",
            update="string",
        ),
        value_selection_setting=aws.lex.V2modelsSlotTypeValueSelectionSettingArgs(
            resolution_strategy="string",
            advanced_recognition_settings=[aws.lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs(
                audio_recognition_setting="string",
            )],
            regex_filters=[aws.lex.V2modelsSlotTypeValueSelectionSettingRegexFilterArgs(
                pattern="string",
            )],
        ))
    
    const v2modelsSlotTypeResource = new aws.lex.V2modelsSlotType("v2modelsSlotTypeResource", {
        botId: "string",
        botVersion: "string",
        localeId: "string",
        compositeSlotTypeSetting: {
            subSlots: ["any"],
        },
        description: "string",
        externalSourceSetting: {
            grammarSlotTypeSetting: {
                source: {
                    kmsKeyArn: "string",
                    s3BucketName: "string",
                    s3ObjectKey: "string",
                },
            },
        },
        name: "string",
        parentSlotTypeSignature: "string",
        slotTypeValues: {
            slotTypeValues: ["any"],
            synonyms: [{
                value: "string",
            }],
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        valueSelectionSetting: {
            resolutionStrategy: "string",
            advancedRecognitionSettings: [{
                audioRecognitionSetting: "string",
            }],
            regexFilters: [{
                pattern: "string",
            }],
        },
    });
    
    type: aws:lex:V2modelsSlotType
    properties:
        botId: string
        botVersion: string
        compositeSlotTypeSetting:
            subSlots:
                - any
        description: string
        externalSourceSetting:
            grammarSlotTypeSetting:
                source:
                    kmsKeyArn: string
                    s3BucketName: string
                    s3ObjectKey: string
        localeId: string
        name: string
        parentSlotTypeSignature: string
        slotTypeValues:
            slotTypeValues:
                - any
            synonyms:
                - value: string
        timeouts:
            create: string
            delete: string
            update: string
        valueSelectionSetting:
            advancedRecognitionSettings:
                - audioRecognitionSetting: string
            regexFilters:
                - pattern: string
            resolutionStrategy: string
    

    V2modelsSlotType Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The V2modelsSlotType resource accepts the following input properties:

    BotId string
    Identifier of the bot associated with this slot type.
    BotVersion string
    Version of the bot associated with this slot type.
    LocaleId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    CompositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    Description string
    Description of the slot type.
    ExternalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    Name string

    Name of the slot type

    The following arguments are optional:

    ParentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    SlotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Timeouts V2modelsSlotTypeTimeouts
    ValueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    BotId string
    Identifier of the bot associated with this slot type.
    BotVersion string
    Version of the bot associated with this slot type.
    LocaleId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    CompositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSettingArgs
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    Description string
    Description of the slot type.
    ExternalSourceSetting V2modelsSlotTypeExternalSourceSettingArgs
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    Name string

    Name of the slot type

    The following arguments are optional:

    ParentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    SlotTypeValues V2modelsSlotTypeSlotTypeValuesArgs
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Timeouts V2modelsSlotTypeTimeoutsArgs
    ValueSelectionSetting V2modelsSlotTypeValueSelectionSettingArgs
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId String
    Identifier of the bot associated with this slot type.
    botVersion String
    Version of the bot associated with this slot type.
    localeId String
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    compositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description String
    Description of the slot type.
    externalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    name String

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature String
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeouts
    valueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId string
    Identifier of the bot associated with this slot type.
    botVersion string
    Version of the bot associated with this slot type.
    localeId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    compositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description string
    Description of the slot type.
    externalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    name string

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeouts
    valueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    bot_id str
    Identifier of the bot associated with this slot type.
    bot_version str
    Version of the bot associated with this slot type.
    locale_id str
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    composite_slot_type_setting V2modelsSlotTypeCompositeSlotTypeSettingArgs
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description str
    Description of the slot type.
    external_source_setting V2modelsSlotTypeExternalSourceSettingArgs
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    name str

    Name of the slot type

    The following arguments are optional:

    parent_slot_type_signature str
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slot_type_values V2modelsSlotTypeSlotTypeValuesArgs
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeoutsArgs
    value_selection_setting V2modelsSlotTypeValueSelectionSettingArgs
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId String
    Identifier of the bot associated with this slot type.
    botVersion String
    Version of the bot associated with this slot type.
    localeId String
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    compositeSlotTypeSetting Property Map
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description String
    Description of the slot type.
    externalSourceSetting Property Map
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    name String

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature String
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeValues Property Map
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts Property Map
    valueSelectionSetting Property Map
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2modelsSlotType resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    SlotTypeId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SlotTypeId string
    id String
    The provider-assigned unique ID for this managed resource.
    slotTypeId String
    id string
    The provider-assigned unique ID for this managed resource.
    slotTypeId string
    id str
    The provider-assigned unique ID for this managed resource.
    slot_type_id str
    id String
    The provider-assigned unique ID for this managed resource.
    slotTypeId String

    Look up Existing V2modelsSlotType Resource

    Get an existing V2modelsSlotType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: V2modelsSlotTypeState, opts?: CustomResourceOptions): V2modelsSlotType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bot_id: Optional[str] = None,
            bot_version: Optional[str] = None,
            composite_slot_type_setting: Optional[V2modelsSlotTypeCompositeSlotTypeSettingArgs] = None,
            description: Optional[str] = None,
            external_source_setting: Optional[V2modelsSlotTypeExternalSourceSettingArgs] = None,
            locale_id: Optional[str] = None,
            name: Optional[str] = None,
            parent_slot_type_signature: Optional[str] = None,
            slot_type_id: Optional[str] = None,
            slot_type_values: Optional[V2modelsSlotTypeSlotTypeValuesArgs] = None,
            timeouts: Optional[V2modelsSlotTypeTimeoutsArgs] = None,
            value_selection_setting: Optional[V2modelsSlotTypeValueSelectionSettingArgs] = None) -> V2modelsSlotType
    func GetV2modelsSlotType(ctx *Context, name string, id IDInput, state *V2modelsSlotTypeState, opts ...ResourceOption) (*V2modelsSlotType, error)
    public static V2modelsSlotType Get(string name, Input<string> id, V2modelsSlotTypeState? state, CustomResourceOptions? opts = null)
    public static V2modelsSlotType get(String name, Output<String> id, V2modelsSlotTypeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BotId string
    Identifier of the bot associated with this slot type.
    BotVersion string
    Version of the bot associated with this slot type.
    CompositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    Description string
    Description of the slot type.
    ExternalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    LocaleId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    Name string

    Name of the slot type

    The following arguments are optional:

    ParentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    SlotTypeId string
    SlotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Timeouts V2modelsSlotTypeTimeouts
    ValueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    BotId string
    Identifier of the bot associated with this slot type.
    BotVersion string
    Version of the bot associated with this slot type.
    CompositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSettingArgs
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    Description string
    Description of the slot type.
    ExternalSourceSetting V2modelsSlotTypeExternalSourceSettingArgs
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    LocaleId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    Name string

    Name of the slot type

    The following arguments are optional:

    ParentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    SlotTypeId string
    SlotTypeValues V2modelsSlotTypeSlotTypeValuesArgs
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Timeouts V2modelsSlotTypeTimeoutsArgs
    ValueSelectionSetting V2modelsSlotTypeValueSelectionSettingArgs
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId String
    Identifier of the bot associated with this slot type.
    botVersion String
    Version of the bot associated with this slot type.
    compositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description String
    Description of the slot type.
    externalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    localeId String
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    name String

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature String
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeId String
    slotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeouts
    valueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId string
    Identifier of the bot associated with this slot type.
    botVersion string
    Version of the bot associated with this slot type.
    compositeSlotTypeSetting V2modelsSlotTypeCompositeSlotTypeSetting
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description string
    Description of the slot type.
    externalSourceSetting V2modelsSlotTypeExternalSourceSetting
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    localeId string
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    name string

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature string
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeId string
    slotTypeValues V2modelsSlotTypeSlotTypeValues
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeouts
    valueSelectionSetting V2modelsSlotTypeValueSelectionSetting
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    bot_id str
    Identifier of the bot associated with this slot type.
    bot_version str
    Version of the bot associated with this slot type.
    composite_slot_type_setting V2modelsSlotTypeCompositeSlotTypeSettingArgs
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description str
    Description of the slot type.
    external_source_setting V2modelsSlotTypeExternalSourceSettingArgs
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    locale_id str
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    name str

    Name of the slot type

    The following arguments are optional:

    parent_slot_type_signature str
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slot_type_id str
    slot_type_values V2modelsSlotTypeSlotTypeValuesArgs
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts V2modelsSlotTypeTimeoutsArgs
    value_selection_setting V2modelsSlotTypeValueSelectionSettingArgs
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.
    botId String
    Identifier of the bot associated with this slot type.
    botVersion String
    Version of the bot associated with this slot type.
    compositeSlotTypeSetting Property Map
    Specifications for a composite slot type. See composite_slot_type_setting argument reference below.
    description String
    Description of the slot type.
    externalSourceSetting Property Map
    Type of external information used to create the slot type. See external_source_setting argument reference below.
    localeId String
    Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
    name String

    Name of the slot type

    The following arguments are optional:

    parentSlotTypeSignature String
    Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
    slotTypeId String
    slotTypeValues Property Map
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    timeouts Property Map
    valueSelectionSetting Property Map
    Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: ORIGINAL_VALUE returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. See value_selection_setting argument reference below.

    Supporting Types

    V2modelsSlotTypeCompositeSlotTypeSetting, V2modelsSlotTypeCompositeSlotTypeSettingArgs

    SubSlots List<object>
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.
    SubSlots []interface{}
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.
    subSlots List<Object>
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.
    subSlots any[]
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.
    sub_slots Sequence[Any]
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.
    subSlots List<Any>
    Subslots in the composite slot. Contains filtered or unexported fields. See [sub_slot_type_composition argument reference] below.

    V2modelsSlotTypeExternalSourceSetting, V2modelsSlotTypeExternalSourceSettingArgs

    GrammarSlotTypeSetting V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.
    GrammarSlotTypeSetting V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.
    grammarSlotTypeSetting V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.
    grammarSlotTypeSetting V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.
    grammar_slot_type_setting V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.
    grammarSlotTypeSetting Property Map
    Settings required for a slot type based on a grammar that you provide. See grammar_slot_type_setting argument reference below.

    V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting, V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs

    Source V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.
    Source V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.
    source V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.
    source V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.
    source V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.
    source Property Map
    Source of the grammar used to create the slot type. See grammar_slot_type_source argument reference below.

    V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource, V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs

    V2modelsSlotTypeSlotTypeValues, V2modelsSlotTypeSlotTypeValuesArgs

    SlotTypeValues List<object>
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Synonyms List<V2modelsSlotTypeSlotTypeValuesSynonym>
    Additional values related to the slot type entry. See sample_value argument reference below.
    SlotTypeValues []interface{}
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    Synonyms []V2modelsSlotTypeSlotTypeValuesSynonym
    Additional values related to the slot type entry. See sample_value argument reference below.
    slotTypeValues List<Object>
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    synonyms List<V2modelsSlotTypeSlotTypeValuesSynonym>
    Additional values related to the slot type entry. See sample_value argument reference below.
    slotTypeValues any[]
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    synonyms V2modelsSlotTypeSlotTypeValuesSynonym[]
    Additional values related to the slot type entry. See sample_value argument reference below.
    slot_type_values Sequence[Any]
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    synonyms Sequence[V2modelsSlotTypeSlotTypeValuesSynonym]
    Additional values related to the slot type entry. See sample_value argument reference below.
    slotTypeValues List<Any>
    List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See slot_type_values argument reference below.
    synonyms List<Property Map>
    Additional values related to the slot type entry. See sample_value argument reference below.

    V2modelsSlotTypeSlotTypeValuesSynonym, V2modelsSlotTypeSlotTypeValuesSynonymArgs

    Value string
    Value string
    value String
    value string
    value str
    value String

    V2modelsSlotTypeTimeouts, V2modelsSlotTypeTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    V2modelsSlotTypeValueSelectionSetting, V2modelsSlotTypeValueSelectionSettingArgs

    ResolutionStrategy string
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    AdvancedRecognitionSettings List<V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting>
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    RegexFilters List<V2modelsSlotTypeValueSelectionSettingRegexFilter>
    Used to validate the value of the slot. See [regex_filter argument reference] below.
    ResolutionStrategy string
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    AdvancedRecognitionSettings []V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    RegexFilters []V2modelsSlotTypeValueSelectionSettingRegexFilter
    Used to validate the value of the slot. See [regex_filter argument reference] below.
    resolutionStrategy String
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    advancedRecognitionSettings List<V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting>
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    regexFilters List<V2modelsSlotTypeValueSelectionSettingRegexFilter>
    Used to validate the value of the slot. See [regex_filter argument reference] below.
    resolutionStrategy string
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    advancedRecognitionSettings V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting[]
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    regexFilters V2modelsSlotTypeValueSelectionSettingRegexFilter[]
    Used to validate the value of the slot. See [regex_filter argument reference] below.
    resolution_strategy str
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    advanced_recognition_settings Sequence[V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting]
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    regex_filters Sequence[V2modelsSlotTypeValueSelectionSettingRegexFilter]
    Used to validate the value of the slot. See [regex_filter argument reference] below.
    resolutionStrategy String
    Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value. TOP_RESOLUTION If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE. Valid values are OriginalValue, TopResolution, and Concatenation.
    advancedRecognitionSettings List<Property Map>
    Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [advanced_recognition_setting argument reference] below.
    regexFilters List<Property Map>
    Used to validate the value of the slot. See [regex_filter argument reference] below.

    V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting, V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs

    V2modelsSlotTypeValueSelectionSettingRegexFilter, V2modelsSlotTypeValueSelectionSettingRegexFilterArgs

    Pattern string
    Pattern string
    pattern String
    pattern string
    pattern String

    Import

    Using pulumi import, import Lex V2 Models Slot Type using the example_id_arg. For example:

    $ pulumi import aws:lex/v2modelsSlotType:V2modelsSlotType example bot-1234,DRAFT,en_US,slot_type-id-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi