Documentation ¶
Index ¶
- type GetSlotTypeEnumerationValue
- type GetSlotTypeEnumerationValueArgs
- func (GetSlotTypeEnumerationValueArgs) ElementType() reflect.Type
- func (i GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput
- func (i GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueOutput
- type GetSlotTypeEnumerationValueArray
- func (GetSlotTypeEnumerationValueArray) ElementType() reflect.Type
- func (i GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutput() GetSlotTypeEnumerationValueArrayOutput
- func (i GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueArrayOutput
- type GetSlotTypeEnumerationValueArrayInput
- type GetSlotTypeEnumerationValueArrayOutput
- func (GetSlotTypeEnumerationValueArrayOutput) ElementType() reflect.Type
- func (o GetSlotTypeEnumerationValueArrayOutput) Index(i pulumi.IntInput) GetSlotTypeEnumerationValueOutput
- func (o GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutput() GetSlotTypeEnumerationValueArrayOutput
- func (o GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueArrayOutput
- type GetSlotTypeEnumerationValueInput
- type GetSlotTypeEnumerationValueOutput
- func (GetSlotTypeEnumerationValueOutput) ElementType() reflect.Type
- func (o GetSlotTypeEnumerationValueOutput) Synonyms() pulumi.StringArrayOutput
- func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput
- func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueOutput
- func (o GetSlotTypeEnumerationValueOutput) Value() pulumi.StringOutput
- type LookupSlotTypeArgs
- type LookupSlotTypeResult
- type SlotType
- type SlotTypeArgs
- type SlotTypeEnumerationValue
- type SlotTypeEnumerationValueArgs
- func (SlotTypeEnumerationValueArgs) ElementType() reflect.Type
- func (i SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutput() SlotTypeEnumerationValueOutput
- func (i SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutputWithContext(ctx context.Context) SlotTypeEnumerationValueOutput
- type SlotTypeEnumerationValueArray
- func (SlotTypeEnumerationValueArray) ElementType() reflect.Type
- func (i SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutput() SlotTypeEnumerationValueArrayOutput
- func (i SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) SlotTypeEnumerationValueArrayOutput
- type SlotTypeEnumerationValueArrayInput
- type SlotTypeEnumerationValueArrayOutput
- func (SlotTypeEnumerationValueArrayOutput) ElementType() reflect.Type
- func (o SlotTypeEnumerationValueArrayOutput) Index(i pulumi.IntInput) SlotTypeEnumerationValueOutput
- func (o SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutput() SlotTypeEnumerationValueArrayOutput
- func (o SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) SlotTypeEnumerationValueArrayOutput
- type SlotTypeEnumerationValueInput
- type SlotTypeEnumerationValueOutput
- func (SlotTypeEnumerationValueOutput) ElementType() reflect.Type
- func (o SlotTypeEnumerationValueOutput) Synonyms() pulumi.StringArrayOutput
- func (o SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutput() SlotTypeEnumerationValueOutput
- func (o SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutputWithContext(ctx context.Context) SlotTypeEnumerationValueOutput
- func (o SlotTypeEnumerationValueOutput) Value() pulumi.StringOutput
- type SlotTypeState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSlotTypeEnumerationValueArgs ¶
type GetSlotTypeEnumerationValueArgs struct { Synonyms pulumi.StringArrayInput `pulumi:"synonyms"` Value pulumi.StringInput `pulumi:"value"` }
func (GetSlotTypeEnumerationValueArgs) ElementType ¶
func (GetSlotTypeEnumerationValueArgs) ElementType() reflect.Type
func (GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutput ¶
func (i GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput
func (GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutputWithContext ¶
func (i GetSlotTypeEnumerationValueArgs) ToGetSlotTypeEnumerationValueOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueOutput
type GetSlotTypeEnumerationValueArray ¶
type GetSlotTypeEnumerationValueArray []GetSlotTypeEnumerationValueInput
func (GetSlotTypeEnumerationValueArray) ElementType ¶
func (GetSlotTypeEnumerationValueArray) ElementType() reflect.Type
func (GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutput ¶
func (i GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutput() GetSlotTypeEnumerationValueArrayOutput
func (GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutputWithContext ¶
func (i GetSlotTypeEnumerationValueArray) ToGetSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueArrayOutput
type GetSlotTypeEnumerationValueArrayInput ¶
type GetSlotTypeEnumerationValueArrayInput interface { pulumi.Input ToGetSlotTypeEnumerationValueArrayOutput() GetSlotTypeEnumerationValueArrayOutput ToGetSlotTypeEnumerationValueArrayOutputWithContext(context.Context) GetSlotTypeEnumerationValueArrayOutput }
GetSlotTypeEnumerationValueArrayInput is an input type that accepts GetSlotTypeEnumerationValueArray and GetSlotTypeEnumerationValueArrayOutput values. You can construct a concrete instance of `GetSlotTypeEnumerationValueArrayInput` via:
GetSlotTypeEnumerationValueArray{ GetSlotTypeEnumerationValueArgs{...} }
type GetSlotTypeEnumerationValueArrayOutput ¶
type GetSlotTypeEnumerationValueArrayOutput struct{ *pulumi.OutputState }
func (GetSlotTypeEnumerationValueArrayOutput) ElementType ¶
func (GetSlotTypeEnumerationValueArrayOutput) ElementType() reflect.Type
func (GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutput ¶
func (o GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutput() GetSlotTypeEnumerationValueArrayOutput
func (GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutputWithContext ¶
func (o GetSlotTypeEnumerationValueArrayOutput) ToGetSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueArrayOutput
type GetSlotTypeEnumerationValueInput ¶
type GetSlotTypeEnumerationValueInput interface { pulumi.Input ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput ToGetSlotTypeEnumerationValueOutputWithContext(context.Context) GetSlotTypeEnumerationValueOutput }
GetSlotTypeEnumerationValueInput is an input type that accepts GetSlotTypeEnumerationValueArgs and GetSlotTypeEnumerationValueOutput values. You can construct a concrete instance of `GetSlotTypeEnumerationValueInput` via:
GetSlotTypeEnumerationValueArgs{...}
type GetSlotTypeEnumerationValueOutput ¶
type GetSlotTypeEnumerationValueOutput struct{ *pulumi.OutputState }
func (GetSlotTypeEnumerationValueOutput) ElementType ¶
func (GetSlotTypeEnumerationValueOutput) ElementType() reflect.Type
func (GetSlotTypeEnumerationValueOutput) Synonyms ¶
func (o GetSlotTypeEnumerationValueOutput) Synonyms() pulumi.StringArrayOutput
func (GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutput ¶
func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput
func (GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutputWithContext ¶
func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueOutput
func (GetSlotTypeEnumerationValueOutput) Value ¶
func (o GetSlotTypeEnumerationValueOutput) Value() pulumi.StringOutput
type LookupSlotTypeArgs ¶
type LookupSlotTypeArgs struct { // The name of the slot type. The name is case sensitive. Name string `pulumi:"name"` // The version of the slot type. Version *string `pulumi:"version"` }
A collection of arguments for invoking getSlotType.
type LookupSlotTypeResult ¶
type LookupSlotTypeResult struct { // 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. Checksum string `pulumi:"checksum"` // The date when the slot type version was created. CreatedDate string `pulumi:"createdDate"` // A description of the slot type. Description string `pulumi:"description"` // A 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. EnumerationValues []GetSlotTypeEnumerationValue `pulumi:"enumerationValues"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The date when the $LATEST version of this slot type was updated. LastUpdatedDate string `pulumi:"lastUpdatedDate"` // The name of the slot type. The name is not case sensitive. Name string `pulumi:"name"` // 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. ValueSelectionStrategy string `pulumi:"valueSelectionStrategy"` // The version of the slot type. Version *string `pulumi:"version"` }
A collection of values returned by getSlotType.
func LookupSlotType ¶
func LookupSlotType(ctx *pulumi.Context, args *LookupSlotTypeArgs, opts ...pulumi.InvokeOption) (*LookupSlotTypeResult, error)
Provides details about a specific Amazon Lex Slot Type.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lex" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "1" _, err := lex.LookupSlotType(ctx, &lex.LookupSlotTypeArgs{ Name: "FlowerTypes", Version: &opt0, }, nil) if err != nil { return err } return nil }) }
```
type SlotType ¶
type SlotType struct { pulumi.CustomResourceState // 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. Checksum pulumi.StringOutput `pulumi:"checksum"` // Determines if a new slot type version is created when the initial resource is created and on each // update. Defaults to true. CreateVersion pulumi.BoolPtrOutput `pulumi:"createVersion"` // The date when the slot type version was created. CreatedDate pulumi.StringOutput `pulumi:"createdDate"` // A description of the slot type. Description pulumi.StringPtrOutput `pulumi:"description"` // 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. EnumerationValues SlotTypeEnumerationValueArrayOutput `pulumi:"enumerationValues"` // The date when the `$LATEST` version of this slot type was updated. LastUpdatedDate pulumi.StringOutput `pulumi:"lastUpdatedDate"` // The name of the slot type. The name is not case sensitive. Name pulumi.StringOutput `pulumi:"name"` // 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. ValueSelectionStrategy pulumi.StringPtrOutput `pulumi:"valueSelectionStrategy"` // The version of the slot type. Version pulumi.StringOutput `pulumi:"version"` }
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
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/lex" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lex.NewSlotType(ctx, "flowerTypes", &lex.SlotTypeArgs{ CreateVersion: pulumi.Bool(false), Description: pulumi.String("Types of flowers to order"), EnumerationValues: lex.SlotTypeEnumerationValueArray{ &lex.SlotTypeEnumerationValueArgs{ Synonyms: pulumi.StringArray{ pulumi.String("Lirium"), pulumi.String("Martagon"), }, Value: pulumi.String("lilies"), }, &lex.SlotTypeEnumerationValueArgs{ Synonyms: pulumi.StringArray{ pulumi.String("Eduardoregelia"), pulumi.String("Podonix"), }, Value: pulumi.String("tulips"), }, }, ValueSelectionStrategy: pulumi.String("ORIGINAL_VALUE"), }) if err != nil { return err } return nil }) }
```
func GetSlotType ¶
func GetSlotType(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SlotTypeState, opts ...pulumi.ResourceOption) (*SlotType, error)
GetSlotType gets an existing SlotType resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSlotType ¶
func NewSlotType(ctx *pulumi.Context, name string, args *SlotTypeArgs, opts ...pulumi.ResourceOption) (*SlotType, error)
NewSlotType registers a new resource with the given unique name, arguments, and options.
type SlotTypeArgs ¶
type SlotTypeArgs struct { // Determines if a new slot type version is created when the initial resource is created and on each // update. Defaults to true. CreateVersion pulumi.BoolPtrInput // A description of the slot type. Description pulumi.StringPtrInput // 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. EnumerationValues SlotTypeEnumerationValueArrayInput // The name of the slot type. The name is not case sensitive. Name pulumi.StringPtrInput // 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. ValueSelectionStrategy pulumi.StringPtrInput }
The set of arguments for constructing a SlotType resource.
func (SlotTypeArgs) ElementType ¶
func (SlotTypeArgs) ElementType() reflect.Type
type SlotTypeEnumerationValueArgs ¶
type SlotTypeEnumerationValueArgs struct { // Additional values related to the slot type value. Synonyms pulumi.StringArrayInput `pulumi:"synonyms"` // The value of the slot type. Value pulumi.StringInput `pulumi:"value"` }
func (SlotTypeEnumerationValueArgs) ElementType ¶
func (SlotTypeEnumerationValueArgs) ElementType() reflect.Type
func (SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutput ¶
func (i SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutput() SlotTypeEnumerationValueOutput
func (SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutputWithContext ¶
func (i SlotTypeEnumerationValueArgs) ToSlotTypeEnumerationValueOutputWithContext(ctx context.Context) SlotTypeEnumerationValueOutput
type SlotTypeEnumerationValueArray ¶
type SlotTypeEnumerationValueArray []SlotTypeEnumerationValueInput
func (SlotTypeEnumerationValueArray) ElementType ¶
func (SlotTypeEnumerationValueArray) ElementType() reflect.Type
func (SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutput ¶
func (i SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutput() SlotTypeEnumerationValueArrayOutput
func (SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutputWithContext ¶
func (i SlotTypeEnumerationValueArray) ToSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) SlotTypeEnumerationValueArrayOutput
type SlotTypeEnumerationValueArrayInput ¶
type SlotTypeEnumerationValueArrayInput interface { pulumi.Input ToSlotTypeEnumerationValueArrayOutput() SlotTypeEnumerationValueArrayOutput ToSlotTypeEnumerationValueArrayOutputWithContext(context.Context) SlotTypeEnumerationValueArrayOutput }
SlotTypeEnumerationValueArrayInput is an input type that accepts SlotTypeEnumerationValueArray and SlotTypeEnumerationValueArrayOutput values. You can construct a concrete instance of `SlotTypeEnumerationValueArrayInput` via:
SlotTypeEnumerationValueArray{ SlotTypeEnumerationValueArgs{...} }
type SlotTypeEnumerationValueArrayOutput ¶
type SlotTypeEnumerationValueArrayOutput struct{ *pulumi.OutputState }
func (SlotTypeEnumerationValueArrayOutput) ElementType ¶
func (SlotTypeEnumerationValueArrayOutput) ElementType() reflect.Type
func (SlotTypeEnumerationValueArrayOutput) Index ¶
func (o SlotTypeEnumerationValueArrayOutput) Index(i pulumi.IntInput) SlotTypeEnumerationValueOutput
func (SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutput ¶
func (o SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutput() SlotTypeEnumerationValueArrayOutput
func (SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutputWithContext ¶
func (o SlotTypeEnumerationValueArrayOutput) ToSlotTypeEnumerationValueArrayOutputWithContext(ctx context.Context) SlotTypeEnumerationValueArrayOutput
type SlotTypeEnumerationValueInput ¶
type SlotTypeEnumerationValueInput interface { pulumi.Input ToSlotTypeEnumerationValueOutput() SlotTypeEnumerationValueOutput ToSlotTypeEnumerationValueOutputWithContext(context.Context) SlotTypeEnumerationValueOutput }
SlotTypeEnumerationValueInput is an input type that accepts SlotTypeEnumerationValueArgs and SlotTypeEnumerationValueOutput values. You can construct a concrete instance of `SlotTypeEnumerationValueInput` via:
SlotTypeEnumerationValueArgs{...}
type SlotTypeEnumerationValueOutput ¶
type SlotTypeEnumerationValueOutput struct{ *pulumi.OutputState }
func (SlotTypeEnumerationValueOutput) ElementType ¶
func (SlotTypeEnumerationValueOutput) ElementType() reflect.Type
func (SlotTypeEnumerationValueOutput) Synonyms ¶
func (o SlotTypeEnumerationValueOutput) Synonyms() pulumi.StringArrayOutput
Additional values related to the slot type value.
func (SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutput ¶
func (o SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutput() SlotTypeEnumerationValueOutput
func (SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutputWithContext ¶
func (o SlotTypeEnumerationValueOutput) ToSlotTypeEnumerationValueOutputWithContext(ctx context.Context) SlotTypeEnumerationValueOutput
func (SlotTypeEnumerationValueOutput) Value ¶
func (o SlotTypeEnumerationValueOutput) Value() pulumi.StringOutput
The value of the slot type.
type SlotTypeState ¶
type SlotTypeState struct { // 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. Checksum pulumi.StringPtrInput // Determines if a new slot type version is created when the initial resource is created and on each // update. Defaults to true. CreateVersion pulumi.BoolPtrInput // The date when the slot type version was created. CreatedDate pulumi.StringPtrInput // A description of the slot type. Description pulumi.StringPtrInput // 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. EnumerationValues SlotTypeEnumerationValueArrayInput // The date when the `$LATEST` version of this slot type was updated. LastUpdatedDate pulumi.StringPtrInput // The name of the slot type. The name is not case sensitive. Name pulumi.StringPtrInput // 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. ValueSelectionStrategy pulumi.StringPtrInput // The version of the slot type. Version pulumi.StringPtrInput }
func (SlotTypeState) ElementType ¶
func (SlotTypeState) ElementType() reflect.Type