line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::Lambda::CreateEventSourceMapping; |
3
|
1
|
|
|
1
|
|
375
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
has BatchSize => (is => 'ro', isa => 'Int'); |
5
|
|
|
|
|
|
|
has Enabled => (is => 'ro', isa => 'Bool'); |
6
|
|
|
|
|
|
|
has EventSourceArn => (is => 'ro', isa => 'Str', required => 1); |
7
|
|
|
|
|
|
|
has FunctionName => (is => 'ro', isa => 'Str', required => 1); |
8
|
|
|
|
|
|
|
has StartingPosition => (is => 'ro', isa => 'Str', required => 1); |
9
|
|
|
|
|
|
|
has StartingPositionTimestamp => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5534
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEventSourceMapping'); |
14
|
|
|
|
|
|
|
class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/event-source-mappings/'); |
15
|
|
|
|
|
|
|
class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); |
16
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::EventSourceMappingConfiguration'); |
17
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
### main pod documentation begin ### |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Paws::Lambda::CreateEventSourceMapping - Arguments for method CreateEventSourceMapping on Paws::Lambda |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateEventSourceMapping on the |
29
|
|
|
|
|
|
|
AWS Lambda service. Use the attributes of this class |
30
|
|
|
|
|
|
|
as arguments to method CreateEventSourceMapping. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEventSourceMapping. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
As an example: |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$service_obj->CreateEventSourceMapping(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 BatchSize => Int |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
The largest number of records that AWS Lambda will retrieve from your |
46
|
|
|
|
|
|
|
event source at the time of invoking your function. Your function |
47
|
|
|
|
|
|
|
receives an event with all the retrieved records. The default is 100 |
48
|
|
|
|
|
|
|
records. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 Enabled => Bool |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Indicates whether AWS Lambda should begin polling the event source. By |
55
|
|
|
|
|
|
|
default, C<Enabled> is true. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 B<REQUIRED> EventSourceArn => Str |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon |
62
|
|
|
|
|
|
|
DynamoDB stream that is the event source. Any record added to this |
63
|
|
|
|
|
|
|
stream could cause AWS Lambda to invoke your Lambda function, it |
64
|
|
|
|
|
|
|
depends on the C<BatchSize>. AWS Lambda POSTs the Amazon Kinesis event, |
65
|
|
|
|
|
|
|
containing records, to your Lambda function as JSON. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 B<REQUIRED> FunctionName => Str |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The Lambda function to invoke when AWS Lambda detects an event on the |
72
|
|
|
|
|
|
|
stream. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
You can specify the function name (for example, C<Thumbnail>) or you |
75
|
|
|
|
|
|
|
can specify Amazon Resource Name (ARN) of the function (for example, |
76
|
|
|
|
|
|
|
C<arn:aws:lambda:us-west-2:account-id:function:ThumbNail>). |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
If you are using versioning, you can also provide a qualified function |
79
|
|
|
|
|
|
|
ARN (ARN that is qualified with function version or alias name as |
80
|
|
|
|
|
|
|
suffix). For more information about versioning, see AWS Lambda Function |
81
|
|
|
|
|
|
|
Versioning and Aliases |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
AWS Lambda also allows you to specify only the function name with the |
84
|
|
|
|
|
|
|
account ID qualifier (for example, C<account-id:Thumbnail>). |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Note that the length constraint applies only to the ARN. If you specify |
87
|
|
|
|
|
|
|
only the function name, it is limited to 64 characters in length. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 B<REQUIRED> StartingPosition => Str |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The position in the stream where AWS Lambda should start reading. Valid |
94
|
|
|
|
|
|
|
only for Kinesis streams. For more information, see ShardIteratorType |
95
|
|
|
|
|
|
|
in the I<Amazon Kinesis API Reference>. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Valid values are: C<"TRIM_HORIZON">, C<"LATEST">, C<"AT_TIMESTAMP"> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 StartingPositionTimestamp => Str |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
The timestamp of the data record from which to start reading. Used with |
102
|
|
|
|
|
|
|
shard iterator type AT_TIMESTAMP. If a record with this exact timestamp |
103
|
|
|
|
|
|
|
does not exist, the iterator returned is for the next (later) record. |
104
|
|
|
|
|
|
|
If the timestamp is older than the current trim horizon, the iterator |
105
|
|
|
|
|
|
|
returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid |
106
|
|
|
|
|
|
|
only for Kinesis streams. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head1 SEE ALSO |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateEventSourceMapping in L<Paws::Lambda> |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
122
|
|
|
|
|
|
|
|