« blib/lib/Paws/Lambda/UpdateFunctionCode.pm
↑ Summary
blib/lib/Paws/Lambda/UpdateFunctionEventInvokeConfig.pm »
| 1 | |||
| 2 | package Paws::Lambda::UpdateFunctionConfiguration; | ||
| 3 | use Moose; | ||
| 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 FileSystemConfigs => (is => 'ro', isa => 'ArrayRef[Paws::Lambda::FileSystemConfig]'); | ||
| 8 | has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); | ||
| 9 | has Handler => (is => 'ro', isa => 'Str'); | ||
| 10 | has ImageConfig => (is => 'ro', isa => 'Paws::Lambda::ImageConfig'); | ||
| 11 | has KMSKeyArn => (is => 'ro', isa => 'Str'); | ||
| 12 | has Layers => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 13 | has MemorySize => (is => 'ro', isa => 'Int'); | ||
| 14 | has RevisionId => (is => 'ro', isa => 'Str'); | ||
| 15 | has Role => (is => 'ro', isa => 'Str'); | ||
| 16 | has Runtime => (is => 'ro', isa => 'Str'); | ||
| 17 | has Timeout => (is => 'ro', isa => 'Int'); | ||
| 18 | has TracingConfig => (is => 'ro', isa => 'Paws::Lambda::TracingConfig'); | ||
| 19 | has VpcConfig => (is => 'ro', isa => 'Paws::Lambda::VpcConfig'); | ||
| 20 | |||
| 21 | use MooseX::ClassAttribute; | ||
| 22 | |||
| 23 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunctionConfiguration'); | ||
| 24 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/configuration'); | ||
| 25 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 26 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionConfiguration'); | ||
| 27 | 1; | ||
| 28 | |||
| 29 | ### main pod documentation begin ### | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Paws::Lambda::UpdateFunctionConfiguration - Arguments for method UpdateFunctionConfiguration on L<Paws::Lambda> | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | This class represents the parameters used for calling the method UpdateFunctionConfiguration on the | ||
| 38 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 39 | as arguments to method UpdateFunctionConfiguration. | ||
| 40 | |||
| 41 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunctionConfiguration. | ||
| 42 | |||
| 43 | =head1 SYNOPSIS | ||
| 44 | |||
| 45 | my $lambda = Paws->service('Lambda'); | ||
| 46 | # To update a Lambda function's configuration | ||
| 47 | # The following example modifies the memory size to be 256 MB for the | ||
| 48 | # unpublished ($LATEST) version of a function named my-function. | ||
| 49 | my $FunctionConfiguration = $lambda->UpdateFunctionConfiguration( | ||
| 50 | 'FunctionName' => 'my-function', | ||
| 51 | 'MemorySize' => 256 | ||
| 52 | ); | ||
| 53 | |||
| 54 | # Results: | ||
| 55 | my $CodeSha256 = $FunctionConfiguration->CodeSha256; | ||
| 56 | my $CodeSize = $FunctionConfiguration->CodeSize; | ||
| 57 | my $Description = $FunctionConfiguration->Description; | ||
| 58 | my $FunctionArn = $FunctionConfiguration->FunctionArn; | ||
| 59 | my $FunctionName = $FunctionConfiguration->FunctionName; | ||
| 60 | my $Handler = $FunctionConfiguration->Handler; | ||
| 61 | my $LastModified = $FunctionConfiguration->LastModified; | ||
| 62 | my $MemorySize = $FunctionConfiguration->MemorySize; | ||
| 63 | my $RevisionId = $FunctionConfiguration->RevisionId; | ||
| 64 | my $Role = $FunctionConfiguration->Role; | ||
| 65 | my $Runtime = $FunctionConfiguration->Runtime; | ||
| 66 | my $Timeout = $FunctionConfiguration->Timeout; | ||
| 67 | my $TracingConfig = $FunctionConfiguration->TracingConfig; | ||
| 68 | my $Version = $FunctionConfiguration->Version; | ||
| 69 | |||
| 70 | # Returns a L<Paws::Lambda::FunctionConfiguration> object. | ||
| 71 | |||
| 72 | 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. | ||
| 73 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/UpdateFunctionConfiguration> | ||
| 74 | |||
| 75 | =head1 ATTRIBUTES | ||
| 76 | |||
| 77 | |||
| 78 | =head2 DeadLetterConfig => L<Paws::Lambda::DeadLetterConfig> | ||
| 79 | |||
| 80 | A dead letter queue configuration that specifies the queue or topic | ||
| 81 | where Lambda sends asynchronous events when they fail processing. For | ||
| 82 | more information, see Dead Letter Queues | ||
| 83 | (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq). | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 Description => Str | ||
| 88 | |||
| 89 | A description of the function. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 Environment => L<Paws::Lambda::Environment> | ||
| 94 | |||
| 95 | Environment variables that are accessible from function code during | ||
| 96 | execution. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 FileSystemConfigs => ArrayRef[L<Paws::Lambda::FileSystemConfig>] | ||
| 101 | |||
| 102 | Connection settings for an Amazon EFS file system. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 B<REQUIRED> FunctionName => Str | ||
| 107 | |||
| 108 | The name of the Lambda function. | ||
| 109 | |||
| 110 | B<Name formats> | ||
| 111 | |||
| 112 | =over | ||
| 113 | |||
| 114 | =item * | ||
| 115 | |||
| 116 | B<Function name> - C<my-function>. | ||
| 117 | |||
| 118 | =item * | ||
| 119 | |||
| 120 | B<Function ARN> - | ||
| 121 | C<arn:aws:lambda:us-west-2:123456789012:function:my-function>. | ||
| 122 | |||
| 123 | =item * | ||
| 124 | |||
| 125 | B<Partial ARN> - C<123456789012:function:my-function>. | ||
| 126 | |||
| 127 | =back | ||
| 128 | |||
| 129 | The length constraint applies only to the full ARN. If you specify only | ||
| 130 | the function name, it is limited to 64 characters in length. | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | =head2 Handler => Str | ||
| 135 | |||
| 136 | The name of the method within your code that Lambda calls to execute | ||
| 137 | your function. The format includes the file name. It can also include | ||
| 138 | namespaces and other qualifiers, depending on the runtime. For more | ||
| 139 | information, see Programming Model | ||
| 140 | (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). | ||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | =head2 ImageConfig => L<Paws::Lambda::ImageConfig> | ||
| 145 | |||
| 146 | Container image configuration values | ||
| 147 | (https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html) that | ||
| 148 | override the values in the container image Dockerfile. | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | =head2 KMSKeyArn => Str | ||
| 153 | |||
| 154 | The ARN of the Amazon Web Services Key Management Service (KMS) key | ||
| 155 | that's used to encrypt your function's environment variables. If it's | ||
| 156 | not provided, Lambda uses a default service key. | ||
| 157 | |||
| 158 | |||
| 159 | |||
| 160 | =head2 Layers => ArrayRef[Str|Undef] | ||
| 161 | |||
| 162 | A list of function layers | ||
| 163 | (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) | ||
| 164 | to add to the function's execution environment. Specify each layer by | ||
| 165 | its ARN, including the version. | ||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | =head2 MemorySize => Int | ||
| 170 | |||
| 171 | The amount of memory available to the function | ||
| 172 | (https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html) | ||
| 173 | at runtime. Increasing the function memory also increases its CPU | ||
| 174 | allocation. The default value is 128 MB. The value can be any multiple | ||
| 175 | of 1 MB. | ||
| 176 | |||
| 177 | |||
| 178 | |||
| 179 | =head2 RevisionId => Str | ||
| 180 | |||
| 181 | Only update the function if the revision ID matches the ID that's | ||
| 182 | specified. Use this option to avoid modifying a function that has | ||
| 183 | changed since you last read it. | ||
| 184 | |||
| 185 | |||
| 186 | |||
| 187 | =head2 Role => Str | ||
| 188 | |||
| 189 | The Amazon Resource Name (ARN) of the function's execution role. | ||
| 190 | |||
| 191 | |||
| 192 | |||
| 193 | =head2 Runtime => Str | ||
| 194 | |||
| 195 | The identifier of the function's runtime | ||
| 196 | (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). | ||
| 197 | |||
| 198 | Valid values are: C<"nodejs">, C<"nodejs4.3">, C<"nodejs6.10">, C<"nodejs8.10">, C<"nodejs10.x">, C<"nodejs12.x">, C<"nodejs14.x">, C<"java8">, C<"java8.al2">, C<"java11">, C<"python2.7">, C<"python3.6">, C<"python3.7">, C<"python3.8">, C<"dotnetcore1.0">, C<"dotnetcore2.0">, C<"dotnetcore2.1">, C<"dotnetcore3.1">, C<"nodejs4.3-edge">, C<"go1.x">, C<"ruby2.5">, C<"ruby2.7">, C<"provided">, C<"provided.al2"> | ||
| 199 | |||
| 200 | =head2 Timeout => Int | ||
| 201 | |||
| 202 | The amount of time that Lambda allows a function to run before stopping | ||
| 203 | it. The default is 3 seconds. The maximum allowed value is 900 seconds. | ||
| 204 | For additional information, see Lambda execution environment | ||
| 205 | (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). | ||
| 206 | |||
| 207 | |||
| 208 | |||
| 209 | =head2 TracingConfig => L<Paws::Lambda::TracingConfig> | ||
| 210 | |||
| 211 | Set C<Mode> to C<Active> to sample and trace a subset of incoming | ||
| 212 | requests with X-Ray | ||
| 213 | (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html). | ||
| 214 | |||
| 215 | |||
| 216 | |||
| 217 | =head2 VpcConfig => L<Paws::Lambda::VpcConfig> | ||
| 218 | |||
| 219 | For network connectivity to Amazon Web Services resources in a VPC, | ||
| 220 | specify a list of security groups and subnets in the VPC. When you | ||
| 221 | connect a function to a VPC, it can only access resources and the | ||
| 222 | internet through that VPC. For more information, see VPC Settings | ||
| 223 | (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). | ||
| 224 | |||
| 225 | |||
| 226 | |||
| 227 | |||
| 228 | =head1 SEE ALSO | ||
| 229 | |||
| 230 | This class forms part of L<Paws>, documenting arguments for method UpdateFunctionConfiguration in L<Paws::Lambda> | ||
| 231 | |||
| 232 | =head1 BUGS and CONTRIBUTIONS | ||
| 233 | |||
| 234 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 235 | |||
| 236 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 237 | |||
| 238 | =cut | ||
| 239 |