AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PutBotOutput

import "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice"

type PutBotOutput struct { AbortStatement *Statement `locationName:"abortStatement" type:"structure"` Checksum *string `locationName:"checksum" type:"string"` ChildDirected *bool `locationName:"childDirected" type:"boolean"` ClarificationPrompt *Prompt `locationName:"clarificationPrompt" type:"structure"` CreateVersion *bool `locationName:"createVersion" type:"boolean"` CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"` Description *string `locationName:"description" type:"string"` FailureReason *string `locationName:"failureReason" type:"string"` IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` Intents []*Intent `locationName:"intents" type:"list"` LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"` Locale *string `locationName:"locale" type:"string" enum:"Locale"` Name *string `locationName:"name" min:"2" type:"string"` Status *string `locationName:"status" type:"string" enum:"Status"` Version *string `locationName:"version" min:"1" type:"string"` VoiceId *string `locationName:"voiceId" type:"string"` }

AbortStatement

A collection of messages that convey information to the user. At runtime, Amazon Lex selects the message to convey.

Checksum

Type: *string

Checksum of the bot that you created.

ChildDirected

Type: *bool

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)

ClarificationPrompt

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.

CreateVersion

Type: *bool

CreatedDate

Type: *time.Time

The date that the bot was created.

Description

Type: *string

A description of the bot.

FailureReason

Type: *string

If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.

IdleSessionTTLInSeconds

Type: *int64

The maximum length of time that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.

Intents

Identifies the specific version of an intent.

LastUpdatedDate

Type: *time.Time

The date that the bot was updated. When you create a resource, the creation date and last updated date are the same.

Locale

Type: *string

The target locale for the bot.

Name

Type: *string

The name of the bot.

Status

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.

Version

Type: *string

The version of the bot. For a new bot, the version is always $LATEST.

VoiceId

Type: *string

The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. For more information, see PutBot.

Method

GoString

func (s PutBotOutput) GoString() string

GoString returns the string representation

SetAbortStatement

func (s *PutBotOutput) SetAbortStatement(v *Statement) *PutBotOutput

SetAbortStatement sets the AbortStatement field's value.

SetChecksum

func (s *PutBotOutput) SetChecksum(v string) *PutBotOutput

SetChecksum sets the Checksum field's value.

SetChildDirected

func (s *PutBotOutput) SetChildDirected(v bool) *PutBotOutput

SetChildDirected sets the ChildDirected field's value.

SetClarificationPrompt

func (s *PutBotOutput) SetClarificationPrompt(v *Prompt) *PutBotOutput

SetClarificationPrompt sets the ClarificationPrompt field's value.

SetCreateVersion

func (s *PutBotOutput) SetCreateVersion(v bool) *PutBotOutput

SetCreateVersion sets the CreateVersion field's value.

SetCreatedDate

func (s *PutBotOutput) SetCreatedDate(v time.Time) *PutBotOutput

SetCreatedDate sets the CreatedDate field's value.

SetDescription

func (s *PutBotOutput) SetDescription(v string) *PutBotOutput

SetDescription sets the Description field's value.

SetFailureReason

func (s *PutBotOutput) SetFailureReason(v string) *PutBotOutput

SetFailureReason sets the FailureReason field's value.

SetIdleSessionTTLInSeconds

func (s *PutBotOutput) SetIdleSessionTTLInSeconds(v int64) *PutBotOutput

SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value.

SetIntents

func (s *PutBotOutput) SetIntents(v []*Intent) *PutBotOutput

SetIntents sets the Intents field's value.

SetLastUpdatedDate

func (s *PutBotOutput) SetLastUpdatedDate(v time.Time) *PutBotOutput

SetLastUpdatedDate sets the LastUpdatedDate field's value.

SetLocale

func (s *PutBotOutput) SetLocale(v string) *PutBotOutput

SetLocale sets the Locale field's value.

SetName

func (s *PutBotOutput) SetName(v string) *PutBotOutput

SetName sets the Name field's value.

SetStatus

func (s *PutBotOutput) SetStatus(v string) *PutBotOutput

SetStatus sets the Status field's value.

SetVersion

func (s *PutBotOutput) SetVersion(v string) *PutBotOutput

SetVersion sets the Version field's value.

SetVoiceId

func (s *PutBotOutput) SetVoiceId(v string) *PutBotOutput

SetVoiceId sets the VoiceId field's value.

String

func (s PutBotOutput) String() string

String returns the string representation

On this page: