-
Notifications
You must be signed in to change notification settings - Fork 603
/
Copy pathmodels_0.ts
5111 lines (4456 loc) · 146 KB
/
models_0.ts
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
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { SENSITIVE_STRING, SmithyException as __SmithyException } from "@aws-sdk/smithy-client";
import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types";
import { Readable } from "stream";
/**
* <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
*/
export interface AccountLimit {
/**
* <p>The amount of storage space that you can use for all deployment packages and layer archives.</p>
*/
TotalCodeSize?: number;
/**
* <p>The maximum size of a function's deployment package and layers when they're extracted.</p>
*/
CodeSizeUnzipped?: number;
/**
* <p>The maximum size of a deployment package when it's uploaded directly to AWS Lambda. Use Amazon S3 for larger
* files.</p>
*/
CodeSizeZipped?: number;
/**
* <p>The maximum number of simultaneous function executions.</p>
*/
ConcurrentExecutions?: number;
/**
* <p>The maximum number of simultaneous function executions, minus the capacity that's reserved for individual
* functions with <a>PutFunctionConcurrency</a>.</p>
*/
UnreservedConcurrentExecutions?: number;
}
export namespace AccountLimit {
export const filterSensitiveLog = (obj: AccountLimit): any => ({
...obj,
});
}
/**
* <p>The number of functions and amount of storage in use.</p>
*/
export interface AccountUsage {
/**
* <p>The amount of storage space, in bytes, that's being used by deployment packages and layer archives.</p>
*/
TotalCodeSize?: number;
/**
* <p>The number of Lambda functions.</p>
*/
FunctionCount?: number;
}
export namespace AccountUsage {
export const filterSensitiveLog = (obj: AccountUsage): any => ({
...obj,
});
}
export interface AddLayerVersionPermissionRequest {
/**
* <p>The name or Amazon Resource Name (ARN) of the layer.</p>
*/
LayerName: string | undefined;
/**
* <p>The version number.</p>
*/
VersionNumber: number | undefined;
/**
* <p>An identifier that distinguishes the policy from others on the same layer version.</p>
*/
StatementId: string | undefined;
/**
* <p>The API action that grants access to the layer. For example, <code>lambda:GetLayerVersion</code>.</p>
*/
Action: string | undefined;
/**
* <p>An account ID, or <code>*</code> to grant permission to all AWS accounts.</p>
*/
Principal: string | undefined;
/**
* <p>With the principal set to <code>*</code>, grant permission to all accounts in the specified
* organization.</p>
*/
OrganizationId?: string;
/**
* <p>Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a
* policy that has changed since you last read it.</p>
*/
RevisionId?: string;
}
export namespace AddLayerVersionPermissionRequest {
export const filterSensitiveLog = (obj: AddLayerVersionPermissionRequest): any => ({
...obj,
});
}
export interface AddLayerVersionPermissionResponse {
/**
* <p>The permission statement.</p>
*/
Statement?: string;
/**
* <p>A unique identifier for the current revision of the policy.</p>
*/
RevisionId?: string;
}
export namespace AddLayerVersionPermissionResponse {
export const filterSensitiveLog = (obj: AddLayerVersionPermissionResponse): any => ({
...obj,
});
}
/**
* <p>One of the parameters in the request is invalid.</p>
*/
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
name: "InvalidParameterValueException";
$fault: "client";
/**
* <p>The exception type.</p>
*/
Type?: string;
/**
* <p>The exception message.</p>
*/
message?: string;
}
export namespace InvalidParameterValueException {
export const filterSensitiveLog = (obj: InvalidParameterValueException): any => ({
...obj,
});
}
/**
* <p>The permissions policy for the resource is too large. <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">Learn more</a>
* </p>
*/
export interface PolicyLengthExceededException extends __SmithyException, $MetadataBearer {
name: "PolicyLengthExceededException";
$fault: "client";
Type?: string;
message?: string;
}
export namespace PolicyLengthExceededException {
export const filterSensitiveLog = (obj: PolicyLengthExceededException): any => ({
...obj,
});
}
/**
* <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
* <code>GetFunction</code> or the <code>GetAlias</code> API to retrieve the latest RevisionId for your
* resource.</p>
*/
export interface PreconditionFailedException extends __SmithyException, $MetadataBearer {
name: "PreconditionFailedException";
$fault: "client";
/**
* <p>The exception type.</p>
*/
Type?: string;
/**
* <p>The exception message.</p>
*/
message?: string;
}
export namespace PreconditionFailedException {
export const filterSensitiveLog = (obj: PreconditionFailedException): any => ({
...obj,
});
}
/**
* <p>The resource already exists, or another operation is in progress.</p>
*/
export interface ResourceConflictException extends __SmithyException, $MetadataBearer {
name: "ResourceConflictException";
$fault: "client";
/**
* <p>The exception type.</p>
*/
Type?: string;
/**
* <p>The exception message.</p>
*/
message?: string;
}
export namespace ResourceConflictException {
export const filterSensitiveLog = (obj: ResourceConflictException): any => ({
...obj,
});
}
/**
* <p>The resource specified in the request does not exist.</p>
*/
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
name: "ResourceNotFoundException";
$fault: "client";
Type?: string;
Message?: string;
}
export namespace ResourceNotFoundException {
export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
...obj,
});
}
/**
* <p>The AWS Lambda service encountered an internal error.</p>
*/
export interface ServiceException extends __SmithyException, $MetadataBearer {
name: "ServiceException";
$fault: "server";
Type?: string;
Message?: string;
}
export namespace ServiceException {
export const filterSensitiveLog = (obj: ServiceException): any => ({
...obj,
});
}
export enum ThrottleReason {
CallerRateLimitExceeded = "CallerRateLimitExceeded",
ConcurrentInvocationLimitExceeded = "ConcurrentInvocationLimitExceeded",
FunctionInvocationRateLimitExceeded = "FunctionInvocationRateLimitExceeded",
ReservedFunctionConcurrentInvocationLimitExceeded = "ReservedFunctionConcurrentInvocationLimitExceeded",
ReservedFunctionInvocationRateLimitExceeded = "ReservedFunctionInvocationRateLimitExceeded",
}
/**
* <p>The request throughput limit was exceeded.</p>
*/
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
name: "TooManyRequestsException";
$fault: "client";
/**
* <p>The number of seconds the caller should wait before retrying.</p>
*/
retryAfterSeconds?: string;
Type?: string;
message?: string;
Reason?: ThrottleReason | string;
}
export namespace TooManyRequestsException {
export const filterSensitiveLog = (obj: TooManyRequestsException): any => ({
...obj,
});
}
export interface AddPermissionRequest {
/**
* <p>The name of the Lambda function, version, or alias.</p>
* <p class="title">
* <b>Name formats</b>
* </p>
* <ul>
* <li>
* <p>
* <b>Function name</b> - <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p>
* </li>
* <li>
* <p>
* <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
* </li>
* <li>
* <p>
* <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p>
* </li>
* </ul>
* <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN.
* If you specify only the function name, it is limited to 64 characters in length.</p>
*/
FunctionName: string | undefined;
/**
* <p>A statement identifier that differentiates the statement from others in the same policy.</p>
*/
StatementId: string | undefined;
/**
* <p>The action that the principal can use on the function. For example, <code>lambda:InvokeFunction</code> or
* <code>lambda:GetFunction</code>.</p>
*/
Action: string | undefined;
/**
* <p>The AWS service or account that invokes the function. If you specify a service, use <code>SourceArn</code> or
* <code>SourceAccount</code> to limit who can invoke the function through that service.</p>
*/
Principal: string | undefined;
/**
* <p>For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or
* Amazon SNS topic.</p>
*/
SourceArn?: string;
/**
* <p>For Amazon S3, the ID of the account that owns the resource. Use this together with <code>SourceArn</code> to
* ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted
* by its owner and recreated by another account.</p>
*/
SourceAccount?: string;
/**
* <p>For Alexa Smart Home functions, a token that must be supplied by the invoker.</p>
*/
EventSourceToken?: string;
/**
* <p>Specify a version or alias to add permissions to a published version of the function.</p>
*/
Qualifier?: string;
/**
* <p>Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a
* policy that has changed since you last read it.</p>
*/
RevisionId?: string;
}
export namespace AddPermissionRequest {
export const filterSensitiveLog = (obj: AddPermissionRequest): any => ({
...obj,
});
}
export interface AddPermissionResponse {
/**
* <p>The permission statement that's added to the function policy.</p>
*/
Statement?: string;
}
export namespace AddPermissionResponse {
export const filterSensitiveLog = (obj: AddPermissionResponse): any => ({
...obj,
});
}
/**
* <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">traffic-shifting</a> configuration of a Lambda function alias.</p>
*/
export interface AliasRoutingConfiguration {
/**
* <p>The second version, and the percentage of traffic that's routed to it.</p>
*/
AdditionalVersionWeights?: { [key: string]: number };
}
export namespace AliasRoutingConfiguration {
export const filterSensitiveLog = (obj: AliasRoutingConfiguration): any => ({
...obj,
});
}
/**
* <p>Provides configuration information about a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
*/
export interface AliasConfiguration {
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
AliasArn?: string;
/**
* <p>The name of the alias.</p>
*/
Name?: string;
/**
* <p>The function version that the alias invokes.</p>
*/
FunctionVersion?: string;
/**
* <p>A description of the alias.</p>
*/
Description?: string;
/**
* <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
* configuration</a> of the alias.</p>
*/
RoutingConfig?: AliasRoutingConfiguration;
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
RevisionId?: string;
}
export namespace AliasConfiguration {
export const filterSensitiveLog = (obj: AliasConfiguration): any => ({
...obj,
});
}
/**
* <p>List of signing profiles that can sign a code package. </p>
*/
export interface AllowedPublishers {
/**
* <p>The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user
* who can sign a code package. </p>
*/
SigningProfileVersionArns: string[] | undefined;
}
export namespace AllowedPublishers {
export const filterSensitiveLog = (obj: AllowedPublishers): any => ({
...obj,
});
}
export interface CreateAliasRequest {
/**
* <p>The name of the Lambda function.</p>
* <p class="title">
* <b>Name formats</b>
* </p>
* <ul>
* <li>
* <p>
* <b>Function name</b> - <code>MyFunction</code>.</p>
* </li>
* <li>
* <p>
* <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li>
* <li>
* <p>
* <b>Partial ARN</b> - <code>123456789012:function:MyFunction</code>.</p>
* </li>
* </ul>
* <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
* characters in length.</p>
*/
FunctionName: string | undefined;
/**
* <p>The name of the alias.</p>
*/
Name: string | undefined;
/**
* <p>The function version that the alias invokes.</p>
*/
FunctionVersion: string | undefined;
/**
* <p>A description of the alias.</p>
*/
Description?: string;
/**
* <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing">routing
* configuration</a> of the alias.</p>
*/
RoutingConfig?: AliasRoutingConfiguration;
}
export namespace CreateAliasRequest {
export const filterSensitiveLog = (obj: CreateAliasRequest): any => ({
...obj,
});
}
export enum CodeSigningPolicy {
Enforce = "Enforce",
Warn = "Warn",
}
/**
* <p>Code signing configuration policies specifies the validation failure action for signature mismatch or
* expiry.</p>
*/
export interface CodeSigningPolicies {
/**
* <p>Code signing configuration policy for deployment validation failure. If you set the policy to
* <code>Enforce</code>, Lambda blocks the deployment request if signature validation checks fail. If you set the
* policy to <code>Warn</code>, Lambda allows the deployment and creates a CloudWatch log. </p>
* <p>Default value: <code>Warn</code>
* </p>
*/
UntrustedArtifactOnDeployment?: CodeSigningPolicy | string;
}
export namespace CodeSigningPolicies {
export const filterSensitiveLog = (obj: CodeSigningPolicies): any => ({
...obj,
});
}
export interface CreateCodeSigningConfigRequest {
/**
* <p>Descriptive name for this code signing configuration.</p>
*/
Description?: string;
/**
* <p>Signing profiles for this code signing configuration.</p>
*/
AllowedPublishers: AllowedPublishers | undefined;
/**
* <p>The code signing policies define the actions to take if the validation checks fail. </p>
*/
CodeSigningPolicies?: CodeSigningPolicies;
}
export namespace CreateCodeSigningConfigRequest {
export const filterSensitiveLog = (obj: CreateCodeSigningConfigRequest): any => ({
...obj,
});
}
/**
* <p>Details about a Code signing configuration. </p>
*/
export interface CodeSigningConfig {
/**
* <p>Unique identifer for the Code signing configuration.</p>
*/
CodeSigningConfigId: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the Code signing configuration.</p>
*/
CodeSigningConfigArn: string | undefined;
/**
* <p>Code signing configuration description.</p>
*/
Description?: string;
/**
* <p>List of allowed publishers.</p>
*/
AllowedPublishers: AllowedPublishers | undefined;
/**
* <p>The code signing policy controls the validation failure action for signature mismatch or expiry.</p>
*/
CodeSigningPolicies: CodeSigningPolicies | undefined;
/**
* <p>The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). </p>
*/
LastModified: string | undefined;
}
export namespace CodeSigningConfig {
export const filterSensitiveLog = (obj: CodeSigningConfig): any => ({
...obj,
});
}
export interface CreateCodeSigningConfigResponse {
/**
* <p>The code signing configuration.</p>
*/
CodeSigningConfig: CodeSigningConfig | undefined;
}
export namespace CreateCodeSigningConfigResponse {
export const filterSensitiveLog = (obj: CreateCodeSigningConfigResponse): any => ({
...obj,
});
}
/**
* <p>A destination for events that failed processing.</p>
*/
export interface OnFailure {
/**
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
*/
Destination?: string;
}
export namespace OnFailure {
export const filterSensitiveLog = (obj: OnFailure): any => ({
...obj,
});
}
/**
* <p>A destination for events that were processed successfully.</p>
*/
export interface OnSuccess {
/**
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
*/
Destination?: string;
}
export namespace OnSuccess {
export const filterSensitiveLog = (obj: OnSuccess): any => ({
...obj,
});
}
/**
* <p>A configuration object that specifies the destination of an event after Lambda processes it.</p>
*/
export interface DestinationConfig {
/**
* <p>The destination configuration for successful invocations.</p>
*/
OnSuccess?: OnSuccess;
/**
* <p>The destination configuration for failed invocations.</p>
*/
OnFailure?: OnFailure;
}
export namespace DestinationConfig {
export const filterSensitiveLog = (obj: DestinationConfig): any => ({
...obj,
});
}
export enum SourceAccessType {
BASIC_AUTH = "BASIC_AUTH",
}
/**
* <p>
* (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format:
* <code> {
* "username": "your username",
* "password": "your password"
* }</code>
* </p>
*/
export interface SourceAccessConfiguration {
/**
* <p>To reference the secret, use the following format:
* <code>[
* {
* "Type": "BASIC_AUTH",
* "URI": "secretARN"
* }
* ]</code>
* </p>
* <p>The value of <code>Type</code> is always <code>BASIC_AUTH</code>. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires <code>kms:Decrypt</code> permissions.</p>
*/
Type?: SourceAccessType | string;
/**
* <p>To reference the secret, use the following format:
* <code>[
* {
* "Type": "BASIC_AUTH",
* "URI": "secretARN"
* }
* ]</code>
* </p>
* <p>The value of <code>Type</code> is always <code>BASIC_AUTH</code>. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires <code>kms:Decrypt</code> permissions.</p>
*/
URI?: string;
}
export namespace SourceAccessConfiguration {
export const filterSensitiveLog = (obj: SourceAccessConfiguration): any => ({
...obj,
});
}
export enum EventSourcePosition {
AT_TIMESTAMP = "AT_TIMESTAMP",
LATEST = "LATEST",
TRIM_HORIZON = "TRIM_HORIZON",
}
export interface CreateEventSourceMappingRequest {
/**
* <p>The Amazon Resource Name (ARN) of the event source.</p>
* <ul>
* <li>
* <p>
* <b>Amazon Kinesis</b> - The ARN of the data stream or a stream consumer.</p>
* </li>
* <li>
* <p>
* <b>Amazon DynamoDB Streams</b> - The ARN of the stream.</p>
* </li>
* <li>
* <p>
* <b>Amazon Simple Queue Service</b> - The ARN of the queue.</p>
* </li>
* <li>
* <p>
* <b>Amazon Managed Streaming for Apache Kafka</b> - The ARN of the cluster.</p>
* </li>
* </ul>
*/
EventSourceArn: string | undefined;
/**
* <p>The name of the Lambda function.</p>
* <p class="title">
* <b>Name formats</b>
* </p>
* <ul>
* <li>
* <p>
* <b>Function name</b> - <code>MyFunction</code>.</p>
* </li>
* <li>
* <p>
* <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li>
* <li>
* <p>
* <b>Version or Alias ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li>
* <li>
* <p>
* <b>Partial ARN</b> - <code>123456789012:function:MyFunction</code>.</p>
* </li>
* </ul>
* <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64
* characters in length.</p>
*/
FunctionName: string | undefined;
/**
* <p>If true, the event source mapping is active. Set to false to pause polling and invocation.</p>
*/
Enabled?: boolean;
/**
* <p>The maximum number of items to retrieve in a single batch.</p>
* <ul>
* <li>
* <p>
* <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p>
* </li>
* <li>
* <p>
* <b>Amazon DynamoDB Streams</b> - Default 100. Max 1,000.</p>
* </li>
* <li>
* <p>
* <b>Amazon Simple Queue Service</b> - Default 10. Max 10.</p>
* </li>
* <li>
* <p>
* <b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p>
* </li>
* </ul>
*/
BatchSize?: number;
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the function, in seconds.</p>
*/
MaximumBatchingWindowInSeconds?: number;
/**
* <p>(Streams) The number of batches to process from each shard concurrently.</p>
*/
ParallelizationFactor?: number;
/**
* <p>The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams
* sources. <code>AT_TIMESTAMP</code> is only supported for Amazon Kinesis streams.</p>
*/
StartingPosition?: EventSourcePosition | string;
/**
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start
* reading.</p>
*/
StartingPositionTimestamp?: Date;
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
*/
DestinationConfig?: DestinationConfig;
/**
* <p>(Streams) Discard records older than the specified age. The default value is infinite (-1).</p>
*/
MaximumRecordAgeInSeconds?: number;
/**
* <p>(Streams) If the function returns an error, split the batch in two and retry.</p>
*/
BisectBatchOnFunctionError?: boolean;
/**
* <p>(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.</p>
*/
MaximumRetryAttempts?: number;
/**
* <p>
* (MSK) The name of the Kafka topic.
* </p>
*/
Topics?: string[];
/**
* <p>
* (MQ) The name of the Amazon MQ broker destination queue to consume.
* </p>
*/
Queues?: string[];
/**
* <p>
* (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format:
* <code> {
* "username": "your username",
* "password": "your password"
* }</code>
* </p>
*
* <p>To reference the secret, use the following format:
* <code>[
* {
* "Type": "BASIC_AUTH",
* "URI": "secretARN"
* }
* ]</code>
* </p>
* <p>The value of <code>Type</code> is always <code>BASIC_AUTH</code>. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires <code>kms:Decrypt</code> permissions.</p>
*/
SourceAccessConfigurations?: SourceAccessConfiguration[];
}
export namespace CreateEventSourceMappingRequest {
export const filterSensitiveLog = (obj: CreateEventSourceMappingRequest): any => ({
...obj,
});
}
/**
* <p>A mapping between an AWS resource and an AWS Lambda function. See <a>CreateEventSourceMapping</a>
* for details.</p>
*/
export interface EventSourceMappingConfiguration {
/**
* <p>The identifier of the event source mapping.</p>
*/
UUID?: string;
/**
* <p>The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams
* sources. <code>AT_TIMESTAMP</code> is only supported for Amazon Kinesis streams.</p>
*/
StartingPosition?: EventSourcePosition | string;
/**
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start
* reading.</p>
*/
StartingPositionTimestamp?: Date;
/**
* <p>The maximum number of items to retrieve in a single batch.</p>
*/
BatchSize?: number;
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.</p>
*/
MaximumBatchingWindowInSeconds?: number;
/**
* <p>(Streams) The number of batches to process from each shard concurrently. The default value is 1.</p>
*/
ParallelizationFactor?: number;
/**
* <p>The Amazon Resource Name (ARN) of the event source.</p>
*/
EventSourceArn?: string;
/**
* <p>The ARN of the Lambda function.</p>
*/
FunctionArn?: string;
/**
* <p>The date that the event source mapping was last updated, or its state changed.</p>
*/
LastModified?: Date;
/**
* <p>The result of the last AWS Lambda invocation of your Lambda function.</p>
*/
LastProcessingResult?: string;
/**
* <p>The state of the event source mapping. It can be one of the following: <code>Creating</code>,
* <code>Enabling</code>, <code>Enabled</code>, <code>Disabling</code>, <code>Disabled</code>,
* <code>Updating</code>, or <code>Deleting</code>.</p>
*/
State?: string;
/**
* <p>Indicates whether the last change to the event source mapping was made by a user, or by the Lambda
* service.</p>
*/
StateTransitionReason?: string;
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.</p>
*/
DestinationConfig?: DestinationConfig;
/**
* <p>
* (MSK) The name of the Kafka topic to consume.
* </p>
*/
Topics?: string[];
/**
* <p>
* (MQ) The name of the Amazon MQ broker destination queue to consume.
* </p>
*/
Queues?: string[];
/**
* <p>
* (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format:
* <code> {
* "username": "your username",
* "password": "your password"
* }</code>
* </p>
*
* <p>To reference the secret, use the following format:
* <code>[
* {
* "Type": "BASIC_AUTH",
* "URI": "secretARN"
* }
* ]</code>
* </p>
* <p>The value of <code>Type</code> is always <code>BASIC_AUTH</code>. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires <code>kms:Decrypt</code> permissions.</p>
*/
SourceAccessConfigurations?: SourceAccessConfiguration[];
/**
* <p>(Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
*/
MaximumRecordAgeInSeconds?: number;
/**
* <p>(Streams) If the function returns an error, split the batch in two and retry. The default value is false.</p>
*/
BisectBatchOnFunctionError?: boolean;
/**
* <p>(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
*/
MaximumRetryAttempts?: number;
}
export namespace EventSourceMappingConfiguration {
export const filterSensitiveLog = (obj: EventSourceMappingConfiguration): any => ({
...obj,
});
}