| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::LexRuntime::PostText; |
|
3
|
1
|
|
|
1
|
|
567
|
use Moose; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
|
|
has BotAlias => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botAlias' , required => 1); |
|
5
|
|
|
|
|
|
|
has BotName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botName' , required => 1); |
|
6
|
|
|
|
|
|
|
has InputText => (is => 'ro', isa => 'Str', required => 1); |
|
7
|
|
|
|
|
|
|
has RequestAttributes => (is => 'ro', isa => 'Paws::LexRuntime::StringMap'); |
|
8
|
|
|
|
|
|
|
has SessionAttributes => (is => 'ro', isa => 'Paws::LexRuntime::StringMap'); |
|
9
|
|
|
|
|
|
|
has UserId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'userId' , required => 1); |
|
10
|
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
6392
|
use MooseX::ClassAttribute; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
13
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'PostText'); |
|
14
|
|
|
|
|
|
|
class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bot/{botName}/alias/{botAlias}/user/{userId}/text'); |
|
15
|
|
|
|
|
|
|
class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); |
|
16
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexRuntime::PostTextResponse'); |
|
17
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
|
18
|
|
|
|
|
|
|
1; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
### main pod documentation begin ### |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Paws::LexRuntime::PostText - Arguments for method PostText on Paws::LexRuntime |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
This class represents the parameters used for calling the method PostText on the |
|
29
|
|
|
|
|
|
|
Amazon Lex Runtime Service service. Use the attributes of this class |
|
30
|
|
|
|
|
|
|
as arguments to method PostText. |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PostText. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
As an example: |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$service_obj->PostText(Att1 => $value1, Att2 => $value2, ...); |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
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. |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 B<REQUIRED> BotAlias => Str |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
The alias of the Amazon Lex bot. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 B<REQUIRED> BotName => Str |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The name of the Amazon Lex bot. |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 B<REQUIRED> InputText => Str |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The text that the user entered (Amazon Lex interprets this text). |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 RequestAttributes => L<Paws::LexRuntime::StringMap> |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Request-specific information passed between Amazon Lex and a client |
|
64
|
|
|
|
|
|
|
application. |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The namespace C<x-amz-lex:> is reserved for special attributes. Don't |
|
67
|
|
|
|
|
|
|
create any request attributes with the prefix C<x-amz-lex:>. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
For more information, see Setting Request Attributes. |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 SessionAttributes => L<Paws::LexRuntime::StringMap> |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Application-specific information passed between Amazon Lex and a client |
|
76
|
|
|
|
|
|
|
application. |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
For more information, see Setting Session Attributes. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 B<REQUIRED> UserId => Str |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The ID of the client application user. Amazon Lex uses this to identify |
|
85
|
|
|
|
|
|
|
a user's conversation with your bot. At runtime, each request must |
|
86
|
|
|
|
|
|
|
contain the C<userID> field. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
To decide the user ID to use for your application, consider the |
|
89
|
|
|
|
|
|
|
following factors. |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=over |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item * |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The C<userID> field must not contain any personally identifiable |
|
96
|
|
|
|
|
|
|
information of the user, for example, name, personal identification |
|
97
|
|
|
|
|
|
|
numbers, or other end user personal information. |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
If you want a user to start a conversation on one device and continue |
|
102
|
|
|
|
|
|
|
on another device, use a user-specific identifier. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=item * |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
If you want the same user to be able to have two independent |
|
107
|
|
|
|
|
|
|
conversations on two different devices, choose a device-specific |
|
108
|
|
|
|
|
|
|
identifier. |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=item * |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
A user can't have two independent conversations with two different |
|
113
|
|
|
|
|
|
|
versions of the same bot. For example, a user can't have a conversation |
|
114
|
|
|
|
|
|
|
with the PROD and BETA versions of the same bot. If you anticipate that |
|
115
|
|
|
|
|
|
|
a user will need to have conversation with two different versions, for |
|
116
|
|
|
|
|
|
|
example, while testing, include the bot alias in the user ID to |
|
117
|
|
|
|
|
|
|
separate the two conversations. |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=back |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
126
|
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method PostText in L<Paws::LexRuntime> |
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
|
136
|
|
|
|
|
|
|
|