/
intent.go
582 lines (536 loc) · 29.2 KB
/
intent.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package lex
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides an Amazon Lex Intent resource. For more information see
// [Amazon Lex: How It Works](https://docs.aws.amazon.com/lex/latest/dg/how-it-works.html)
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "fmt"
//
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lex"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := lex.NewIntent(ctx, "orderFlowersIntent", &lex.IntentArgs{
// ConfirmationPrompt: &lex.IntentConfirmationPromptArgs{
// MaxAttempts: pulumi.Int(2),
// Messages: lex.IntentConfirmationPromptMessageArray{
// &lex.IntentConfirmationPromptMessageArgs{
// Content: pulumi.String("Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?"),
// ContentType: pulumi.String("PlainText"),
// },
// },
// },
// CreateVersion: pulumi.Bool(false),
// Description: pulumi.String("Intent to order a bouquet of flowers for pick up"),
// FulfillmentActivity: &lex.IntentFulfillmentActivityArgs{
// Type: pulumi.String("ReturnIntent"),
// },
// Name: pulumi.String("OrderFlowers"),
// RejectionStatement: &lex.IntentRejectionStatementArgs{
// Messages: lex.IntentRejectionStatementMessageArray{
// &lex.IntentRejectionStatementMessageArgs{
// Content: pulumi.String("Okay, I will not place your order."),
// ContentType: pulumi.String("PlainText"),
// },
// },
// },
// SampleUtterances: pulumi.StringArray{
// pulumi.String("I would like to order some flowers"),
// pulumi.String("I would like to pick up flowers"),
// },
// Slots: lex.IntentSlotArray{
// &lex.IntentSlotArgs{
// Description: pulumi.String("The type of flowers to pick up"),
// Name: pulumi.String("FlowerType"),
// Priority: pulumi.Int(1),
// SampleUtterances: pulumi.StringArray{
// pulumi.String("I would like to order {FlowerType}"),
// },
// SlotConstraint: pulumi.String("Required"),
// SlotType: pulumi.String("FlowerTypes"),
// SlotTypeVersion: pulumi.String(fmt.Sprintf("%v%v", "$", "LATEST")),
// ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
// MaxAttempts: pulumi.Int(2),
// Message: []map[string]interface{}{
// map[string]interface{}{
// "content": "What type of flowers would you like to order?",
// "contentType": "PlainText",
// },
// },
// },
// },
// &lex.IntentSlotArgs{
// Description: pulumi.String("The date to pick up the flowers"),
// Name: pulumi.String("PickupDate"),
// Priority: pulumi.Int(2),
// SampleUtterances: pulumi.StringArray{
// pulumi.String("I would like to order {FlowerType}"),
// },
// SlotConstraint: pulumi.String("Required"),
// SlotType: pulumi.String("AMAZON.DATE"),
// SlotTypeVersion: pulumi.String(fmt.Sprintf("%v%v", "$", "LATEST")),
// ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
// MaxAttempts: pulumi.Int(2),
// Message: []map[string]interface{}{
// map[string]interface{}{
// "content": "What day do you want the {FlowerType} to be picked up?",
// "contentType": "PlainText",
// },
// },
// },
// },
// &lex.IntentSlotArgs{
// Description: pulumi.String("The time to pick up the flowers"),
// Name: pulumi.String("PickupTime"),
// Priority: pulumi.Int(3),
// SampleUtterances: pulumi.StringArray{
// pulumi.String("I would like to order {FlowerType}"),
// },
// SlotConstraint: pulumi.String("Required"),
// SlotType: pulumi.String("AMAZON.TIME"),
// SlotTypeVersion: pulumi.String(fmt.Sprintf("%v%v", "$", "LATEST")),
// ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
// MaxAttempts: pulumi.Int(2),
// Message: []map[string]interface{}{
// map[string]interface{}{
// "content": "Pick up the {FlowerType} at what time on {PickupDate}?",
// "contentType": "PlainText",
// },
// },
// },
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Intents can be imported using their name.
//
// ```sh
// $ pulumi import aws:lex/intent:Intent order_flowers_intent OrderFlowers
// ```
type Intent struct {
pulumi.CustomResourceState
// The ARN of the Lex intent.
Arn pulumi.StringOutput `pulumi:"arn"`
// Checksum identifying the version of the intent that was created. The checksum is not
// included as an argument because the resource will add it automatically when updating the intent.
Checksum pulumi.StringOutput `pulumi:"checksum"`
// 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. Attributes are documented under statement.
ConclusionStatement IntentConclusionStatementPtrOutput `pulumi:"conclusionStatement"`
// Prompts the user to confirm the intent. This question should
// have a yes or no answer. You you must provide both the `rejectionStatement` and `confirmationPrompt`,
// or neither. Attributes are documented under prompt.
ConfirmationPrompt IntentConfirmationPromptPtrOutput `pulumi:"confirmationPrompt"`
// Determines if a new slot type version is created when the initial
// resource is created and on each update. Defaults to `false`.
CreateVersion pulumi.BoolPtrOutput `pulumi:"createVersion"`
// The date when the intent version was created.
CreatedDate pulumi.StringOutput `pulumi:"createdDate"`
// A description of the bot. Must be less than or equal to 200 characters in length.
Description pulumi.StringPtrOutput `pulumi:"description"`
// Specifies a Lambda function to invoke for each user input. You can
// invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
DialogCodeHook IntentDialogCodeHookPtrOutput `pulumi:"dialogCodeHook"`
// 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 `followUpPrompt` field and the `conclusionStatement` field are mutually
// exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
FollowUpPrompt IntentFollowUpPromptPtrOutput `pulumi:"followUpPrompt"`
// 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. Attributes are documented under fulfillment_activity.
FulfillmentActivity IntentFulfillmentActivityOutput `pulumi:"fulfillmentActivity"`
// The date when the $LATEST version of this intent was updated.
LastUpdatedDate pulumi.StringOutput `pulumi:"lastUpdatedDate"`
// The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
Name pulumi.StringOutput `pulumi:"name"`
// 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 pulumi.StringPtrOutput `pulumi:"parentIntentSignature"`
// 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. Attributes are
// documented below under statement.
RejectionStatement IntentRejectionStatementPtrOutput `pulumi:"rejectionStatement"`
// 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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
SampleUtterances pulumi.StringArrayOutput `pulumi:"sampleUtterances"`
// An list of intent slots. At runtime, Amazon Lex elicits required slot values
// from the user using prompts defined in the slots. Attributes are documented under slot.
Slots IntentSlotArrayOutput `pulumi:"slots"`
// The version of the bot.
Version pulumi.StringOutput `pulumi:"version"`
}
// NewIntent registers a new resource with the given unique name, arguments, and options.
func NewIntent(ctx *pulumi.Context,
name string, args *IntentArgs, opts ...pulumi.ResourceOption) (*Intent, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.FulfillmentActivity == nil {
return nil, errors.New("invalid value for required argument 'FulfillmentActivity'")
}
var resource Intent
err := ctx.RegisterResource("aws:lex/intent:Intent", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetIntent gets an existing Intent resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetIntent(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *IntentState, opts ...pulumi.ResourceOption) (*Intent, error) {
var resource Intent
err := ctx.ReadResource("aws:lex/intent:Intent", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Intent resources.
type intentState struct {
// The ARN of the Lex intent.
Arn *string `pulumi:"arn"`
// Checksum identifying the version of the intent that was created. The checksum is not
// included as an argument because the resource will add it automatically when updating the intent.
Checksum *string `pulumi:"checksum"`
// 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. Attributes are documented under statement.
ConclusionStatement *IntentConclusionStatement `pulumi:"conclusionStatement"`
// Prompts the user to confirm the intent. This question should
// have a yes or no answer. You you must provide both the `rejectionStatement` and `confirmationPrompt`,
// or neither. Attributes are documented under prompt.
ConfirmationPrompt *IntentConfirmationPrompt `pulumi:"confirmationPrompt"`
// Determines if a new slot type version is created when the initial
// resource is created and on each update. Defaults to `false`.
CreateVersion *bool `pulumi:"createVersion"`
// The date when the intent version was created.
CreatedDate *string `pulumi:"createdDate"`
// A description of the bot. Must be less than or equal to 200 characters in length.
Description *string `pulumi:"description"`
// Specifies a Lambda function to invoke for each user input. You can
// invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
DialogCodeHook *IntentDialogCodeHook `pulumi:"dialogCodeHook"`
// 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 `followUpPrompt` field and the `conclusionStatement` field are mutually
// exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
FollowUpPrompt *IntentFollowUpPrompt `pulumi:"followUpPrompt"`
// 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. Attributes are documented under fulfillment_activity.
FulfillmentActivity *IntentFulfillmentActivity `pulumi:"fulfillmentActivity"`
// The date when the $LATEST version of this intent was updated.
LastUpdatedDate *string `pulumi:"lastUpdatedDate"`
// The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
Name *string `pulumi:"name"`
// 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 `pulumi:"parentIntentSignature"`
// 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. Attributes are
// documented below under statement.
RejectionStatement *IntentRejectionStatement `pulumi:"rejectionStatement"`
// 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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
SampleUtterances []string `pulumi:"sampleUtterances"`
// An list of intent slots. At runtime, Amazon Lex elicits required slot values
// from the user using prompts defined in the slots. Attributes are documented under slot.
Slots []IntentSlot `pulumi:"slots"`
// The version of the bot.
Version *string `pulumi:"version"`
}
type IntentState struct {
// The ARN of the Lex intent.
Arn pulumi.StringPtrInput
// Checksum identifying the version of the intent that was created. The checksum is not
// included as an argument because the resource will add it automatically when updating the intent.
Checksum pulumi.StringPtrInput
// 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. Attributes are documented under statement.
ConclusionStatement IntentConclusionStatementPtrInput
// Prompts the user to confirm the intent. This question should
// have a yes or no answer. You you must provide both the `rejectionStatement` and `confirmationPrompt`,
// or neither. Attributes are documented under prompt.
ConfirmationPrompt IntentConfirmationPromptPtrInput
// Determines if a new slot type version is created when the initial
// resource is created and on each update. Defaults to `false`.
CreateVersion pulumi.BoolPtrInput
// The date when the intent version was created.
CreatedDate pulumi.StringPtrInput
// A description of the bot. Must be less than or equal to 200 characters in length.
Description pulumi.StringPtrInput
// Specifies a Lambda function to invoke for each user input. You can
// invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
DialogCodeHook IntentDialogCodeHookPtrInput
// 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 `followUpPrompt` field and the `conclusionStatement` field are mutually
// exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
FollowUpPrompt IntentFollowUpPromptPtrInput
// 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. Attributes are documented under fulfillment_activity.
FulfillmentActivity IntentFulfillmentActivityPtrInput
// The date when the $LATEST version of this intent was updated.
LastUpdatedDate pulumi.StringPtrInput
// The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
Name pulumi.StringPtrInput
// 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 pulumi.StringPtrInput
// 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. Attributes are
// documented below under statement.
RejectionStatement IntentRejectionStatementPtrInput
// 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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
SampleUtterances pulumi.StringArrayInput
// An list of intent slots. At runtime, Amazon Lex elicits required slot values
// from the user using prompts defined in the slots. Attributes are documented under slot.
Slots IntentSlotArrayInput
// The version of the bot.
Version pulumi.StringPtrInput
}
func (IntentState) ElementType() reflect.Type {
return reflect.TypeOf((*intentState)(nil)).Elem()
}
type intentArgs struct {
// 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. Attributes are documented under statement.
ConclusionStatement *IntentConclusionStatement `pulumi:"conclusionStatement"`
// Prompts the user to confirm the intent. This question should
// have a yes or no answer. You you must provide both the `rejectionStatement` and `confirmationPrompt`,
// or neither. Attributes are documented under prompt.
ConfirmationPrompt *IntentConfirmationPrompt `pulumi:"confirmationPrompt"`
// Determines if a new slot type version is created when the initial
// resource is created and on each update. Defaults to `false`.
CreateVersion *bool `pulumi:"createVersion"`
// A description of the bot. Must be less than or equal to 200 characters in length.
Description *string `pulumi:"description"`
// Specifies a Lambda function to invoke for each user input. You can
// invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
DialogCodeHook *IntentDialogCodeHook `pulumi:"dialogCodeHook"`
// 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 `followUpPrompt` field and the `conclusionStatement` field are mutually
// exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
FollowUpPrompt *IntentFollowUpPrompt `pulumi:"followUpPrompt"`
// 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. Attributes are documented under fulfillment_activity.
FulfillmentActivity IntentFulfillmentActivity `pulumi:"fulfillmentActivity"`
// The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
Name *string `pulumi:"name"`
// 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 `pulumi:"parentIntentSignature"`
// 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. Attributes are
// documented below under statement.
RejectionStatement *IntentRejectionStatement `pulumi:"rejectionStatement"`
// 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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
SampleUtterances []string `pulumi:"sampleUtterances"`
// An list of intent slots. At runtime, Amazon Lex elicits required slot values
// from the user using prompts defined in the slots. Attributes are documented under slot.
Slots []IntentSlot `pulumi:"slots"`
}
// The set of arguments for constructing a Intent resource.
type IntentArgs struct {
// 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. Attributes are documented under statement.
ConclusionStatement IntentConclusionStatementPtrInput
// Prompts the user to confirm the intent. This question should
// have a yes or no answer. You you must provide both the `rejectionStatement` and `confirmationPrompt`,
// or neither. Attributes are documented under prompt.
ConfirmationPrompt IntentConfirmationPromptPtrInput
// Determines if a new slot type version is created when the initial
// resource is created and on each update. Defaults to `false`.
CreateVersion pulumi.BoolPtrInput
// A description of the bot. Must be less than or equal to 200 characters in length.
Description pulumi.StringPtrInput
// Specifies a Lambda function to invoke for each user input. You can
// invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
DialogCodeHook IntentDialogCodeHookPtrInput
// 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 `followUpPrompt` field and the `conclusionStatement` field are mutually
// exclusive. You can specify only one. Attributes are documented under follow_up_prompt.
FollowUpPrompt IntentFollowUpPromptPtrInput
// 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. Attributes are documented under fulfillment_activity.
FulfillmentActivity IntentFulfillmentActivityInput
// The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
Name pulumi.StringPtrInput
// 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 pulumi.StringPtrInput
// 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. Attributes are
// documented below under statement.
RejectionStatement IntentRejectionStatementPtrInput
// 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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
SampleUtterances pulumi.StringArrayInput
// An list of intent slots. At runtime, Amazon Lex elicits required slot values
// from the user using prompts defined in the slots. Attributes are documented under slot.
Slots IntentSlotArrayInput
}
func (IntentArgs) ElementType() reflect.Type {
return reflect.TypeOf((*intentArgs)(nil)).Elem()
}
type IntentInput interface {
pulumi.Input
ToIntentOutput() IntentOutput
ToIntentOutputWithContext(ctx context.Context) IntentOutput
}
func (*Intent) ElementType() reflect.Type {
return reflect.TypeOf((**Intent)(nil)).Elem()
}
func (i *Intent) ToIntentOutput() IntentOutput {
return i.ToIntentOutputWithContext(context.Background())
}
func (i *Intent) ToIntentOutputWithContext(ctx context.Context) IntentOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntentOutput)
}
// IntentArrayInput is an input type that accepts IntentArray and IntentArrayOutput values.
// You can construct a concrete instance of `IntentArrayInput` via:
//
// IntentArray{ IntentArgs{...} }
type IntentArrayInput interface {
pulumi.Input
ToIntentArrayOutput() IntentArrayOutput
ToIntentArrayOutputWithContext(context.Context) IntentArrayOutput
}
type IntentArray []IntentInput
func (IntentArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Intent)(nil)).Elem()
}
func (i IntentArray) ToIntentArrayOutput() IntentArrayOutput {
return i.ToIntentArrayOutputWithContext(context.Background())
}
func (i IntentArray) ToIntentArrayOutputWithContext(ctx context.Context) IntentArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntentArrayOutput)
}
// IntentMapInput is an input type that accepts IntentMap and IntentMapOutput values.
// You can construct a concrete instance of `IntentMapInput` via:
//
// IntentMap{ "key": IntentArgs{...} }
type IntentMapInput interface {
pulumi.Input
ToIntentMapOutput() IntentMapOutput
ToIntentMapOutputWithContext(context.Context) IntentMapOutput
}
type IntentMap map[string]IntentInput
func (IntentMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Intent)(nil)).Elem()
}
func (i IntentMap) ToIntentMapOutput() IntentMapOutput {
return i.ToIntentMapOutputWithContext(context.Background())
}
func (i IntentMap) ToIntentMapOutputWithContext(ctx context.Context) IntentMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntentMapOutput)
}
type IntentOutput struct{ *pulumi.OutputState }
func (IntentOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Intent)(nil)).Elem()
}
func (o IntentOutput) ToIntentOutput() IntentOutput {
return o
}
func (o IntentOutput) ToIntentOutputWithContext(ctx context.Context) IntentOutput {
return o
}
type IntentArrayOutput struct{ *pulumi.OutputState }
func (IntentArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Intent)(nil)).Elem()
}
func (o IntentArrayOutput) ToIntentArrayOutput() IntentArrayOutput {
return o
}
func (o IntentArrayOutput) ToIntentArrayOutputWithContext(ctx context.Context) IntentArrayOutput {
return o
}
func (o IntentArrayOutput) Index(i pulumi.IntInput) IntentOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Intent {
return vs[0].([]*Intent)[vs[1].(int)]
}).(IntentOutput)
}
type IntentMapOutput struct{ *pulumi.OutputState }
func (IntentMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Intent)(nil)).Elem()
}
func (o IntentMapOutput) ToIntentMapOutput() IntentMapOutput {
return o
}
func (o IntentMapOutput) ToIntentMapOutputWithContext(ctx context.Context) IntentMapOutput {
return o
}
func (o IntentMapOutput) MapIndex(k pulumi.StringInput) IntentOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Intent {
return vs[0].(map[string]*Intent)[vs[1].(string)]
}).(IntentOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*IntentInput)(nil)).Elem(), &Intent{})
pulumi.RegisterInputType(reflect.TypeOf((*IntentArrayInput)(nil)).Elem(), IntentArray{})
pulumi.RegisterInputType(reflect.TypeOf((*IntentMapInput)(nil)).Elem(), IntentMap{})
pulumi.RegisterOutputType(IntentOutput{})
pulumi.RegisterOutputType(IntentArrayOutput{})
pulumi.RegisterOutputType(IntentMapOutput{})
}