File Coverage

blib/lib/Paws/LexModels/FulfillmentActivity.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::LexModels::FulfillmentActivity;
2 1     1   446 use Moose;
  1         3  
  1         9  
3             has CodeHook => (is => 'ro', isa => 'Paws::LexModels::CodeHook', request_name => 'codeHook', traits => ['NameInRequest']);
4             has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest'], required => 1);
5             1;
6              
7             ### main pod documentation begin ###
8              
9             =head1 NAME
10              
11             Paws::LexModels::FulfillmentActivity
12              
13             =head1 USAGE
14              
15             This class represents one of two things:
16              
17             =head3 Arguments in a call to a service
18              
19             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
20             Each attribute should be used as a named argument in the calls that expect this type of object.
21              
22             As an example, if Att1 is expected to be a Paws::LexModels::FulfillmentActivity object:
23              
24             $service_obj->Method(Att1 => { CodeHook => $value, ..., Type => $value });
25              
26             =head3 Results returned from an API call
27              
28             Use accessors for each attribute. If Att1 is expected to be an Paws::LexModels::FulfillmentActivity object:
29              
30             $result = $service_obj->Method(...);
31             $result->Att1->CodeHook
32              
33             =head1 DESCRIPTION
34              
35             Describes how the intent is fulfilled after the user provides all of
36             the information required for the intent. You can provide a Lambda
37             function to process the intent, or you can return the intent
38             information to the client application. We recommend that you use a
39             Lambda function so that the relevant logic lives in the Cloud and limit
40             the client-side code primarily to presentation. If you need to update
41             the logic, you only update the Lambda function; you don't need to
42             upgrade your client application.
43              
44             Consider the following examples:
45              
46             =over
47              
48             =item *
49              
50             In a pizza ordering application, after the user provides all of the
51             information for placing an order, you use a Lambda function to place an
52             order with a pizzeria.
53              
54             =item *
55              
56             In a gaming application, when a user says "pick up a rock," this
57             information must go back to the client application so that it can
58             perform the operation and update the graphics. In this case, you want
59             Amazon Lex to return the intent data to the client.
60              
61             =back
62              
63              
64             =head1 ATTRIBUTES
65              
66              
67             =head2 CodeHook => L<Paws::LexModels::CodeHook>
68              
69             A description of the Lambda function that is run to fulfill the intent.
70              
71              
72             =head2 B<REQUIRED> Type => Str
73              
74             How the intent should be fulfilled, either by running a Lambda function
75             or by returning the slot data to the client application.
76              
77              
78              
79             =head1 SEE ALSO
80              
81             This class forms part of L<Paws>, describing an object used in L<Paws::LexModels>
82              
83             =head1 BUGS and CONTRIBUTIONS
84              
85             The source code is located here: https://github.com/pplu/aws-sdk-perl
86              
87             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
88              
89             =cut
90