-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathlambda.services.k8s.aws_functions.yaml
566 lines (548 loc) · 24.8 KB
/
lambda.services.k8s.aws_functions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: functions.lambda.services.k8s.aws
spec:
group: lambda.services.k8s.aws
names:
kind: Function
listKind: FunctionList
plural: functions
singular: function
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Function is the Schema for the Functions API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: FunctionSpec defines the desired state of Function.
properties:
architectures:
description: |-
The instruction set architecture that the function supports. Enter a string
array with one of the valid values (arm64 or x86_64). The default value is
x86_64.
items:
type: string
type: array
code:
description: The code for the function.
properties:
imageURI:
type: string
s3Bucket:
type: string
s3BucketRef:
description: Reference field for S3Bucket
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
namespace:
type: string
type: object
type: object
s3Key:
type: string
s3ObjectVersion:
type: string
sha256:
type: string
zipFile:
format: byte
type: string
type: object
codeSigningConfigARN:
description: |-
To enable code signing for this function, specify the ARN of a code-signing
configuration. A code-signing configuration includes a set of signing profiles,
which define the trusted publishers for this function.
type: string
deadLetterConfig:
description: |-
A dead-letter queue configuration that specifies the queue or topic where
Lambda sends asynchronous events when they fail processing. For more information,
see Dead-letter queues (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq).
properties:
targetARN:
type: string
type: object
description:
description: A description of the function.
type: string
environment:
description: Environment variables that are accessible from function
code during execution.
properties:
variables:
additionalProperties:
type: string
type: object
type: object
ephemeralStorage:
description: |-
The size of the function's /tmp directory in MB. The default value is 512,
but can be any whole number between 512 and 10,240 MB.
properties:
size:
format: int64
type: integer
type: object
fileSystemConfigs:
description: Connection settings for an Amazon EFS file system.
items:
description: |-
Details about the connection between a Lambda function and an Amazon EFS
file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).
properties:
arn:
type: string
localMountPath:
type: string
type: object
type: array
functionEventInvokeConfig:
description: |-
Configures options for asynchronous invocation on a function.
- DestinationConfig
A destination for events after they have been sent to a function for processing.
Types of Destinations:
Function - The Amazon Resource Name (ARN) of a Lambda function.
Queue - The ARN of a standard SQS queue.
Topic - The ARN of a standard SNS topic.
Event Bus - The ARN of an Amazon EventBridge event bus.
- MaximumEventAgeInSeconds
The maximum age of a request that Lambda sends to a function for processing.
- MaximumRetryAttempts
The maximum number of times to retry when the function returns an error.
properties:
destinationConfig:
description: |-
A configuration object that specifies the destination of an event after Lambda
processes it.
properties:
onFailure:
description: A destination for events that failed processing.
properties:
destination:
type: string
type: object
onSuccess:
description: A destination for events that were processed
successfully.
properties:
destination:
type: string
type: object
type: object
functionName:
type: string
maximumEventAgeInSeconds:
format: int64
type: integer
maximumRetryAttempts:
format: int64
type: integer
qualifier:
type: string
type: object
handler:
description: |-
The name of the method within your code that Lambda calls to run your function.
Handler is required if the deployment package is a .zip file archive. The
format includes the file name. It can also include namespaces and other qualifiers,
depending on the runtime. For more information, see Lambda programming model
(https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html).
type: string
imageConfig:
description: |-
Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-settings)
that override the values in the container image Dockerfile.
properties:
command:
items:
type: string
type: array
entryPoint:
items:
type: string
type: array
workingDirectory:
type: string
type: object
kmsKeyARN:
description: |-
The ARN of the Key Management Service (KMS) key that's used to encrypt your
function's environment variables. If it's not provided, Lambda uses a default
service key.
type: string
kmsKeyRef:
description: "AWSResourceReferenceWrapper provides a wrapper around
*AWSResourceReference\ntype to provide more user friendly syntax
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
\ name: my-api"
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
namespace:
type: string
type: object
type: object
layers:
description: |-
A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
to add to the function's execution environment. Specify each layer by its
ARN, including the version.
items:
type: string
type: array
memorySize:
description: |-
The amount of memory available to the function (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console)
at runtime. Increasing the function memory also increases its CPU allocation.
The default value is 128 MB. The value can be any multiple of 1 MB.
format: int64
type: integer
name:
description: |-
The name of the Lambda function.
Name formats
- Function name – my-function.
- Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
- Partial ARN – 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the
function name, it is limited to 64 characters in length.
type: string
packageType:
description: |-
The type of deployment package. Set to Image for container image and set
to Zip for .zip file archive.
type: string
publish:
description: Set to true to publish the first version of the function
during creation.
type: boolean
reservedConcurrentExecutions:
description: The number of simultaneous executions to reserve for
the function.
format: int64
type: integer
role:
description: The Amazon Resource Name (ARN) of the function's execution
role.
type: string
roleRef:
description: "AWSResourceReferenceWrapper provides a wrapper around
*AWSResourceReference\ntype to provide more user friendly syntax
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
\ name: my-api"
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
namespace:
type: string
type: object
type: object
runtime:
description: |-
The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
Runtime is required if the deployment package is a .zip file archive.
type: string
snapStart:
description: |-
The function's SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html)
setting.
properties:
applyOn:
type: string
type: object
tags:
additionalProperties:
type: string
description: |-
A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
to apply to the function.
type: object
timeout:
description: |-
The amount of time (in seconds) that Lambda allows a function to run before
stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.
For more information, see Lambda execution environment (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).
format: int64
type: integer
tracingConfig:
description: |-
Set Mode to Active to sample and trace a subset of incoming requests with
X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html).
properties:
mode:
type: string
type: object
vpcConfig:
description: |-
For network connectivity to Amazon Web Services resources in a VPC, specify
a list of security groups and subnets in the VPC. When you connect a function
to a VPC, it can access resources and the internet only through that VPC.
For more information, see Configuring a Lambda function to access resources
in a VPC (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).
properties:
securityGroupIDs:
items:
type: string
type: array
securityGroupRefs:
description: Reference field for SecurityGroupIDs
items:
description: "AWSResourceReferenceWrapper provides a wrapper
around *AWSResourceReference\ntype to provide more user friendly
syntax for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
\ name: my-api"
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
subnetIDs:
items:
type: string
type: array
subnetRefs:
description: Reference field for SubnetIDs
items:
description: "AWSResourceReferenceWrapper provides a wrapper
around *AWSResourceReference\ntype to provide more user friendly
syntax for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
\ name: my-api"
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
namespace:
type: string
type: object
type: object
type: array
type: object
required:
- code
- name
type: object
status:
description: FunctionStatus defines the observed state of Function
properties:
ackResourceMetadata:
description: |-
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
properties:
arn:
description: |-
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
description: |-
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
type: string
region:
description: Region is the AWS region in which the resource exists
or will exist.
type: string
required:
- ownerAccountID
- region
type: object
codeSHA256:
description: The SHA256 hash of the function's deployment package.
type: string
codeSize:
description: The size of the function's deployment package, in bytes.
format: int64
type: integer
conditions:
description: |-
All CRS managed by ACK have a common `Status.Conditions` member that
contains a collection of `ackv1alpha1.Condition` objects that describe
the various terminal states of the CR and its backend AWS service API
resource
items:
description: |-
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type is the type of the Condition
type: string
required:
- status
- type
type: object
type: array
imageConfigResponse:
description: The function's image configuration values.
properties:
error:
description: Error response to GetFunctionConfiguration.
properties:
errorCode:
type: string
message:
type: string
type: object
imageConfig:
description: |-
Configuration values that override the container image Dockerfile settings.
For more information, see Container image settings (https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).
properties:
command:
items:
type: string
type: array
entryPoint:
items:
type: string
type: array
workingDirectory:
type: string
type: object
type: object
lastModified:
description: |-
The date and time that the function was last updated, in ISO-8601 format
(https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
type: string
lastUpdateStatus:
description: |-
The status of the last update that was performed on the function. This is
first set to Successful after function creation completes.
type: string
lastUpdateStatusReason:
description: The reason for the last update that was performed on
the function.
type: string
lastUpdateStatusReasonCode:
description: The reason code for the last update that was performed
on the function.
type: string
layerStatuses:
description: The function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
items:
description: An Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
properties:
arn:
type: string
codeSize:
format: int64
type: integer
signingJobARN:
type: string
signingProfileVersionARN:
type: string
type: object
type: array
masterARN:
description: For Lambda@Edge functions, the ARN of the main function.
type: string
revisionID:
description: The latest updated revision of the function or alias.
type: string
signingJobARN:
description: The ARN of the signing job.
type: string
signingProfileVersionARN:
description: The ARN of the signing profile version.
type: string
state:
description: |-
The current state of the function. When the state is Inactive, you can reactivate
the function by invoking it.
type: string
stateReason:
description: The reason for the function's current state.
type: string
stateReasonCode:
description: |-
The reason code for the function's current state. When the code is Creating,
you can't invoke or modify the function.
type: string
version:
description: The version of the Lambda function.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}