![]() |
![]()
| ![]() |
![]()
NAMEPaws::LexRuntime::PostText - Arguments for method PostText on Paws::LexRuntime DESCRIPTIONThis class represents the parameters used for calling the method PostText on the Amazon Lex Runtime Service service. Use the attributes of this class as arguments to method PostText. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PostText. SYNOPSISmy $runtime.lex = Paws->service('LexRuntime'); my $PostTextResponse = $runtime . lex->PostText( BotAlias => 'MyBotAlias', BotName => 'MyBotName', InputText => 'MyText', UserId => 'MyUserId', ActiveContexts => [ { Name => 'MyActiveContextName', # min: 1, max: 100 Parameters => { 'MyParameterName' => 'MyText', # key: min: 1, max: 100, value: min: 1, max: 1024 }, # max: 10 TimeToLive => { TimeToLiveInSeconds => 1, # min: 5, max: 86400; OPTIONAL TurnsToLive => 1, # min: 1, max: 20; OPTIONAL }, }, ... ], # OPTIONAL RequestAttributes => { 'MyString' => 'MyString', }, # OPTIONAL SessionAttributes => { 'MyString' => 'MyString', }, # OPTIONAL ); # Results: my $ActiveContexts = $PostTextResponse->ActiveContexts; my $AlternativeIntents = $PostTextResponse->AlternativeIntents; my $BotVersion = $PostTextResponse->BotVersion; my $DialogState = $PostTextResponse->DialogState; my $IntentName = $PostTextResponse->IntentName; my $Message = $PostTextResponse->Message; my $MessageFormat = $PostTextResponse->MessageFormat; my $NluIntentConfidence = $PostTextResponse->NluIntentConfidence; my $ResponseCard = $PostTextResponse->ResponseCard; my $SentimentResponse = $PostTextResponse->SentimentResponse; my $SessionAttributes = $PostTextResponse->SessionAttributes; my $SessionId = $PostTextResponse->SessionId; my $SlotToElicit = $PostTextResponse->SlotToElicit; my $Slots = $PostTextResponse->Slots; # Returns a L<Paws::LexRuntime::PostTextResponse> object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/runtime.lex/PostText> ATTRIBUTESActiveContexts => ArrayRef[Paws::LexRuntime::ActiveContext]A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request, If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared. REQUIRED BotAlias => StrThe alias of the Amazon Lex bot. REQUIRED BotName => StrThe name of the Amazon Lex bot. REQUIRED InputText => StrThe text that the user entered (Amazon Lex interprets this text). RequestAttributes => Paws::LexRuntime::StringMapRequest-specific information passed between Amazon Lex and a client application. The namespace "x-amz-lex:" is reserved for special attributes. Don't create any request attributes with the prefix "x-amz-lex:". For more information, see Setting Request Attributes (https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs). SessionAttributes => Paws::LexRuntime::StringMapApplication-specific information passed between Amazon Lex and a client application. For more information, see Setting Session Attributes (https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs). REQUIRED UserId => StrThe ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot. At runtime, each request must contain the "userID" field. To decide the user ID to use for your application, consider the following factors.
SEE ALSOThis class forms part of Paws, documenting arguments for method PostText in Paws::LexRuntime BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|