File Coverage

blib/lib/Paws/Lambda/UpdateFunctionConfiguration.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Lambda::UpdateFunctionConfiguration;
3 1     1   547 use Moose;
  1         3  
  1         6  
4             has DeadLetterConfig => (is => 'ro', isa => 'Paws::Lambda::DeadLetterConfig');
5             has Description => (is => 'ro', isa => 'Str');
6             has Environment => (is => 'ro', isa => 'Paws::Lambda::Environment');
7             has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName' , required => 1);
8             has Handler => (is => 'ro', isa => 'Str');
9             has KMSKeyArn => (is => 'ro', isa => 'Str');
10             has MemorySize => (is => 'ro', isa => 'Int');
11             has Role => (is => 'ro', isa => 'Str');
12             has Runtime => (is => 'ro', isa => 'Str');
13             has Timeout => (is => 'ro', isa => 'Int');
14             has TracingConfig => (is => 'ro', isa => 'Paws::Lambda::TracingConfig');
15             has VpcConfig => (is => 'ro', isa => 'Paws::Lambda::VpcConfig');
16              
17 1     1   6661 use MooseX::ClassAttribute;
  1         3  
  1         9  
18              
19             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunctionConfiguration');
20             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/configuration');
21             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
22             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionConfiguration');
23             class_has _result_key => (isa => 'Str', is => 'ro');
24             1;
25              
26             ### main pod documentation begin ###
27              
28             =head1 NAME
29              
30             Paws::Lambda::UpdateFunctionConfiguration - Arguments for method UpdateFunctionConfiguration on Paws::Lambda
31              
32             =head1 DESCRIPTION
33              
34             This class represents the parameters used for calling the method UpdateFunctionConfiguration on the
35             AWS Lambda service. Use the attributes of this class
36             as arguments to method UpdateFunctionConfiguration.
37              
38             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunctionConfiguration.
39              
40             As an example:
41              
42             $service_obj->UpdateFunctionConfiguration(Att1 => $value1, Att2 => $value2, ...);
43              
44             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.
45              
46             =head1 ATTRIBUTES
47              
48              
49             =head2 DeadLetterConfig => L<Paws::Lambda::DeadLetterConfig>
50              
51             The parent object that contains the target ARN (Amazon Resource Name)
52             of an Amazon SQS queue or Amazon SNS topic.
53              
54              
55              
56             =head2 Description => Str
57              
58             A short user-defined function description. AWS Lambda does not use this
59             value. Assign a meaningful description as you see fit.
60              
61              
62              
63             =head2 Environment => L<Paws::Lambda::Environment>
64              
65             The parent object that contains your environment's configuration
66             settings.
67              
68              
69              
70             =head2 B<REQUIRED> FunctionName => Str
71              
72             The name of the Lambda function.
73              
74             You can specify a function name (for example, C<Thumbnail>) or you can
75             specify Amazon Resource Name (ARN) of the function (for example,
76             C<arn:aws:lambda:us-west-2:account-id:function:ThumbNail>). AWS Lambda
77             also allows you to specify a partial ARN (for example,
78             C<account-id:Thumbnail>). Note that the length constraint applies only
79             to the ARN. If you specify only the function name, it is limited to 64
80             character in length.
81              
82              
83              
84             =head2 Handler => Str
85              
86             The function that Lambda calls to begin executing your function. For
87             Node.js, it is the C<module-name.export> value in your function.
88              
89              
90              
91             =head2 KMSKeyArn => Str
92              
93             The Amazon Resource Name (ARN) of the KMS key used to encrypt your
94             function's environment variables. If you elect to use the AWS Lambda
95             default service key, pass in an empty string ("") for this parameter.
96              
97              
98              
99             =head2 MemorySize => Int
100              
101             The amount of memory, in MB, your Lambda function is given. AWS Lambda
102             uses this memory size to infer the amount of CPU allocated to your
103             function. Your function use-case determines your CPU and memory
104             requirements. For example, a database operation might need less memory
105             compared to an image processing function. The default value is 128 MB.
106             The value must be a multiple of 64 MB.
107              
108              
109              
110             =head2 Role => Str
111              
112             The Amazon Resource Name (ARN) of the IAM role that Lambda will assume
113             when it executes your function.
114              
115              
116              
117             =head2 Runtime => Str
118              
119             The runtime environment for the Lambda function.
120              
121             To use the Python runtime v3.6, set the value to "python3.6". To use
122             the Python runtime v2.7, set the value to "python2.7". To use the
123             Node.js runtime v6.10, set the value to "nodejs6.10". To use the
124             Node.js runtime v4.3, set the value to "nodejs4.3". To use the Python
125             runtime v3.6, set the value to "python3.6". To use the Python runtime
126             v2.7, set the value to "python2.7".
127              
128             Node v0.10.42 is currently marked as deprecated. You must migrate
129             existing functions to the newer Node.js runtime versions available on
130             AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. You can
131             request a one-time extension until June 30, 2017 by going to the Lambda
132             console and following the instructions provided. Failure to do so will
133             result in an invalid parameter value error being returned. Note that
134             you will have to follow this procedure for each region that contains
135             functions written in the Node v0.10.42 runtime.
136              
137             Valid values are: C<"nodejs">, C<"nodejs4.3">, C<"nodejs6.10">, C<"java8">, C<"python2.7">, C<"python3.6">, C<"dotnetcore1.0">, C<"nodejs4.3-edge">
138              
139             =head2 Timeout => Int
140              
141             The function execution time at which AWS Lambda should terminate the
142             function. Because the execution time has cost implications, we
143             recommend you set this value based on your expected execution time. The
144             default is 3 seconds.
145              
146              
147              
148             =head2 TracingConfig => L<Paws::Lambda::TracingConfig>
149              
150             The parent object that contains your function's tracing settings.
151              
152              
153              
154             =head2 VpcConfig => L<Paws::Lambda::VpcConfig>
155              
156              
157              
158              
159              
160              
161             =head1 SEE ALSO
162              
163             This class forms part of L<Paws>, documenting arguments for method UpdateFunctionConfiguration in L<Paws::Lambda>
164              
165             =head1 BUGS and CONTRIBUTIONS
166              
167             The source code is located here: https://github.com/pplu/aws-sdk-perl
168              
169             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
170              
171             =cut
172