lexmodelbuildingservice

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package lexmodelbuildingservice provides the client and types for making API requests to Amazon Lex Model Building Service.

Amazon Lex is an AWS service for building conversational voice and text interfaces. Use these actions to create, update, and delete conversational bots for new and existing client applications.

See https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19 for more information on this service.

See lexmodelbuildingservice package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/lexmodelbuildingservice/

Using the Client

To Amazon Lex Model Building Service with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Lex Model Building Service client LexModelBuildingService for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/lexmodelbuildingservice/#New

Index

Examples

Constants

View Source
const (

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// The request is not well formed. For example, a value is invalid or a required
	// field is missing. Check the field values, and try again.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// There was a conflict processing the request. Try your request again.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalFailureException for service response error code
	// "InternalFailureException".
	//
	// An internal Amazon Lex error occurred. Try your request again.
	ErrCodeInternalFailureException = "InternalFailureException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The request exceeded a limit. Try your request again.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The resource specified in the request was not found. Check the resource and
	// try again.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodePreconditionFailedException for service response error code
	// "PreconditionFailedException".
	//
	// The checksum of the resource that you are trying to change does not match
	// the checksum in the request. Check the resource's checksum and try again.
	ErrCodePreconditionFailedException = "PreconditionFailedException"

	// ErrCodeResourceInUseException for service response error code
	// "ResourceInUseException".
	//
	// The resource that you are attempting to delete is referred to by another
	// resource. Use this information to remove references to the resource that
	// you are trying to delete.
	//
	// The body of the exception contains a JSON object that describes the resource.
	//
	// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
	//
	// "resourceReference": {
	//
	// "name": string, "version": string } }
	ErrCodeResourceInUseException = "ResourceInUseException"
)
View Source
const (
	ServiceName = "models.lex" // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName  // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BotAliasMetadata

type BotAliasMetadata struct {

	// The name of the bot to which the alias points.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// The version of the Amazon Lex bot to which the alias points.
	BotVersion *string `locationName:"botVersion" min:"1" type:"string"`

	// Checksum of the bot alias.
	Checksum *string `locationName:"checksum" type:"string"`

	// The date that the bot alias was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot alias.
	Description *string `locationName:"description" type:"string"`

	// The date that the bot alias was updated. When you create a resource, the
	// creation date and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the bot alias.
	Name *string `locationName:"name" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a bot alias. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BotAliasMetadata

func (BotAliasMetadata) GoString

func (s BotAliasMetadata) GoString() string

GoString returns the string representation

func (BotAliasMetadata) MarshalFields added in v0.3.0

func (s BotAliasMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BotAliasMetadata) String

func (s BotAliasMetadata) String() string

String returns the string representation

type BotChannelAssociation

type BotChannelAssociation struct {

	// An alias pointing to the specific version of the Amazon Lex bot to which
	// this association is being made.
	BotAlias *string `locationName:"botAlias" min:"1" type:"string"`

	// Provides information necessary to communicate with the messaging platform.
	BotConfiguration map[string]string `locationName:"botConfiguration" min:"1" type:"map"`

	// The name of the Amazon Lex bot to which this association is being made.
	//
	// Currently, Amazon Lex supports associations with Facebook and Slack, and
	// Twilio.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// The date that the association between the Amazon Lex bot and the channel
	// was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A text description of the association you are creating.
	Description *string `locationName:"description" type:"string"`

	// If status is FAILED, Amazon Lex provides the reason that it failed to create
	// the association.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The name of the association between the bot and the channel.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The status of the bot channel.
	//
	//    * CREATED - The channel has been created and is ready for use.
	//
	//    * IN_PROGRESS - Channel creation is in progress.
	//
	//    * FAILED - There was an error creating the channel. For information about
	//    the reason for the failure, see the failureReason field.
	Status ChannelStatus `locationName:"status" type:"string" enum:"true"`

	// Specifies the type of association by indicating the type of channel being
	// established between the Amazon Lex bot and the external messaging platform.
	Type ChannelType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Represents an association between an Amazon Lex bot and an external messaging platform. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BotChannelAssociation

func (BotChannelAssociation) GoString

func (s BotChannelAssociation) GoString() string

GoString returns the string representation

func (BotChannelAssociation) MarshalFields added in v0.3.0

func (s BotChannelAssociation) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BotChannelAssociation) String

func (s BotChannelAssociation) String() string

String returns the string representation

type BotMetadata

type BotMetadata struct {

	// The date that the bot was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot.
	Description *string `locationName:"description" type:"string"`

	// The date that the bot was updated. When you create a bot, the creation date
	// and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the bot.
	Name *string `locationName:"name" min:"2" type:"string"`

	// The status of the bot.
	Status Status `locationName:"status" type:"string" enum:"true"`

	// The version of the bot. For a new bot, the version is always $LATEST.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a bot. . Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BotMetadata

func (BotMetadata) GoString

func (s BotMetadata) GoString() string

GoString returns the string representation

func (BotMetadata) MarshalFields added in v0.3.0

func (s BotMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BotMetadata) String

func (s BotMetadata) String() string

String returns the string representation

type BuiltinIntentMetadata

type BuiltinIntentMetadata struct {

	// A unique identifier for the built-in intent. To find the signature for an
	// intent, see Standard Built-in Intents (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents)
	// in the Alexa Skills Kit.
	Signature *string `locationName:"signature" type:"string"`

	// A list of identifiers for the locales that the intent supports.
	SupportedLocales []Locale `locationName:"supportedLocales" type:"list"`
	// contains filtered or unexported fields
}

Provides metadata for a built-in intent. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BuiltinIntentMetadata

func (BuiltinIntentMetadata) GoString

func (s BuiltinIntentMetadata) GoString() string

GoString returns the string representation

func (BuiltinIntentMetadata) MarshalFields added in v0.3.0

func (s BuiltinIntentMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BuiltinIntentMetadata) String

func (s BuiltinIntentMetadata) String() string

String returns the string representation

type BuiltinIntentSlot

type BuiltinIntentSlot struct {

	// A list of the slots defined for the intent.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a slot used in a built-in intent. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BuiltinIntentSlot

func (BuiltinIntentSlot) GoString

func (s BuiltinIntentSlot) GoString() string

GoString returns the string representation

func (BuiltinIntentSlot) MarshalFields added in v0.3.0

func (s BuiltinIntentSlot) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BuiltinIntentSlot) String

func (s BuiltinIntentSlot) String() string

String returns the string representation

type BuiltinSlotTypeMetadata

type BuiltinSlotTypeMetadata struct {

	// A unique identifier for the built-in slot type. To find the signature for
	// a slot type, see Slot Type Reference (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-reference)
	// in the Alexa Skills Kit.
	Signature *string `locationName:"signature" type:"string"`

	// A list of target locales for the slot.
	SupportedLocales []Locale `locationName:"supportedLocales" type:"list"`
	// contains filtered or unexported fields
}

Provides information about a built in slot type. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BuiltinSlotTypeMetadata

func (BuiltinSlotTypeMetadata) GoString

func (s BuiltinSlotTypeMetadata) GoString() string

GoString returns the string representation

func (BuiltinSlotTypeMetadata) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BuiltinSlotTypeMetadata) String

func (s BuiltinSlotTypeMetadata) String() string

String returns the string representation

type ChannelStatus added in v0.2.0

type ChannelStatus string
const (
	ChannelStatusInProgress ChannelStatus = "IN_PROGRESS"
	ChannelStatusCreated    ChannelStatus = "CREATED"
	ChannelStatusFailed     ChannelStatus = "FAILED"
)

Enum values for ChannelStatus

func (ChannelStatus) MarshalValue added in v0.3.0

func (enum ChannelStatus) MarshalValue() (string, error)

func (ChannelStatus) MarshalValueBuf added in v0.3.0

func (enum ChannelStatus) MarshalValueBuf(b []byte) ([]byte, error)

type ChannelType

type ChannelType string
const (
	ChannelTypeFacebook  ChannelType = "Facebook"
	ChannelTypeSlack     ChannelType = "Slack"
	ChannelTypeTwilioSms ChannelType = "Twilio-Sms"
	ChannelTypeKik       ChannelType = "Kik"
)

Enum values for ChannelType

func (ChannelType) MarshalValue added in v0.3.0

func (enum ChannelType) MarshalValue() (string, error)

func (ChannelType) MarshalValueBuf added in v0.3.0

func (enum ChannelType) MarshalValueBuf(b []byte) ([]byte, error)

type CodeHook

type CodeHook struct {

	// The version of the request-response that you want Amazon Lex to use to invoke
	// your Lambda function. For more information, see using-lambda.
	//
	// MessageVersion is a required field
	MessageVersion *string `locationName:"messageVersion" min:"1" type:"string" required:"true"`

	// The Amazon Resource Name (ARN) of the Lambda function.
	//
	// Uri is a required field
	Uri *string `locationName:"uri" min:"20" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CodeHook

func (CodeHook) GoString

func (s CodeHook) GoString() string

GoString returns the string representation

func (CodeHook) MarshalFields added in v0.3.0

func (s CodeHook) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CodeHook) String

func (s CodeHook) String() string

String returns the string representation

func (*CodeHook) Validate

func (s *CodeHook) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ContentType

type ContentType string
const (
	ContentTypePlainText     ContentType = "PlainText"
	ContentTypeSsml          ContentType = "SSML"
	ContentTypeCustomPayload ContentType = "CustomPayload"
)

Enum values for ContentType

func (ContentType) MarshalValue added in v0.3.0

func (enum ContentType) MarshalValue() (string, error)

func (ContentType) MarshalValueBuf added in v0.3.0

func (enum ContentType) MarshalValueBuf(b []byte) ([]byte, error)

type CreateBotVersionInput

type CreateBotVersionInput struct {

	// Identifies a specific revision of the $LATEST version of the bot. If you
	// specify a checksum and the $LATEST version of the bot has a different checksum,
	// a PreconditionFailedException exception is returned and Amazon Lex doesn't
	// publish a new version. If you don't specify a checksum, Amazon Lex publishes
	// the $LATEST version.
	Checksum *string `locationName:"checksum" type:"string"`

	// The name of the bot that you want to create a new version of. The name is
	// case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersionRequest

func (CreateBotVersionInput) GoString

func (s CreateBotVersionInput) GoString() string

GoString returns the string representation

func (CreateBotVersionInput) MarshalFields added in v0.3.0

func (s CreateBotVersionInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateBotVersionInput) String

func (s CreateBotVersionInput) String() string

String returns the string representation

func (*CreateBotVersionInput) Validate

func (s *CreateBotVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateBotVersionOutput

type CreateBotVersionOutput struct {

	// The message that Amazon Lex uses to abort a conversation. For more information,
	// see PutBot.
	AbortStatement *Statement `locationName:"abortStatement" type:"structure"`

	// Checksum identifying the version of the bot that was created.
	Checksum *string `locationName:"checksum" type:"string"`

	// For each Amazon Lex bot created with the Amazon Lex Model Building Service,
	// you must specify whether your use of Amazon Lex is related to a website,
	// program, or other application that is directed or targeted, in whole or in
	// part, to children under age 13 and subject to the Children's Online Privacy
	// Protection Act (COPPA) by specifying true or false in the childDirected field.
	// By specifying true in the childDirected field, you confirm that your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA. By specifying false in the childDirected field, you confirm
	// that your use of Amazon Lex is not related to a website, program, or other
	// application that is directed or targeted, in whole or in part, to children
	// under age 13 and subject to COPPA. You may not specify a default value for
	// the childDirected field that does not accurately reflect whether your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA.
	//
	// If your use of Amazon Lex relates to a website, program, or other application
	// that is directed in whole or in part, to children under age 13, you must
	// obtain any required verifiable parental consent under COPPA. For information
	// regarding the use of Amazon Lex in connection with websites, programs, or
	// other applications that are directed or targeted, in whole or in part, to
	// children under age 13, see the Amazon Lex FAQ. (https://aws.amazon.com/lex/faqs#data-security)
	ChildDirected *bool `locationName:"childDirected" type:"boolean"`

	// The message that Amazon Lex uses when it doesn't understand the user's request.
	// For more information, see PutBot.
	ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`

	// The date when the bot version was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot.
	Description *string `locationName:"description" type:"string"`

	// If status is FAILED, Amazon Lex provides the reason that it failed to build
	// the bot.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The maximum time in seconds that Amazon Lex retains the data gathered in
	// a conversation. For more information, see PutBot.
	IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"`

	// An array of Intent objects. For more information, see PutBot.
	Intents []Intent `locationName:"intents" type:"list"`

	// The date when the $LATEST version of this bot was updated.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// Specifies the target locale for the bot.
	Locale Locale `locationName:"locale" type:"string" enum:"true"`

	// The name of the bot.
	Name *string `locationName:"name" min:"2" type:"string"`

	// When you send a request to create or update a bot, Amazon Lex sets the status
	// response element to BUILDING. After Amazon Lex builds the bot, it sets status
	// to READY. If Amazon Lex can't build the bot, it sets status to FAILED. Amazon
	// Lex returns the reason for the failure in the failureReason response element.
	Status Status `locationName:"status" type:"string" enum:"true"`

	// The version of the bot.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The Amazon Polly voice ID that Amazon Lex uses for voice interactions with
	// the user.
	VoiceId *string `locationName:"voiceId" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersionResponse

func (CreateBotVersionOutput) GoString

func (s CreateBotVersionOutput) GoString() string

GoString returns the string representation

func (CreateBotVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateBotVersionOutput) SDKResponseMetadata

func (s CreateBotVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateBotVersionOutput) String

func (s CreateBotVersionOutput) String() string

String returns the string representation

type CreateBotVersionRequest

type CreateBotVersionRequest struct {
	*aws.Request
	Input *CreateBotVersionInput
	Copy  func(*CreateBotVersionInput) CreateBotVersionRequest
}

CreateBotVersionRequest is a API request type for the CreateBotVersion API operation.

func (CreateBotVersionRequest) Send

Send marshals and sends the CreateBotVersion API request.

type CreateIntentVersionInput

type CreateIntentVersionInput struct {

	// Checksum of the $LATEST version of the intent that should be used to create
	// the new version. If you specify a checksum and the $LATEST version of the
	// intent has a different checksum, Amazon Lex returns a PreconditionFailedException
	// exception and doesn't publish a new version. If you don't specify a checksum,
	// Amazon Lex publishes the $LATEST version.
	Checksum *string `locationName:"checksum" type:"string"`

	// The name of the intent that you want to create a new version of. The name
	// is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersionRequest

func (CreateIntentVersionInput) GoString

func (s CreateIntentVersionInput) GoString() string

GoString returns the string representation

func (CreateIntentVersionInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateIntentVersionInput) String

func (s CreateIntentVersionInput) String() string

String returns the string representation

func (*CreateIntentVersionInput) Validate

func (s *CreateIntentVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateIntentVersionOutput

type CreateIntentVersionOutput struct {

	// Checksum of the intent version created.
	Checksum *string `locationName:"checksum" type:"string"`

	// After the Lambda function specified in the fulfillmentActivity field fulfills
	// the intent, Amazon Lex conveys this statement to the user.
	ConclusionStatement *Statement `locationName:"conclusionStatement" type:"structure"`

	// If defined, the prompt that Amazon Lex uses to confirm the user's intent
	// before fulfilling it.
	ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`

	// The date that the intent was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the intent.
	Description *string `locationName:"description" type:"string"`

	// If defined, Amazon Lex invokes this Lambda function for each user input.
	DialogCodeHook *CodeHook `locationName:"dialogCodeHook" type:"structure"`

	// If defined, Amazon Lex uses this prompt to solicit additional user activity
	// after the intent is fulfilled.
	FollowUpPrompt *FollowUpPrompt `locationName:"followUpPrompt" type:"structure"`

	// Describes how the intent is fulfilled.
	FulfillmentActivity *FulfillmentActivity `locationName:"fulfillmentActivity" type:"structure"`

	// The date that the intent was updated.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the intent.
	Name *string `locationName:"name" min:"1" type:"string"`

	// A unique identifier for a built-in intent.
	ParentIntentSignature *string `locationName:"parentIntentSignature" type:"string"`

	// If the user answers "no" to the question defined in confirmationPrompt, Amazon
	// Lex responds with this statement to acknowledge that the intent was canceled.
	RejectionStatement *Statement `locationName:"rejectionStatement" type:"structure"`

	// An array of sample utterances configured for the intent.
	SampleUtterances []string `locationName:"sampleUtterances" type:"list"`

	// An array of slot types that defines the information required to fulfill the
	// intent.
	Slots []Slot `locationName:"slots" type:"list"`

	// The version number assigned to the new version of the intent.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersionResponse

func (CreateIntentVersionOutput) GoString

func (s CreateIntentVersionOutput) GoString() string

GoString returns the string representation

func (CreateIntentVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateIntentVersionOutput) SDKResponseMetadata

func (s CreateIntentVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateIntentVersionOutput) String

func (s CreateIntentVersionOutput) String() string

String returns the string representation

type CreateIntentVersionRequest

type CreateIntentVersionRequest struct {
	*aws.Request
	Input *CreateIntentVersionInput
	Copy  func(*CreateIntentVersionInput) CreateIntentVersionRequest
}

CreateIntentVersionRequest is a API request type for the CreateIntentVersion API operation.

func (CreateIntentVersionRequest) Send

Send marshals and sends the CreateIntentVersion API request.

type CreateSlotTypeVersionInput

type CreateSlotTypeVersionInput struct {

	// Checksum for the $LATEST version of the slot type that you want to publish.
	// If you specify a checksum and the $LATEST version of the slot type has a
	// different checksum, Amazon Lex returns a PreconditionFailedException exception
	// and doesn't publish the new version. If you don't specify a checksum, Amazon
	// Lex publishes the $LATEST version.
	Checksum *string `locationName:"checksum" type:"string"`

	// The name of the slot type that you want to create a new version for. The
	// name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateSlotTypeVersionRequest

func (CreateSlotTypeVersionInput) GoString

func (s CreateSlotTypeVersionInput) GoString() string

GoString returns the string representation

func (CreateSlotTypeVersionInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateSlotTypeVersionInput) String

String returns the string representation

func (*CreateSlotTypeVersionInput) Validate

func (s *CreateSlotTypeVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateSlotTypeVersionOutput

type CreateSlotTypeVersionOutput struct {

	// Checksum of the $LATEST version of the slot type.
	Checksum *string `locationName:"checksum" type:"string"`

	// The date that the slot type was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the slot type.
	Description *string `locationName:"description" type:"string"`

	// A list of EnumerationValue objects that defines the values that the slot
	// type can take.
	EnumerationValues []EnumerationValue `locationName:"enumerationValues" min:"1" type:"list"`

	// The date that the slot type was updated. When you create a resource, the
	// creation date and last update date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the slot type.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The strategy that Amazon Lex uses to determine the value of the slot. For
	// more information, see PutSlotType.
	ValueSelectionStrategy SlotValueSelectionStrategy `locationName:"valueSelectionStrategy" type:"string" enum:"true"`

	// The version assigned to the new slot type version.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateSlotTypeVersionResponse

func (CreateSlotTypeVersionOutput) GoString

func (s CreateSlotTypeVersionOutput) GoString() string

GoString returns the string representation

func (CreateSlotTypeVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateSlotTypeVersionOutput) SDKResponseMetadata

func (s CreateSlotTypeVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateSlotTypeVersionOutput) String

String returns the string representation

type CreateSlotTypeVersionRequest

type CreateSlotTypeVersionRequest struct {
	*aws.Request
	Input *CreateSlotTypeVersionInput
	Copy  func(*CreateSlotTypeVersionInput) CreateSlotTypeVersionRequest
}

CreateSlotTypeVersionRequest is a API request type for the CreateSlotTypeVersion API operation.

func (CreateSlotTypeVersionRequest) Send

Send marshals and sends the CreateSlotTypeVersion API request.

type DeleteBotAliasInput

type DeleteBotAliasInput struct {

	// The name of the bot that the alias points to.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The name of the alias to delete. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotAliasRequest

func (DeleteBotAliasInput) GoString

func (s DeleteBotAliasInput) GoString() string

GoString returns the string representation

func (DeleteBotAliasInput) MarshalFields added in v0.3.0

func (s DeleteBotAliasInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotAliasInput) String

func (s DeleteBotAliasInput) String() string

String returns the string representation

func (*DeleteBotAliasInput) Validate

func (s *DeleteBotAliasInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteBotAliasOutput

type DeleteBotAliasOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotAliasOutput

func (DeleteBotAliasOutput) GoString

func (s DeleteBotAliasOutput) GoString() string

GoString returns the string representation

func (DeleteBotAliasOutput) MarshalFields added in v0.3.0

func (s DeleteBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotAliasOutput) SDKResponseMetadata

func (s DeleteBotAliasOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteBotAliasOutput) String

func (s DeleteBotAliasOutput) String() string

String returns the string representation

type DeleteBotAliasRequest

type DeleteBotAliasRequest struct {
	*aws.Request
	Input *DeleteBotAliasInput
	Copy  func(*DeleteBotAliasInput) DeleteBotAliasRequest
}

DeleteBotAliasRequest is a API request type for the DeleteBotAlias API operation.

func (DeleteBotAliasRequest) Send

Send marshals and sends the DeleteBotAlias API request.

type DeleteBotChannelAssociationInput

type DeleteBotChannelAssociationInput struct {

	// An alias that points to the specific version of the Amazon Lex bot to which
	// this association is being made.
	//
	// BotAlias is a required field
	BotAlias *string `location:"uri" locationName:"aliasName" min:"1" type:"string" required:"true"`

	// The name of the Amazon Lex bot.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The name of the association. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotChannelAssociationRequest

func (DeleteBotChannelAssociationInput) GoString

GoString returns the string representation

func (DeleteBotChannelAssociationInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotChannelAssociationInput) String

String returns the string representation

func (*DeleteBotChannelAssociationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DeleteBotChannelAssociationOutput

type DeleteBotChannelAssociationOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotChannelAssociationOutput

func (DeleteBotChannelAssociationOutput) GoString

GoString returns the string representation

func (DeleteBotChannelAssociationOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotChannelAssociationOutput) SDKResponseMetadata

func (s DeleteBotChannelAssociationOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteBotChannelAssociationOutput) String

String returns the string representation

type DeleteBotChannelAssociationRequest

type DeleteBotChannelAssociationRequest struct {
	*aws.Request
	Input *DeleteBotChannelAssociationInput
	Copy  func(*DeleteBotChannelAssociationInput) DeleteBotChannelAssociationRequest
}

DeleteBotChannelAssociationRequest is a API request type for the DeleteBotChannelAssociation API operation.

func (DeleteBotChannelAssociationRequest) Send

Send marshals and sends the DeleteBotChannelAssociation API request.

type DeleteBotInput

type DeleteBotInput struct {

	// The name of the bot. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotRequest

func (DeleteBotInput) GoString

func (s DeleteBotInput) GoString() string

GoString returns the string representation

func (DeleteBotInput) MarshalFields added in v0.3.0

func (s DeleteBotInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotInput) String

func (s DeleteBotInput) String() string

String returns the string representation

func (*DeleteBotInput) Validate

func (s *DeleteBotInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteBotOutput

type DeleteBotOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotOutput

func (DeleteBotOutput) GoString

func (s DeleteBotOutput) GoString() string

GoString returns the string representation

func (DeleteBotOutput) MarshalFields added in v0.3.0

func (s DeleteBotOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotOutput) SDKResponseMetadata

func (s DeleteBotOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteBotOutput) String

func (s DeleteBotOutput) String() string

String returns the string representation

type DeleteBotRequest

type DeleteBotRequest struct {
	*aws.Request
	Input *DeleteBotInput
	Copy  func(*DeleteBotInput) DeleteBotRequest
}

DeleteBotRequest is a API request type for the DeleteBot API operation.

func (DeleteBotRequest) Send

func (r DeleteBotRequest) Send() (*DeleteBotOutput, error)

Send marshals and sends the DeleteBot API request.

type DeleteBotVersionInput

type DeleteBotVersionInput struct {

	// The name of the bot.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`

	// The version of the bot to delete. You cannot delete the $LATEST version of
	// the bot. To delete the $LATEST version, use the DeleteBot operation.
	//
	// Version is a required field
	Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersionRequest

func (DeleteBotVersionInput) GoString

func (s DeleteBotVersionInput) GoString() string

GoString returns the string representation

func (DeleteBotVersionInput) MarshalFields added in v0.3.0

func (s DeleteBotVersionInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotVersionInput) String

func (s DeleteBotVersionInput) String() string

String returns the string representation

func (*DeleteBotVersionInput) Validate

func (s *DeleteBotVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteBotVersionOutput

type DeleteBotVersionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersionOutput

func (DeleteBotVersionOutput) GoString

func (s DeleteBotVersionOutput) GoString() string

GoString returns the string representation

func (DeleteBotVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteBotVersionOutput) SDKResponseMetadata

func (s DeleteBotVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteBotVersionOutput) String

func (s DeleteBotVersionOutput) String() string

String returns the string representation

type DeleteBotVersionRequest

type DeleteBotVersionRequest struct {
	*aws.Request
	Input *DeleteBotVersionInput
	Copy  func(*DeleteBotVersionInput) DeleteBotVersionRequest
}

DeleteBotVersionRequest is a API request type for the DeleteBotVersion API operation.

func (DeleteBotVersionRequest) Send

Send marshals and sends the DeleteBotVersion API request.

type DeleteIntentInput

type DeleteIntentInput struct {

	// The name of the intent. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentRequest

func (DeleteIntentInput) GoString

func (s DeleteIntentInput) GoString() string

GoString returns the string representation

func (DeleteIntentInput) MarshalFields added in v0.3.0

func (s DeleteIntentInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteIntentInput) String

func (s DeleteIntentInput) String() string

String returns the string representation

func (*DeleteIntentInput) Validate

func (s *DeleteIntentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteIntentOutput

type DeleteIntentOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentOutput

func (DeleteIntentOutput) GoString

func (s DeleteIntentOutput) GoString() string

GoString returns the string representation

func (DeleteIntentOutput) MarshalFields added in v0.3.0

func (s DeleteIntentOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteIntentOutput) SDKResponseMetadata

func (s DeleteIntentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteIntentOutput) String

func (s DeleteIntentOutput) String() string

String returns the string representation

type DeleteIntentRequest

type DeleteIntentRequest struct {
	*aws.Request
	Input *DeleteIntentInput
	Copy  func(*DeleteIntentInput) DeleteIntentRequest
}

DeleteIntentRequest is a API request type for the DeleteIntent API operation.

func (DeleteIntentRequest) Send

Send marshals and sends the DeleteIntent API request.

type DeleteIntentVersionInput

type DeleteIntentVersionInput struct {

	// The name of the intent.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// The version of the intent to delete. You cannot delete the $LATEST version
	// of the intent. To delete the $LATEST version, use the DeleteIntent operation.
	//
	// Version is a required field
	Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersionRequest

func (DeleteIntentVersionInput) GoString

func (s DeleteIntentVersionInput) GoString() string

GoString returns the string representation

func (DeleteIntentVersionInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteIntentVersionInput) String

func (s DeleteIntentVersionInput) String() string

String returns the string representation

func (*DeleteIntentVersionInput) Validate

func (s *DeleteIntentVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteIntentVersionOutput

type DeleteIntentVersionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersionOutput

func (DeleteIntentVersionOutput) GoString

func (s DeleteIntentVersionOutput) GoString() string

GoString returns the string representation

func (DeleteIntentVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteIntentVersionOutput) SDKResponseMetadata

func (s DeleteIntentVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteIntentVersionOutput) String

func (s DeleteIntentVersionOutput) String() string

String returns the string representation

type DeleteIntentVersionRequest

type DeleteIntentVersionRequest struct {
	*aws.Request
	Input *DeleteIntentVersionInput
	Copy  func(*DeleteIntentVersionInput) DeleteIntentVersionRequest
}

DeleteIntentVersionRequest is a API request type for the DeleteIntentVersion API operation.

func (DeleteIntentVersionRequest) Send

Send marshals and sends the DeleteIntentVersion API request.

type DeleteSlotTypeInput

type DeleteSlotTypeInput struct {

	// The name of the slot type. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeRequest

func (DeleteSlotTypeInput) GoString

func (s DeleteSlotTypeInput) GoString() string

GoString returns the string representation

func (DeleteSlotTypeInput) MarshalFields added in v0.3.0

func (s DeleteSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteSlotTypeInput) String

func (s DeleteSlotTypeInput) String() string

String returns the string representation

func (*DeleteSlotTypeInput) Validate

func (s *DeleteSlotTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSlotTypeOutput

type DeleteSlotTypeOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeOutput

func (DeleteSlotTypeOutput) GoString

func (s DeleteSlotTypeOutput) GoString() string

GoString returns the string representation

func (DeleteSlotTypeOutput) MarshalFields added in v0.3.0

func (s DeleteSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteSlotTypeOutput) SDKResponseMetadata

func (s DeleteSlotTypeOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteSlotTypeOutput) String

func (s DeleteSlotTypeOutput) String() string

String returns the string representation

type DeleteSlotTypeRequest

type DeleteSlotTypeRequest struct {
	*aws.Request
	Input *DeleteSlotTypeInput
	Copy  func(*DeleteSlotTypeInput) DeleteSlotTypeRequest
}

DeleteSlotTypeRequest is a API request type for the DeleteSlotType API operation.

func (DeleteSlotTypeRequest) Send

Send marshals and sends the DeleteSlotType API request.

type DeleteSlotTypeVersionInput

type DeleteSlotTypeVersionInput struct {

	// The name of the slot type.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// The version of the slot type to delete. You cannot delete the $LATEST version
	// of the slot type. To delete the $LATEST version, use the DeleteSlotType operation.
	//
	// Version is a required field
	Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersionRequest

func (DeleteSlotTypeVersionInput) GoString

func (s DeleteSlotTypeVersionInput) GoString() string

GoString returns the string representation

func (DeleteSlotTypeVersionInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteSlotTypeVersionInput) String

String returns the string representation

func (*DeleteSlotTypeVersionInput) Validate

func (s *DeleteSlotTypeVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSlotTypeVersionOutput

type DeleteSlotTypeVersionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersionOutput

func (DeleteSlotTypeVersionOutput) GoString

func (s DeleteSlotTypeVersionOutput) GoString() string

GoString returns the string representation

func (DeleteSlotTypeVersionOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteSlotTypeVersionOutput) SDKResponseMetadata

func (s DeleteSlotTypeVersionOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteSlotTypeVersionOutput) String

String returns the string representation

type DeleteSlotTypeVersionRequest

type DeleteSlotTypeVersionRequest struct {
	*aws.Request
	Input *DeleteSlotTypeVersionInput
	Copy  func(*DeleteSlotTypeVersionInput) DeleteSlotTypeVersionRequest
}

DeleteSlotTypeVersionRequest is a API request type for the DeleteSlotTypeVersion API operation.

func (DeleteSlotTypeVersionRequest) Send

Send marshals and sends the DeleteSlotTypeVersion API request.

type DeleteUtterancesInput

type DeleteUtterancesInput struct {

	// The name of the bot that stored the utterances.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The unique identifier for the user that made the utterances. This is the
	// user ID that was sent in the PostContent (http://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html)
	// or PostText (http://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html)
	// operation request that contained the utterance.
	//
	// UserId is a required field
	UserId *string `location:"uri" locationName:"userId" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteUtterancesRequest

func (DeleteUtterancesInput) GoString

func (s DeleteUtterancesInput) GoString() string

GoString returns the string representation

func (DeleteUtterancesInput) MarshalFields added in v0.3.0

func (s DeleteUtterancesInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteUtterancesInput) String

func (s DeleteUtterancesInput) String() string

String returns the string representation

func (*DeleteUtterancesInput) Validate

func (s *DeleteUtterancesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteUtterancesOutput

type DeleteUtterancesOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteUtterancesOutput

func (DeleteUtterancesOutput) GoString

func (s DeleteUtterancesOutput) GoString() string

GoString returns the string representation

func (DeleteUtterancesOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteUtterancesOutput) SDKResponseMetadata

func (s DeleteUtterancesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteUtterancesOutput) String

func (s DeleteUtterancesOutput) String() string

String returns the string representation

type DeleteUtterancesRequest

type DeleteUtterancesRequest struct {
	*aws.Request
	Input *DeleteUtterancesInput
	Copy  func(*DeleteUtterancesInput) DeleteUtterancesRequest
}

DeleteUtterancesRequest is a API request type for the DeleteUtterances API operation.

func (DeleteUtterancesRequest) Send

Send marshals and sends the DeleteUtterances API request.

type EnumerationValue

type EnumerationValue struct {

	// Additional values related to the slot type value.
	Synonyms []string `locationName:"synonyms" type:"list"`

	// The value of the slot type.
	//
	// Value is a required field
	Value *string `locationName:"value" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Each slot type can have a set of values. Each enumeration value represents a value the slot type can take.

For example, a pizza ordering bot could have a slot type that specifies the type of crust that the pizza should have. The slot type could include the values

  • thick

  • thin

  • stuffed

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/EnumerationValue

func (EnumerationValue) GoString

func (s EnumerationValue) GoString() string

GoString returns the string representation

func (EnumerationValue) MarshalFields added in v0.3.0

func (s EnumerationValue) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (EnumerationValue) String

func (s EnumerationValue) String() string

String returns the string representation

func (*EnumerationValue) Validate

func (s *EnumerationValue) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExportStatus

type ExportStatus string
const (
	ExportStatusInProgress ExportStatus = "IN_PROGRESS"
	ExportStatusReady      ExportStatus = "READY"
	ExportStatusFailed     ExportStatus = "FAILED"
)

Enum values for ExportStatus

func (ExportStatus) MarshalValue added in v0.3.0

func (enum ExportStatus) MarshalValue() (string, error)

func (ExportStatus) MarshalValueBuf added in v0.3.0

func (enum ExportStatus) MarshalValueBuf(b []byte) ([]byte, error)

type ExportType

type ExportType string
const (
	ExportTypeAlexaSkillsKit ExportType = "ALEXA_SKILLS_KIT"
	ExportTypeLex            ExportType = "LEX"
)

Enum values for ExportType

func (ExportType) MarshalValue added in v0.3.0

func (enum ExportType) MarshalValue() (string, error)

func (ExportType) MarshalValueBuf added in v0.3.0

func (enum ExportType) MarshalValueBuf(b []byte) ([]byte, error)

type FollowUpPrompt

type FollowUpPrompt struct {

	// Prompts for information from the user.
	//
	// Prompt is a required field
	Prompt *Prompt `locationName:"prompt" type:"structure" required:"true"`

	// If the user answers "no" to the question defined in the prompt field, Amazon
	// Lex responds with this statement to acknowledge that the intent was canceled.
	//
	// RejectionStatement is a required field
	RejectionStatement *Statement `locationName:"rejectionStatement" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

A prompt for additional activity after an intent is fulfilled. For example, after the OrderPizza intent is fulfilled, you might prompt the user to find out whether the user wants to order drinks. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/FollowUpPrompt

func (FollowUpPrompt) GoString

func (s FollowUpPrompt) GoString() string

GoString returns the string representation

func (FollowUpPrompt) MarshalFields added in v0.3.0

func (s FollowUpPrompt) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (FollowUpPrompt) String

func (s FollowUpPrompt) String() string

String returns the string representation

func (*FollowUpPrompt) Validate

func (s *FollowUpPrompt) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type FulfillmentActivity

type FulfillmentActivity struct {

	// A description of the Lambda function that is run to fulfill the intent.
	CodeHook *CodeHook `locationName:"codeHook" type:"structure"`

	// How the intent should be fulfilled, either by running a Lambda function or
	// by returning the slot data to the client application.
	//
	// Type is a required field
	Type FulfillmentActivityType `locationName:"type" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Describes how the intent is fulfilled after the user provides all of the information required for the intent. You can provide a Lambda function to process the intent, or you can return the intent information to the client application. We recommend that you use a Lambda function so that the relevant logic lives in the Cloud and limit the client-side code primarily to presentation. If you need to update the logic, you only update the Lambda function; you don't need to upgrade your client application.

Consider the following examples:

  • In a pizza ordering application, after the user provides all of the information for placing an order, you use a Lambda function to place an order with a pizzeria.

  • In a gaming application, when a user says "pick up a rock," this information must go back to the client application so that it can perform the operation and update the graphics. In this case, you want Amazon Lex to return the intent data to the client.

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/FulfillmentActivity

func (FulfillmentActivity) GoString

func (s FulfillmentActivity) GoString() string

GoString returns the string representation

func (FulfillmentActivity) MarshalFields added in v0.3.0

func (s FulfillmentActivity) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (FulfillmentActivity) String

func (s FulfillmentActivity) String() string

String returns the string representation

func (*FulfillmentActivity) Validate

func (s *FulfillmentActivity) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type FulfillmentActivityType

type FulfillmentActivityType string
const (
	FulfillmentActivityTypeReturnIntent FulfillmentActivityType = "ReturnIntent"
	FulfillmentActivityTypeCodeHook     FulfillmentActivityType = "CodeHook"
)

Enum values for FulfillmentActivityType

func (FulfillmentActivityType) MarshalValue added in v0.3.0

func (enum FulfillmentActivityType) MarshalValue() (string, error)

func (FulfillmentActivityType) MarshalValueBuf added in v0.3.0

func (enum FulfillmentActivityType) MarshalValueBuf(b []byte) ([]byte, error)

type GetBotAliasInput

type GetBotAliasInput struct {

	// The name of the bot.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The name of the bot alias. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAliasRequest

func (GetBotAliasInput) GoString

func (s GetBotAliasInput) GoString() string

GoString returns the string representation

func (GetBotAliasInput) MarshalFields added in v0.3.0

func (s GetBotAliasInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotAliasInput) String

func (s GetBotAliasInput) String() string

String returns the string representation

func (*GetBotAliasInput) Validate

func (s *GetBotAliasInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotAliasOutput

type GetBotAliasOutput struct {

	// The name of the bot that the alias points to.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// The version of the bot that the alias points to.
	BotVersion *string `locationName:"botVersion" min:"1" type:"string"`

	// Checksum of the bot alias.
	Checksum *string `locationName:"checksum" type:"string"`

	// The date that the bot alias was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot alias.
	Description *string `locationName:"description" type:"string"`

	// The date that the bot alias was updated. When you create a resource, the
	// creation date and the last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the bot alias.
	Name *string `locationName:"name" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAliasResponse

func (GetBotAliasOutput) GoString

func (s GetBotAliasOutput) GoString() string

GoString returns the string representation

func (GetBotAliasOutput) MarshalFields added in v0.3.0

func (s GetBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotAliasOutput) SDKResponseMetadata

func (s GetBotAliasOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotAliasOutput) String

func (s GetBotAliasOutput) String() string

String returns the string representation

type GetBotAliasRequest

type GetBotAliasRequest struct {
	*aws.Request
	Input *GetBotAliasInput
	Copy  func(*GetBotAliasInput) GetBotAliasRequest
}

GetBotAliasRequest is a API request type for the GetBotAlias API operation.

func (GetBotAliasRequest) Send

Send marshals and sends the GetBotAlias API request.

type GetBotAliasesInput

type GetBotAliasesInput struct {

	// The name of the bot.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The maximum number of aliases to return in the response. The default is 50.
	// .
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Substring to match in bot alias names. An alias will be returned if any part
	// of its name matches the substring. For example, "xyz" matches both "xyzabc"
	// and "abcxyz."
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// A pagination token for fetching the next page of aliases. If the response
	// to this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of aliases, specify the pagination token in the next
	// request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAliasesRequest

func (GetBotAliasesInput) GoString

func (s GetBotAliasesInput) GoString() string

GoString returns the string representation

func (GetBotAliasesInput) MarshalFields added in v0.3.0

func (s GetBotAliasesInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotAliasesInput) String

func (s GetBotAliasesInput) String() string

String returns the string representation

func (*GetBotAliasesInput) Validate

func (s *GetBotAliasesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotAliasesOutput

type GetBotAliasesOutput struct {

	// An array of BotAliasMetadata objects, each describing a bot alias.
	BotAliases []BotAliasMetadata `type:"list"`

	// A pagination token for fetching next page of aliases. If the response to
	// this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of aliases, specify the pagination token in the next
	// request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAliasesResponse

func (GetBotAliasesOutput) GoString

func (s GetBotAliasesOutput) GoString() string

GoString returns the string representation

func (GetBotAliasesOutput) MarshalFields added in v0.3.0

func (s GetBotAliasesOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotAliasesOutput) SDKResponseMetadata

func (s GetBotAliasesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotAliasesOutput) String

func (s GetBotAliasesOutput) String() string

String returns the string representation

type GetBotAliasesPager added in v0.3.0

type GetBotAliasesPager struct {
	aws.Pager
}

GetBotAliasesPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBotAliasesPager) CurrentPage added in v0.3.0

func (p *GetBotAliasesPager) CurrentPage() *GetBotAliasesOutput

type GetBotAliasesRequest

type GetBotAliasesRequest struct {
	*aws.Request
	Input *GetBotAliasesInput
	Copy  func(*GetBotAliasesInput) GetBotAliasesRequest
}

GetBotAliasesRequest is a API request type for the GetBotAliases API operation.

func (*GetBotAliasesRequest) Paginate added in v0.3.0

func (p *GetBotAliasesRequest) Paginate(opts ...aws.Option) GetBotAliasesPager

Paginate pages iterates over the pages of a GetBotAliasesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBotAliases operation.
		req := client.GetBotAliasesRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBotAliasesRequest) Send

Send marshals and sends the GetBotAliases API request.

type GetBotChannelAssociationInput

type GetBotChannelAssociationInput struct {

	// An alias pointing to the specific version of the Amazon Lex bot to which
	// this association is being made.
	//
	// BotAlias is a required field
	BotAlias *string `location:"uri" locationName:"aliasName" min:"1" type:"string" required:"true"`

	// The name of the Amazon Lex bot.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The name of the association between the bot and the channel. The name is
	// case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociationRequest

func (GetBotChannelAssociationInput) GoString

GoString returns the string representation

func (GetBotChannelAssociationInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotChannelAssociationInput) String

String returns the string representation

func (*GetBotChannelAssociationInput) Validate

func (s *GetBotChannelAssociationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotChannelAssociationOutput

type GetBotChannelAssociationOutput struct {

	// An alias pointing to the specific version of the Amazon Lex bot to which
	// this association is being made.
	BotAlias *string `locationName:"botAlias" min:"1" type:"string"`

	// Provides information that the messaging platform needs to communicate with
	// the Amazon Lex bot.
	BotConfiguration map[string]string `locationName:"botConfiguration" min:"1" type:"map"`

	// The name of the Amazon Lex bot.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// The date that the association between the bot and the channel was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the association between the bot and the channel.
	Description *string `locationName:"description" type:"string"`

	// If status is FAILED, Amazon Lex provides the reason that it failed to create
	// the association.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The name of the association between the bot and the channel.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The status of the bot channel.
	//
	//    * CREATED - The channel has been created and is ready for use.
	//
	//    * IN_PROGRESS - Channel creation is in progress.
	//
	//    * FAILED - There was an error creating the channel. For information about
	//    the reason for the failure, see the failureReason field.
	Status ChannelStatus `locationName:"status" type:"string" enum:"true"`

	// The type of the messaging platform.
	Type ChannelType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociationResponse

func (GetBotChannelAssociationOutput) GoString

GoString returns the string representation

func (GetBotChannelAssociationOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotChannelAssociationOutput) SDKResponseMetadata

func (s GetBotChannelAssociationOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotChannelAssociationOutput) String

String returns the string representation

type GetBotChannelAssociationRequest

type GetBotChannelAssociationRequest struct {
	*aws.Request
	Input *GetBotChannelAssociationInput
	Copy  func(*GetBotChannelAssociationInput) GetBotChannelAssociationRequest
}

GetBotChannelAssociationRequest is a API request type for the GetBotChannelAssociation API operation.

func (GetBotChannelAssociationRequest) Send

Send marshals and sends the GetBotChannelAssociation API request.

type GetBotChannelAssociationsInput

type GetBotChannelAssociationsInput struct {

	// An alias pointing to the specific version of the Amazon Lex bot to which
	// this association is being made.
	//
	// BotAlias is a required field
	BotAlias *string `location:"uri" locationName:"aliasName" min:"1" type:"string" required:"true"`

	// The name of the Amazon Lex bot in the association.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The maximum number of associations to return in the response. The default
	// is 50.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Substring to match in channel association names. An association will be returned
	// if any part of its name matches the substring. For example, "xyz" matches
	// both "xyzabc" and "abcxyz." To return all bot channel associations, use a
	// hyphen ("-") as the nameContains parameter.
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// A pagination token for fetching the next page of associations. If the response
	// to this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of associations, specify the pagination token in the
	// next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociationsRequest

func (GetBotChannelAssociationsInput) GoString

GoString returns the string representation

func (GetBotChannelAssociationsInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotChannelAssociationsInput) String

String returns the string representation

func (*GetBotChannelAssociationsInput) Validate

func (s *GetBotChannelAssociationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotChannelAssociationsOutput

type GetBotChannelAssociationsOutput struct {

	// An array of objects, one for each association, that provides information
	// about the Amazon Lex bot and its association with the channel.
	BotChannelAssociations []BotChannelAssociation `locationName:"botChannelAssociations" type:"list"`

	// A pagination token that fetches the next page of associations. If the response
	// to this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of associations, specify the pagination token in the
	// next request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociationsResponse

func (GetBotChannelAssociationsOutput) GoString

GoString returns the string representation

func (GetBotChannelAssociationsOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotChannelAssociationsOutput) SDKResponseMetadata

func (s GetBotChannelAssociationsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotChannelAssociationsOutput) String

String returns the string representation

type GetBotChannelAssociationsPager added in v0.3.0

type GetBotChannelAssociationsPager struct {
	aws.Pager
}

GetBotChannelAssociationsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBotChannelAssociationsPager) CurrentPage added in v0.3.0

type GetBotChannelAssociationsRequest

type GetBotChannelAssociationsRequest struct {
	*aws.Request
	Input *GetBotChannelAssociationsInput
	Copy  func(*GetBotChannelAssociationsInput) GetBotChannelAssociationsRequest
}

GetBotChannelAssociationsRequest is a API request type for the GetBotChannelAssociations API operation.

func (*GetBotChannelAssociationsRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a GetBotChannelAssociationsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBotChannelAssociations operation.
		req := client.GetBotChannelAssociationsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBotChannelAssociationsRequest) Send

Send marshals and sends the GetBotChannelAssociations API request.

type GetBotInput

type GetBotInput struct {

	// The name of the bot. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`

	// The version or alias of the bot.
	//
	// VersionOrAlias is a required field
	VersionOrAlias *string `location:"uri" locationName:"versionoralias" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotRequest

func (GetBotInput) GoString

func (s GetBotInput) GoString() string

GoString returns the string representation

func (GetBotInput) MarshalFields added in v0.3.0

func (s GetBotInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotInput) String

func (s GetBotInput) String() string

String returns the string representation

func (*GetBotInput) Validate

func (s *GetBotInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotOutput

type GetBotOutput struct {

	// The message that Amazon Lex returns when the user elects to end the conversation
	// without completing it. For more information, see PutBot.
	AbortStatement *Statement `locationName:"abortStatement" type:"structure"`

	// Checksum of the bot used to identify a specific revision of the bot's $LATEST
	// version.
	Checksum *string `locationName:"checksum" type:"string"`

	// For each Amazon Lex bot created with the Amazon Lex Model Building Service,
	// you must specify whether your use of Amazon Lex is related to a website,
	// program, or other application that is directed or targeted, in whole or in
	// part, to children under age 13 and subject to the Children's Online Privacy
	// Protection Act (COPPA) by specifying true or false in the childDirected field.
	// By specifying true in the childDirected field, you confirm that your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA. By specifying false in the childDirected field, you confirm
	// that your use of Amazon Lex is not related to a website, program, or other
	// application that is directed or targeted, in whole or in part, to children
	// under age 13 and subject to COPPA. You may not specify a default value for
	// the childDirected field that does not accurately reflect whether your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA.
	//
	// If your use of Amazon Lex relates to a website, program, or other application
	// that is directed in whole or in part, to children under age 13, you must
	// obtain any required verifiable parental consent under COPPA. For information
	// regarding the use of Amazon Lex in connection with websites, programs, or
	// other applications that are directed or targeted, in whole or in part, to
	// children under age 13, see the Amazon Lex FAQ. (https://aws.amazon.com/lex/faqs#data-security)
	ChildDirected *bool `locationName:"childDirected" type:"boolean"`

	// The message Amazon Lex uses when it doesn't understand the user's request.
	// For more information, see PutBot.
	ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`

	// The date that the bot was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot.
	Description *string `locationName:"description" type:"string"`

	// If status is FAILED, Amazon Lex explains why it failed to build the bot.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The maximum time in seconds that Amazon Lex retains the data gathered in
	// a conversation. For more information, see PutBot.
	IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"`

	// An array of intent objects. For more information, see PutBot.
	Intents []Intent `locationName:"intents" type:"list"`

	// The date that the bot was updated. When you create a resource, the creation
	// date and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The target locale for the bot.
	Locale Locale `locationName:"locale" type:"string" enum:"true"`

	// The name of the bot.
	Name *string `locationName:"name" min:"2" type:"string"`

	// The status of the bot. If the bot is ready to run, the status is READY. If
	// there was a problem with building the bot, the status is FAILED and the failureReason
	// explains why the bot did not build. If the bot was saved but not built, the
	// status is NOT BUILT.
	Status Status `locationName:"status" type:"string" enum:"true"`

	// The version of the bot. For a new bot, the version is always $LATEST.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The Amazon Polly voice ID that Amazon Lex uses for voice interaction with
	// the user. For more information, see PutBot.
	VoiceId *string `locationName:"voiceId" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotResponse

func (GetBotOutput) GoString

func (s GetBotOutput) GoString() string

GoString returns the string representation

func (GetBotOutput) MarshalFields added in v0.3.0

func (s GetBotOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotOutput) SDKResponseMetadata

func (s GetBotOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotOutput) String

func (s GetBotOutput) String() string

String returns the string representation

type GetBotRequest

type GetBotRequest struct {
	*aws.Request
	Input *GetBotInput
	Copy  func(*GetBotInput) GetBotRequest
}

GetBotRequest is a API request type for the GetBot API operation.

func (GetBotRequest) Send

func (r GetBotRequest) Send() (*GetBotOutput, error)

Send marshals and sends the GetBot API request.

type GetBotVersionsInput

type GetBotVersionsInput struct {

	// The maximum number of bot versions to return in the response. The default
	// is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// The name of the bot for which versions should be returned.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`

	// A pagination token for fetching the next page of bot versions. If the response
	// to this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of versions, specify the pagination token in the next
	// request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotVersionsRequest

func (GetBotVersionsInput) GoString

func (s GetBotVersionsInput) GoString() string

GoString returns the string representation

func (GetBotVersionsInput) MarshalFields added in v0.3.0

func (s GetBotVersionsInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotVersionsInput) String

func (s GetBotVersionsInput) String() string

String returns the string representation

func (*GetBotVersionsInput) Validate

func (s *GetBotVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotVersionsOutput

type GetBotVersionsOutput struct {

	// An array of BotMetadata objects, one for each numbered version of the bot
	// plus one for the $LATEST version.
	Bots []BotMetadata `locationName:"bots" type:"list"`

	// A pagination token for fetching the next page of bot versions. If the response
	// to this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of versions, specify the pagination token in the next
	// request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotVersionsResponse

func (GetBotVersionsOutput) GoString

func (s GetBotVersionsOutput) GoString() string

GoString returns the string representation

func (GetBotVersionsOutput) MarshalFields added in v0.3.0

func (s GetBotVersionsOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotVersionsOutput) SDKResponseMetadata

func (s GetBotVersionsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotVersionsOutput) String

func (s GetBotVersionsOutput) String() string

String returns the string representation

type GetBotVersionsPager added in v0.3.0

type GetBotVersionsPager struct {
	aws.Pager
}

GetBotVersionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBotVersionsPager) CurrentPage added in v0.3.0

func (p *GetBotVersionsPager) CurrentPage() *GetBotVersionsOutput

type GetBotVersionsRequest

type GetBotVersionsRequest struct {
	*aws.Request
	Input *GetBotVersionsInput
	Copy  func(*GetBotVersionsInput) GetBotVersionsRequest
}

GetBotVersionsRequest is a API request type for the GetBotVersions API operation.

func (*GetBotVersionsRequest) Paginate added in v0.3.0

func (p *GetBotVersionsRequest) Paginate(opts ...aws.Option) GetBotVersionsPager

Paginate pages iterates over the pages of a GetBotVersionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBotVersions operation.
		req := client.GetBotVersionsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBotVersionsRequest) Send

Send marshals and sends the GetBotVersions API request.

type GetBotsInput

type GetBotsInput struct {

	// The maximum number of bots to return in the response that the request will
	// return. The default is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Substring to match in bot names. A bot will be returned if any part of its
	// name matches the substring. For example, "xyz" matches both "xyzabc" and
	// "abcxyz."
	NameContains *string `location:"querystring" locationName:"nameContains" min:"2" type:"string"`

	// A pagination token that fetches the next page of bots. If the response to
	// this call is truncated, Amazon Lex returns a pagination token in the response.
	// To fetch the next page of bots, specify the pagination token in the next
	// request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotsRequest

func (GetBotsInput) GoString

func (s GetBotsInput) GoString() string

GoString returns the string representation

func (GetBotsInput) MarshalFields added in v0.3.0

func (s GetBotsInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotsInput) String

func (s GetBotsInput) String() string

String returns the string representation

func (*GetBotsInput) Validate

func (s *GetBotsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBotsOutput

type GetBotsOutput struct {

	// An array of botMetadata objects, with one entry for each bot.
	Bots []BotMetadata `locationName:"bots" type:"list"`

	// If the response is truncated, it includes a pagination token that you can
	// specify in your next request to fetch the next page of bots.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotsResponse

func (GetBotsOutput) GoString

func (s GetBotsOutput) GoString() string

GoString returns the string representation

func (GetBotsOutput) MarshalFields added in v0.3.0

func (s GetBotsOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBotsOutput) SDKResponseMetadata

func (s GetBotsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBotsOutput) String

func (s GetBotsOutput) String() string

String returns the string representation

type GetBotsPager added in v0.3.0

type GetBotsPager struct {
	aws.Pager
}

GetBotsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBotsPager) CurrentPage added in v0.3.0

func (p *GetBotsPager) CurrentPage() *GetBotsOutput

type GetBotsRequest

type GetBotsRequest struct {
	*aws.Request
	Input *GetBotsInput
	Copy  func(*GetBotsInput) GetBotsRequest
}

GetBotsRequest is a API request type for the GetBots API operation.

func (*GetBotsRequest) Paginate added in v0.3.0

func (p *GetBotsRequest) Paginate(opts ...aws.Option) GetBotsPager

Paginate pages iterates over the pages of a GetBotsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBots operation.
		req := client.GetBotsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBotsRequest) Send

func (r GetBotsRequest) Send() (*GetBotsOutput, error)

Send marshals and sends the GetBots API request.

type GetBuiltinIntentInput

type GetBuiltinIntentInput struct {

	// The unique identifier for a built-in intent. To find the signature for an
	// intent, see Standard Built-in Intents (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents)
	// in the Alexa Skills Kit.
	//
	// Signature is a required field
	Signature *string `location:"uri" locationName:"signature" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntentRequest

func (GetBuiltinIntentInput) GoString

func (s GetBuiltinIntentInput) GoString() string

GoString returns the string representation

func (GetBuiltinIntentInput) MarshalFields added in v0.3.0

func (s GetBuiltinIntentInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinIntentInput) String

func (s GetBuiltinIntentInput) String() string

String returns the string representation

func (*GetBuiltinIntentInput) Validate

func (s *GetBuiltinIntentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBuiltinIntentOutput

type GetBuiltinIntentOutput struct {

	// The unique identifier for a built-in intent.
	Signature *string `locationName:"signature" type:"string"`

	// An array of BuiltinIntentSlot objects, one entry for each slot type in the
	// intent.
	Slots []BuiltinIntentSlot `locationName:"slots" type:"list"`

	// A list of locales that the intent supports.
	SupportedLocales []Locale `locationName:"supportedLocales" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntentResponse

func (GetBuiltinIntentOutput) GoString

func (s GetBuiltinIntentOutput) GoString() string

GoString returns the string representation

func (GetBuiltinIntentOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinIntentOutput) SDKResponseMetadata

func (s GetBuiltinIntentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBuiltinIntentOutput) String

func (s GetBuiltinIntentOutput) String() string

String returns the string representation

type GetBuiltinIntentRequest

type GetBuiltinIntentRequest struct {
	*aws.Request
	Input *GetBuiltinIntentInput
	Copy  func(*GetBuiltinIntentInput) GetBuiltinIntentRequest
}

GetBuiltinIntentRequest is a API request type for the GetBuiltinIntent API operation.

func (GetBuiltinIntentRequest) Send

Send marshals and sends the GetBuiltinIntent API request.

type GetBuiltinIntentsInput

type GetBuiltinIntentsInput struct {

	// A list of locales that the intent supports.
	Locale Locale `location:"querystring" locationName:"locale" type:"string" enum:"true"`

	// The maximum number of intents to return in the response. The default is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// A pagination token that fetches the next page of intents. If this API call
	// is truncated, Amazon Lex returns a pagination token in the response. To fetch
	// the next page of intents, use the pagination token in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`

	// Substring to match in built-in intent signatures. An intent will be returned
	// if any part of its signature matches the substring. For example, "xyz" matches
	// both "xyzabc" and "abcxyz." To find the signature for an intent, see Standard
	// Built-in Intents (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents)
	// in the Alexa Skills Kit.
	SignatureContains *string `location:"querystring" locationName:"signatureContains" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntentsRequest

func (GetBuiltinIntentsInput) GoString

func (s GetBuiltinIntentsInput) GoString() string

GoString returns the string representation

func (GetBuiltinIntentsInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinIntentsInput) String

func (s GetBuiltinIntentsInput) String() string

String returns the string representation

func (*GetBuiltinIntentsInput) Validate

func (s *GetBuiltinIntentsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBuiltinIntentsOutput

type GetBuiltinIntentsOutput struct {

	// An array of builtinIntentMetadata objects, one for each intent in the response.
	Intents []BuiltinIntentMetadata `locationName:"intents" type:"list"`

	// A pagination token that fetches the next page of intents. If the response
	// to this API call is truncated, Amazon Lex returns a pagination token in the
	// response. To fetch the next page of intents, specify the pagination token
	// in the next request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntentsResponse

func (GetBuiltinIntentsOutput) GoString

func (s GetBuiltinIntentsOutput) GoString() string

GoString returns the string representation

func (GetBuiltinIntentsOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinIntentsOutput) SDKResponseMetadata

func (s GetBuiltinIntentsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBuiltinIntentsOutput) String

func (s GetBuiltinIntentsOutput) String() string

String returns the string representation

type GetBuiltinIntentsPager added in v0.3.0

type GetBuiltinIntentsPager struct {
	aws.Pager
}

GetBuiltinIntentsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBuiltinIntentsPager) CurrentPage added in v0.3.0

type GetBuiltinIntentsRequest

type GetBuiltinIntentsRequest struct {
	*aws.Request
	Input *GetBuiltinIntentsInput
	Copy  func(*GetBuiltinIntentsInput) GetBuiltinIntentsRequest
}

GetBuiltinIntentsRequest is a API request type for the GetBuiltinIntents API operation.

func (*GetBuiltinIntentsRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a GetBuiltinIntentsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBuiltinIntents operation.
		req := client.GetBuiltinIntentsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBuiltinIntentsRequest) Send

Send marshals and sends the GetBuiltinIntents API request.

type GetBuiltinSlotTypesInput

type GetBuiltinSlotTypesInput struct {

	// A list of locales that the slot type supports.
	Locale Locale `location:"querystring" locationName:"locale" type:"string" enum:"true"`

	// The maximum number of slot types to return in the response. The default is
	// 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// A pagination token that fetches the next page of slot types. If the response
	// to this API call is truncated, Amazon Lex returns a pagination token in the
	// response. To fetch the next page of slot types, specify the pagination token
	// in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`

	// Substring to match in built-in slot type signatures. A slot type will be
	// returned if any part of its signature matches the substring. For example,
	// "xyz" matches both "xyzabc" and "abcxyz."
	SignatureContains *string `location:"querystring" locationName:"signatureContains" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypesRequest

func (GetBuiltinSlotTypesInput) GoString

func (s GetBuiltinSlotTypesInput) GoString() string

GoString returns the string representation

func (GetBuiltinSlotTypesInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinSlotTypesInput) String

func (s GetBuiltinSlotTypesInput) String() string

String returns the string representation

func (*GetBuiltinSlotTypesInput) Validate

func (s *GetBuiltinSlotTypesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetBuiltinSlotTypesOutput

type GetBuiltinSlotTypesOutput struct {

	// If the response is truncated, the response includes a pagination token that
	// you can use in your next request to fetch the next page of slot types.
	NextToken *string `locationName:"nextToken" type:"string"`

	// An array of BuiltInSlotTypeMetadata objects, one entry for each slot type
	// returned.
	SlotTypes []BuiltinSlotTypeMetadata `locationName:"slotTypes" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypesResponse

func (GetBuiltinSlotTypesOutput) GoString

func (s GetBuiltinSlotTypesOutput) GoString() string

GoString returns the string representation

func (GetBuiltinSlotTypesOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetBuiltinSlotTypesOutput) SDKResponseMetadata

func (s GetBuiltinSlotTypesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetBuiltinSlotTypesOutput) String

func (s GetBuiltinSlotTypesOutput) String() string

String returns the string representation

type GetBuiltinSlotTypesPager added in v0.3.0

type GetBuiltinSlotTypesPager struct {
	aws.Pager
}

GetBuiltinSlotTypesPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetBuiltinSlotTypesPager) CurrentPage added in v0.3.0

type GetBuiltinSlotTypesRequest

type GetBuiltinSlotTypesRequest struct {
	*aws.Request
	Input *GetBuiltinSlotTypesInput
	Copy  func(*GetBuiltinSlotTypesInput) GetBuiltinSlotTypesRequest
}

GetBuiltinSlotTypesRequest is a API request type for the GetBuiltinSlotTypes API operation.

func (*GetBuiltinSlotTypesRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a GetBuiltinSlotTypesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetBuiltinSlotTypes operation.
		req := client.GetBuiltinSlotTypesRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetBuiltinSlotTypesRequest) Send

Send marshals and sends the GetBuiltinSlotTypes API request.

type GetExportInput

type GetExportInput struct {

	// The format of the exported data.
	//
	// ExportType is a required field
	ExportType ExportType `location:"querystring" locationName:"exportType" type:"string" required:"true" enum:"true"`

	// The name of the bot to export.
	//
	// Name is a required field
	Name *string `location:"querystring" locationName:"name" min:"1" type:"string" required:"true"`

	// The type of resource to export.
	//
	// ResourceType is a required field
	ResourceType ResourceType `location:"querystring" locationName:"resourceType" type:"string" required:"true" enum:"true"`

	// The version of the bot to export.
	//
	// Version is a required field
	Version *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExportRequest

func (GetExportInput) GoString

func (s GetExportInput) GoString() string

GoString returns the string representation

func (GetExportInput) MarshalFields added in v0.3.0

func (s GetExportInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetExportInput) String

func (s GetExportInput) String() string

String returns the string representation

func (*GetExportInput) Validate

func (s *GetExportInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetExportOutput

type GetExportOutput struct {

	// The status of the export.
	//
	//    * IN_PROGRESS - The export is in progress.
	//
	//    * READY - The export is complete.
	//
	//    * FAILED - The export could not be completed.
	ExportStatus ExportStatus `locationName:"exportStatus" type:"string" enum:"true"`

	// The format of the exported data.
	ExportType ExportType `locationName:"exportType" type:"string" enum:"true"`

	// If status is FAILED, Amazon Lex provides the reason that it failed to export
	// the resource.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The name of the bot being exported.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The type of the exported resource.
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// An S3 pre-signed URL that provides the location of the exported resource.
	// The exported resource is a ZIP archive that contains the exported resource
	// in JSON format. The structure of the archive may change. Your code should
	// not rely on the archive structure.
	Url *string `locationName:"url" type:"string"`

	// The version of the bot being exported.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExportResponse

func (GetExportOutput) GoString

func (s GetExportOutput) GoString() string

GoString returns the string representation

func (GetExportOutput) MarshalFields added in v0.3.0

func (s GetExportOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetExportOutput) SDKResponseMetadata

func (s GetExportOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetExportOutput) String

func (s GetExportOutput) String() string

String returns the string representation

type GetExportRequest

type GetExportRequest struct {
	*aws.Request
	Input *GetExportInput
	Copy  func(*GetExportInput) GetExportRequest
}

GetExportRequest is a API request type for the GetExport API operation.

func (GetExportRequest) Send

func (r GetExportRequest) Send() (*GetExportOutput, error)

Send marshals and sends the GetExport API request.

type GetImportInput added in v0.3.0

type GetImportInput struct {

	// The identifier of the import job information to return.
	//
	// ImportId is a required field
	ImportId *string `location:"uri" locationName:"importId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetImportRequest

func (GetImportInput) GoString added in v0.3.0

func (s GetImportInput) GoString() string

GoString returns the string representation

func (GetImportInput) MarshalFields added in v0.3.0

func (s GetImportInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetImportInput) String added in v0.3.0

func (s GetImportInput) String() string

String returns the string representation

func (*GetImportInput) Validate added in v0.3.0

func (s *GetImportInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetImportOutput added in v0.3.0

type GetImportOutput struct {

	// A timestamp for the date and time that the import job was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A string that describes why an import job failed to complete.
	FailureReason []string `locationName:"failureReason" type:"list"`

	// The identifier for the specific import job.
	ImportId *string `locationName:"importId" type:"string"`

	// The status of the import job. If the status is FAILED, you can get the reason
	// for the failure from the failureReason field.
	ImportStatus ImportStatus `locationName:"importStatus" type:"string" enum:"true"`

	// The action taken when there was a conflict between an existing resource and
	// a resource in the import file.
	MergeStrategy MergeStrategy `locationName:"mergeStrategy" type:"string" enum:"true"`

	// The name given to the import job.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The type of resource imported.
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetImportResponse

func (GetImportOutput) GoString added in v0.3.0

func (s GetImportOutput) GoString() string

GoString returns the string representation

func (GetImportOutput) MarshalFields added in v0.3.0

func (s GetImportOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetImportOutput) SDKResponseMetadata added in v0.3.0

func (s GetImportOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetImportOutput) String added in v0.3.0

func (s GetImportOutput) String() string

String returns the string representation

type GetImportRequest added in v0.3.0

type GetImportRequest struct {
	*aws.Request
	Input *GetImportInput
	Copy  func(*GetImportInput) GetImportRequest
}

GetImportRequest is a API request type for the GetImport API operation.

func (GetImportRequest) Send added in v0.3.0

func (r GetImportRequest) Send() (*GetImportOutput, error)

Send marshals and sends the GetImport API request.

type GetIntentInput

type GetIntentInput struct {

	// The name of the intent. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// The version of the intent.
	//
	// Version is a required field
	Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentRequest

func (GetIntentInput) GoString

func (s GetIntentInput) GoString() string

GoString returns the string representation

func (GetIntentInput) MarshalFields added in v0.3.0

func (s GetIntentInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentInput) String

func (s GetIntentInput) String() string

String returns the string representation

func (*GetIntentInput) Validate

func (s *GetIntentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetIntentOutput

type GetIntentOutput struct {

	// Checksum of the intent.
	Checksum *string `locationName:"checksum" type:"string"`

	// After the Lambda function specified in the fulfillmentActivity element fulfills
	// the intent, Amazon Lex conveys this statement to the user.
	ConclusionStatement *Statement `locationName:"conclusionStatement" type:"structure"`

	// If defined in the bot, Amazon Lex uses prompt to confirm the intent before
	// fulfilling the user's request. For more information, see PutIntent.
	ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`

	// The date that the intent was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the intent.
	Description *string `locationName:"description" type:"string"`

	// If defined in the bot, Amazon Amazon Lex invokes this Lambda function for
	// each user input. For more information, see PutIntent.
	DialogCodeHook *CodeHook `locationName:"dialogCodeHook" type:"structure"`

	// If defined in the bot, Amazon Lex uses this prompt to solicit additional
	// user activity after the intent is fulfilled. For more information, see PutIntent.
	FollowUpPrompt *FollowUpPrompt `locationName:"followUpPrompt" type:"structure"`

	// Describes how the intent is fulfilled. For more information, see PutIntent.
	FulfillmentActivity *FulfillmentActivity `locationName:"fulfillmentActivity" type:"structure"`

	// The date that the intent was updated. When you create a resource, the creation
	// date and the last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the intent.
	Name *string `locationName:"name" min:"1" type:"string"`

	// A unique identifier for a built-in intent.
	ParentIntentSignature *string `locationName:"parentIntentSignature" type:"string"`

	// If the user answers "no" to the question defined in confirmationPrompt, Amazon
	// Lex responds with this statement to acknowledge that the intent was canceled.
	RejectionStatement *Statement `locationName:"rejectionStatement" type:"structure"`

	// An array of sample utterances configured for the intent.
	SampleUtterances []string `locationName:"sampleUtterances" type:"list"`

	// An array of intent slots configured for the intent.
	Slots []Slot `locationName:"slots" type:"list"`

	// The version of the intent.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentResponse

func (GetIntentOutput) GoString

func (s GetIntentOutput) GoString() string

GoString returns the string representation

func (GetIntentOutput) MarshalFields added in v0.3.0

func (s GetIntentOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentOutput) SDKResponseMetadata

func (s GetIntentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetIntentOutput) String

func (s GetIntentOutput) String() string

String returns the string representation

type GetIntentRequest

type GetIntentRequest struct {
	*aws.Request
	Input *GetIntentInput
	Copy  func(*GetIntentInput) GetIntentRequest
}

GetIntentRequest is a API request type for the GetIntent API operation.

func (GetIntentRequest) Send

func (r GetIntentRequest) Send() (*GetIntentOutput, error)

Send marshals and sends the GetIntent API request.

type GetIntentVersionsInput

type GetIntentVersionsInput struct {

	// The maximum number of intent versions to return in the response. The default
	// is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// The name of the intent for which versions should be returned.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// A pagination token for fetching the next page of intent versions. If the
	// response to this call is truncated, Amazon Lex returns a pagination token
	// in the response. To fetch the next page of versions, specify the pagination
	// token in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentVersionsRequest

func (GetIntentVersionsInput) GoString

func (s GetIntentVersionsInput) GoString() string

GoString returns the string representation

func (GetIntentVersionsInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentVersionsInput) String

func (s GetIntentVersionsInput) String() string

String returns the string representation

func (*GetIntentVersionsInput) Validate

func (s *GetIntentVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetIntentVersionsOutput

type GetIntentVersionsOutput struct {

	// An array of IntentMetadata objects, one for each numbered version of the
	// intent plus one for the $LATEST version.
	Intents []IntentMetadata `locationName:"intents" type:"list"`

	// A pagination token for fetching the next page of intent versions. If the
	// response to this call is truncated, Amazon Lex returns a pagination token
	// in the response. To fetch the next page of versions, specify the pagination
	// token in the next request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentVersionsResponse

func (GetIntentVersionsOutput) GoString

func (s GetIntentVersionsOutput) GoString() string

GoString returns the string representation

func (GetIntentVersionsOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentVersionsOutput) SDKResponseMetadata

func (s GetIntentVersionsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetIntentVersionsOutput) String

func (s GetIntentVersionsOutput) String() string

String returns the string representation

type GetIntentVersionsPager added in v0.3.0

type GetIntentVersionsPager struct {
	aws.Pager
}

GetIntentVersionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetIntentVersionsPager) CurrentPage added in v0.3.0

type GetIntentVersionsRequest

type GetIntentVersionsRequest struct {
	*aws.Request
	Input *GetIntentVersionsInput
	Copy  func(*GetIntentVersionsInput) GetIntentVersionsRequest
}

GetIntentVersionsRequest is a API request type for the GetIntentVersions API operation.

func (*GetIntentVersionsRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a GetIntentVersionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetIntentVersions operation.
		req := client.GetIntentVersionsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetIntentVersionsRequest) Send

Send marshals and sends the GetIntentVersions API request.

type GetIntentsInput

type GetIntentsInput struct {

	// The maximum number of intents to return in the response. The default is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Substring to match in intent names. An intent will be returned if any part
	// of its name matches the substring. For example, "xyz" matches both "xyzabc"
	// and "abcxyz."
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// A pagination token that fetches the next page of intents. If the response
	// to this API call is truncated, Amazon Lex returns a pagination token in the
	// response. To fetch the next page of intents, specify the pagination token
	// in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentsRequest

func (GetIntentsInput) GoString

func (s GetIntentsInput) GoString() string

GoString returns the string representation

func (GetIntentsInput) MarshalFields added in v0.3.0

func (s GetIntentsInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentsInput) String

func (s GetIntentsInput) String() string

String returns the string representation

func (*GetIntentsInput) Validate

func (s *GetIntentsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetIntentsOutput

type GetIntentsOutput struct {

	// An array of Intent objects. For more information, see PutBot.
	Intents []IntentMetadata `locationName:"intents" type:"list"`

	// If the response is truncated, the response includes a pagination token that
	// you can specify in your next request to fetch the next page of intents.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentsResponse

func (GetIntentsOutput) GoString

func (s GetIntentsOutput) GoString() string

GoString returns the string representation

func (GetIntentsOutput) MarshalFields added in v0.3.0

func (s GetIntentsOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetIntentsOutput) SDKResponseMetadata

func (s GetIntentsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetIntentsOutput) String

func (s GetIntentsOutput) String() string

String returns the string representation

type GetIntentsPager added in v0.3.0

type GetIntentsPager struct {
	aws.Pager
}

GetIntentsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetIntentsPager) CurrentPage added in v0.3.0

func (p *GetIntentsPager) CurrentPage() *GetIntentsOutput

type GetIntentsRequest

type GetIntentsRequest struct {
	*aws.Request
	Input *GetIntentsInput
	Copy  func(*GetIntentsInput) GetIntentsRequest
}

GetIntentsRequest is a API request type for the GetIntents API operation.

func (*GetIntentsRequest) Paginate added in v0.3.0

func (p *GetIntentsRequest) Paginate(opts ...aws.Option) GetIntentsPager

Paginate pages iterates over the pages of a GetIntentsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetIntents operation.
		req := client.GetIntentsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetIntentsRequest) Send

Send marshals and sends the GetIntents API request.

type GetSlotTypeInput

type GetSlotTypeInput struct {

	// The name of the slot type. The name is case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// The version of the slot type.
	//
	// Version is a required field
	Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypeRequest

func (GetSlotTypeInput) GoString

func (s GetSlotTypeInput) GoString() string

GoString returns the string representation

func (GetSlotTypeInput) MarshalFields added in v0.3.0

func (s GetSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypeInput) String

func (s GetSlotTypeInput) String() string

String returns the string representation

func (*GetSlotTypeInput) Validate

func (s *GetSlotTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSlotTypeOutput

type GetSlotTypeOutput struct {

	// Checksum of the $LATEST version of the slot type.
	Checksum *string `locationName:"checksum" type:"string"`

	// The date that the slot type was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the slot type.
	Description *string `locationName:"description" type:"string"`

	// A list of EnumerationValue objects that defines the values that the slot
	// type can take.
	EnumerationValues []EnumerationValue `locationName:"enumerationValues" min:"1" type:"list"`

	// The date that the slot type was updated. When you create a resource, the
	// creation date and last update date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the slot type.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The strategy that Amazon Lex uses to determine the value of the slot. For
	// more information, see PutSlotType.
	ValueSelectionStrategy SlotValueSelectionStrategy `locationName:"valueSelectionStrategy" type:"string" enum:"true"`

	// The version of the slot type.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypeResponse

func (GetSlotTypeOutput) GoString

func (s GetSlotTypeOutput) GoString() string

GoString returns the string representation

func (GetSlotTypeOutput) MarshalFields added in v0.3.0

func (s GetSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypeOutput) SDKResponseMetadata

func (s GetSlotTypeOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetSlotTypeOutput) String

func (s GetSlotTypeOutput) String() string

String returns the string representation

type GetSlotTypeRequest

type GetSlotTypeRequest struct {
	*aws.Request
	Input *GetSlotTypeInput
	Copy  func(*GetSlotTypeInput) GetSlotTypeRequest
}

GetSlotTypeRequest is a API request type for the GetSlotType API operation.

func (GetSlotTypeRequest) Send

Send marshals and sends the GetSlotType API request.

type GetSlotTypeVersionsInput

type GetSlotTypeVersionsInput struct {

	// The maximum number of slot type versions to return in the response. The default
	// is 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// The name of the slot type for which versions should be returned.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// A pagination token for fetching the next page of slot type versions. If the
	// response to this call is truncated, Amazon Lex returns a pagination token
	// in the response. To fetch the next page of versions, specify the pagination
	// token in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypeVersionsRequest

func (GetSlotTypeVersionsInput) GoString

func (s GetSlotTypeVersionsInput) GoString() string

GoString returns the string representation

func (GetSlotTypeVersionsInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypeVersionsInput) String

func (s GetSlotTypeVersionsInput) String() string

String returns the string representation

func (*GetSlotTypeVersionsInput) Validate

func (s *GetSlotTypeVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSlotTypeVersionsOutput

type GetSlotTypeVersionsOutput struct {

	// A pagination token for fetching the next page of slot type versions. If the
	// response to this call is truncated, Amazon Lex returns a pagination token
	// in the response. To fetch the next page of versions, specify the pagination
	// token in the next request.
	NextToken *string `locationName:"nextToken" type:"string"`

	// An array of SlotTypeMetadata objects, one for each numbered version of the
	// slot type plus one for the $LATEST version.
	SlotTypes []SlotTypeMetadata `locationName:"slotTypes" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypeVersionsResponse

func (GetSlotTypeVersionsOutput) GoString

func (s GetSlotTypeVersionsOutput) GoString() string

GoString returns the string representation

func (GetSlotTypeVersionsOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypeVersionsOutput) SDKResponseMetadata

func (s GetSlotTypeVersionsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetSlotTypeVersionsOutput) String

func (s GetSlotTypeVersionsOutput) String() string

String returns the string representation

type GetSlotTypeVersionsPager added in v0.3.0

type GetSlotTypeVersionsPager struct {
	aws.Pager
}

GetSlotTypeVersionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetSlotTypeVersionsPager) CurrentPage added in v0.3.0

type GetSlotTypeVersionsRequest

type GetSlotTypeVersionsRequest struct {
	*aws.Request
	Input *GetSlotTypeVersionsInput
	Copy  func(*GetSlotTypeVersionsInput) GetSlotTypeVersionsRequest
}

GetSlotTypeVersionsRequest is a API request type for the GetSlotTypeVersions API operation.

func (*GetSlotTypeVersionsRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a GetSlotTypeVersionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetSlotTypeVersions operation.
		req := client.GetSlotTypeVersionsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetSlotTypeVersionsRequest) Send

Send marshals and sends the GetSlotTypeVersions API request.

type GetSlotTypesInput

type GetSlotTypesInput struct {

	// The maximum number of slot types to return in the response. The default is
	// 10.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Substring to match in slot type names. A slot type will be returned if any
	// part of its name matches the substring. For example, "xyz" matches both "xyzabc"
	// and "abcxyz."
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// A pagination token that fetches the next page of slot types. If the response
	// to this API call is truncated, Amazon Lex returns a pagination token in the
	// response. To fetch next page of slot types, specify the pagination token
	// in the next request.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypesRequest

func (GetSlotTypesInput) GoString

func (s GetSlotTypesInput) GoString() string

GoString returns the string representation

func (GetSlotTypesInput) MarshalFields added in v0.3.0

func (s GetSlotTypesInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypesInput) String

func (s GetSlotTypesInput) String() string

String returns the string representation

func (*GetSlotTypesInput) Validate

func (s *GetSlotTypesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSlotTypesOutput

type GetSlotTypesOutput struct {

	// If the response is truncated, it includes a pagination token that you can
	// specify in your next request to fetch the next page of slot types.
	NextToken *string `locationName:"nextToken" type:"string"`

	// An array of objects, one for each slot type, that provides information such
	// as the name of the slot type, the version, and a description.
	SlotTypes []SlotTypeMetadata `locationName:"slotTypes" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypesResponse

func (GetSlotTypesOutput) GoString

func (s GetSlotTypesOutput) GoString() string

GoString returns the string representation

func (GetSlotTypesOutput) MarshalFields added in v0.3.0

func (s GetSlotTypesOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetSlotTypesOutput) SDKResponseMetadata

func (s GetSlotTypesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetSlotTypesOutput) String

func (s GetSlotTypesOutput) String() string

String returns the string representation

type GetSlotTypesPager added in v0.3.0

type GetSlotTypesPager struct {
	aws.Pager
}

GetSlotTypesPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*GetSlotTypesPager) CurrentPage added in v0.3.0

func (p *GetSlotTypesPager) CurrentPage() *GetSlotTypesOutput

type GetSlotTypesRequest

type GetSlotTypesRequest struct {
	*aws.Request
	Input *GetSlotTypesInput
	Copy  func(*GetSlotTypesInput) GetSlotTypesRequest
}

GetSlotTypesRequest is a API request type for the GetSlotTypes API operation.

func (*GetSlotTypesRequest) Paginate added in v0.3.0

func (p *GetSlotTypesRequest) Paginate(opts ...aws.Option) GetSlotTypesPager

Paginate pages iterates over the pages of a GetSlotTypesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a GetSlotTypes operation.
		req := client.GetSlotTypesRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (GetSlotTypesRequest) Send

Send marshals and sends the GetSlotTypes API request.

type GetUtterancesViewInput

type GetUtterancesViewInput struct {

	// The name of the bot for which utterance information should be returned.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botname" min:"2" type:"string" required:"true"`

	// An array of bot versions for which utterance information should be returned.
	// The limit is 5 versions per request.
	//
	// BotVersions is a required field
	BotVersions []string `location:"querystring" locationName:"bot_versions" min:"1" type:"list" required:"true"`

	// To return utterances that were recognized and handled, useDetected. To return
	// utterances that were not recognized, use Missed.
	//
	// StatusType is a required field
	StatusType StatusType `location:"querystring" locationName:"status_type" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetUtterancesViewRequest

func (GetUtterancesViewInput) GoString

func (s GetUtterancesViewInput) GoString() string

GoString returns the string representation

func (GetUtterancesViewInput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetUtterancesViewInput) String

func (s GetUtterancesViewInput) String() string

String returns the string representation

func (*GetUtterancesViewInput) Validate

func (s *GetUtterancesViewInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetUtterancesViewOutput

type GetUtterancesViewOutput struct {

	// The name of the bot for which utterance information was returned.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// An array of UtteranceList objects, each containing a list of UtteranceData
	// objects describing the utterances that were processed by your bot. The response
	// contains a maximum of 100 UtteranceData objects for each version.
	Utterances []UtteranceList `locationName:"utterances" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetUtterancesViewResponse

func (GetUtterancesViewOutput) GoString

func (s GetUtterancesViewOutput) GoString() string

GoString returns the string representation

func (GetUtterancesViewOutput) MarshalFields added in v0.3.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetUtterancesViewOutput) SDKResponseMetadata

func (s GetUtterancesViewOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetUtterancesViewOutput) String

func (s GetUtterancesViewOutput) String() string

String returns the string representation

type GetUtterancesViewRequest

type GetUtterancesViewRequest struct {
	*aws.Request
	Input *GetUtterancesViewInput
	Copy  func(*GetUtterancesViewInput) GetUtterancesViewRequest
}

GetUtterancesViewRequest is a API request type for the GetUtterancesView API operation.

func (GetUtterancesViewRequest) Send

Send marshals and sends the GetUtterancesView API request.

type ImportStatus added in v0.3.0

type ImportStatus string
const (
	ImportStatusInProgress ImportStatus = "IN_PROGRESS"
	ImportStatusComplete   ImportStatus = "COMPLETE"
	ImportStatusFailed     ImportStatus = "FAILED"
)

Enum values for ImportStatus

func (ImportStatus) MarshalValue added in v0.3.0

func (enum ImportStatus) MarshalValue() (string, error)

func (ImportStatus) MarshalValueBuf added in v0.3.0

func (enum ImportStatus) MarshalValueBuf(b []byte) ([]byte, error)

type Intent

type Intent struct {

	// The name of the intent.
	//
	// IntentName is a required field
	IntentName *string `locationName:"intentName" min:"1" type:"string" required:"true"`

	// The version of the intent.
	//
	// IntentVersion is a required field
	IntentVersion *string `locationName:"intentVersion" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Identifies the specific version of an intent. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Intent

func (Intent) GoString

func (s Intent) GoString() string

GoString returns the string representation

func (Intent) MarshalFields added in v0.3.0

func (s Intent) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Intent) String

func (s Intent) String() string

String returns the string representation

func (*Intent) Validate

func (s *Intent) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type IntentMetadata

type IntentMetadata struct {

	// The date that the intent was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the intent.
	Description *string `locationName:"description" type:"string"`

	// The date that the intent was updated. When you create an intent, the creation
	// date and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the intent.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The version of the intent.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about an intent. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/IntentMetadata

func (IntentMetadata) GoString

func (s IntentMetadata) GoString() string

GoString returns the string representation

func (IntentMetadata) MarshalFields added in v0.3.0

func (s IntentMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (IntentMetadata) String

func (s IntentMetadata) String() string

String returns the string representation

type LexModelBuildingService

type LexModelBuildingService struct {
	*aws.Client
}

LexModelBuildingService provides the API operation methods for making requests to Amazon Lex Model Building Service. See this package's package overview docs for details on the service.

LexModelBuildingService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *LexModelBuildingService

New creates a new instance of the LexModelBuildingService client with a config.

Example:

// Create a LexModelBuildingService client from just a config.
svc := lexmodelbuildingservice.New(myConfig)

func (*LexModelBuildingService) CreateBotVersionRequest

func (c *LexModelBuildingService) CreateBotVersionRequest(input *CreateBotVersionInput) CreateBotVersionRequest

CreateBotVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates a new version of the bot based on the $LATEST version. If the $LATEST version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version. It returns the last created version.

You can update only the $LATEST version of the bot. You can't update the numbered versions that you create with the CreateBotVersion operation.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permission for the lex:CreateBotVersion action.

// Example sending a request using the CreateBotVersionRequest method.
req := client.CreateBotVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersion

func (*LexModelBuildingService) CreateIntentVersionRequest

func (c *LexModelBuildingService) CreateIntentVersionRequest(input *CreateIntentVersionInput) CreateIntentVersionRequest

CreateIntentVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates a new version of an intent based on the $LATEST version of the intent. If the $LATEST version of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.

You can update only the $LATEST version of the intent. You can't update the numbered versions that you create with the CreateIntentVersion operation.

When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permissions to perform the lex:CreateIntentVersion action.

// Example sending a request using the CreateIntentVersionRequest method.
req := client.CreateIntentVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersion

func (*LexModelBuildingService) CreateSlotTypeVersionRequest

CreateSlotTypeVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates a new version of a slot type based on the $LATEST version of the specified slot type. If the $LATEST version of this resource has not changed since the last version that you created, Amazon Lex doesn't create a new version. It returns the last version that you created.

You can update only the $LATEST version of a slot type. You can't update the numbered versions that you create with the CreateSlotTypeVersion operation.

When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permissions for the lex:CreateSlotTypeVersion action.

// Example sending a request using the CreateSlotTypeVersionRequest method.
req := client.CreateSlotTypeVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateSlotTypeVersion

func (*LexModelBuildingService) DeleteBotAliasRequest

func (c *LexModelBuildingService) DeleteBotAliasRequest(input *DeleteBotAliasInput) DeleteBotAliasRequest

DeleteBotAliasRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes an alias for the specified bot.

You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the DeleteBot operation returns a ResourceInUseException exception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until the DeleteBotAlias operation is successful.

// Example sending a request using the DeleteBotAliasRequest method.
req := client.DeleteBotAliasRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotAlias

func (*LexModelBuildingService) DeleteBotChannelAssociationRequest

DeleteBotChannelAssociationRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes the association between an Amazon Lex bot and a messaging platform.

This operation requires permission for the lex:DeleteBotChannelAssociation action.

// Example sending a request using the DeleteBotChannelAssociationRequest method.
req := client.DeleteBotChannelAssociationRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotChannelAssociation

func (*LexModelBuildingService) DeleteBotRequest

func (c *LexModelBuildingService) DeleteBotRequest(input *DeleteBotInput) DeleteBotRequest

DeleteBotRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes all versions of the bot, including the $LATEST version. To delete a specific version of the bot, use the DeleteBotVersion operation.

If a bot has an alias, you can't delete it. Instead, the DeleteBot operation returns a ResourceInUseException exception that includes a reference to the alias that refers to the bot. To remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring alias until the DeleteBot operation is successful.

This operation requires permissions for the lex:DeleteBot action.

// Example sending a request using the DeleteBotRequest method.
req := client.DeleteBotRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBot

func (*LexModelBuildingService) DeleteBotVersionRequest

func (c *LexModelBuildingService) DeleteBotVersionRequest(input *DeleteBotVersionInput) DeleteBotVersionRequest

DeleteBotVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.

This operation requires permissions for the lex:DeleteBotVersion action.

// Example sending a request using the DeleteBotVersionRequest method.
req := client.DeleteBotVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersion

func (*LexModelBuildingService) DeleteIntentRequest

func (c *LexModelBuildingService) DeleteIntentRequest(input *DeleteIntentInput) DeleteIntentRequest

DeleteIntentRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes all versions of the intent, including the $LATEST version. To delete a specific version of the intent, use the DeleteIntentVersion operation.

You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.

If you get the ResourceInUseException exception, it provides an example reference that shows where the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get the same exception when you attempt to delete the intent again, repeat until the intent has no references and the call to DeleteIntent is successful.

This operation requires permission for the lex:DeleteIntent action.

// Example sending a request using the DeleteIntentRequest method.
req := client.DeleteIntentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntent

func (*LexModelBuildingService) DeleteIntentVersionRequest

func (c *LexModelBuildingService) DeleteIntentVersionRequest(input *DeleteIntentVersionInput) DeleteIntentVersionRequest

DeleteIntentVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.

This operation requires permissions for the lex:DeleteIntentVersion action.

// Example sending a request using the DeleteIntentVersionRequest method.
req := client.DeleteIntentVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersion

func (*LexModelBuildingService) DeleteSlotTypeRequest

func (c *LexModelBuildingService) DeleteSlotTypeRequest(input *DeleteSlotTypeInput) DeleteSlotTypeRequest

DeleteSlotTypeRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes all versions of the slot type, including the $LATEST version. To delete a specific version of the slot type, use the DeleteSlotTypeVersion operation.

You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.

If you get the ResourceInUseException exception, the exception provides an example reference that shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until the slot type has no references and the DeleteSlotType call is successful.

This operation requires permission for the lex:DeleteSlotType action.

// Example sending a request using the DeleteSlotTypeRequest method.
req := client.DeleteSlotTypeRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotType

func (*LexModelBuildingService) DeleteSlotTypeVersionRequest

DeleteSlotTypeVersionRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.

This operation requires permissions for the lex:DeleteSlotTypeVersion action.

// Example sending a request using the DeleteSlotTypeVersionRequest method.
req := client.DeleteSlotTypeVersionRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersion

func (*LexModelBuildingService) DeleteUtterancesRequest

func (c *LexModelBuildingService) DeleteUtterancesRequest(input *DeleteUtterancesInput) DeleteUtterancesRequest

DeleteUtterancesRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Deletes stored utterances.

Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.

Use the DeleteStoredUtterances operation to manually delete stored utterances for a specific user.

This operation requires permissions for the lex:DeleteUtterances action.

// Example sending a request using the DeleteUtterancesRequest method.
req := client.DeleteUtterancesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteUtterances

func (*LexModelBuildingService) GetBotAliasRequest

func (c *LexModelBuildingService) GetBotAliasRequest(input *GetBotAliasInput) GetBotAliasRequest

GetBotAliasRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.

This operation requires permissions for the lex:GetBotAlias action.

// Example sending a request using the GetBotAliasRequest method.
req := client.GetBotAliasRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAlias

func (*LexModelBuildingService) GetBotAliasesRequest

func (c *LexModelBuildingService) GetBotAliasesRequest(input *GetBotAliasesInput) GetBotAliasesRequest

GetBotAliasesRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns a list of aliases for a specified Amazon Lex bot.

This operation requires permissions for the lex:GetBotAliases action.

// Example sending a request using the GetBotAliasesRequest method.
req := client.GetBotAliasesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotAliases

func (*LexModelBuildingService) GetBotChannelAssociationRequest

GetBotChannelAssociationRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns information about the association between an Amazon Lex bot and a messaging platform.

This operation requires permissions for the lex:GetBotChannelAssociation action.

// Example sending a request using the GetBotChannelAssociationRequest method.
req := client.GetBotChannelAssociationRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociation

func (*LexModelBuildingService) GetBotChannelAssociationsRequest

GetBotChannelAssociationsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns a list of all of the channels associated with the specified bot.

The GetBotChannelAssociations operation requires permissions for the lex:GetBotChannelAssociations action.

// Example sending a request using the GetBotChannelAssociationsRequest method.
req := client.GetBotChannelAssociationsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotChannelAssociations

func (*LexModelBuildingService) GetBotRequest

func (c *LexModelBuildingService) GetBotRequest(input *GetBotInput) GetBotRequest

GetBotRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.

This operation requires permissions for the lex:GetBot action.

// Example sending a request using the GetBotRequest method.
req := client.GetBotRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBot

Example (Shared00)

To get information about a bot

This example shows how to get configuration information for a bot.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetBotInput{
		Name:           aws.String("DocOrderPizza"),
		VersionOrAlias: aws.String("$LATEST"),
	}

	req := svc.GetBotRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetBotVersionsRequest

func (c *LexModelBuildingService) GetBotVersionsRequest(input *GetBotVersionsInput) GetBotVersionsRequest

GetBotVersionsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets information about all of the versions of a bot.

The GetBotVersions operation returns a BotMetadata object for each version of a bot. For example, if a bot has three numbered versions, the GetBotVersions operation returns four BotMetadata objects in the response, one for each numbered version and one for the $LATEST version.

The GetBotVersions operation always returns at least one version, the $LATEST version.

This operation requires permissions for the lex:GetBotVersions action.

// Example sending a request using the GetBotVersionsRequest method.
req := client.GetBotVersionsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotVersions

func (*LexModelBuildingService) GetBotsRequest

func (c *LexModelBuildingService) GetBotsRequest(input *GetBotsInput) GetBotsRequest

GetBotsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns bot information as follows:

  • If you provide the nameContains field, the response includes information for the $LATEST version of all bots whose name contains the specified string.

  • If you don't specify the nameContains field, the operation returns information about the $LATEST version of all of your bots.

This operation requires permission for the lex:GetBots action.

// Example sending a request using the GetBotsRequest method.
req := client.GetBotsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBots

Example (Shared00)

To get a list of bots

This example shows how to get a list of all of the bots in your account.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetBotsInput{
		MaxResults: aws.Int64(5),
		NextToken:  aws.String(""),
	}

	req := svc.GetBotsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetBuiltinIntentRequest

func (c *LexModelBuildingService) GetBuiltinIntentRequest(input *GetBuiltinIntentInput) GetBuiltinIntentRequest

GetBuiltinIntentRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns information about a built-in intent.

This operation requires permission for the lex:GetBuiltinIntent action.

// Example sending a request using the GetBuiltinIntentRequest method.
req := client.GetBuiltinIntentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntent

func (*LexModelBuildingService) GetBuiltinIntentsRequest

func (c *LexModelBuildingService) GetBuiltinIntentsRequest(input *GetBuiltinIntentsInput) GetBuiltinIntentsRequest

GetBuiltinIntentsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets a list of built-in intents that meet the specified criteria.

This operation requires permission for the lex:GetBuiltinIntents action.

// Example sending a request using the GetBuiltinIntentsRequest method.
req := client.GetBuiltinIntentsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntents

func (*LexModelBuildingService) GetBuiltinSlotTypesRequest

func (c *LexModelBuildingService) GetBuiltinSlotTypesRequest(input *GetBuiltinSlotTypesInput) GetBuiltinSlotTypesRequest

GetBuiltinSlotTypesRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets a list of built-in slot types that meet the specified criteria.

For a list of built-in slot types, see Slot Type Reference (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-reference) in the Alexa Skills Kit.

This operation requires permission for the lex:GetBuiltInSlotTypes action.

// Example sending a request using the GetBuiltinSlotTypesRequest method.
req := client.GetBuiltinSlotTypesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypes

func (*LexModelBuildingService) GetExportRequest

func (c *LexModelBuildingService) GetExportRequest(input *GetExportInput) GetExportRequest

GetExportRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Exports the contents of a Amazon Lex resource in a specified format.

// Example sending a request using the GetExportRequest method.
req := client.GetExportRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExport

func (*LexModelBuildingService) GetImportRequest added in v0.3.0

func (c *LexModelBuildingService) GetImportRequest(input *GetImportInput) GetImportRequest

GetImportRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets information about an import job started with the StartImport operation.

// Example sending a request using the GetImportRequest method.
req := client.GetImportRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetImport

func (*LexModelBuildingService) GetIntentRequest

func (c *LexModelBuildingService) GetIntentRequest(input *GetIntentInput) GetIntentRequest

GetIntentRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns information about an intent. In addition to the intent name, you must specify the intent version.

This operation requires permissions to perform the lex:GetIntent action.

// Example sending a request using the GetIntentRequest method.
req := client.GetIntentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntent

Example (Shared00)

To get a information about an intent

This example shows how to get information about an intent.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetIntentInput{
		Name:    aws.String("DocOrderPizza"),
		Version: aws.String("$LATEST"),
	}

	req := svc.GetIntentRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetIntentVersionsRequest

func (c *LexModelBuildingService) GetIntentVersionsRequest(input *GetIntentVersionsInput) GetIntentVersionsRequest

GetIntentVersionsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets information about all of the versions of an intent.

The GetIntentVersions operation returns an IntentMetadata object for each version of an intent. For example, if an intent has three numbered versions, the GetIntentVersions operation returns four IntentMetadata objects in the response, one for each numbered version and one for the $LATEST version.

The GetIntentVersions operation always returns at least one version, the $LATEST version.

This operation requires permissions for the lex:GetIntentVersions action.

// Example sending a request using the GetIntentVersionsRequest method.
req := client.GetIntentVersionsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentVersions

func (*LexModelBuildingService) GetIntentsRequest

func (c *LexModelBuildingService) GetIntentsRequest(input *GetIntentsInput) GetIntentsRequest

GetIntentsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns intent information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all intents that contain the specified string.

  • If you don't specify the nameContains field, returns information about the $LATEST version of all intents.

The operation requires permission for the lex:GetIntents action.

// Example sending a request using the GetIntentsRequest method.
req := client.GetIntentsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntents

Example (Shared00)

To get a list of intents

This example shows how to get a list of all of the intents in your account.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetIntentsInput{
		MaxResults: aws.Int64(10),
		NextToken:  aws.String(""),
	}

	req := svc.GetIntentsRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetSlotTypeRequest

func (c *LexModelBuildingService) GetSlotTypeRequest(input *GetSlotTypeInput) GetSlotTypeRequest

GetSlotTypeRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns information about a specific version of a slot type. In addition to specifying the slot type name, you must specify the slot type version.

This operation requires permissions for the lex:GetSlotType action.

// Example sending a request using the GetSlotTypeRequest method.
req := client.GetSlotTypeRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotType

Example (Shared00)

To get information about a slot type

This example shows how to get information about a slot type.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetSlotTypeInput{
		Name:    aws.String("DocPizzaCrustType"),
		Version: aws.String("$LATEST"),
	}

	req := svc.GetSlotTypeRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetSlotTypeVersionsRequest

func (c *LexModelBuildingService) GetSlotTypeVersionsRequest(input *GetSlotTypeVersionsInput) GetSlotTypeVersionsRequest

GetSlotTypeVersionsRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Gets information about all versions of a slot type.

The GetSlotTypeVersions operation returns a SlotTypeMetadata object for each version of a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions operation returns four SlotTypeMetadata objects in the response, one for each numbered version and one for the $LATEST version.

The GetSlotTypeVersions operation always returns at least one version, the $LATEST version.

This operation requires permissions for the lex:GetSlotTypeVersions action.

// Example sending a request using the GetSlotTypeVersionsRequest method.
req := client.GetSlotTypeVersionsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypeVersions

func (*LexModelBuildingService) GetSlotTypesRequest

func (c *LexModelBuildingService) GetSlotTypesRequest(input *GetSlotTypesInput) GetSlotTypesRequest

GetSlotTypesRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Returns slot type information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all slot types that contain the specified string.

  • If you don't specify the nameContains field, returns information about the $LATEST version of all slot types.

The operation requires permission for the lex:GetSlotTypes action.

// Example sending a request using the GetSlotTypesRequest method.
req := client.GetSlotTypesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotTypes

Example (Shared00)

To get a list of slot types

This example shows how to get a list of all of the slot types in your account.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.GetSlotTypesInput{
		MaxResults: aws.Int64(10),
		NextToken:  aws.String(""),
	}

	req := svc.GetSlotTypesRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeNotFoundException:
				fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) GetUtterancesViewRequest

func (c *LexModelBuildingService) GetUtterancesViewRequest(input *GetUtterancesViewInput) GetUtterancesViewRequest

GetUtterancesViewRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Use the GetUtterancesView operation to get information about the utterances that your users have made to your bot. You can use this list to tune the utterances that your bot responds to.

For example, say that you have created a bot to order flowers. After your users have used your bot for a while, use the GetUtterancesView operation to see the requests that they have made and whether they have been successful. You might find that the utterance "I want flowers" is not being recognized. You could add this utterance to the OrderFlowers intent so that your bot recognizes that utterance.

After you publish a new version of a bot, you can get information about the old version and the new so that you can compare the performance across the two versions.

Utterance statistics are generated once a day. Data is available for the last 15 days. You can request information for up to 5 versions in each request. The response contains information about a maximum of 100 utterances for each version.

This operation requires permissions for the lex:GetUtterancesView action.

// Example sending a request using the GetUtterancesViewRequest method.
req := client.GetUtterancesViewRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetUtterancesView

func (*LexModelBuildingService) PutBotAliasRequest

func (c *LexModelBuildingService) PutBotAliasRequest(input *PutBotAliasInput) PutBotAliasRequest

PutBotAliasRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.

This operation requires permissions for the lex:PutBotAlias action.

// Example sending a request using the PutBotAliasRequest method.
req := client.PutBotAliasRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAlias

func (*LexModelBuildingService) PutBotRequest

func (c *LexModelBuildingService) PutBotRequest(input *PutBotInput) PutBotRequest

PutBotRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or update a bot you are only required to specify a name, a locale, and whether the bot is directed toward children under age 13. You can use this to add intents later, or to remove intents from an existing bot. When you create a bot with the minimum information, the bot is created or updated but Amazon Lex returns the response FAILED. You can build the bot after you add one or more intents. For more information about Amazon Lex bots, see how-it-works.

If you specify the name of an existing bot, the fields in the request replace the existing values in the $LATESTversion of the bot. Amazon Lex removes any fields that you don't provide values for in the request, except for the idleTTLInSecondsand privacySettingsfields, which are set to their default values. If you don't specify values for required fields, Amazon Lex throws an exception.

This operation requires permissions for the lex:PutBotaction. For more information, see auth-and-access-control

// Example sending a request using the PutBotRequest method.
req := client.PutBotRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBot

Example (Shared00)

To create a bot

This example shows how to create a bot for ordering pizzas.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.PutBotInput{
		AbortStatement: &lexmodelbuildingservice.Statement{
			Messages: []lexmodelbuildingservice.Message{
				{
					Content:     aws.String("I don't understand. Can you try again?"),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
				{
					Content:     aws.String("I'm sorry, I don't understand."),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
			},
		},
		ChildDirected: aws.Bool(true),
		ClarificationPrompt: &lexmodelbuildingservice.Prompt{
			MaxAttempts: aws.Int64(1),
			Messages: []lexmodelbuildingservice.Message{
				{
					Content:     aws.String("I'm sorry, I didn't hear that. Can you repeate what you just said?"),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
				{
					Content:     aws.String("Can you say that again?"),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
			},
		},
		Description:             aws.String("Orders a pizza from a local pizzeria."),
		IdleSessionTTLInSeconds: aws.Int64(300),
		Intents: []lexmodelbuildingservice.Intent{
			{
				IntentName:    aws.String("DocOrderPizza"),
				IntentVersion: aws.String("$LATEST"),
			},
		},
		Locale:          lexmodelbuildingservice.LocaleEnUs,
		Name:            aws.String("DocOrderPizzaBot"),
		ProcessBehavior: lexmodelbuildingservice.ProcessBehaviorSave,
	}

	req := svc.PutBotRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeConflictException:
				fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			case lexmodelbuildingservice.ErrCodePreconditionFailedException:
				fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) PutIntentRequest

func (c *LexModelBuildingService) PutIntentRequest(input *PutIntentInput) PutIntentRequest

PutIntentRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates an intent or replaces an existing intent.

To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot, for example, you would create an OrderPizza intent.

To create an intent or replace an existing intent, you must provide the following:

  • Intent name. For example, OrderPizza.

  • Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."

  • Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.

  • How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.

You can specify other optional information in the request, such as:

  • A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"

  • A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."

  • A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"

If you specify an existing intent name to update the intent, Amazon Lex replaces the values in the $LATEST version of the intent with the values in the request. Amazon Lex removes fields that you don't provide in the request. If you don't specify the required fields, Amazon Lex throws an exception. When you update the $LATEST version of an intent, the status field of any bot that uses the $LATEST version of the intent is set to NOT_BUILT.

For more information, see how-it-works.

This operation requires permissions for the lex:PutIntent action.

// Example sending a request using the PutIntentRequest method.
req := client.PutIntentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntent

Example (Shared00)

To create an intent

This example shows how to create an intent for ordering pizzas.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.PutIntentInput{
		ConclusionStatement: &lexmodelbuildingservice.Statement{
			Messages: []lexmodelbuildingservice.Message{
				{
					Content:     aws.String("All right, I ordered  you a {Crust} crust {Type} pizza with {Sauce} sauce."),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
				{
					Content:     aws.String("OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way."),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
			},
			ResponseCard: aws.String("foo"),
		},
		ConfirmationPrompt: &lexmodelbuildingservice.Prompt{
			MaxAttempts: aws.Int64(1),
			Messages: []lexmodelbuildingservice.Message{
				{
					Content:     aws.String("Should I order  your {Crust} crust {Type} pizza with {Sauce} sauce?"),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
			},
		},
		Description: aws.String("Order a pizza from a local pizzeria."),
		FulfillmentActivity: &lexmodelbuildingservice.FulfillmentActivity{
			Type: lexmodelbuildingservice.FulfillmentActivityTypeReturnIntent,
		},
		Name: aws.String("DocOrderPizza"),
		RejectionStatement: &lexmodelbuildingservice.Statement{
			Messages: []lexmodelbuildingservice.Message{
				{
					Content:     aws.String("Ok, I'll cancel your order."),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
				{
					Content:     aws.String("I cancelled your order."),
					ContentType: lexmodelbuildingservice.ContentTypePlainText,
				},
			},
		},
		SampleUtterances: []string{
			"Order me a pizza.",
			"Order me a {Type} pizza.",
			"I want a {Crust} crust {Type} pizza",
			"I want a {Crust} crust {Type} pizza with {Sauce} sauce.",
		},
		Slots: []lexmodelbuildingservice.Slot{
			{
				Description: aws.String("The type of pizza to order."),
				Name:        aws.String("Type"),
				Priority:    aws.Int64(1),
				SampleUtterances: []string{
					"Get me a {Type} pizza.",
					"A {Type} pizza please.",
					"I'd like a {Type} pizza.",
				},
				SlotConstraint:  lexmodelbuildingservice.SlotConstraintRequired,
				SlotType:        aws.String("DocPizzaType"),
				SlotTypeVersion: aws.String("$LATEST"),
			},
			{
				Description: aws.String("The type of pizza crust to order."),
				Name:        aws.String("Crust"),
				Priority:    aws.Int64(2),
				SampleUtterances: []string{
					"Make it a {Crust} crust.",
					"I'd like a {Crust} crust.",
				},
				SlotConstraint:  lexmodelbuildingservice.SlotConstraintRequired,
				SlotType:        aws.String("DocPizzaCrustType"),
				SlotTypeVersion: aws.String("$LATEST"),
			},
			{
				Description: aws.String("The type of sauce to use on the pizza."),
				Name:        aws.String("Sauce"),
				Priority:    aws.Int64(3),
				SampleUtterances: []string{
					"Make it {Sauce} sauce.",
					"I'd like {Sauce} sauce.",
				},
				SlotConstraint:  lexmodelbuildingservice.SlotConstraintRequired,
				SlotType:        aws.String("DocPizzaSauceType"),
				SlotTypeVersion: aws.String("$LATEST"),
			},
		},
	}

	req := svc.PutIntentRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeConflictException:
				fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			case lexmodelbuildingservice.ErrCodePreconditionFailedException:
				fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) PutSlotTypeRequest

func (c *LexModelBuildingService) PutSlotTypeRequest(input *PutSlotTypeInput) PutSlotTypeRequest

PutSlotTypeRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Creates a custom slot type or replaces an existing custom slot type.

To create a custom slot type, specify a name for the slot type and a set of enumeration values, which are the values that a slot of this type can assume. For more information, see how-it-works.

If you specify the name of an existing slot type, the fields in the request replace the existing values in the $LATEST version of the slot type. Amazon Lex removes the fields that you don't provide in the request. If you don't specify required fields, Amazon Lex throws an exception. When you update the $LATEST version of a slot type, if a bot uses the $LATEST version of an intent that contains the slot type, the bot's status field is set to NOT_BUILT.

This operation requires permissions for the lex:PutSlotType action.

// Example sending a request using the PutSlotTypeRequest method.
req := client.PutSlotTypeRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotType

Example (Shared00)

To Create a Slot Type

This example shows how to create a slot type that describes pizza sauces.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := lexmodelbuildingservice.New(cfg)
	input := &lexmodelbuildingservice.PutSlotTypeInput{
		Description: aws.String("Available pizza sauces"),
		EnumerationValues: []lexmodelbuildingservice.EnumerationValue{
			{
				Value: aws.String("red"),
			},
			{
				Value: aws.String("white"),
			},
		},
		Name: aws.String("PizzaSauceType"),
	}

	req := svc.PutSlotTypeRequest(input)
	result, err := req.Send()
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lexmodelbuildingservice.ErrCodeConflictException:
				fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeLimitExceededException:
				fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeInternalFailureException:
				fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
			case lexmodelbuildingservice.ErrCodeBadRequestException:
				fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
			case lexmodelbuildingservice.ErrCodePreconditionFailedException:
				fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*LexModelBuildingService) StartImportRequest added in v0.3.0

func (c *LexModelBuildingService) StartImportRequest(input *StartImportInput) StartImportRequest

StartImportRequest returns a request value for making API operation for Amazon Lex Model Building Service.

Starts a job to import a resource to Amazon Lex.

// Example sending a request using the StartImportRequest method.
req := client.StartImportRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImport

type Locale

type Locale string
const (
	LocaleEnUs Locale = "en-US"
	LocaleEnGb Locale = "en-GB"
	LocaleDeDe Locale = "de-DE"
)

Enum values for Locale

func (Locale) MarshalValue added in v0.3.0

func (enum Locale) MarshalValue() (string, error)

func (Locale) MarshalValueBuf added in v0.3.0

func (enum Locale) MarshalValueBuf(b []byte) ([]byte, error)

type MergeStrategy added in v0.3.0

type MergeStrategy string
const (
	MergeStrategyOverwriteLatest MergeStrategy = "OVERWRITE_LATEST"
	MergeStrategyFailOnConflict  MergeStrategy = "FAIL_ON_CONFLICT"
)

Enum values for MergeStrategy

func (MergeStrategy) MarshalValue added in v0.3.0

func (enum MergeStrategy) MarshalValue() (string, error)

func (MergeStrategy) MarshalValueBuf added in v0.3.0

func (enum MergeStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type Message

type Message struct {

	// The text of the message.
	//
	// Content is a required field
	Content *string `locationName:"content" min:"1" type:"string" required:"true"`

	// The content type of the message string.
	//
	// ContentType is a required field
	ContentType ContentType `locationName:"contentType" type:"string" required:"true" enum:"true"`

	// Identifies the message group that the message belongs to. When a group is
	// assigned to a message, Amazon Lex returns one message from each group in
	// the response.
	GroupNumber *int64 `locationName:"groupNumber" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

The message object that provides the message text and its type. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Message

func (Message) GoString

func (s Message) GoString() string

GoString returns the string representation

func (Message) MarshalFields added in v0.3.0

func (s Message) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Message) String

func (s Message) String() string

String returns the string representation

func (*Message) Validate

func (s *Message) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ProcessBehavior

type ProcessBehavior string
const (
	ProcessBehaviorSave  ProcessBehavior = "SAVE"
	ProcessBehaviorBuild ProcessBehavior = "BUILD"
)

Enum values for ProcessBehavior

func (ProcessBehavior) MarshalValue added in v0.3.0

func (enum ProcessBehavior) MarshalValue() (string, error)

func (ProcessBehavior) MarshalValueBuf added in v0.3.0

func (enum ProcessBehavior) MarshalValueBuf(b []byte) ([]byte, error)

type Prompt

type Prompt struct {

	// The number of times to prompt the user for information.
	//
	// MaxAttempts is a required field
	MaxAttempts *int64 `locationName:"maxAttempts" min:"1" type:"integer" required:"true"`

	// An array of objects, each of which provides a message string and its type.
	// You can specify the message string in plain text or in Speech Synthesis Markup
	// Language (SSML).
	//
	// Messages is a required field
	Messages []Message `locationName:"messages" min:"1" type:"list" required:"true"`

	// A response card. Amazon Lex uses this prompt at runtime, in the PostText
	// API response. It substitutes session attributes and slot values for placeholders
	// in the response card. For more information, see ex-resp-card.
	ResponseCard *string `locationName:"responseCard" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Obtains information from the user. To define a prompt, provide one or more messages and specify the number of attempts to get information from the user. If you provide more than one message, Amazon Lex chooses one of the messages to use to prompt the user. For more information, see how-it-works. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Prompt

func (Prompt) GoString

func (s Prompt) GoString() string

GoString returns the string representation

func (Prompt) MarshalFields added in v0.3.0

func (s Prompt) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Prompt) String

func (s Prompt) String() string

String returns the string representation

func (*Prompt) Validate

func (s *Prompt) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutBotAliasInput

type PutBotAliasInput struct {

	// The name of the bot.
	//
	// BotName is a required field
	BotName *string `location:"uri" locationName:"botName" min:"2" type:"string" required:"true"`

	// The version of the bot.
	//
	// BotVersion is a required field
	BotVersion *string `locationName:"botVersion" min:"1" type:"string" required:"true"`

	// Identifies a specific revision of the $LATEST version.
	//
	// When you create a new bot alias, leave the checksum field blank. If you specify
	// a checksum you get a BadRequestException exception.
	//
	// When you want to update a bot alias, set the checksum field to the checksum
	// of the most recent revision of the $LATEST version. If you don't specify
	// the  checksum field, or if the checksum does not match the $LATEST version,
	// you get a PreconditionFailedException exception.
	Checksum *string `locationName:"checksum" type:"string"`

	// A description of the alias.
	Description *string `locationName:"description" type:"string"`

	// The name of the alias. The name is not case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasRequest

func (PutBotAliasInput) GoString

func (s PutBotAliasInput) GoString() string

GoString returns the string representation

func (PutBotAliasInput) MarshalFields added in v0.3.0

func (s PutBotAliasInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutBotAliasInput) String

func (s PutBotAliasInput) String() string

String returns the string representation

func (*PutBotAliasInput) Validate

func (s *PutBotAliasInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutBotAliasOutput

type PutBotAliasOutput struct {

	// The name of the bot that the alias points to.
	BotName *string `locationName:"botName" min:"2" type:"string"`

	// The version of the bot that the alias points to.
	BotVersion *string `locationName:"botVersion" min:"1" type:"string"`

	// The checksum for the current version of the alias.
	Checksum *string `locationName:"checksum" type:"string"`

	// The date that the bot alias was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the alias.
	Description *string `locationName:"description" type:"string"`

	// The date that the bot alias was updated. When you create a resource, the
	// creation date and the last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the alias.
	Name *string `locationName:"name" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasResponse

func (PutBotAliasOutput) GoString

func (s PutBotAliasOutput) GoString() string

GoString returns the string representation

func (PutBotAliasOutput) MarshalFields added in v0.3.0

func (s PutBotAliasOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutBotAliasOutput) SDKResponseMetadata

func (s PutBotAliasOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutBotAliasOutput) String

func (s PutBotAliasOutput) String() string

String returns the string representation

type PutBotAliasRequest

type PutBotAliasRequest struct {
	*aws.Request
	Input *PutBotAliasInput
	Copy  func(*PutBotAliasInput) PutBotAliasRequest
}

PutBotAliasRequest is a API request type for the PutBotAlias API operation.

func (PutBotAliasRequest) Send

Send marshals and sends the PutBotAlias API request.

type PutBotInput

type PutBotInput struct {

	// When Amazon Lex can't understand the user's input in context, it tries to
	// elicit the information a few times. After that, Amazon Lex sends the message
	// defined in abortStatement to the user, and then aborts the conversation.
	// To set the number of retries, use the valueElicitationPrompt field for the
	// slot type.
	//
	// For example, in a pizza ordering bot, Amazon Lex might ask a user "What type
	// of crust would you like?" If the user's response is not one of the expected
	// responses (for example, "thin crust, "deep dish," etc.), Amazon Lex tries
	// to elicit a correct response a few more times.
	//
	// For example, in a pizza ordering application, OrderPizza might be one of
	// the intents. This intent might require the CrustType slot. You specify the
	// valueElicitationPrompt field when you create the CrustType slot.
	AbortStatement *Statement `locationName:"abortStatement" type:"structure"`

	// Identifies a specific revision of the $LATEST version.
	//
	// When you create a new bot, leave the checksum field blank. If you specify
	// a checksum you get a BadRequestException exception.
	//
	// When you want to update a bot, set the checksum field to the checksum of
	// the most recent revision of the $LATEST version. If you don't specify the
	//  checksum field, or if the checksum does not match the $LATEST version, you
	// get a PreconditionFailedException exception.
	Checksum *string `locationName:"checksum" type:"string"`

	// For each Amazon Lex bot created with the Amazon Lex Model Building Service,
	// you must specify whether your use of Amazon Lex is related to a website,
	// program, or other application that is directed or targeted, in whole or in
	// part, to children under age 13 and subject to the Children's Online Privacy
	// Protection Act (COPPA) by specifying true or false in the childDirected field.
	// By specifying true in the childDirected field, you confirm that your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA. By specifying false in the childDirected field, you confirm
	// that your use of Amazon Lex is not related to a website, program, or other
	// application that is directed or targeted, in whole or in part, to children
	// under age 13 and subject to COPPA. You may not specify a default value for
	// the childDirected field that does not accurately reflect whether your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA.
	//
	// If your use of Amazon Lex relates to a website, program, or other application
	// that is directed in whole or in part, to children under age 13, you must
	// obtain any required verifiable parental consent under COPPA. For information
	// regarding the use of Amazon Lex in connection with websites, programs, or
	// other applications that are directed or targeted, in whole or in part, to
	// children under age 13, see the Amazon Lex FAQ. (https://aws.amazon.com/lex/faqs#data-security)
	//
	// ChildDirected is a required field
	ChildDirected *bool `locationName:"childDirected" type:"boolean" required:"true"`

	// When Amazon Lex doesn't understand the user's intent, it uses this message
	// to get clarification. To specify how many times Amazon Lex should repeate
	// the clarification prompt, use the maxAttempts field. If Amazon Lex still
	// doesn't understand, it sends the message in the abortStatement field.
	//
	// When you create a clarification prompt, make sure that it suggests the correct
	// response from the user. for example, for a bot that orders pizza and drinks,
	// you might create this clarification prompt: "What would you like to do? You
	// can say 'Order a pizza' or 'Order a drink.'"
	ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// A description of the bot.
	Description *string `locationName:"description" type:"string"`

	// The maximum time in seconds that Amazon Lex retains the data gathered in
	// a conversation.
	//
	// A user interaction session remains active for the amount of time specified.
	// If no conversation occurs during this time, the session expires and Amazon
	// Lex deletes any data provided before the timeout.
	//
	// For example, suppose that a user chooses the OrderPizza intent, but gets
	// sidetracked halfway through placing an order. If the user doesn't complete
	// the order within the specified time, Amazon Lex discards the slot information
	// that it gathered, and the user must start over.
	//
	// If you don't include the idleSessionTTLInSeconds element in a PutBot operation
	// request, Amazon Lex uses the default value. This is also true if the request
	// replaces an existing bot.
	//
	// The default is 300 seconds (5 minutes).
	IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"`

	// An array of Intent objects. Each intent represents a command that a user
	// can express. For example, a pizza ordering bot might support an OrderPizza
	// intent. For more information, see how-it-works.
	Intents []Intent `locationName:"intents" type:"list"`

	// Specifies the target locale for the bot. Any intent used in the bot must
	// be compatible with the locale of the bot.
	//
	// The default is en-US.
	//
	// Locale is a required field
	Locale Locale `locationName:"locale" type:"string" required:"true" enum:"true"`

	// The name of the bot. The name is not case sensitive.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`

	// If you set the processBehavior element to BUILD, Amazon Lex builds the bot
	// so that it can be run. If you set the element to SAVE Amazon Lex saves the
	// bot, but doesn't build it.
	//
	// If you don't specify this value, the default value is BUILD.
	ProcessBehavior ProcessBehavior `locationName:"processBehavior" type:"string" enum:"true"`

	// The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions
	// with the user. The locale configured for the voice must match the locale
	// of the bot. For more information, see Available Voices (http://docs.aws.amazon.com/polly/latest/dg/voicelist.html)
	// in the Amazon Polly Developer Guide.
	VoiceId *string `locationName:"voiceId" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotRequest

func (PutBotInput) GoString

func (s PutBotInput) GoString() string

GoString returns the string representation

func (PutBotInput) MarshalFields added in v0.3.0

func (s PutBotInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutBotInput) String

func (s PutBotInput) String() string

String returns the string representation

func (*PutBotInput) Validate

func (s *PutBotInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutBotOutput

type PutBotOutput struct {

	// The message that Amazon Lex uses to abort a conversation. For more information,
	// see PutBot.
	AbortStatement *Statement `locationName:"abortStatement" type:"structure"`

	// Checksum of the bot that you created.
	Checksum *string `locationName:"checksum" type:"string"`

	// For each Amazon Lex bot created with the Amazon Lex Model Building Service,
	// you must specify whether your use of Amazon Lex is related to a website,
	// program, or other application that is directed or targeted, in whole or in
	// part, to children under age 13 and subject to the Children's Online Privacy
	// Protection Act (COPPA) by specifying true or false in the childDirected field.
	// By specifying true in the childDirected field, you confirm that your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA. By specifying false in the childDirected field, you confirm
	// that your use of Amazon Lex is not related to a website, program, or other
	// application that is directed or targeted, in whole or in part, to children
	// under age 13 and subject to COPPA. You may not specify a default value for
	// the childDirected field that does not accurately reflect whether your use
	// of Amazon Lex is related to a website, program, or other application that
	// is directed or targeted, in whole or in part, to children under age 13 and
	// subject to COPPA.
	//
	// If your use of Amazon Lex relates to a website, program, or other application
	// that is directed in whole or in part, to children under age 13, you must
	// obtain any required verifiable parental consent under COPPA. For information
	// regarding the use of Amazon Lex in connection with websites, programs, or
	// other applications that are directed or targeted, in whole or in part, to
	// children under age 13, see the Amazon Lex FAQ. (https://aws.amazon.com/lex/faqs#data-security)
	ChildDirected *bool `locationName:"childDirected" type:"boolean"`

	// The prompts that Amazon Lex uses when it doesn't understand the user's intent.
	// For more information, see PutBot.
	ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// The date that the bot was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the bot.
	Description *string `locationName:"description" type:"string"`

	// If status is FAILED, Amazon Lex provides the reason that it failed to build
	// the bot.
	FailureReason *string `locationName:"failureReason" type:"string"`

	// The maximum length of time that Amazon Lex retains the data gathered in a
	// conversation. For more information, see PutBot.
	IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"`

	// An array of Intent objects. For more information, see PutBot.
	Intents []Intent `locationName:"intents" type:"list"`

	// The date that the bot was updated. When you create a resource, the creation
	// date and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The target locale for the bot.
	Locale Locale `locationName:"locale" type:"string" enum:"true"`

	// The name of the bot.
	Name *string `locationName:"name" min:"2" type:"string"`

	// When you send a request to create a bot with processBehavior set to BUILD,
	// Amazon Lex sets the status response element to BUILDING. After Amazon Lex
	// builds the bot, it sets status to READY. If Amazon Lex can't build the bot,
	// Amazon Lex sets status to FAILED. Amazon Lex returns the reason for the failure
	// in the failureReason response element.
	//
	// When you set processBehaviorto SAVE, Amazon Lex sets the status code to NOT
	// BUILT.
	Status Status `locationName:"status" type:"string" enum:"true"`

	// The version of the bot. For a new bot, the version is always $LATEST.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The Amazon Polly voice ID that Amazon Lex uses for voice interaction with
	// the user. For more information, see PutBot.
	VoiceId *string `locationName:"voiceId" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotResponse

func (PutBotOutput) GoString

func (s PutBotOutput) GoString() string

GoString returns the string representation

func (PutBotOutput) MarshalFields added in v0.3.0

func (s PutBotOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutBotOutput) SDKResponseMetadata

func (s PutBotOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutBotOutput) String

func (s PutBotOutput) String() string

String returns the string representation

type PutBotRequest

type PutBotRequest struct {
	*aws.Request
	Input *PutBotInput
	Copy  func(*PutBotInput) PutBotRequest
}

PutBotRequest is a API request type for the PutBot API operation.

func (PutBotRequest) Send

func (r PutBotRequest) Send() (*PutBotOutput, error)

Send marshals and sends the PutBot API request.

type PutIntentInput

type PutIntentInput struct {

	// Identifies a specific revision of the $LATEST version.
	//
	// When you create a new intent, leave the checksum field blank. If you specify
	// a checksum you get a BadRequestException exception.
	//
	// When you want to update a intent, set the checksum field to the checksum
	// of the most recent revision of the $LATEST version. If you don't specify
	// the  checksum field, or if the checksum does not match the $LATEST version,
	// you get a PreconditionFailedException exception.
	Checksum *string `locationName:"checksum" type:"string"`

	// The statement that you want Amazon Lex to convey to the user after the intent
	// is successfully fulfilled by the Lambda function.
	//
	// This element is relevant only if you provide a Lambda function in the fulfillmentActivity.
	// If you return the intent to the client application, you can't specify this
	// element.
	//
	// The followUpPrompt and conclusionStatement are mutually exclusive. You can
	// specify only one.
	ConclusionStatement *Statement `locationName:"conclusionStatement" type:"structure"`

	// Prompts the user to confirm the intent. This question should have a yes or
	// no answer.
	//
	// Amazon Lex uses this prompt to ensure that the user acknowledges that the
	// intent is ready for fulfillment. For example, with the OrderPizza intent,
	// you might want to confirm that the order is correct before placing it. For
	// other intents, such as intents that simply respond to user questions, you
	// might not need to ask the user for confirmation before providing the information.
	//
	// You you must provide both the rejectionStatement and the confirmationPrompt,
	// or neither.
	ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// A description of the intent.
	Description *string `locationName:"description" type:"string"`

	// Specifies a Lambda function to invoke for each user input. You can invoke
	// this Lambda function to personalize user interaction.
	//
	// For example, suppose your bot determines that the user is John. Your Lambda
	// function might retrieve John's information from a backend database and prepopulate
	// some of the values. For example, if you find that John is gluten intolerant,
	// you might set the corresponding intent slot, GlutenIntolerant, to true. You
	// might find John's phone number and set the corresponding session attribute.
	DialogCodeHook *CodeHook `locationName:"dialogCodeHook" type:"structure"`

	// Amazon Lex uses this prompt to solicit additional activity after fulfilling
	// an intent. For example, after the OrderPizza intent is fulfilled, you might
	// prompt the user to order a drink.
	//
	// The action that Amazon Lex takes depends on the user's response, as follows:
	//
	//    * If the user says "Yes" it responds with the clarification prompt that
	//    is configured for the bot.
	//
	//    * if the user says "Yes" and continues with an utterance that triggers
	//    an intent it starts a conversation for the intent.
	//
	//    * If the user says "No" it responds with the rejection statement configured
	//    for the the follow-up prompt.
	//
	//    * If it doesn't recognize the utterance it repeats the follow-up prompt
	//    again.
	//
	// The followUpPrompt field and the conclusionStatement field are mutually exclusive.
	// You can specify only one.
	FollowUpPrompt *FollowUpPrompt `locationName:"followUpPrompt" type:"structure"`

	// Required. Describes how the intent is fulfilled. For example, after a user
	// provides all of the information for a pizza order, fulfillmentActivity defines
	// how the bot places an order with a local pizza store.
	//
	// You might configure Amazon Lex to return all of the intent information to
	// the client application, or direct it to invoke a Lambda function that can
	// process the intent (for example, place an order with a pizzeria).
	FulfillmentActivity *FulfillmentActivity `locationName:"fulfillmentActivity" type:"structure"`

	// The name of the intent. The name is not case sensitive.
	//
	// The name can't match a built-in intent name, or a built-in intent name with
	// "AMAZON." removed. For example, because there is a built-in intent called
	// AMAZON.HelpIntent, you can't create a custom intent called HelpIntent.
	//
	// For a list of built-in intents, see Standard Built-in Intents (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents)
	// in the Alexa Skills Kit.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// A unique identifier for the built-in intent to base this intent on. To find
	// the signature for an intent, see Standard Built-in Intents (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents)
	// in the Alexa Skills Kit.
	ParentIntentSignature *string `locationName:"parentIntentSignature" type:"string"`

	// When the user answers "no" to the question defined in confirmationPrompt,
	// Amazon Lex responds with this statement to acknowledge that the intent was
	// canceled.
	//
	// You must provide both the rejectionStatement and the confirmationPrompt,
	// or neither.
	RejectionStatement *Statement `locationName:"rejectionStatement" type:"structure"`

	// An array of utterances (strings) that a user might say to signal the intent.
	// For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".
	//
	// In each utterance, a slot name is enclosed in curly braces.
	SampleUtterances []string `locationName:"sampleUtterances" type:"list"`

	// An array of intent slots. At runtime, Amazon Lex elicits required slot values
	// from the user using prompts defined in the slots. For more information, see
	// how-it-works.
	Slots []Slot `locationName:"slots" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentRequest

func (PutIntentInput) GoString

func (s PutIntentInput) GoString() string

GoString returns the string representation

func (PutIntentInput) MarshalFields added in v0.3.0

func (s PutIntentInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutIntentInput) String

func (s PutIntentInput) String() string

String returns the string representation

func (*PutIntentInput) Validate

func (s *PutIntentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutIntentOutput

type PutIntentOutput struct {

	// Checksum of the $LATESTversion of the intent created or updated.
	Checksum *string `locationName:"checksum" type:"string"`

	// After the Lambda function specified in thefulfillmentActivityintent fulfills
	// the intent, Amazon Lex conveys this statement to the user.
	ConclusionStatement *Statement `locationName:"conclusionStatement" type:"structure"`

	// If defined in the intent, Amazon Lex prompts the user to confirm the intent
	// before fulfilling it.
	ConfirmationPrompt *Prompt `locationName:"confirmationPrompt" type:"structure"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// The date that the intent was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the intent.
	Description *string `locationName:"description" type:"string"`

	// If defined in the intent, Amazon Lex invokes this Lambda function for each
	// user input.
	DialogCodeHook *CodeHook `locationName:"dialogCodeHook" type:"structure"`

	// If defined in the intent, Amazon Lex uses this prompt to solicit additional
	// user activity after the intent is fulfilled.
	FollowUpPrompt *FollowUpPrompt `locationName:"followUpPrompt" type:"structure"`

	// If defined in the intent, Amazon Lex invokes this Lambda function to fulfill
	// the intent after the user provides all of the information required by the
	// intent.
	FulfillmentActivity *FulfillmentActivity `locationName:"fulfillmentActivity" type:"structure"`

	// The date that the intent was updated. When you create a resource, the creation
	// date and last update dates are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the intent.
	Name *string `locationName:"name" min:"1" type:"string"`

	// A unique identifier for the built-in intent that this intent is based on.
	ParentIntentSignature *string `locationName:"parentIntentSignature" type:"string"`

	// If the user answers "no" to the question defined in confirmationPrompt Amazon
	// Lex responds with this statement to acknowledge that the intent was canceled.
	RejectionStatement *Statement `locationName:"rejectionStatement" type:"structure"`

	// An array of sample utterances that are configured for the intent.
	SampleUtterances []string `locationName:"sampleUtterances" type:"list"`

	// An array of intent slots that are configured for the intent.
	Slots []Slot `locationName:"slots" type:"list"`

	// The version of the intent. For a new intent, the version is always $LATEST.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentResponse

func (PutIntentOutput) GoString

func (s PutIntentOutput) GoString() string

GoString returns the string representation

func (PutIntentOutput) MarshalFields added in v0.3.0

func (s PutIntentOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutIntentOutput) SDKResponseMetadata

func (s PutIntentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutIntentOutput) String

func (s PutIntentOutput) String() string

String returns the string representation

type PutIntentRequest

type PutIntentRequest struct {
	*aws.Request
	Input *PutIntentInput
	Copy  func(*PutIntentInput) PutIntentRequest
}

PutIntentRequest is a API request type for the PutIntent API operation.

func (PutIntentRequest) Send

func (r PutIntentRequest) Send() (*PutIntentOutput, error)

Send marshals and sends the PutIntent API request.

type PutSlotTypeInput

type PutSlotTypeInput struct {

	// Identifies a specific revision of the $LATEST version.
	//
	// When you create a new slot type, leave the checksum field blank. If you specify
	// a checksum you get a BadRequestException exception.
	//
	// When you want to update a slot type, set the checksum field to the checksum
	// of the most recent revision of the $LATEST version. If you don't specify
	// the  checksum field, or if the checksum does not match the $LATEST version,
	// you get a PreconditionFailedException exception.
	Checksum *string `locationName:"checksum" type:"string"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// A description of the slot type.
	Description *string `locationName:"description" type:"string"`

	// 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.
	//
	// When Amazon Lex resolves a slot value, it generates a resolution list that
	// contains up to five possible values for the slot. If you are using a Lambda
	// function, this resolution list is passed to the function. If you are not
	// using a Lambda function you can choose to return the value that the user
	// entered or the first value in the resolution list as the slot value. The
	// valueSelectionStrategy field indicates the option to use.
	EnumerationValues []EnumerationValue `locationName:"enumerationValues" min:"1" type:"list"`

	// The name of the slot type. The name is not case sensitive.
	//
	// The name can't match a built-in slot type name, or a built-in slot type name
	// with "AMAZON." removed. For example, because there is a built-in slot type
	// called AMAZON.DATE, you can't create a custom slot type called DATE.
	//
	// For a list of built-in slot types, see Slot Type Reference (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-reference)
	// in the Alexa Skills Kit.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`

	// 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.
	ValueSelectionStrategy SlotValueSelectionStrategy `locationName:"valueSelectionStrategy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeRequest

func (PutSlotTypeInput) GoString

func (s PutSlotTypeInput) GoString() string

GoString returns the string representation

func (PutSlotTypeInput) MarshalFields added in v0.3.0

func (s PutSlotTypeInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutSlotTypeInput) String

func (s PutSlotTypeInput) String() string

String returns the string representation

func (*PutSlotTypeInput) Validate

func (s *PutSlotTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutSlotTypeOutput

type PutSlotTypeOutput struct {

	// Checksum of the $LATEST version of the slot type.
	Checksum *string `locationName:"checksum" type:"string"`

	CreateVersion *bool `locationName:"createVersion" type:"boolean"`

	// The date that the slot type was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the slot type.
	Description *string `locationName:"description" type:"string"`

	// A list of EnumerationValue objects that defines the values that the slot
	// type can take.
	EnumerationValues []EnumerationValue `locationName:"enumerationValues" min:"1" type:"list"`

	// The date that the slot type was updated. When you create a slot type, the
	// creation date and last update date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the slot type.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The slot resolution strategy that Amazon Lex uses to determine the value
	// of the slot. For more information, see PutSlotType.
	ValueSelectionStrategy SlotValueSelectionStrategy `locationName:"valueSelectionStrategy" type:"string" enum:"true"`

	// The version of the slot type. For a new slot type, the version is always
	// $LATEST.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeResponse

func (PutSlotTypeOutput) GoString

func (s PutSlotTypeOutput) GoString() string

GoString returns the string representation

func (PutSlotTypeOutput) MarshalFields added in v0.3.0

func (s PutSlotTypeOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutSlotTypeOutput) SDKResponseMetadata

func (s PutSlotTypeOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutSlotTypeOutput) String

func (s PutSlotTypeOutput) String() string

String returns the string representation

type PutSlotTypeRequest

type PutSlotTypeRequest struct {
	*aws.Request
	Input *PutSlotTypeInput
	Copy  func(*PutSlotTypeInput) PutSlotTypeRequest
}

PutSlotTypeRequest is a API request type for the PutSlotType API operation.

func (PutSlotTypeRequest) Send

Send marshals and sends the PutSlotType API request.

type ReferenceType

type ReferenceType string
const (
	ReferenceTypeIntent     ReferenceType = "Intent"
	ReferenceTypeBot        ReferenceType = "Bot"
	ReferenceTypeBotAlias   ReferenceType = "BotAlias"
	ReferenceTypeBotChannel ReferenceType = "BotChannel"
)

Enum values for ReferenceType

func (ReferenceType) MarshalValue added in v0.3.0

func (enum ReferenceType) MarshalValue() (string, error)

func (ReferenceType) MarshalValueBuf added in v0.3.0

func (enum ReferenceType) MarshalValueBuf(b []byte) ([]byte, error)

type ResourceReference

type ResourceReference struct {

	// The name of the resource that is using the resource that you are trying to
	// delete.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The version of the resource that is using the resource that you are trying
	// to delete.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes the resource that refers to the resource that you are attempting to delete. This object is returned as part of the ResourceInUseException exception. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ResourceReference

func (ResourceReference) GoString

func (s ResourceReference) GoString() string

GoString returns the string representation

func (ResourceReference) MarshalFields added in v0.3.0

func (s ResourceReference) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResourceReference) String

func (s ResourceReference) String() string

String returns the string representation

type ResourceType

type ResourceType string
const (
	ResourceTypeBot      ResourceType = "BOT"
	ResourceTypeIntent   ResourceType = "INTENT"
	ResourceTypeSlotType ResourceType = "SLOT_TYPE"
)

Enum values for ResourceType

func (ResourceType) MarshalValue added in v0.3.0

func (enum ResourceType) MarshalValue() (string, error)

func (ResourceType) MarshalValueBuf added in v0.3.0

func (enum ResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type Slot

type Slot struct {

	// A description of the slot.
	Description *string `locationName:"description" type:"string"`

	// The name of the slot.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Directs Lex the order in which to elicit this slot value from the user. For
	// example, if the intent has two slots with priorities 1 and 2, AWS Lex first
	// elicits a value for the slot with priority 1.
	//
	// If multiple slots share the same priority, the order in which Lex elicits
	// values is arbitrary.
	Priority *int64 `locationName:"priority" type:"integer"`

	// A set of possible responses for the slot type used by text-based clients.
	// A user chooses an option from the response card, instead of using text to
	// reply.
	ResponseCard *string `locationName:"responseCard" min:"1" type:"string"`

	// If you know a specific pattern with which users might respond to an Amazon
	// Lex request for a slot value, you can provide those utterances to improve
	// accuracy. This is optional. In most cases, Amazon Lex is capable of understanding
	// user utterances.
	SampleUtterances []string `locationName:"sampleUtterances" type:"list"`

	// Specifies whether the slot is required or optional.
	//
	// SlotConstraint is a required field
	SlotConstraint SlotConstraint `locationName:"slotConstraint" type:"string" required:"true" enum:"true"`

	// The type of the slot, either a custom slot type that you defined or one of
	// the built-in slot types.
	SlotType *string `locationName:"slotType" min:"1" type:"string"`

	// The version of the slot type.
	SlotTypeVersion *string `locationName:"slotTypeVersion" min:"1" type:"string"`

	// The prompt that Amazon Lex uses to elicit the slot value from the user.
	ValueElicitationPrompt *Prompt `locationName:"valueElicitationPrompt" type:"structure"`
	// contains filtered or unexported fields
}

Identifies the version of a specific slot. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Slot

func (Slot) GoString

func (s Slot) GoString() string

GoString returns the string representation

func (Slot) MarshalFields added in v0.3.0

func (s Slot) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Slot) String

func (s Slot) String() string

String returns the string representation

func (*Slot) Validate

func (s *Slot) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SlotConstraint

type SlotConstraint string
const (
	SlotConstraintRequired SlotConstraint = "Required"
	SlotConstraintOptional SlotConstraint = "Optional"
)

Enum values for SlotConstraint

func (SlotConstraint) MarshalValue added in v0.3.0

func (enum SlotConstraint) MarshalValue() (string, error)

func (SlotConstraint) MarshalValueBuf added in v0.3.0

func (enum SlotConstraint) MarshalValueBuf(b []byte) ([]byte, error)

type SlotTypeMetadata

type SlotTypeMetadata struct {

	// The date that the slot type was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// A description of the slot type.
	Description *string `locationName:"description" type:"string"`

	// The date that the slot type was updated. When you create a resource, the
	// creation date and last updated date are the same.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// The name of the slot type.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The version of the slot type.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a slot type.. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/SlotTypeMetadata

func (SlotTypeMetadata) GoString

func (s SlotTypeMetadata) GoString() string

GoString returns the string representation

func (SlotTypeMetadata) MarshalFields added in v0.3.0

func (s SlotTypeMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SlotTypeMetadata) String

func (s SlotTypeMetadata) String() string

String returns the string representation

type SlotValueSelectionStrategy

type SlotValueSelectionStrategy string
const (
	SlotValueSelectionStrategyOriginalValue SlotValueSelectionStrategy = "ORIGINAL_VALUE"
	SlotValueSelectionStrategyTopResolution SlotValueSelectionStrategy = "TOP_RESOLUTION"
)

Enum values for SlotValueSelectionStrategy

func (SlotValueSelectionStrategy) MarshalValue added in v0.3.0

func (enum SlotValueSelectionStrategy) MarshalValue() (string, error)

func (SlotValueSelectionStrategy) MarshalValueBuf added in v0.3.0

func (enum SlotValueSelectionStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type StartImportInput added in v0.3.0

type StartImportInput struct {

	// Specifies the action that the StartImport operation should take when there
	// is an existing resource with the same name.
	//
	//    * FAIL_ON_CONFLICT - The import operation is stopped on the first conflict
	//    between a resource in the import file and an existing resource. The name
	//    of the resource causing the conflict is in the failureReason field of
	//    the response to the GetImport operation.
	//
	// OVERWRITE_LATEST - The import operation proceeds even if there is a conflict
	//    with an existing resource. The $LASTEST version of the existing resource
	//    is overwritten with the data from the import file.
	//
	// MergeStrategy is a required field
	MergeStrategy MergeStrategy `locationName:"mergeStrategy" type:"string" required:"true" enum:"true"`

	// A zip archive in binary format. The archive should contain one file, a JSON
	// file containing the resource to import. The resource should match the type
	// specified in the resourceType field.
	//
	// Payload is automatically base64 encoded/decoded by the SDK.
	//
	// Payload is a required field
	Payload []byte `locationName:"payload" type:"blob" required:"true"`

	// Specifies the type of resource to export. Each resource also exports any
	// resources that it depends on.
	//
	//    * A bot exports dependent intents.
	//
	//    * An intent exports dependent slot types.
	//
	// ResourceType is a required field
	ResourceType ResourceType `locationName:"resourceType" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImportRequest

func (StartImportInput) GoString added in v0.3.0

func (s StartImportInput) GoString() string

GoString returns the string representation

func (StartImportInput) MarshalFields added in v0.3.0

func (s StartImportInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (StartImportInput) String added in v0.3.0

func (s StartImportInput) String() string

String returns the string representation

func (*StartImportInput) Validate added in v0.3.0

func (s *StartImportInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartImportOutput added in v0.3.0

type StartImportOutput struct {

	// A timestamp for the date and time that the import job was requested.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// The identifier for the specific import job.
	ImportId *string `locationName:"importId" type:"string"`

	// The status of the import job. If the status is FAILED, you can get the reason
	// for the failure using the GetImport operation.
	ImportStatus ImportStatus `locationName:"importStatus" type:"string" enum:"true"`

	// The action to take when there is a merge conflict.
	MergeStrategy MergeStrategy `locationName:"mergeStrategy" type:"string" enum:"true"`

	// The name given to the import job.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The type of resource to import.
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImportResponse

func (StartImportOutput) GoString added in v0.3.0

func (s StartImportOutput) GoString() string

GoString returns the string representation

func (StartImportOutput) MarshalFields added in v0.3.0

func (s StartImportOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (StartImportOutput) SDKResponseMetadata added in v0.3.0

func (s StartImportOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartImportOutput) String added in v0.3.0

func (s StartImportOutput) String() string

String returns the string representation

type StartImportRequest added in v0.3.0

type StartImportRequest struct {
	*aws.Request
	Input *StartImportInput
	Copy  func(*StartImportInput) StartImportRequest
}

StartImportRequest is a API request type for the StartImport API operation.

func (StartImportRequest) Send added in v0.3.0

Send marshals and sends the StartImport API request.

type Statement

type Statement struct {

	// A collection of message objects.
	//
	// Messages is a required field
	Messages []Message `locationName:"messages" min:"1" type:"list" required:"true"`

	// At runtime, if the client is using the PostText (http://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html)
	// API, Amazon Lex includes the response card in the response. It substitutes
	// all of the session attributes and slot values for placeholders in the response
	// card.
	ResponseCard *string `locationName:"responseCard" min:"1" type:"string"`
	// contains filtered or unexported fields
}

A collection of messages that convey information to the user. At runtime, Amazon Lex selects the message to convey. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Statement

func (Statement) GoString

func (s Statement) GoString() string

GoString returns the string representation

func (Statement) MarshalFields added in v0.3.0

func (s Statement) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Statement) String

func (s Statement) String() string

String returns the string representation

func (*Statement) Validate

func (s *Statement) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Status

type Status string
const (
	StatusBuilding Status = "BUILDING"
	StatusReady    Status = "READY"
	StatusFailed   Status = "FAILED"
	StatusNotBuilt Status = "NOT_BUILT"
)

Enum values for Status

func (Status) MarshalValue added in v0.3.0

func (enum Status) MarshalValue() (string, error)

func (Status) MarshalValueBuf added in v0.3.0

func (enum Status) MarshalValueBuf(b []byte) ([]byte, error)

type StatusType

type StatusType string
const (
	StatusTypeDetected StatusType = "Detected"
	StatusTypeMissed   StatusType = "Missed"
)

Enum values for StatusType

func (StatusType) MarshalValue added in v0.3.0

func (enum StatusType) MarshalValue() (string, error)

func (StatusType) MarshalValueBuf added in v0.3.0

func (enum StatusType) MarshalValueBuf(b []byte) ([]byte, error)

type UtteranceData

type UtteranceData struct {

	// The number of times that the utterance was processed.
	Count *int64 `locationName:"count" type:"integer"`

	// The total number of individuals that used the utterance.
	DistinctUsers *int64 `locationName:"distinctUsers" type:"integer"`

	// The date that the utterance was first recorded.
	FirstUtteredDate *time.Time `locationName:"firstUtteredDate" type:"timestamp" timestampFormat:"unix"`

	// The date that the utterance was last recorded.
	LastUtteredDate *time.Time `locationName:"lastUtteredDate" type:"timestamp" timestampFormat:"unix"`

	// The text that was entered by the user or the text representation of an audio
	// clip.
	UtteranceString *string `locationName:"utteranceString" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a single utterance that was made to your bot. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UtteranceData

func (UtteranceData) GoString

func (s UtteranceData) GoString() string

GoString returns the string representation

func (UtteranceData) MarshalFields added in v0.3.0

func (s UtteranceData) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UtteranceData) String

func (s UtteranceData) String() string

String returns the string representation

type UtteranceList

type UtteranceList struct {

	// The version of the bot that processed the list.
	BotVersion *string `locationName:"botVersion" min:"1" type:"string"`

	// One or more UtteranceData objects that contain information about the utterances
	// that have been made to a bot. The maximum number of object is 100.
	Utterances []UtteranceData `locationName:"utterances" type:"list"`
	// contains filtered or unexported fields
}

Provides a list of utterances that have been made to a specific version of your bot. The list contains a maximum of 100 utterances. Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UtteranceList

func (UtteranceList) GoString

func (s UtteranceList) GoString() string

GoString returns the string representation

func (UtteranceList) MarshalFields added in v0.3.0

func (s UtteranceList) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UtteranceList) String

func (s UtteranceList) String() string

String returns the string representation

Directories

Path Synopsis
Package lexmodelbuildingserviceiface provides an interface to enable mocking the Amazon Lex Model Building Service service client for testing your code.
Package lexmodelbuildingserviceiface provides an interface to enable mocking the Amazon Lex Model Building Service service client for testing your code.

Jump to

Keyboard shortcuts

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