line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::Lambda::UpdateFunctionCode; |
3
|
1
|
|
|
1
|
|
530
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
has DryRun => (is => 'ro', isa => 'Bool'); |
5
|
|
|
|
|
|
|
has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName' , required => 1); |
6
|
|
|
|
|
|
|
has Publish => (is => 'ro', isa => 'Bool'); |
7
|
|
|
|
|
|
|
has S3Bucket => (is => 'ro', isa => 'Str'); |
8
|
|
|
|
|
|
|
has S3Key => (is => 'ro', isa => 'Str'); |
9
|
|
|
|
|
|
|
has S3ObjectVersion => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has ZipFile => (is => 'ro', isa => 'Str'); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
6379
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunctionCode'); |
15
|
|
|
|
|
|
|
class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/code'); |
16
|
|
|
|
|
|
|
class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); |
17
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionConfiguration'); |
18
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
### main pod documentation begin ### |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Paws::Lambda::UpdateFunctionCode - Arguments for method UpdateFunctionCode on Paws::Lambda |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This class represents the parameters used for calling the method UpdateFunctionCode on the |
30
|
|
|
|
|
|
|
AWS Lambda service. Use the attributes of this class |
31
|
|
|
|
|
|
|
as arguments to method UpdateFunctionCode. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunctionCode. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
As an example: |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
$service_obj->UpdateFunctionCode(Att1 => $value1, Att2 => $value2, ...); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
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. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 DryRun => Bool |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This boolean parameter can be used to test your request to AWS Lambda |
47
|
|
|
|
|
|
|
to update the Lambda function and publish a version as an atomic |
48
|
|
|
|
|
|
|
operation. It will do all necessary computation and validation of your |
49
|
|
|
|
|
|
|
code but will not upload it or a publish a version. Each time this |
50
|
|
|
|
|
|
|
operation is invoked, the C<CodeSha256> hash value the provided code |
51
|
|
|
|
|
|
|
will also be computed and returned in the response. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 B<REQUIRED> FunctionName => Str |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The existing Lambda function name whose code you want to replace. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
You can specify a function name (for example, C<Thumbnail>) or you can |
60
|
|
|
|
|
|
|
specify Amazon Resource Name (ARN) of the function (for example, |
61
|
|
|
|
|
|
|
C<arn:aws:lambda:us-west-2:account-id:function:ThumbNail>). AWS Lambda |
62
|
|
|
|
|
|
|
also allows you to specify a partial ARN (for example, |
63
|
|
|
|
|
|
|
C<account-id:Thumbnail>). Note that the length constraint applies only |
64
|
|
|
|
|
|
|
to the ARN. If you specify only the function name, it is limited to 64 |
65
|
|
|
|
|
|
|
characters in length. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 Publish => Bool |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This boolean parameter can be used to request AWS Lambda to update the |
72
|
|
|
|
|
|
|
Lambda function and publish a version as an atomic operation. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head2 S3Bucket => Str |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Amazon S3 bucket name where the .zip file containing your deployment |
79
|
|
|
|
|
|
|
package is stored. This bucket must reside in the same AWS Region where |
80
|
|
|
|
|
|
|
you are creating the Lambda function. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 S3Key => Str |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The Amazon S3 object (the deployment package) key name you want to |
87
|
|
|
|
|
|
|
upload. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 S3ObjectVersion => Str |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The Amazon S3 object (the deployment package) version you want to |
94
|
|
|
|
|
|
|
upload. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 ZipFile => Str |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
The contents of your zip file containing your deployment package. If |
101
|
|
|
|
|
|
|
you are using the web API directly, the contents of the zip file must |
102
|
|
|
|
|
|
|
be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the |
103
|
|
|
|
|
|
|
SDKs or CLI will do the encoding for you. For more information about |
104
|
|
|
|
|
|
|
creating a .zip file, see Execution Permissions in the I<AWS Lambda |
105
|
|
|
|
|
|
|
Developer Guide>. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 SEE ALSO |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method UpdateFunctionCode in L<Paws::Lambda> |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=cut |
121
|
|
|
|
|
|
|
|