lex

package
v3.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSlotTypeEnumerationValue

type GetSlotTypeEnumerationValue struct {
	Synonyms []string `pulumi:"synonyms"`
	Value    string   `pulumi:"value"`
}

type GetSlotTypeEnumerationValueArgs

type GetSlotTypeEnumerationValueArgs struct {
	Synonyms pulumi.StringArrayInput `pulumi:"synonyms"`
	Value    pulumi.StringInput      `pulumi:"value"`
}

func (GetSlotTypeEnumerationValueArgs) ElementType

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) 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) Index

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) Synonyms

func (GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutput

func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutput() GetSlotTypeEnumerationValueOutput

func (GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutputWithContext

func (o GetSlotTypeEnumerationValueOutput) ToGetSlotTypeEnumerationValueOutputWithContext(ctx context.Context) GetSlotTypeEnumerationValueOutput

func (GetSlotTypeEnumerationValueOutput) Value

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 SlotTypeEnumerationValue

type SlotTypeEnumerationValue struct {
	// Additional values related to the slot type value.
	Synonyms []string `pulumi:"synonyms"`
	// The value of the slot type.
	Value string `pulumi:"value"`
}

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) 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) 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) Index

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) Synonyms

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL