Class SlotType


  • public class SlotType
    extends com.pulumi.resources.CustomResource
    Provides an Amazon Lex Slot Type resource. For more information see [Amazon Lex: How It Works](https://docs.aws.amazon.com/lex/latest/dg/how-it-works.html) ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.lex.SlotType;
     import com.pulumi.aws.lex.SlotTypeArgs;
     import com.pulumi.aws.lex.inputs.SlotTypeEnumerationValueArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     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 flowerTypes = new SlotType("flowerTypes", SlotTypeArgs.builder()
                 .enumerationValues(            
                     SlotTypeEnumerationValueArgs.builder()
                         .synonyms(                    
                             "Lirium",
                             "Martagon")
                         .value("lilies")
                         .build(),
                     SlotTypeEnumerationValueArgs.builder()
                         .synonyms(                    
                             "Eduardoregelia",
                             "Podonix")
                         .value("tulips")
                         .build())
                 .createVersion(true)
                 .description("Types of flowers to order")
                 .name("FlowerTypes")
                 .valueSelectionStrategy("ORIGINAL_VALUE")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import slot types using their name. For example: ```sh $ pulumi import aws:lex/slotType:SlotType flower_types FlowerTypes ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      SlotType​(java.lang.String name)  
      SlotType​(java.lang.String name, SlotTypeArgs args)  
      SlotType​(java.lang.String name, SlotTypeArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> checksum()  
      com.pulumi.core.Output<java.lang.String> createdDate()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> createVersion()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.util.List<SlotTypeEnumerationValue>> enumerationValues()  
      static SlotType get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, SlotTypeState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> lastUpdatedDate()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> valueSelectionStrategy()  
      com.pulumi.core.Output<java.lang.String> version()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SlotType

        public SlotType​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • SlotType

        public SlotType​(java.lang.String name,
                        SlotTypeArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • SlotType

        public SlotType​(java.lang.String name,
                        SlotTypeArgs args,
                        @Nullable
                        com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • checksum

        public com.pulumi.core.Output<java.lang.String> checksum()
        Returns:
        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.
      • createVersion

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> createVersion()
        Returns:
        Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to `false`.
      • createdDate

        public com.pulumi.core.Output<java.lang.String> createdDate()
        Returns:
        The date when the slot type version was created.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        A description of the slot type. Must be less than or equal to 200 characters in length.
      • enumerationValues

        public com.pulumi.core.Output<java.util.List<SlotTypeEnumerationValue>> enumerationValues()
        Returns:
        A list of EnumerationValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot. Attributes are documented under enumeration_value.
      • lastUpdatedDate

        public com.pulumi.core.Output<java.lang.String> lastUpdatedDate()
        Returns:
        The date when the `$LATEST` version of this slot type was updated.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the slot type. The name is not case sensitive. Must be less than or equal to 100 characters in length.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • valueSelectionStrategy

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> valueSelectionStrategy()
        Returns:
        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. Defaults to `ORIGINAL_VALUE`.
      • version

        public com.pulumi.core.Output<java.lang.String> version()
        Returns:
        The version of the slot type.
      • get

        public static SlotType get​(java.lang.String name,
                                   com.pulumi.core.Output<java.lang.String> id,
                                   @Nullable
                                   SlotTypeState state,
                                   @Nullable
                                   com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.