-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtypes.go
591 lines (528 loc) · 29.5 KB
/
types.go
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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
// Code generated by ack-generate. DO NOT EDIT.
package v1alpha1
import (
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
"github.com/aws/aws-sdk-go/aws"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Hack to avoid import errors during build...
var (
_ = &metav1.Time{}
_ = &aws.JSONValue{}
_ = ackv1alpha1.AWSAccountID("")
)
// Limits that are related to concurrency and storage. All file and storage
// sizes are in bytes.
type AccountLimit struct {
CodeSizeUnzipped *int64 `json:"codeSizeUnzipped,omitempty"`
CodeSizeZipped *int64 `json:"codeSizeZipped,omitempty"`
TotalCodeSize *int64 `json:"totalCodeSize,omitempty"`
}
// The number of functions and amount of storage in use.
type AccountUsage struct {
FunctionCount *int64 `json:"functionCount,omitempty"`
TotalCodeSize *int64 `json:"totalCodeSize,omitempty"`
}
type AddPermissionInput struct {
Action *string `json:"action,omitempty"`
EventSourceToken *string `json:"eventSourceToken,omitempty"`
FunctionURLAuthType *string `json:"functionURLAuthType,omitempty"`
Principal *string `json:"principal,omitempty"`
PrincipalOrgID *string `json:"principalOrgID,omitempty"`
RevisionID *string `json:"revisionID,omitempty"`
SourceAccount *string `json:"sourceAccount,omitempty"`
SourceARN *string `json:"sourceARN,omitempty"`
StatementID *string `json:"statementID,omitempty"`
}
// Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).
type AliasConfiguration struct {
AliasARN *string `json:"aliasARN,omitempty"`
Description *string `json:"description,omitempty"`
FunctionVersion *string `json:"functionVersion,omitempty"`
Name *string `json:"name,omitempty"`
RevisionID *string `json:"revisionID,omitempty"`
// The traffic-shifting (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
// configuration of a Lambda function alias.
RoutingConfig *AliasRoutingConfiguration `json:"routingConfig,omitempty"`
}
// The traffic-shifting (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
// configuration of a Lambda function alias.
type AliasRoutingConfiguration struct {
AdditionalVersionWeights map[string]*float64 `json:"additionalVersionWeights,omitempty"`
}
// List of signing profiles that can sign a code package.
type AllowedPublishers struct {
SigningProfileVersionARNs []*string `json:"signingProfileVersionARNs,omitempty"`
}
// Specific configuration settings for an Amazon Managed Streaming for Apache
// Kafka (Amazon MSK) event source.
type AmazonManagedKafkaEventSourceConfig struct {
ConsumerGroupID *string `json:"consumerGroupID,omitempty"`
}
// The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
// settings for your Lambda function URL. Use CORS to grant access to your function
// URL from any origin. You can also use CORS to control access for specific
// HTTP headers and methods in requests to your function URL.
type CORS struct {
AllowCredentials *bool `json:"allowCredentials,omitempty"`
AllowHeaders []*string `json:"allowHeaders,omitempty"`
AllowMethods []*string `json:"allowMethods,omitempty"`
AllowOrigins []*string `json:"allowOrigins,omitempty"`
ExposeHeaders []*string `json:"exposeHeaders,omitempty"`
MaxAge *int64 `json:"maxAge,omitempty"`
}
// Details about a Code signing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html).
type CodeSigningConfig_SDK struct {
// List of signing profiles that can sign a code package.
AllowedPublishers *AllowedPublishers `json:"allowedPublishers,omitempty"`
CodeSigningConfigARN *string `json:"codeSigningConfigARN,omitempty"`
CodeSigningConfigID *string `json:"codeSigningConfigID,omitempty"`
// Code signing configuration policies (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies)
// specify the validation failure action for signature mismatch or expiry.
CodeSigningPolicies *CodeSigningPolicies `json:"codeSigningPolicies,omitempty"`
Description *string `json:"description,omitempty"`
LastModified *string `json:"lastModified,omitempty"`
}
// Code signing configuration policies (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies)
// specify the validation failure action for signature mismatch or expiry.
type CodeSigningPolicies struct {
UntrustedArtifactOnDeployment *string `json:"untrustedArtifactOnDeployment,omitempty"`
}
// The dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq)
// for failed asynchronous invocations.
type DeadLetterConfig struct {
TargetARN *string `json:"targetARN,omitempty"`
}
// A configuration object that specifies the destination of an event after Lambda
// processes it.
type DestinationConfig struct {
// A destination for events that failed processing.
OnFailure *OnFailure `json:"onFailure,omitempty"`
// A destination for events that were processed successfully.
//
// To retain records of successful asynchronous invocations (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations),
// you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function,
// or Amazon EventBridge event bus as the destination.
OnSuccess *OnSuccess `json:"onSuccess,omitempty"`
}
// Specific configuration settings for a DocumentDB event source.
type DocumentDBEventSourceConfig struct {
CollectionName *string `json:"collectionName,omitempty"`
DatabaseName *string `json:"databaseName,omitempty"`
FullDocument *string `json:"fullDocument,omitempty"`
}
// A function's environment variable settings. You can use environment variables
// to adjust your function's behavior without updating code. An environment
// variable is a pair of strings that are stored in a function's version-specific
// configuration.
type Environment struct {
Variables map[string]*string `json:"variables,omitempty"`
}
// Error messages for environment variables that couldn't be applied.
type EnvironmentError struct {
ErrorCode *string `json:"errorCode,omitempty"`
Message *string `json:"message,omitempty"`
}
// The results of an operation to update or read environment variables. If the
// operation succeeds, the response contains the environment variables. If it
// fails, the response contains details about the error.
type EnvironmentResponse struct {
// Error messages for environment variables that couldn't be applied.
Error *EnvironmentError `json:"error,omitempty"`
Variables map[string]*string `json:"variables,omitempty"`
}
// 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. For more information,
// see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage).
type EphemeralStorage struct {
Size *int64 `json:"size,omitempty"`
}
// A mapping between an Amazon Web Services resource and a Lambda function.
// For details, see CreateEventSourceMapping.
type EventSourceMappingConfiguration struct {
// Specific configuration settings for an Amazon Managed Streaming for Apache
// Kafka (Amazon MSK) event source.
AmazonManagedKafkaEventSourceConfig *AmazonManagedKafkaEventSourceConfig `json:"amazonManagedKafkaEventSourceConfig,omitempty"`
BatchSize *int64 `json:"batchSize,omitempty"`
BisectBatchOnFunctionError *bool `json:"bisectBatchOnFunctionError,omitempty"`
// A configuration object that specifies the destination of an event after Lambda
// processes it.
DestinationConfig *DestinationConfig `json:"destinationConfig,omitempty"`
// Specific configuration settings for a DocumentDB event source.
DocumentDBEventSourceConfig *DocumentDBEventSourceConfig `json:"documentDBEventSourceConfig,omitempty"`
EventSourceARN *string `json:"eventSourceARN,omitempty"`
EventSourceMappingARN *string `json:"eventSourceMappingARN,omitempty"`
// An object that contains the filters for an event source.
FilterCriteria *FilterCriteria `json:"filterCriteria,omitempty"`
// An object that contains details about an error related to filter criteria
// encryption.
FilterCriteriaError *FilterCriteriaError `json:"filterCriteriaError,omitempty"`
FunctionARN *string `json:"functionARN,omitempty"`
FunctionResponseTypes []*string `json:"functionResponseTypes,omitempty"`
KMSKeyARN *string `json:"kmsKeyARN,omitempty"`
LastModified *metav1.Time `json:"lastModified,omitempty"`
LastProcessingResult *string `json:"lastProcessingResult,omitempty"`
MaximumBatchingWindowInSeconds *int64 `json:"maximumBatchingWindowInSeconds,omitempty"`
MaximumRecordAgeInSeconds *int64 `json:"maximumRecordAgeInSeconds,omitempty"`
MaximumRetryAttempts *int64 `json:"maximumRetryAttempts,omitempty"`
// The metrics configuration for your event source. Use this configuration object
// to define which metrics you want your event source mapping to produce.
MetricsConfig *EventSourceMappingMetricsConfig `json:"metricsConfig,omitempty"`
ParallelizationFactor *int64 `json:"parallelizationFactor,omitempty"`
// The Provisioned Mode (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode)
// configuration for the event source. Use Provisioned Mode to customize the
// minimum and maximum number of event pollers for your event source. An event
// poller is a compute unit that provides approximately 5 MBps of throughput.
ProvisionedPollerConfig *ProvisionedPollerConfig `json:"provisionedPollerConfig,omitempty"`
Queues []*string `json:"queues,omitempty"`
// (Amazon SQS only) The scaling configuration for the event source. To remove
// the configuration, pass an empty value.
ScalingConfig *ScalingConfig `json:"scalingConfig,omitempty"`
// The self-managed Apache Kafka cluster for your event source.
SelfManagedEventSource *SelfManagedEventSource `json:"selfManagedEventSource,omitempty"`
// Specific configuration settings for a self-managed Apache Kafka event source.
SelfManagedKafkaEventSourceConfig *SelfManagedKafkaEventSourceConfig `json:"selfManagedKafkaEventSourceConfig,omitempty"`
SourceAccessConfigurations []*SourceAccessConfiguration `json:"sourceAccessConfigurations,omitempty"`
StartingPosition *string `json:"startingPosition,omitempty"`
StartingPositionTimestamp *metav1.Time `json:"startingPositionTimestamp,omitempty"`
State *string `json:"state,omitempty"`
StateTransitionReason *string `json:"stateTransitionReason,omitempty"`
Topics []*string `json:"topics,omitempty"`
TumblingWindowInSeconds *int64 `json:"tumblingWindowInSeconds,omitempty"`
UUID *string `json:"uuid,omitempty"`
}
// The metrics configuration for your event source. Use this configuration object
// to define which metrics you want your event source mapping to produce.
type EventSourceMappingMetricsConfig struct {
Metrics []*string `json:"metrics,omitempty"`
}
// 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).
type FileSystemConfig struct {
ARN *string `json:"arn,omitempty"`
LocalMountPath *string `json:"localMountPath,omitempty"`
}
// A structure within a FilterCriteria object that defines an event filtering
// pattern.
type Filter struct {
Pattern *string `json:"pattern,omitempty"`
}
// An object that contains the filters for an event source.
type FilterCriteria struct {
Filters []*Filter `json:"filters,omitempty"`
}
// An object that contains details about an error related to filter criteria
// encryption.
type FilterCriteriaError struct {
ErrorCode *string `json:"errorCode,omitempty"`
Message *string `json:"message,omitempty"`
}
// The code for the Lambda function. You can either specify an object in Amazon
// S3, upload a .zip file archive deployment package directly, or specify the
// URI of a container image.
type FunctionCode struct {
ImageURI *string `json:"imageURI,omitempty"`
S3Bucket *string `json:"s3Bucket,omitempty"`
// Reference field for S3Bucket
S3BucketRef *ackv1alpha1.AWSResourceReferenceWrapper `json:"s3BucketRef,omitempty"`
S3Key *string `json:"s3Key,omitempty"`
S3ObjectVersion *string `json:"s3ObjectVersion,omitempty"`
SHA256 *string `json:"sha256,omitempty"`
ZipFile []byte `json:"zipFile,omitempty"`
}
// Details about a function's deployment package.
type FunctionCodeLocation struct {
ImageURI *string `json:"imageURI,omitempty"`
Location *string `json:"location,omitempty"`
RepositoryType *string `json:"repositoryType,omitempty"`
ResolvedImageURI *string `json:"resolvedImageURI,omitempty"`
SourceKMSKeyARN *string `json:"sourceKMSKeyARN,omitempty"`
}
// Details about a function's configuration.
type FunctionConfiguration struct {
Architectures []*string `json:"architectures,omitempty"`
CodeSHA256 *string `json:"codeSHA256,omitempty"`
CodeSize *int64 `json:"codeSize,omitempty"`
// The dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq)
// for failed asynchronous invocations.
DeadLetterConfig *DeadLetterConfig `json:"deadLetterConfig,omitempty"`
Description *string `json:"description,omitempty"`
// The results of an operation to update or read environment variables. If the
// operation succeeds, the response contains the environment variables. If it
// fails, the response contains details about the error.
Environment *EnvironmentResponse `json:"environment,omitempty"`
// 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. For more information,
// see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage).
EphemeralStorage *EphemeralStorage `json:"ephemeralStorage,omitempty"`
FileSystemConfigs []*FileSystemConfig `json:"fileSystemConfigs,omitempty"`
FunctionARN *string `json:"functionARN,omitempty"`
FunctionName *string `json:"functionName,omitempty"`
Handler *string `json:"handler,omitempty"`
// Response to a GetFunctionConfiguration request.
ImageConfigResponse *ImageConfigResponse `json:"imageConfigResponse,omitempty"`
KMSKeyARN *string `json:"kmsKeyARN,omitempty"`
LastModified *string `json:"lastModified,omitempty"`
LastUpdateStatus *string `json:"lastUpdateStatus,omitempty"`
LastUpdateStatusReason *string `json:"lastUpdateStatusReason,omitempty"`
LastUpdateStatusReasonCode *string `json:"lastUpdateStatusReasonCode,omitempty"`
Layers []*Layer `json:"layers,omitempty"`
// The function's Amazon CloudWatch Logs configuration settings.
LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"`
MasterARN *string `json:"masterARN,omitempty"`
MemorySize *int64 `json:"memorySize,omitempty"`
PackageType *string `json:"packageType,omitempty"`
RevisionID *string `json:"revisionID,omitempty"`
Role *string `json:"role,omitempty"`
Runtime *string `json:"runtime,omitempty"`
// The ARN of the runtime and any errors that occured.
RuntimeVersionConfig *RuntimeVersionConfig `json:"runtimeVersionConfig,omitempty"`
SigningJobARN *string `json:"signingJobARN,omitempty"`
SigningProfileVersionARN *string `json:"signingProfileVersionARN,omitempty"`
// The function's SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html)
// setting.
SnapStart *SnapStartResponse `json:"snapStart,omitempty"`
State *string `json:"state,omitempty"`
StateReason *string `json:"stateReason,omitempty"`
StateReasonCode *string `json:"stateReasonCode,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
// The function's X-Ray tracing configuration.
TracingConfig *TracingConfigResponse `json:"tracingConfig,omitempty"`
Version *string `json:"version,omitempty"`
// The VPC security groups and subnets that are attached to a Lambda function.
VPCConfig *VPCConfigResponse `json:"vpcConfig,omitempty"`
}
type FunctionEventInvokeConfig struct {
// A configuration object that specifies the destination of an event after Lambda
// processes it.
DestinationConfig *DestinationConfig `json:"destinationConfig,omitempty"`
FunctionARN *string `json:"functionARN,omitempty"`
LastModified *metav1.Time `json:"lastModified,omitempty"`
MaximumEventAgeInSeconds *int64 `json:"maximumEventAgeInSeconds,omitempty"`
MaximumRetryAttempts *int64 `json:"maximumRetryAttempts,omitempty"`
}
// Details about a Lambda function URL.
type FunctionURLConfig_SDK struct {
AuthType *string `json:"authType,omitempty"`
// The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
// settings for your Lambda function URL. Use CORS to grant access to your function
// URL from any origin. You can also use CORS to control access for specific
// HTTP headers and methods in requests to your function URL.
CORS *CORS `json:"cors,omitempty"`
CreationTime *string `json:"creationTime,omitempty"`
FunctionARN *string `json:"functionARN,omitempty"`
FunctionURL *string `json:"functionURL,omitempty"`
InvokeMode *string `json:"invokeMode,omitempty"`
LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
}
// 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).
type ImageConfig struct {
Command []*string `json:"command,omitempty"`
EntryPoint []*string `json:"entryPoint,omitempty"`
WorkingDirectory *string `json:"workingDirectory,omitempty"`
}
// Error response to GetFunctionConfiguration.
type ImageConfigError struct {
ErrorCode *string `json:"errorCode,omitempty"`
Message *string `json:"message,omitempty"`
}
// Response to a GetFunctionConfiguration request.
type ImageConfigResponse struct {
// Error response to GetFunctionConfiguration.
Error *ImageConfigError `json:"error,omitempty"`
// 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).
ImageConfig *ImageConfig `json:"imageConfig,omitempty"`
}
// A chunk of the streamed response payload.
type InvokeResponseStreamUpdate struct {
Payload []byte `json:"payload,omitempty"`
}
// A response confirming that the event stream is complete.
type InvokeWithResponseStreamCompleteEvent struct {
ErrorCode *string `json:"errorCode,omitempty"`
ErrorDetails *string `json:"errorDetails,omitempty"`
LogResult *string `json:"logResult,omitempty"`
}
// An Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
type Layer struct {
ARN *string `json:"arn,omitempty"`
CodeSize *int64 `json:"codeSize,omitempty"`
SigningJobARN *string `json:"signingJobARN,omitempty"`
SigningProfileVersionARN *string `json:"signingProfileVersionARN,omitempty"`
}
// A ZIP archive that contains the contents of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
// You can specify either an Amazon S3 location, or upload a layer archive directly.
type LayerVersionContentInput struct {
S3Bucket *string `json:"s3Bucket,omitempty"`
S3Key *string `json:"s3Key,omitempty"`
S3ObjectVersion *string `json:"s3ObjectVersion,omitempty"`
ZipFile []byte `json:"zipFile,omitempty"`
}
// Details about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
type LayerVersionContentOutput struct {
CodeSHA256 *string `json:"codeSHA256,omitempty"`
CodeSize *int64 `json:"codeSize,omitempty"`
Location *string `json:"location,omitempty"`
SigningJobARN *string `json:"signingJobARN,omitempty"`
SigningProfileVersionARN *string `json:"signingProfileVersionARN,omitempty"`
}
// Details about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
type LayerVersionsListItem struct {
CompatibleArchitectures []*string `json:"compatibleArchitectures,omitempty"`
CompatibleRuntimes []*string `json:"compatibleRuntimes,omitempty"`
CreatedDate *string `json:"createdDate,omitempty"`
Description *string `json:"description,omitempty"`
LayerVersionARN *string `json:"layerVersionARN,omitempty"`
LicenseInfo *string `json:"licenseInfo,omitempty"`
Version *int64 `json:"version,omitempty"`
}
// Details about an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
type LayersListItem struct {
// Details about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
LatestMatchingVersion *LayerVersionsListItem `json:"latestMatchingVersion,omitempty"`
LayerARN *string `json:"layerARN,omitempty"`
LayerName *string `json:"layerName,omitempty"`
}
// The function's Amazon CloudWatch Logs configuration settings.
type LoggingConfig struct {
ApplicationLogLevel *string `json:"applicationLogLevel,omitempty"`
LogFormat *string `json:"logFormat,omitempty"`
LogGroup *string `json:"logGroup,omitempty"`
SystemLogLevel *string `json:"systemLogLevel,omitempty"`
}
// A destination for events that failed processing.
type OnFailure struct {
Destination *string `json:"destination,omitempty"`
}
// A destination for events that were processed successfully.
//
// To retain records of successful asynchronous invocations (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations),
// you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function,
// or Amazon EventBridge event bus as the destination.
type OnSuccess struct {
Destination *string `json:"destination,omitempty"`
}
// Details about the provisioned concurrency configuration for a function alias
// or version.
type ProvisionedConcurrencyConfigListItem struct {
FunctionARN *string `json:"functionARN,omitempty"`
LastModified *string `json:"lastModified,omitempty"`
RequestedProvisionedConcurrentExecutions *int64 `json:"requestedProvisionedConcurrentExecutions,omitempty"`
StatusReason *string `json:"statusReason,omitempty"`
}
// The Provisioned Mode (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode)
// configuration for the event source. Use Provisioned Mode to customize the
// minimum and maximum number of event pollers for your event source. An event
// poller is a compute unit that provides approximately 5 MBps of throughput.
type ProvisionedPollerConfig struct {
MaximumPollers *int64 `json:"maximumPollers,omitempty"`
MinimumPollers *int64 `json:"minimumPollers,omitempty"`
}
type PutFunctionConcurrencyOutput struct {
ReservedConcurrentExecutions *int64 `json:"reservedConcurrentExecutions,omitempty"`
}
type PutFunctionEventInvokeConfigInput struct {
// A configuration object that specifies the destination of an event after Lambda
// processes it.
DestinationConfig *DestinationConfig `json:"destinationConfig,omitempty"`
FunctionName *string `json:"functionName,omitempty"`
MaximumEventAgeInSeconds *int64 `json:"maximumEventAgeInSeconds,omitempty"`
MaximumRetryAttempts *int64 `json:"maximumRetryAttempts,omitempty"`
Qualifier *string `json:"qualifier,omitempty"`
}
type PutProvisionedConcurrencyConfigInput struct {
FunctionName *string `json:"functionName,omitempty"`
ProvisionedConcurrentExecutions *int64 `json:"provisionedConcurrentExecutions,omitempty"`
Qualifier *string `json:"qualifier,omitempty"`
}
// The ARN of the runtime and any errors that occured.
type RuntimeVersionConfig struct {
// Any error returned when the runtime version information for the function
// could not be retrieved.
Error *RuntimeVersionError `json:"error,omitempty"`
RuntimeVersionARN *string `json:"runtimeVersionARN,omitempty"`
}
// Any error returned when the runtime version information for the function
// could not be retrieved.
type RuntimeVersionError struct {
ErrorCode *string `json:"errorCode,omitempty"`
Message *string `json:"message,omitempty"`
}
// (Amazon SQS only) The scaling configuration for the event source. To remove
// the configuration, pass an empty value.
type ScalingConfig struct {
MaximumConcurrency *int64 `json:"maximumConcurrency,omitempty"`
}
// The self-managed Apache Kafka cluster for your event source.
type SelfManagedEventSource struct {
Endpoints map[string][]*string `json:"endpoints,omitempty"`
}
// Specific configuration settings for a self-managed Apache Kafka event source.
type SelfManagedKafkaEventSourceConfig struct {
ConsumerGroupID *string `json:"consumerGroupID,omitempty"`
}
// The function's Lambda SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html)
// setting. Set ApplyOn to PublishedVersions to create a snapshot of the initialized
// execution environment when you publish a function version.
type SnapStart struct {
ApplyOn *string `json:"applyOn,omitempty"`
}
// The function's SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html)
// setting.
type SnapStartResponse struct {
ApplyOn *string `json:"applyOn,omitempty"`
OptimizationStatus *string `json:"optimizationStatus,omitempty"`
}
// To secure and define access to your event source, you can specify the authentication
// protocol, VPC components, or virtual host.
type SourceAccessConfiguration struct {
Type *string `json:"type_,omitempty"`
URI *string `json:"uRI,omitempty"`
}
// An object that contains details about an error related to retrieving tags.
type TagsError struct {
ErrorCode *string `json:"errorCode,omitempty"`
Message *string `json:"message,omitempty"`
}
// The function's X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html)
// tracing configuration. To sample and record incoming requests, set Mode to
// Active.
type TracingConfig struct {
Mode *string `json:"mode,omitempty"`
}
// The function's X-Ray tracing configuration.
type TracingConfigResponse struct {
Mode *string `json:"mode,omitempty"`
}
// The VPC security groups and subnets that are attached to a Lambda function.
// 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).
type VPCConfig struct {
SecurityGroupIDs []*string `json:"securityGroupIDs,omitempty"`
// Reference field for SecurityGroupIDs
SecurityGroupRefs []*ackv1alpha1.AWSResourceReferenceWrapper `json:"securityGroupRefs,omitempty"`
SubnetIDs []*string `json:"subnetIDs,omitempty"`
// Reference field for SubnetIDs
SubnetRefs []*ackv1alpha1.AWSResourceReferenceWrapper `json:"subnetRefs,omitempty"`
}
// The VPC security groups and subnets that are attached to a Lambda function.
type VPCConfigResponse struct {
IPv6AllowedForDualStack *bool `json:"ipv6AllowedForDualStack,omitempty"`
SecurityGroupIDs []*string `json:"securityGroupIDs,omitempty"`
SubnetIDs []*string `json:"subnetIDs,omitempty"`
VPCID *string `json:"vpcID,omitempty"`
}