line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::LexModels; |
2
|
1
|
|
|
1
|
|
6796
|
use Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
11
|
|
3
|
|
|
|
|
|
|
sub service { 'models.lex' } |
4
|
|
|
|
|
|
|
sub version { '2017-04-19' } |
5
|
|
|
|
|
|
|
sub flattened_arrays { 0 } |
6
|
|
|
|
|
|
|
has max_attempts => (is => 'ro', isa => 'Int', default => 5); |
7
|
|
|
|
|
|
|
has retry => (is => 'ro', isa => 'HashRef', default => sub { |
8
|
|
|
|
|
|
|
{ base => 'rand', type => 'exponential', growth_factor => 2 } |
9
|
|
|
|
|
|
|
}); |
10
|
|
|
|
|
|
|
has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
11
|
|
|
|
|
|
|
] }); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller', 'Paws::Net::RestJsonResponse'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub CreateBotVersion { |
17
|
|
|
|
|
|
|
my $self = shift; |
18
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::CreateBotVersion', @_); |
19
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
sub CreateIntentVersion { |
22
|
|
|
|
|
|
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::CreateIntentVersion', @_); |
24
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
sub CreateSlotTypeVersion { |
27
|
|
|
|
|
|
|
my $self = shift; |
28
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::CreateSlotTypeVersion', @_); |
29
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
sub DeleteBot { |
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteBot', @_); |
34
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
sub DeleteBotAlias { |
37
|
|
|
|
|
|
|
my $self = shift; |
38
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteBotAlias', @_); |
39
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
sub DeleteBotChannelAssociation { |
42
|
|
|
|
|
|
|
my $self = shift; |
43
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteBotChannelAssociation', @_); |
44
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
sub DeleteBotVersion { |
47
|
|
|
|
|
|
|
my $self = shift; |
48
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteBotVersion', @_); |
49
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
sub DeleteIntent { |
52
|
|
|
|
|
|
|
my $self = shift; |
53
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteIntent', @_); |
54
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
sub DeleteIntentVersion { |
57
|
|
|
|
|
|
|
my $self = shift; |
58
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteIntentVersion', @_); |
59
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
sub DeleteSlotType { |
62
|
|
|
|
|
|
|
my $self = shift; |
63
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteSlotType', @_); |
64
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
sub DeleteSlotTypeVersion { |
67
|
|
|
|
|
|
|
my $self = shift; |
68
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteSlotTypeVersion', @_); |
69
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
sub DeleteUtterances { |
72
|
|
|
|
|
|
|
my $self = shift; |
73
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::DeleteUtterances', @_); |
74
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
sub GetBot { |
77
|
|
|
|
|
|
|
my $self = shift; |
78
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBot', @_); |
79
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
sub GetBotAlias { |
82
|
|
|
|
|
|
|
my $self = shift; |
83
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBotAlias', @_); |
84
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
sub GetBotAliases { |
87
|
|
|
|
|
|
|
my $self = shift; |
88
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBotAliases', @_); |
89
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
sub GetBotChannelAssociation { |
92
|
|
|
|
|
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBotChannelAssociation', @_); |
94
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
sub GetBotChannelAssociations { |
97
|
|
|
|
|
|
|
my $self = shift; |
98
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBotChannelAssociations', @_); |
99
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
sub GetBots { |
102
|
|
|
|
|
|
|
my $self = shift; |
103
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBots', @_); |
104
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
sub GetBotVersions { |
107
|
|
|
|
|
|
|
my $self = shift; |
108
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBotVersions', @_); |
109
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
sub GetBuiltinIntent { |
112
|
|
|
|
|
|
|
my $self = shift; |
113
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBuiltinIntent', @_); |
114
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
sub GetBuiltinIntents { |
117
|
|
|
|
|
|
|
my $self = shift; |
118
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBuiltinIntents', @_); |
119
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
120
|
|
|
|
|
|
|
} |
121
|
|
|
|
|
|
|
sub GetBuiltinSlotTypes { |
122
|
|
|
|
|
|
|
my $self = shift; |
123
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetBuiltinSlotTypes', @_); |
124
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
125
|
|
|
|
|
|
|
} |
126
|
|
|
|
|
|
|
sub GetExport { |
127
|
|
|
|
|
|
|
my $self = shift; |
128
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetExport', @_); |
129
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
130
|
|
|
|
|
|
|
} |
131
|
|
|
|
|
|
|
sub GetIntent { |
132
|
|
|
|
|
|
|
my $self = shift; |
133
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetIntent', @_); |
134
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
135
|
|
|
|
|
|
|
} |
136
|
|
|
|
|
|
|
sub GetIntents { |
137
|
|
|
|
|
|
|
my $self = shift; |
138
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetIntents', @_); |
139
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
sub GetIntentVersions { |
142
|
|
|
|
|
|
|
my $self = shift; |
143
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetIntentVersions', @_); |
144
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
sub GetSlotType { |
147
|
|
|
|
|
|
|
my $self = shift; |
148
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetSlotType', @_); |
149
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
sub GetSlotTypes { |
152
|
|
|
|
|
|
|
my $self = shift; |
153
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetSlotTypes', @_); |
154
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
sub GetSlotTypeVersions { |
157
|
|
|
|
|
|
|
my $self = shift; |
158
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetSlotTypeVersions', @_); |
159
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
sub GetUtterancesView { |
162
|
|
|
|
|
|
|
my $self = shift; |
163
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::GetUtterancesView', @_); |
164
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
165
|
|
|
|
|
|
|
} |
166
|
|
|
|
|
|
|
sub PutBot { |
167
|
|
|
|
|
|
|
my $self = shift; |
168
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::PutBot', @_); |
169
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
170
|
|
|
|
|
|
|
} |
171
|
|
|
|
|
|
|
sub PutBotAlias { |
172
|
|
|
|
|
|
|
my $self = shift; |
173
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::PutBotAlias', @_); |
174
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
sub PutIntent { |
177
|
|
|
|
|
|
|
my $self = shift; |
178
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::PutIntent', @_); |
179
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
180
|
|
|
|
|
|
|
} |
181
|
|
|
|
|
|
|
sub PutSlotType { |
182
|
|
|
|
|
|
|
my $self = shift; |
183
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::LexModels::PutSlotType', @_); |
184
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
185
|
|
|
|
|
|
|
} |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
sub operations { qw/CreateBotVersion CreateIntentVersion CreateSlotTypeVersion DeleteBot DeleteBotAlias DeleteBotChannelAssociation DeleteBotVersion DeleteIntent DeleteIntentVersion DeleteSlotType DeleteSlotTypeVersion DeleteUtterances GetBot GetBotAlias GetBotAliases GetBotChannelAssociation GetBotChannelAssociations GetBots GetBotVersions GetBuiltinIntent GetBuiltinIntents GetBuiltinSlotTypes GetExport GetIntent GetIntents GetIntentVersions GetSlotType GetSlotTypes GetSlotTypeVersions GetUtterancesView PutBot PutBotAlias PutIntent PutSlotType / } |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
1; |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
### main pod documentation begin ### |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head1 NAME |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
Paws::LexModels - Perl Interface to AWS Amazon Lex Model Building Service |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
=head1 SYNOPSIS |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
use Paws; |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
my $obj = Paws->service('LexModels'); |
204
|
|
|
|
|
|
|
my $res = $obj->Method( |
205
|
|
|
|
|
|
|
Arg1 => $val1, |
206
|
|
|
|
|
|
|
Arg2 => [ 'V1', 'V2' ], |
207
|
|
|
|
|
|
|
# if Arg3 is an object, the HashRef will be used as arguments to the constructor |
208
|
|
|
|
|
|
|
# of the arguments type |
209
|
|
|
|
|
|
|
Arg3 => { Att1 => 'Val1' }, |
210
|
|
|
|
|
|
|
# if Arg4 is an array of objects, the HashRefs will be passed as arguments to |
211
|
|
|
|
|
|
|
# the constructor of the arguments type |
212
|
|
|
|
|
|
|
Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], |
213
|
|
|
|
|
|
|
); |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=head1 DESCRIPTION |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
Amazon Lex Build-Time Actions |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
Amazon Lex is an AWS service for building conversational voice and text |
220
|
|
|
|
|
|
|
interfaces. Use these actions to create, update, and delete |
221
|
|
|
|
|
|
|
conversational bots for new and existing client applications. |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=head1 METHODS |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
=head2 CreateBotVersion(Name => Str, [Checksum => Str]) |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::CreateBotVersion> |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::CreateBotVersionResponse> instance |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
Creates a new version of the bot based on the C<$LATEST> version. If |
232
|
|
|
|
|
|
|
the C<$LATEST> version of this resource hasn't changed since you |
233
|
|
|
|
|
|
|
created the last version, Amazon Lex doesn't create a new version. It |
234
|
|
|
|
|
|
|
returns the last created version. |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
You can update only the C<$LATEST> version of the bot. You can't update |
237
|
|
|
|
|
|
|
the numbered versions that you create with the C<CreateBotVersion> |
238
|
|
|
|
|
|
|
operation. |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
When you create the first version of a bot, Amazon Lex sets the version |
241
|
|
|
|
|
|
|
to 1. Subsequent versions increment by 1. For more information, see |
242
|
|
|
|
|
|
|
versioning-intro. |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
This operation requires permission for the C<lex:CreateBotVersion> |
245
|
|
|
|
|
|
|
action. |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=head2 CreateIntentVersion(Name => Str, [Checksum => Str]) |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::CreateIntentVersion> |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::CreateIntentVersionResponse> instance |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
Creates a new version of an intent based on the C<$LATEST> version of |
255
|
|
|
|
|
|
|
the intent. If the C<$LATEST> version of this intent hasn't changed |
256
|
|
|
|
|
|
|
since you last updated it, Amazon Lex doesn't create a new version. It |
257
|
|
|
|
|
|
|
returns the last version you created. |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
You can update only the C<$LATEST> version of the intent. You can't |
260
|
|
|
|
|
|
|
update the numbered versions that you create with the |
261
|
|
|
|
|
|
|
C<CreateIntentVersion> operation. |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
When you create a version of an intent, Amazon Lex sets the version to |
264
|
|
|
|
|
|
|
1. Subsequent versions increment by 1. For more information, see |
265
|
|
|
|
|
|
|
versioning-intro. |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
This operation requires permissions to perform the |
268
|
|
|
|
|
|
|
C<lex:CreateIntentVersion> action. |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head2 CreateSlotTypeVersion(Name => Str, [Checksum => Str]) |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::CreateSlotTypeVersion> |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::CreateSlotTypeVersionResponse> instance |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
Creates a new version of a slot type based on the C<$LATEST> version of |
278
|
|
|
|
|
|
|
the specified slot type. If the C<$LATEST> version of this resource has |
279
|
|
|
|
|
|
|
not changed since the last version that you created, Amazon Lex doesn't |
280
|
|
|
|
|
|
|
create a new version. It returns the last version that you created. |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
You can update only the C<$LATEST> version of a slot type. You can't |
283
|
|
|
|
|
|
|
update the numbered versions that you create with the |
284
|
|
|
|
|
|
|
C<CreateSlotTypeVersion> operation. |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
When you create a version of a slot type, Amazon Lex sets the version |
287
|
|
|
|
|
|
|
to 1. Subsequent versions increment by 1. For more information, see |
288
|
|
|
|
|
|
|
versioning-intro. |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
This operation requires permissions for the |
291
|
|
|
|
|
|
|
C<lex:CreateSlotTypeVersion> action. |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
=head2 DeleteBot(Name => Str) |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteBot> |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
Returns: nothing |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
Deletes all versions of the bot, including the C<$LATEST> version. To |
301
|
|
|
|
|
|
|
delete a specific version of the bot, use the DeleteBotVersion |
302
|
|
|
|
|
|
|
operation. |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
If a bot has an alias, you can't delete it. Instead, the C<DeleteBot> |
305
|
|
|
|
|
|
|
operation returns a C<ResourceInUseException> exception that includes a |
306
|
|
|
|
|
|
|
reference to the alias that refers to the bot. To remove the reference |
307
|
|
|
|
|
|
|
to the bot, delete the alias. If you get the same exception again, |
308
|
|
|
|
|
|
|
delete the referring alias until the C<DeleteBot> operation is |
309
|
|
|
|
|
|
|
successful. |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:DeleteBot> action. |
312
|
|
|
|
|
|
|
|
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
=head2 DeleteBotAlias(BotName => Str, Name => Str) |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteBotAlias> |
317
|
|
|
|
|
|
|
|
318
|
|
|
|
|
|
|
Returns: nothing |
319
|
|
|
|
|
|
|
|
320
|
|
|
|
|
|
|
Deletes an alias for the specified bot. |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
You can't delete an alias that is used in the association between a bot |
323
|
|
|
|
|
|
|
and a messaging channel. If an alias is used in a channel association, |
324
|
|
|
|
|
|
|
the C<DeleteBot> operation returns a C<ResourceInUseException> |
325
|
|
|
|
|
|
|
exception that includes a reference to the channel association that |
326
|
|
|
|
|
|
|
refers to the bot. You can remove the reference to the alias by |
327
|
|
|
|
|
|
|
deleting the channel association. If you get the same exception again, |
328
|
|
|
|
|
|
|
delete the referring association until the C<DeleteBotAlias> operation |
329
|
|
|
|
|
|
|
is successful. |
330
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
=head2 DeleteBotChannelAssociation(BotAlias => Str, BotName => Str, Name => Str) |
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteBotChannelAssociation> |
335
|
|
|
|
|
|
|
|
336
|
|
|
|
|
|
|
Returns: nothing |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
Deletes the association between an Amazon Lex bot and a messaging |
339
|
|
|
|
|
|
|
platform. |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
This operation requires permission for the |
342
|
|
|
|
|
|
|
C<lex:DeleteBotChannelAssociation> action. |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
=head2 DeleteBotVersion(Name => Str, Version => Str) |
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteBotVersion> |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
Returns: nothing |
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
Deletes a specific version of a bot. To delete all versions of a bot, |
352
|
|
|
|
|
|
|
use the DeleteBot operation. |
353
|
|
|
|
|
|
|
|
354
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:DeleteBotVersion> |
355
|
|
|
|
|
|
|
action. |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
|
358
|
|
|
|
|
|
|
=head2 DeleteIntent(Name => Str) |
359
|
|
|
|
|
|
|
|
360
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteIntent> |
361
|
|
|
|
|
|
|
|
362
|
|
|
|
|
|
|
Returns: nothing |
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
Deletes all versions of the intent, including the C<$LATEST> version. |
365
|
|
|
|
|
|
|
To delete a specific version of the intent, use the DeleteIntentVersion |
366
|
|
|
|
|
|
|
operation. |
367
|
|
|
|
|
|
|
|
368
|
|
|
|
|
|
|
You can delete a version of an intent only if it is not referenced. To |
369
|
|
|
|
|
|
|
delete an intent that is referred to in one or more bots (see |
370
|
|
|
|
|
|
|
how-it-works), you must remove those references first. |
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
If you get the C<ResourceInUseException> exception, it provides an |
373
|
|
|
|
|
|
|
example reference that shows where the intent is referenced. To remove |
374
|
|
|
|
|
|
|
the reference to the intent, either update the bot or delete it. If you |
375
|
|
|
|
|
|
|
get the same exception when you attempt to delete the intent again, |
376
|
|
|
|
|
|
|
repeat until the intent has no references and the call to |
377
|
|
|
|
|
|
|
C<DeleteIntent> is successful. |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
This operation requires permission for the C<lex:DeleteIntent> action. |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
|
382
|
|
|
|
|
|
|
=head2 DeleteIntentVersion(Name => Str, Version => Str) |
383
|
|
|
|
|
|
|
|
384
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteIntentVersion> |
385
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
Returns: nothing |
387
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
Deletes a specific version of an intent. To delete all versions of a |
389
|
|
|
|
|
|
|
intent, use the DeleteIntent operation. |
390
|
|
|
|
|
|
|
|
391
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:DeleteIntentVersion> |
392
|
|
|
|
|
|
|
action. |
393
|
|
|
|
|
|
|
|
394
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
=head2 DeleteSlotType(Name => Str) |
396
|
|
|
|
|
|
|
|
397
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteSlotType> |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
Returns: nothing |
400
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
Deletes all versions of the slot type, including the C<$LATEST> |
402
|
|
|
|
|
|
|
version. To delete a specific version of the slot type, use the |
403
|
|
|
|
|
|
|
DeleteSlotTypeVersion operation. |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
You can delete a version of a slot type only if it is not referenced. |
406
|
|
|
|
|
|
|
To delete a slot type that is referred to in one or more intents, you |
407
|
|
|
|
|
|
|
must remove those references first. |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
If you get the C<ResourceInUseException> exception, the exception |
410
|
|
|
|
|
|
|
provides an example reference that shows the intent where the slot type |
411
|
|
|
|
|
|
|
is referenced. To remove the reference to the slot type, either update |
412
|
|
|
|
|
|
|
the intent or delete it. If you get the same exception when you attempt |
413
|
|
|
|
|
|
|
to delete the slot type again, repeat until the slot type has no |
414
|
|
|
|
|
|
|
references and the C<DeleteSlotType> call is successful. |
415
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
This operation requires permission for the C<lex:DeleteSlotType> |
417
|
|
|
|
|
|
|
action. |
418
|
|
|
|
|
|
|
|
419
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
=head2 DeleteSlotTypeVersion(Name => Str, Version => Str) |
421
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteSlotTypeVersion> |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
Returns: nothing |
425
|
|
|
|
|
|
|
|
426
|
|
|
|
|
|
|
Deletes a specific version of a slot type. To delete all versions of a |
427
|
|
|
|
|
|
|
slot type, use the DeleteSlotType operation. |
428
|
|
|
|
|
|
|
|
429
|
|
|
|
|
|
|
This operation requires permissions for the |
430
|
|
|
|
|
|
|
C<lex:DeleteSlotTypeVersion> action. |
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
|
433
|
|
|
|
|
|
|
=head2 DeleteUtterances(BotName => Str, UserId => Str) |
434
|
|
|
|
|
|
|
|
435
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::DeleteUtterances> |
436
|
|
|
|
|
|
|
|
437
|
|
|
|
|
|
|
Returns: nothing |
438
|
|
|
|
|
|
|
|
439
|
|
|
|
|
|
|
Deletes stored utterances. |
440
|
|
|
|
|
|
|
|
441
|
|
|
|
|
|
|
Amazon Lex stores the utterances that users send to your bot unless the |
442
|
|
|
|
|
|
|
C<childDirected> field in the bot is set to C<true>. Utterances are |
443
|
|
|
|
|
|
|
stored for 15 days for use with the GetUtterancesView operation, and |
444
|
|
|
|
|
|
|
then stored indefinately for use in improving the ability of your bot |
445
|
|
|
|
|
|
|
to respond to user input. |
446
|
|
|
|
|
|
|
|
447
|
|
|
|
|
|
|
Use the C<DeleteStoredUtterances> operation to manually delete stored |
448
|
|
|
|
|
|
|
utterances for a specific user. |
449
|
|
|
|
|
|
|
|
450
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:DeleteUtterances> |
451
|
|
|
|
|
|
|
action. |
452
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
|
454
|
|
|
|
|
|
|
=head2 GetBot(Name => Str, VersionOrAlias => Str) |
455
|
|
|
|
|
|
|
|
456
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBot> |
457
|
|
|
|
|
|
|
|
458
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotResponse> instance |
459
|
|
|
|
|
|
|
|
460
|
|
|
|
|
|
|
Returns metadata information for a specific bot. You must provide the |
461
|
|
|
|
|
|
|
bot name and the bot version or alias. |
462
|
|
|
|
|
|
|
|
463
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetBot> action. |
464
|
|
|
|
|
|
|
|
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
=head2 GetBotAlias(BotName => Str, Name => Str) |
467
|
|
|
|
|
|
|
|
468
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBotAlias> |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotAliasResponse> instance |
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
Returns information about an Amazon Lex bot alias. For more information |
473
|
|
|
|
|
|
|
about aliases, see versioning-aliases. |
474
|
|
|
|
|
|
|
|
475
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetBotAlias> action. |
476
|
|
|
|
|
|
|
|
477
|
|
|
|
|
|
|
|
478
|
|
|
|
|
|
|
=head2 GetBotAliases(BotName => Str, [MaxResults => Int, NameContains => Str, NextToken => Str]) |
479
|
|
|
|
|
|
|
|
480
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBotAliases> |
481
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotAliasesResponse> instance |
483
|
|
|
|
|
|
|
|
484
|
|
|
|
|
|
|
Returns a list of aliases for a specified Amazon Lex bot. |
485
|
|
|
|
|
|
|
|
486
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetBotAliases> |
487
|
|
|
|
|
|
|
action. |
488
|
|
|
|
|
|
|
|
489
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
=head2 GetBotChannelAssociation(BotAlias => Str, BotName => Str, Name => Str) |
491
|
|
|
|
|
|
|
|
492
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBotChannelAssociation> |
493
|
|
|
|
|
|
|
|
494
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotChannelAssociationResponse> instance |
495
|
|
|
|
|
|
|
|
496
|
|
|
|
|
|
|
Returns information about the association between an Amazon Lex bot and |
497
|
|
|
|
|
|
|
a messaging platform. |
498
|
|
|
|
|
|
|
|
499
|
|
|
|
|
|
|
This operation requires permissions for the |
500
|
|
|
|
|
|
|
C<lex:GetBotChannelAssociation> action. |
501
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
|
503
|
|
|
|
|
|
|
=head2 GetBotChannelAssociations(BotAlias => Str, BotName => Str, [MaxResults => Int, NameContains => Str, NextToken => Str]) |
504
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBotChannelAssociations> |
506
|
|
|
|
|
|
|
|
507
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotChannelAssociationsResponse> instance |
508
|
|
|
|
|
|
|
|
509
|
|
|
|
|
|
|
Returns a list of all of the channels associated with the specified |
510
|
|
|
|
|
|
|
bot. |
511
|
|
|
|
|
|
|
|
512
|
|
|
|
|
|
|
The C<GetBotChannelAssociations> operation requires permissions for the |
513
|
|
|
|
|
|
|
C<lex:GetBotChannelAssociations> action. |
514
|
|
|
|
|
|
|
|
515
|
|
|
|
|
|
|
|
516
|
|
|
|
|
|
|
=head2 GetBots([MaxResults => Int, NameContains => Str, NextToken => Str]) |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBots> |
519
|
|
|
|
|
|
|
|
520
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotsResponse> instance |
521
|
|
|
|
|
|
|
|
522
|
|
|
|
|
|
|
Returns bot information as follows: |
523
|
|
|
|
|
|
|
|
524
|
|
|
|
|
|
|
=over |
525
|
|
|
|
|
|
|
|
526
|
|
|
|
|
|
|
=item * |
527
|
|
|
|
|
|
|
|
528
|
|
|
|
|
|
|
If you provide the C<nameContains> field, the response includes |
529
|
|
|
|
|
|
|
information for the C<$LATEST> version of all bots whose name contains |
530
|
|
|
|
|
|
|
the specified string. |
531
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
=item * |
533
|
|
|
|
|
|
|
|
534
|
|
|
|
|
|
|
If you don't specify the C<nameContains> field, the operation returns |
535
|
|
|
|
|
|
|
information about the C<$LATEST> version of all of your bots. |
536
|
|
|
|
|
|
|
|
537
|
|
|
|
|
|
|
=back |
538
|
|
|
|
|
|
|
|
539
|
|
|
|
|
|
|
This operation requires permission for the C<lex:GetBots> action. |
540
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
|
542
|
|
|
|
|
|
|
=head2 GetBotVersions(Name => Str, [MaxResults => Int, NextToken => Str]) |
543
|
|
|
|
|
|
|
|
544
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBotVersions> |
545
|
|
|
|
|
|
|
|
546
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBotVersionsResponse> instance |
547
|
|
|
|
|
|
|
|
548
|
|
|
|
|
|
|
Gets information about all of the versions of a bot. |
549
|
|
|
|
|
|
|
|
550
|
|
|
|
|
|
|
The C<GetBotVersions> operation returns a C<BotMetadata> object for |
551
|
|
|
|
|
|
|
each version of a bot. For example, if a bot has three numbered |
552
|
|
|
|
|
|
|
versions, the C<GetBotVersions> operation returns four C<BotMetadata> |
553
|
|
|
|
|
|
|
objects in the response, one for each numbered version and one for the |
554
|
|
|
|
|
|
|
C<$LATEST> version. |
555
|
|
|
|
|
|
|
|
556
|
|
|
|
|
|
|
The C<GetBotVersions> operation always returns at least one version, |
557
|
|
|
|
|
|
|
the C<$LATEST> version. |
558
|
|
|
|
|
|
|
|
559
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetBotVersions> |
560
|
|
|
|
|
|
|
action. |
561
|
|
|
|
|
|
|
|
562
|
|
|
|
|
|
|
|
563
|
|
|
|
|
|
|
=head2 GetBuiltinIntent(Signature => Str) |
564
|
|
|
|
|
|
|
|
565
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBuiltinIntent> |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBuiltinIntentResponse> instance |
568
|
|
|
|
|
|
|
|
569
|
|
|
|
|
|
|
Returns information about a built-in intent. |
570
|
|
|
|
|
|
|
|
571
|
|
|
|
|
|
|
This operation requires permission for the C<lex:GetBuiltinIntent> |
572
|
|
|
|
|
|
|
action. |
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
|
575
|
|
|
|
|
|
|
=head2 GetBuiltinIntents([Locale => Str, MaxResults => Int, NextToken => Str, SignatureContains => Str]) |
576
|
|
|
|
|
|
|
|
577
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBuiltinIntents> |
578
|
|
|
|
|
|
|
|
579
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBuiltinIntentsResponse> instance |
580
|
|
|
|
|
|
|
|
581
|
|
|
|
|
|
|
Gets a list of built-in intents that meet the specified criteria. |
582
|
|
|
|
|
|
|
|
583
|
|
|
|
|
|
|
This operation requires permission for the C<lex:GetBuiltinIntents> |
584
|
|
|
|
|
|
|
action. |
585
|
|
|
|
|
|
|
|
586
|
|
|
|
|
|
|
|
587
|
|
|
|
|
|
|
=head2 GetBuiltinSlotTypes([Locale => Str, MaxResults => Int, NextToken => Str, SignatureContains => Str]) |
588
|
|
|
|
|
|
|
|
589
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetBuiltinSlotTypes> |
590
|
|
|
|
|
|
|
|
591
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetBuiltinSlotTypesResponse> instance |
592
|
|
|
|
|
|
|
|
593
|
|
|
|
|
|
|
Gets a list of built-in slot types that meet the specified criteria. |
594
|
|
|
|
|
|
|
|
595
|
|
|
|
|
|
|
For a list of built-in slot types, see Slot Type Reference in the |
596
|
|
|
|
|
|
|
I<Alexa Skills Kit>. |
597
|
|
|
|
|
|
|
|
598
|
|
|
|
|
|
|
This operation requires permission for the C<lex:GetBuiltInSlotTypes> |
599
|
|
|
|
|
|
|
action. |
600
|
|
|
|
|
|
|
|
601
|
|
|
|
|
|
|
|
602
|
|
|
|
|
|
|
=head2 GetExport(ExportType => Str, Name => Str, ResourceType => Str, Version => Str) |
603
|
|
|
|
|
|
|
|
604
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetExport> |
605
|
|
|
|
|
|
|
|
606
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetExportResponse> instance |
607
|
|
|
|
|
|
|
|
608
|
|
|
|
|
|
|
Exports the contents of a Amazon Lex resource in a specified format. |
609
|
|
|
|
|
|
|
|
610
|
|
|
|
|
|
|
|
611
|
|
|
|
|
|
|
=head2 GetIntent(Name => Str, Version => Str) |
612
|
|
|
|
|
|
|
|
613
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetIntent> |
614
|
|
|
|
|
|
|
|
615
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetIntentResponse> instance |
616
|
|
|
|
|
|
|
|
617
|
|
|
|
|
|
|
Returns information about an intent. In addition to the intent name, |
618
|
|
|
|
|
|
|
you must specify the intent version. |
619
|
|
|
|
|
|
|
|
620
|
|
|
|
|
|
|
This operation requires permissions to perform the C<lex:GetIntent> |
621
|
|
|
|
|
|
|
action. |
622
|
|
|
|
|
|
|
|
623
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
=head2 GetIntents([MaxResults => Int, NameContains => Str, NextToken => Str]) |
625
|
|
|
|
|
|
|
|
626
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetIntents> |
627
|
|
|
|
|
|
|
|
628
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetIntentsResponse> instance |
629
|
|
|
|
|
|
|
|
630
|
|
|
|
|
|
|
Returns intent information as follows: |
631
|
|
|
|
|
|
|
|
632
|
|
|
|
|
|
|
=over |
633
|
|
|
|
|
|
|
|
634
|
|
|
|
|
|
|
=item * |
635
|
|
|
|
|
|
|
|
636
|
|
|
|
|
|
|
If you specify the C<nameContains> field, returns the C<$LATEST> |
637
|
|
|
|
|
|
|
version of all intents that contain the specified string. |
638
|
|
|
|
|
|
|
|
639
|
|
|
|
|
|
|
=item * |
640
|
|
|
|
|
|
|
|
641
|
|
|
|
|
|
|
If you don't specify the C<nameContains> field, returns information |
642
|
|
|
|
|
|
|
about the C<$LATEST> version of all intents. |
643
|
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
=back |
645
|
|
|
|
|
|
|
|
646
|
|
|
|
|
|
|
The operation requires permission for the C<lex:GetIntents> action. |
647
|
|
|
|
|
|
|
|
648
|
|
|
|
|
|
|
|
649
|
|
|
|
|
|
|
=head2 GetIntentVersions(Name => Str, [MaxResults => Int, NextToken => Str]) |
650
|
|
|
|
|
|
|
|
651
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetIntentVersions> |
652
|
|
|
|
|
|
|
|
653
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetIntentVersionsResponse> instance |
654
|
|
|
|
|
|
|
|
655
|
|
|
|
|
|
|
Gets information about all of the versions of an intent. |
656
|
|
|
|
|
|
|
|
657
|
|
|
|
|
|
|
The C<GetIntentVersions> operation returns an C<IntentMetadata> object |
658
|
|
|
|
|
|
|
for each version of an intent. For example, if an intent has three |
659
|
|
|
|
|
|
|
numbered versions, the C<GetIntentVersions> operation returns four |
660
|
|
|
|
|
|
|
C<IntentMetadata> objects in the response, one for each numbered |
661
|
|
|
|
|
|
|
version and one for the C<$LATEST> version. |
662
|
|
|
|
|
|
|
|
663
|
|
|
|
|
|
|
The C<GetIntentVersions> operation always returns at least one version, |
664
|
|
|
|
|
|
|
the C<$LATEST> version. |
665
|
|
|
|
|
|
|
|
666
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetIntentVersions> |
667
|
|
|
|
|
|
|
action. |
668
|
|
|
|
|
|
|
|
669
|
|
|
|
|
|
|
|
670
|
|
|
|
|
|
|
=head2 GetSlotType(Name => Str, Version => Str) |
671
|
|
|
|
|
|
|
|
672
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetSlotType> |
673
|
|
|
|
|
|
|
|
674
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetSlotTypeResponse> instance |
675
|
|
|
|
|
|
|
|
676
|
|
|
|
|
|
|
Returns information about a specific version of a slot type. In |
677
|
|
|
|
|
|
|
addition to specifying the slot type name, you must specify the slot |
678
|
|
|
|
|
|
|
type version. |
679
|
|
|
|
|
|
|
|
680
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetSlotType> action. |
681
|
|
|
|
|
|
|
|
682
|
|
|
|
|
|
|
|
683
|
|
|
|
|
|
|
=head2 GetSlotTypes([MaxResults => Int, NameContains => Str, NextToken => Str]) |
684
|
|
|
|
|
|
|
|
685
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetSlotTypes> |
686
|
|
|
|
|
|
|
|
687
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetSlotTypesResponse> instance |
688
|
|
|
|
|
|
|
|
689
|
|
|
|
|
|
|
Returns slot type information as follows: |
690
|
|
|
|
|
|
|
|
691
|
|
|
|
|
|
|
=over |
692
|
|
|
|
|
|
|
|
693
|
|
|
|
|
|
|
=item * |
694
|
|
|
|
|
|
|
|
695
|
|
|
|
|
|
|
If you specify the C<nameContains> field, returns the C<$LATEST> |
696
|
|
|
|
|
|
|
version of all slot types that contain the specified string. |
697
|
|
|
|
|
|
|
|
698
|
|
|
|
|
|
|
=item * |
699
|
|
|
|
|
|
|
|
700
|
|
|
|
|
|
|
If you don't specify the C<nameContains> field, returns information |
701
|
|
|
|
|
|
|
about the C<$LATEST> version of all slot types. |
702
|
|
|
|
|
|
|
|
703
|
|
|
|
|
|
|
=back |
704
|
|
|
|
|
|
|
|
705
|
|
|
|
|
|
|
The operation requires permission for the C<lex:GetSlotTypes> action. |
706
|
|
|
|
|
|
|
|
707
|
|
|
|
|
|
|
|
708
|
|
|
|
|
|
|
=head2 GetSlotTypeVersions(Name => Str, [MaxResults => Int, NextToken => Str]) |
709
|
|
|
|
|
|
|
|
710
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetSlotTypeVersions> |
711
|
|
|
|
|
|
|
|
712
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetSlotTypeVersionsResponse> instance |
713
|
|
|
|
|
|
|
|
714
|
|
|
|
|
|
|
Gets information about all versions of a slot type. |
715
|
|
|
|
|
|
|
|
716
|
|
|
|
|
|
|
The C<GetSlotTypeVersions> operation returns a C<SlotTypeMetadata> |
717
|
|
|
|
|
|
|
object for each version of a slot type. For example, if a slot type has |
718
|
|
|
|
|
|
|
three numbered versions, the C<GetSlotTypeVersions> operation returns |
719
|
|
|
|
|
|
|
four C<SlotTypeMetadata> objects in the response, one for each numbered |
720
|
|
|
|
|
|
|
version and one for the C<$LATEST> version. |
721
|
|
|
|
|
|
|
|
722
|
|
|
|
|
|
|
The C<GetSlotTypeVersions> operation always returns at least one |
723
|
|
|
|
|
|
|
version, the C<$LATEST> version. |
724
|
|
|
|
|
|
|
|
725
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetSlotTypeVersions> |
726
|
|
|
|
|
|
|
action. |
727
|
|
|
|
|
|
|
|
728
|
|
|
|
|
|
|
|
729
|
|
|
|
|
|
|
=head2 GetUtterancesView(BotName => Str, BotVersions => ArrayRef[Str|Undef], StatusType => Str) |
730
|
|
|
|
|
|
|
|
731
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::GetUtterancesView> |
732
|
|
|
|
|
|
|
|
733
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::GetUtterancesViewResponse> instance |
734
|
|
|
|
|
|
|
|
735
|
|
|
|
|
|
|
Use the C<GetUtterancesView> operation to get information about the |
736
|
|
|
|
|
|
|
utterances that your users have made to your bot. You can use this list |
737
|
|
|
|
|
|
|
to tune the utterances that your bot responds to. |
738
|
|
|
|
|
|
|
|
739
|
|
|
|
|
|
|
For example, say that you have created a bot to order flowers. After |
740
|
|
|
|
|
|
|
your users have used your bot for a while, use the C<GetUtterancesView> |
741
|
|
|
|
|
|
|
operation to see the requests that they have made and whether they have |
742
|
|
|
|
|
|
|
been successful. You might find that the utterance "I want flowers" is |
743
|
|
|
|
|
|
|
not being recognized. You could add this utterance to the |
744
|
|
|
|
|
|
|
C<OrderFlowers> intent so that your bot recognizes that utterance. |
745
|
|
|
|
|
|
|
|
746
|
|
|
|
|
|
|
After you publish a new version of a bot, you can get information about |
747
|
|
|
|
|
|
|
the old version and the new so that you can compare the performance |
748
|
|
|
|
|
|
|
across the two versions. |
749
|
|
|
|
|
|
|
|
750
|
|
|
|
|
|
|
Data is available for the last 15 days. You can request information for |
751
|
|
|
|
|
|
|
up to 5 versions in each request. The response contains information |
752
|
|
|
|
|
|
|
about a maximum of 100 utterances for each version. |
753
|
|
|
|
|
|
|
|
754
|
|
|
|
|
|
|
If the bot's C<childDirected> field is set to C<true>, utterances for |
755
|
|
|
|
|
|
|
the bot are not stored and cannot be retrieved with the |
756
|
|
|
|
|
|
|
C<GetUtterancesView> operation. For more information, see PutBot. |
757
|
|
|
|
|
|
|
|
758
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:GetUtterancesView> |
759
|
|
|
|
|
|
|
action. |
760
|
|
|
|
|
|
|
|
761
|
|
|
|
|
|
|
|
762
|
|
|
|
|
|
|
=head2 PutBot(ChildDirected => Bool, Locale => Str, Name => Str, [AbortStatement => L<Paws::LexModels::Statement>, Checksum => Str, ClarificationPrompt => L<Paws::LexModels::Prompt>, Description => Str, IdleSessionTTLInSeconds => Int, Intents => ArrayRef[L<Paws::LexModels::Intent>], ProcessBehavior => Str, VoiceId => Str]) |
763
|
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::PutBot> |
765
|
|
|
|
|
|
|
|
766
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::PutBotResponse> instance |
767
|
|
|
|
|
|
|
|
768
|
|
|
|
|
|
|
Creates an Amazon Lex conversational bot or replaces an existing bot. |
769
|
|
|
|
|
|
|
When you create or update a bot you are only required to specify a |
770
|
|
|
|
|
|
|
name. You can use this to add intents later, or to remove intents from |
771
|
|
|
|
|
|
|
an existing bot. When you create a bot with a name only, the bot is |
772
|
|
|
|
|
|
|
created or updated but Amazon Lex returns the C< response C<FAILED>. |
773
|
|
|
|
|
|
|
You can build the bot after you add one or more intents. For more |
774
|
|
|
|
|
|
|
information about Amazon Lex bots, see how-it-works.> |
775
|
|
|
|
|
|
|
|
776
|
|
|
|
|
|
|
If you specify the name of an existing bot, the fields in the request |
777
|
|
|
|
|
|
|
replace the existing values in the C<$LATEST> version of the bot. |
778
|
|
|
|
|
|
|
Amazon Lex removes any fields that you don't provide values for in the |
779
|
|
|
|
|
|
|
request, except for the C<idleTTLInSeconds> and C<privacySettings> |
780
|
|
|
|
|
|
|
fields, which are set to their default values. If you don't specify |
781
|
|
|
|
|
|
|
values for required fields, Amazon Lex throws an exception. |
782
|
|
|
|
|
|
|
|
783
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:PutBot> action. For |
784
|
|
|
|
|
|
|
more information, see auth-and-access-control. |
785
|
|
|
|
|
|
|
|
786
|
|
|
|
|
|
|
|
787
|
|
|
|
|
|
|
=head2 PutBotAlias(BotName => Str, BotVersion => Str, Name => Str, [Checksum => Str, Description => Str]) |
788
|
|
|
|
|
|
|
|
789
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::PutBotAlias> |
790
|
|
|
|
|
|
|
|
791
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::PutBotAliasResponse> instance |
792
|
|
|
|
|
|
|
|
793
|
|
|
|
|
|
|
Creates an alias for the specified version of the bot or replaces an |
794
|
|
|
|
|
|
|
alias for the specified bot. To change the version of the bot that the |
795
|
|
|
|
|
|
|
alias points to, replace the alias. For more information about aliases, |
796
|
|
|
|
|
|
|
see versioning-aliases. |
797
|
|
|
|
|
|
|
|
798
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:PutBotAlias> action. |
799
|
|
|
|
|
|
|
|
800
|
|
|
|
|
|
|
|
801
|
|
|
|
|
|
|
=head2 PutIntent(Name => Str, [Checksum => Str, ConclusionStatement => L<Paws::LexModels::Statement>, ConfirmationPrompt => L<Paws::LexModels::Prompt>, Description => Str, DialogCodeHook => L<Paws::LexModels::CodeHook>, FollowUpPrompt => L<Paws::LexModels::FollowUpPrompt>, FulfillmentActivity => L<Paws::LexModels::FulfillmentActivity>, ParentIntentSignature => Str, RejectionStatement => L<Paws::LexModels::Statement>, SampleUtterances => ArrayRef[Str|Undef], Slots => ArrayRef[L<Paws::LexModels::Slot>]]) |
802
|
|
|
|
|
|
|
|
803
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::PutIntent> |
804
|
|
|
|
|
|
|
|
805
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::PutIntentResponse> instance |
806
|
|
|
|
|
|
|
|
807
|
|
|
|
|
|
|
Creates an intent or replaces an existing intent. |
808
|
|
|
|
|
|
|
|
809
|
|
|
|
|
|
|
To define the interaction between the user and your bot, you use one or |
810
|
|
|
|
|
|
|
more intents. For a pizza ordering bot, for example, you would create |
811
|
|
|
|
|
|
|
an C<OrderPizza> intent. |
812
|
|
|
|
|
|
|
|
813
|
|
|
|
|
|
|
To create an intent or replace an existing intent, you must provide the |
814
|
|
|
|
|
|
|
following: |
815
|
|
|
|
|
|
|
|
816
|
|
|
|
|
|
|
=over |
817
|
|
|
|
|
|
|
|
818
|
|
|
|
|
|
|
=item * |
819
|
|
|
|
|
|
|
|
820
|
|
|
|
|
|
|
Intent name. For example, C<OrderPizza>. |
821
|
|
|
|
|
|
|
|
822
|
|
|
|
|
|
|
=item * |
823
|
|
|
|
|
|
|
|
824
|
|
|
|
|
|
|
Sample utterances. For example, "Can I order a pizza, please." and "I |
825
|
|
|
|
|
|
|
want to order a pizza." |
826
|
|
|
|
|
|
|
|
827
|
|
|
|
|
|
|
=item * |
828
|
|
|
|
|
|
|
|
829
|
|
|
|
|
|
|
Information to be gathered. You specify slot types for the information |
830
|
|
|
|
|
|
|
that your bot will request from the user. You can specify standard slot |
831
|
|
|
|
|
|
|
types, such as a date or a time, or custom slot types such as the size |
832
|
|
|
|
|
|
|
and crust of a pizza. |
833
|
|
|
|
|
|
|
|
834
|
|
|
|
|
|
|
=item * |
835
|
|
|
|
|
|
|
|
836
|
|
|
|
|
|
|
How the intent will be fulfilled. You can provide a Lambda function or |
837
|
|
|
|
|
|
|
configure the intent to return the intent information to the client |
838
|
|
|
|
|
|
|
application. If you use a Lambda function, when all of the intent |
839
|
|
|
|
|
|
|
information is available, Amazon Lex invokes your Lambda function. If |
840
|
|
|
|
|
|
|
you configure your intent to return the intent information to the |
841
|
|
|
|
|
|
|
client application. |
842
|
|
|
|
|
|
|
|
843
|
|
|
|
|
|
|
=back |
844
|
|
|
|
|
|
|
|
845
|
|
|
|
|
|
|
You can specify other optional information in the request, such as: |
846
|
|
|
|
|
|
|
|
847
|
|
|
|
|
|
|
=over |
848
|
|
|
|
|
|
|
|
849
|
|
|
|
|
|
|
=item * |
850
|
|
|
|
|
|
|
|
851
|
|
|
|
|
|
|
A confirmation prompt to ask the user to confirm an intent. For |
852
|
|
|
|
|
|
|
example, "Shall I order your pizza?" |
853
|
|
|
|
|
|
|
|
854
|
|
|
|
|
|
|
=item * |
855
|
|
|
|
|
|
|
|
856
|
|
|
|
|
|
|
A conclusion statement to send to the user after the intent has been |
857
|
|
|
|
|
|
|
fulfilled. For example, "I placed your pizza order." |
858
|
|
|
|
|
|
|
|
859
|
|
|
|
|
|
|
=item * |
860
|
|
|
|
|
|
|
|
861
|
|
|
|
|
|
|
A follow-up prompt that asks the user for additional activity. For |
862
|
|
|
|
|
|
|
example, asking "Do you want to order a drink with your pizza?" |
863
|
|
|
|
|
|
|
|
864
|
|
|
|
|
|
|
=back |
865
|
|
|
|
|
|
|
|
866
|
|
|
|
|
|
|
If you specify an existing intent name to update the intent, Amazon Lex |
867
|
|
|
|
|
|
|
replaces the values in the C<$LATEST> version of the slot type with the |
868
|
|
|
|
|
|
|
values in the request. Amazon Lex removes fields that you don't provide |
869
|
|
|
|
|
|
|
in the request. If you don't specify the required fields, Amazon Lex |
870
|
|
|
|
|
|
|
throws an exception. |
871
|
|
|
|
|
|
|
|
872
|
|
|
|
|
|
|
For more information, see how-it-works. |
873
|
|
|
|
|
|
|
|
874
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:PutIntent> action. |
875
|
|
|
|
|
|
|
|
876
|
|
|
|
|
|
|
|
877
|
|
|
|
|
|
|
=head2 PutSlotType(Name => Str, [Checksum => Str, Description => Str, EnumerationValues => ArrayRef[L<Paws::LexModels::EnumerationValue>], ValueSelectionStrategy => Str]) |
878
|
|
|
|
|
|
|
|
879
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::LexModels::PutSlotType> |
880
|
|
|
|
|
|
|
|
881
|
|
|
|
|
|
|
Returns: a L<Paws::LexModels::PutSlotTypeResponse> instance |
882
|
|
|
|
|
|
|
|
883
|
|
|
|
|
|
|
Creates a custom slot type or replaces an existing custom slot type. |
884
|
|
|
|
|
|
|
|
885
|
|
|
|
|
|
|
To create a custom slot type, specify a name for the slot type and a |
886
|
|
|
|
|
|
|
set of enumeration values, which are the values that a slot of this |
887
|
|
|
|
|
|
|
type can assume. For more information, see how-it-works. |
888
|
|
|
|
|
|
|
|
889
|
|
|
|
|
|
|
If you specify the name of an existing slot type, the fields in the |
890
|
|
|
|
|
|
|
request replace the existing values in the C<$LATEST> version of the |
891
|
|
|
|
|
|
|
slot type. Amazon Lex removes the fields that you don't provide in the |
892
|
|
|
|
|
|
|
request. If you don't specify required fields, Amazon Lex throws an |
893
|
|
|
|
|
|
|
exception. |
894
|
|
|
|
|
|
|
|
895
|
|
|
|
|
|
|
This operation requires permissions for the C<lex:PutSlotType> action. |
896
|
|
|
|
|
|
|
|
897
|
|
|
|
|
|
|
|
898
|
|
|
|
|
|
|
|
899
|
|
|
|
|
|
|
|
900
|
|
|
|
|
|
|
=head1 PAGINATORS |
901
|
|
|
|
|
|
|
|
902
|
|
|
|
|
|
|
Paginator methods are helpers that repetively call methods that return partial results |
903
|
|
|
|
|
|
|
|
904
|
|
|
|
|
|
|
|
905
|
|
|
|
|
|
|
|
906
|
|
|
|
|
|
|
|
907
|
|
|
|
|
|
|
=head1 SEE ALSO |
908
|
|
|
|
|
|
|
|
909
|
|
|
|
|
|
|
This service class forms part of L<Paws> |
910
|
|
|
|
|
|
|
|
911
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
912
|
|
|
|
|
|
|
|
913
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
914
|
|
|
|
|
|
|
|
915
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
916
|
|
|
|
|
|
|
|
917
|
|
|
|
|
|
|
=cut |
918
|
|
|
|
|
|
|
|