@aws-sdk/client-lambda 3.940.0 → 3.943.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +136 -0
  2. package/dist-cjs/index.js +1663 -100
  3. package/dist-es/Lambda.js +34 -0
  4. package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
  5. package/dist-es/commands/CreateCapacityProviderCommand.js +16 -0
  6. package/dist-es/commands/DeleteCapacityProviderCommand.js +16 -0
  7. package/dist-es/commands/GetCapacityProviderCommand.js +16 -0
  8. package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
  9. package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
  10. package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
  11. package/dist-es/commands/GetFunctionScalingConfigCommand.js +16 -0
  12. package/dist-es/commands/ListCapacityProvidersCommand.js +16 -0
  13. package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
  14. package/dist-es/commands/ListFunctionVersionsByCapacityProviderCommand.js +16 -0
  15. package/dist-es/commands/PutFunctionScalingConfigCommand.js +16 -0
  16. package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
  17. package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
  18. package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
  19. package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
  20. package/dist-es/commands/UpdateCapacityProviderCommand.js +16 -0
  21. package/dist-es/commands/index.js +17 -0
  22. package/dist-es/models/enums.js +109 -6
  23. package/dist-es/models/errors.js +76 -0
  24. package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
  25. package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
  26. package/dist-es/pagination/ListCapacityProvidersPaginator.js +4 -0
  27. package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
  28. package/dist-es/pagination/ListFunctionVersionsByCapacityProviderPaginator.js +4 -0
  29. package/dist-es/pagination/index.js +5 -0
  30. package/dist-es/schemas/schemas_0.js +1216 -95
  31. package/dist-types/Lambda.d.ts +120 -0
  32. package/dist-types/LambdaClient.d.ts +19 -2
  33. package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
  34. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +162 -0
  35. package/dist-types/commands/CreateFunctionCommand.d.ts +38 -3
  36. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +126 -0
  37. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -4
  38. package/dist-types/commands/GetCapacityProviderCommand.d.ts +123 -0
  39. package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
  40. package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
  41. package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
  42. package/dist-types/commands/GetFunctionCommand.d.ts +19 -3
  43. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +19 -3
  44. package/dist-types/commands/GetFunctionScalingConfigCommand.d.ts +95 -0
  45. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  46. package/dist-types/commands/InvokeCommand.d.ts +11 -1
  47. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +4 -1
  48. package/dist-types/commands/ListCapacityProvidersCommand.d.ts +125 -0
  49. package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
  50. package/dist-types/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +95 -0
  51. package/dist-types/commands/ListFunctionsCommand.d.ts +19 -3
  52. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +23 -3
  53. package/dist-types/commands/PublishVersionCommand.d.ts +19 -3
  54. package/dist-types/commands/PutFunctionScalingConfigCommand.d.ts +94 -0
  55. package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
  56. package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
  57. package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
  58. package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
  59. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +136 -0
  60. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +16 -3
  61. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +34 -3
  62. package/dist-types/commands/index.d.ts +17 -0
  63. package/dist-types/models/enums.d.ts +189 -14
  64. package/dist-types/models/errors.d.ts +89 -1
  65. package/dist-types/models/models_0.d.ts +3205 -1373
  66. package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
  67. package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
  68. package/dist-types/pagination/ListCapacityProvidersPaginator.d.ts +7 -0
  69. package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
  70. package/dist-types/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +7 -0
  71. package/dist-types/pagination/index.d.ts +5 -0
  72. package/dist-types/schemas/schemas_0.d.ts +134 -0
  73. package/dist-types/ts3.4/Lambda.d.ts +314 -0
  74. package/dist-types/ts3.4/LambdaClient.d.ts +102 -0
  75. package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +51 -0
  78. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +8 -3
  79. package/dist-types/ts3.4/commands/GetCapacityProviderCommand.d.ts +51 -0
  80. package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/GetFunctionScalingConfigCommand.d.ts +51 -0
  84. package/dist-types/ts3.4/commands/ListCapacityProvidersCommand.d.ts +51 -0
  85. package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +51 -0
  87. package/dist-types/ts3.4/commands/PutFunctionScalingConfigCommand.d.ts +51 -0
  88. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
  89. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
  90. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
  91. package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
  92. package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +51 -0
  93. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  94. package/dist-types/ts3.4/models/enums.d.ts +126 -7
  95. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  96. package/dist-types/ts3.4/models/models_0.d.ts +494 -42
  97. package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
  98. package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
  99. package/dist-types/ts3.4/pagination/ListCapacityProvidersPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  103. package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
  104. package/package.json +5 -5
@@ -2,14 +2,20 @@ import { StreamingBlobTypes } from "@smithy/types";
2
2
  import {
3
3
  ApplicationLogLevel,
4
4
  Architecture,
5
+ CapacityProviderPredefinedMetricType,
6
+ CapacityProviderScalingMode,
7
+ CapacityProviderState,
5
8
  CodeSigningPolicy,
6
9
  EndPointType,
7
10
  EventSourceMappingMetric,
8
11
  EventSourcePosition,
12
+ EventType,
13
+ ExecutionStatus,
9
14
  FullDocument,
10
15
  FunctionResponseType,
11
16
  FunctionUrlAuthType,
12
17
  FunctionVersion,
18
+ FunctionVersionLatestPublished,
13
19
  InvocationType,
14
20
  InvokeMode,
15
21
  KafkaSchemaRegistryAuthType,
@@ -18,6 +24,9 @@ import {
18
24
  LastUpdateStatusReasonCode,
19
25
  LogFormat,
20
26
  LogType,
27
+ OperationAction,
28
+ OperationStatus,
29
+ OperationType,
21
30
  PackageType,
22
31
  ProvisionedConcurrencyStatusEnum,
23
32
  RecursiveLoop,
@@ -106,6 +115,185 @@ export interface AmazonManagedKafkaEventSourceConfig {
106
115
  ConsumerGroupId?: string | undefined;
107
116
  SchemaRegistryConfig?: KafkaSchemaRegistryConfig | undefined;
108
117
  }
118
+ export interface TargetTrackingScalingPolicy {
119
+ PredefinedMetricType: CapacityProviderPredefinedMetricType | undefined;
120
+ TargetValue: number | undefined;
121
+ }
122
+ export interface CapacityProviderScalingConfig {
123
+ MaxVCpuCount?: number | undefined;
124
+ ScalingMode?: CapacityProviderScalingMode | undefined;
125
+ ScalingPolicies?: TargetTrackingScalingPolicy[] | undefined;
126
+ }
127
+ export interface InstanceRequirements {
128
+ Architectures?: Architecture[] | undefined;
129
+ AllowedInstanceTypes?: string[] | undefined;
130
+ ExcludedInstanceTypes?: string[] | undefined;
131
+ }
132
+ export interface CapacityProviderPermissionsConfig {
133
+ CapacityProviderOperatorRoleArn: string | undefined;
134
+ }
135
+ export interface CapacityProviderVpcConfig {
136
+ SubnetIds: string[] | undefined;
137
+ SecurityGroupIds: string[] | undefined;
138
+ }
139
+ export interface CreateCapacityProviderRequest {
140
+ CapacityProviderName: string | undefined;
141
+ VpcConfig: CapacityProviderVpcConfig | undefined;
142
+ PermissionsConfig: CapacityProviderPermissionsConfig | undefined;
143
+ InstanceRequirements?: InstanceRequirements | undefined;
144
+ CapacityProviderScalingConfig?: CapacityProviderScalingConfig | undefined;
145
+ KmsKeyArn?: string | undefined;
146
+ Tags?: Record<string, string> | undefined;
147
+ }
148
+ export interface CapacityProvider {
149
+ CapacityProviderArn: string | undefined;
150
+ State: CapacityProviderState | undefined;
151
+ VpcConfig: CapacityProviderVpcConfig | undefined;
152
+ PermissionsConfig: CapacityProviderPermissionsConfig | undefined;
153
+ InstanceRequirements?: InstanceRequirements | undefined;
154
+ CapacityProviderScalingConfig?: CapacityProviderScalingConfig | undefined;
155
+ KmsKeyArn?: string | undefined;
156
+ LastModified?: string | undefined;
157
+ }
158
+ export interface CreateCapacityProviderResponse {
159
+ CapacityProvider: CapacityProvider | undefined;
160
+ }
161
+ export interface DeleteCapacityProviderRequest {
162
+ CapacityProviderName: string | undefined;
163
+ }
164
+ export interface DeleteCapacityProviderResponse {
165
+ CapacityProvider: CapacityProvider | undefined;
166
+ }
167
+ export interface GetCapacityProviderRequest {
168
+ CapacityProviderName: string | undefined;
169
+ }
170
+ export interface GetCapacityProviderResponse {
171
+ CapacityProvider: CapacityProvider | undefined;
172
+ }
173
+ export interface ListCapacityProvidersRequest {
174
+ State?: CapacityProviderState | undefined;
175
+ Marker?: string | undefined;
176
+ MaxItems?: number | undefined;
177
+ }
178
+ export interface ListCapacityProvidersResponse {
179
+ CapacityProviders: CapacityProvider[] | undefined;
180
+ NextMarker?: string | undefined;
181
+ }
182
+ export interface ListFunctionVersionsByCapacityProviderRequest {
183
+ CapacityProviderName: string | undefined;
184
+ Marker?: string | undefined;
185
+ MaxItems?: number | undefined;
186
+ }
187
+ export interface FunctionVersionsByCapacityProviderListItem {
188
+ FunctionArn: string | undefined;
189
+ State: State | undefined;
190
+ }
191
+ export interface ListFunctionVersionsByCapacityProviderResponse {
192
+ CapacityProviderArn: string | undefined;
193
+ FunctionVersions: FunctionVersionsByCapacityProviderListItem[] | undefined;
194
+ NextMarker?: string | undefined;
195
+ }
196
+ export interface UpdateCapacityProviderRequest {
197
+ CapacityProviderName: string | undefined;
198
+ CapacityProviderScalingConfig?: CapacityProviderScalingConfig | undefined;
199
+ }
200
+ export interface UpdateCapacityProviderResponse {
201
+ CapacityProvider: CapacityProvider | undefined;
202
+ }
203
+ export interface CallbackOptions {
204
+ TimeoutSeconds?: number | undefined;
205
+ HeartbeatTimeoutSeconds?: number | undefined;
206
+ }
207
+ export interface ChainedInvokeOptions {
208
+ FunctionName: string | undefined;
209
+ TenantId?: string | undefined;
210
+ }
211
+ export interface ContextOptions {
212
+ ReplayChildren?: boolean | undefined;
213
+ }
214
+ export interface ErrorObject {
215
+ ErrorMessage?: string | undefined;
216
+ ErrorType?: string | undefined;
217
+ ErrorData?: string | undefined;
218
+ StackTrace?: string[] | undefined;
219
+ }
220
+ export interface StepOptions {
221
+ NextAttemptDelaySeconds?: number | undefined;
222
+ }
223
+ export interface WaitOptions {
224
+ WaitSeconds?: number | undefined;
225
+ }
226
+ export interface OperationUpdate {
227
+ Id: string | undefined;
228
+ ParentId?: string | undefined;
229
+ Name?: string | undefined;
230
+ Type: OperationType | undefined;
231
+ SubType?: string | undefined;
232
+ Action: OperationAction | undefined;
233
+ Payload?: string | undefined;
234
+ Error?: ErrorObject | undefined;
235
+ ContextOptions?: ContextOptions | undefined;
236
+ StepOptions?: StepOptions | undefined;
237
+ WaitOptions?: WaitOptions | undefined;
238
+ CallbackOptions?: CallbackOptions | undefined;
239
+ ChainedInvokeOptions?: ChainedInvokeOptions | undefined;
240
+ }
241
+ export interface CheckpointDurableExecutionRequest {
242
+ DurableExecutionArn: string | undefined;
243
+ CheckpointToken: string | undefined;
244
+ Updates?: OperationUpdate[] | undefined;
245
+ ClientToken?: string | undefined;
246
+ }
247
+ export interface CallbackDetails {
248
+ CallbackId?: string | undefined;
249
+ Result?: string | undefined;
250
+ Error?: ErrorObject | undefined;
251
+ }
252
+ export interface ChainedInvokeDetails {
253
+ Result?: string | undefined;
254
+ Error?: ErrorObject | undefined;
255
+ }
256
+ export interface ContextDetails {
257
+ ReplayChildren?: boolean | undefined;
258
+ Result?: string | undefined;
259
+ Error?: ErrorObject | undefined;
260
+ }
261
+ export interface ExecutionDetails {
262
+ InputPayload?: string | undefined;
263
+ }
264
+ export interface StepDetails {
265
+ Attempt?: number | undefined;
266
+ NextAttemptTimestamp?: Date | undefined;
267
+ Result?: string | undefined;
268
+ Error?: ErrorObject | undefined;
269
+ }
270
+ export interface WaitDetails {
271
+ ScheduledEndTimestamp?: Date | undefined;
272
+ }
273
+ export interface Operation {
274
+ Id: string | undefined;
275
+ ParentId?: string | undefined;
276
+ Name?: string | undefined;
277
+ Type: OperationType | undefined;
278
+ SubType?: string | undefined;
279
+ StartTimestamp: Date | undefined;
280
+ EndTimestamp?: Date | undefined;
281
+ Status: OperationStatus | undefined;
282
+ ExecutionDetails?: ExecutionDetails | undefined;
283
+ ContextDetails?: ContextDetails | undefined;
284
+ StepDetails?: StepDetails | undefined;
285
+ WaitDetails?: WaitDetails | undefined;
286
+ CallbackDetails?: CallbackDetails | undefined;
287
+ ChainedInvokeDetails?: ChainedInvokeDetails | undefined;
288
+ }
289
+ export interface CheckpointUpdatedExecutionState {
290
+ Operations?: Operation[] | undefined;
291
+ NextMarker?: string | undefined;
292
+ }
293
+ export interface CheckpointDurableExecutionResponse {
294
+ CheckpointToken?: string | undefined;
295
+ NewExecutionState: CheckpointUpdatedExecutionState | undefined;
296
+ }
109
297
  export interface CodeSigningPolicies {
110
298
  UntrustedArtifactOnDeployment?: CodeSigningPolicy | undefined;
111
299
  }
@@ -162,6 +350,17 @@ export interface UpdateCodeSigningConfigRequest {
162
350
  export interface UpdateCodeSigningConfigResponse {
163
351
  CodeSigningConfig: CodeSigningConfig | undefined;
164
352
  }
353
+ export interface DeleteFunctionRequest {
354
+ FunctionName: string | undefined;
355
+ Qualifier?: string | undefined;
356
+ }
357
+ export interface DeleteFunctionResponse {
358
+ StatusCode?: number | undefined;
359
+ }
360
+ export interface DeleteFunctionEventInvokeConfigRequest {
361
+ FunctionName: string | undefined;
362
+ Qualifier?: string | undefined;
363
+ }
165
364
  export interface OnFailure {
166
365
  Destination?: string | undefined;
167
366
  }
@@ -323,6 +522,16 @@ export interface UpdateEventSourceMappingRequest {
323
522
  MetricsConfig?: EventSourceMappingMetricsConfig | undefined;
324
523
  ProvisionedPollerConfig?: ProvisionedPollerConfig | undefined;
325
524
  }
525
+ export interface LambdaManagedInstancesCapacityProviderConfig {
526
+ CapacityProviderArn: string | undefined;
527
+ PerExecutionEnvironmentMaxConcurrency?: number | undefined;
528
+ ExecutionEnvironmentMemoryGiBPerVCpu?: number | undefined;
529
+ }
530
+ export interface CapacityProviderConfig {
531
+ LambdaManagedInstancesCapacityProviderConfig:
532
+ | LambdaManagedInstancesCapacityProviderConfig
533
+ | undefined;
534
+ }
326
535
  export interface FunctionCode {
327
536
  ZipFile?: Uint8Array | undefined;
328
537
  S3Bucket?: string | undefined;
@@ -334,6 +543,10 @@ export interface FunctionCode {
334
543
  export interface DeadLetterConfig {
335
544
  TargetArn?: string | undefined;
336
545
  }
546
+ export interface DurableConfig {
547
+ RetentionPeriodInDays?: number | undefined;
548
+ ExecutionTimeout?: number | undefined;
549
+ }
337
550
  export interface Environment {
338
551
  Variables?: Record<string, string> | undefined;
339
552
  }
@@ -394,6 +607,9 @@ export interface CreateFunctionRequest {
394
607
  EphemeralStorage?: EphemeralStorage | undefined;
395
608
  SnapStart?: SnapStart | undefined;
396
609
  LoggingConfig?: LoggingConfig | undefined;
610
+ CapacityProviderConfig?: CapacityProviderConfig | undefined;
611
+ PublishTo?: FunctionVersionLatestPublished | undefined;
612
+ DurableConfig?: DurableConfig | undefined;
397
613
  TenancyConfig?: TenancyConfig | undefined;
398
614
  }
399
615
  export interface EnvironmentError {
@@ -476,6 +692,9 @@ export interface FunctionConfiguration {
476
692
  SnapStart?: SnapStartResponse | undefined;
477
693
  RuntimeVersionConfig?: RuntimeVersionConfig | undefined;
478
694
  LoggingConfig?: LoggingConfig | undefined;
695
+ CapacityProviderConfig?: CapacityProviderConfig | undefined;
696
+ ConfigSha256?: string | undefined;
697
+ DurableConfig?: DurableConfig | undefined;
479
698
  TenancyConfig?: TenancyConfig | undefined;
480
699
  }
481
700
  export interface Cors {
@@ -501,20 +720,12 @@ export interface CreateFunctionUrlConfigResponse {
501
720
  CreationTime: string | undefined;
502
721
  InvokeMode?: InvokeMode | undefined;
503
722
  }
504
- export interface DeleteFunctionRequest {
505
- FunctionName: string | undefined;
506
- Qualifier?: string | undefined;
507
- }
508
723
  export interface DeleteFunctionCodeSigningConfigRequest {
509
724
  FunctionName: string | undefined;
510
725
  }
511
726
  export interface DeleteFunctionConcurrencyRequest {
512
727
  FunctionName: string | undefined;
513
728
  }
514
- export interface DeleteFunctionEventInvokeConfigRequest {
515
- FunctionName: string | undefined;
516
- Qualifier?: string | undefined;
517
- }
518
729
  export interface DeleteFunctionUrlConfigRequest {
519
730
  FunctionName: string | undefined;
520
731
  Qualifier?: string | undefined;
@@ -561,23 +772,25 @@ export interface GetFunctionConfigurationRequest {
561
772
  FunctionName: string | undefined;
562
773
  Qualifier?: string | undefined;
563
774
  }
564
- export interface FunctionEventInvokeConfig {
565
- LastModified?: Date | undefined;
566
- FunctionArn?: string | undefined;
567
- MaximumRetryAttempts?: number | undefined;
568
- MaximumEventAgeInSeconds?: number | undefined;
569
- DestinationConfig?: DestinationConfig | undefined;
570
- }
571
- export interface GetFunctionEventInvokeConfigRequest {
572
- FunctionName: string | undefined;
573
- Qualifier?: string | undefined;
574
- }
575
775
  export interface GetFunctionRecursionConfigRequest {
576
776
  FunctionName: string | undefined;
577
777
  }
578
778
  export interface GetFunctionRecursionConfigResponse {
579
779
  RecursiveLoop?: RecursiveLoop | undefined;
580
780
  }
781
+ export interface GetFunctionScalingConfigRequest {
782
+ FunctionName: string | undefined;
783
+ Qualifier: string | undefined;
784
+ }
785
+ export interface FunctionScalingConfig {
786
+ MinExecutionEnvironments?: number | undefined;
787
+ MaxExecutionEnvironments?: number | undefined;
788
+ }
789
+ export interface GetFunctionScalingConfigResponse {
790
+ FunctionArn?: string | undefined;
791
+ AppliedFunctionScalingConfig?: FunctionScalingConfig | undefined;
792
+ RequestedFunctionScalingConfig?: FunctionScalingConfig | undefined;
793
+ }
581
794
  export interface GetFunctionUrlConfigRequest {
582
795
  FunctionName: string | undefined;
583
796
  Qualifier?: string | undefined;
@@ -613,6 +826,7 @@ export interface InvocationRequest {
613
826
  InvocationType?: InvocationType | undefined;
614
827
  LogType?: LogType | undefined;
615
828
  ClientContext?: string | undefined;
829
+ DurableExecutionName?: string | undefined;
616
830
  Payload?: Uint8Array | undefined;
617
831
  Qualifier?: string | undefined;
618
832
  TenantId?: string | undefined;
@@ -623,6 +837,7 @@ export interface InvocationResponse {
623
837
  LogResult?: string | undefined;
624
838
  Payload?: Uint8Array | undefined;
625
839
  ExecutedVersion?: string | undefined;
840
+ DurableExecutionArn?: string | undefined;
626
841
  }
627
842
  export interface InvokeAsyncRequest {
628
843
  FunctionName: string | undefined;
@@ -682,15 +897,6 @@ export interface InvokeWithResponseStreamResponse {
682
897
  | undefined;
683
898
  ResponseStreamContentType?: string | undefined;
684
899
  }
685
- export interface ListFunctionEventInvokeConfigsRequest {
686
- FunctionName: string | undefined;
687
- Marker?: string | undefined;
688
- MaxItems?: number | undefined;
689
- }
690
- export interface ListFunctionEventInvokeConfigsResponse {
691
- FunctionEventInvokeConfigs?: FunctionEventInvokeConfig[] | undefined;
692
- NextMarker?: string | undefined;
693
- }
694
900
  export interface ListFunctionsRequest {
695
901
  MasterRegion?: string | undefined;
696
902
  FunctionVersion?: FunctionVersion | undefined;
@@ -751,13 +957,6 @@ export interface PutFunctionConcurrencyRequest {
751
957
  FunctionName: string | undefined;
752
958
  ReservedConcurrentExecutions: number | undefined;
753
959
  }
754
- export interface PutFunctionEventInvokeConfigRequest {
755
- FunctionName: string | undefined;
756
- Qualifier?: string | undefined;
757
- MaximumRetryAttempts?: number | undefined;
758
- MaximumEventAgeInSeconds?: number | undefined;
759
- DestinationConfig?: DestinationConfig | undefined;
760
- }
761
960
  export interface PutFunctionRecursionConfigRequest {
762
961
  FunctionName: string | undefined;
763
962
  RecursiveLoop: RecursiveLoop | undefined;
@@ -765,6 +964,14 @@ export interface PutFunctionRecursionConfigRequest {
765
964
  export interface PutFunctionRecursionConfigResponse {
766
965
  RecursiveLoop?: RecursiveLoop | undefined;
767
966
  }
967
+ export interface PutFunctionScalingConfigRequest {
968
+ FunctionName: string | undefined;
969
+ Qualifier: string | undefined;
970
+ FunctionScalingConfig?: FunctionScalingConfig | undefined;
971
+ }
972
+ export interface PutFunctionScalingConfigResponse {
973
+ FunctionState?: State | undefined;
974
+ }
768
975
  export interface PutRuntimeManagementConfigRequest {
769
976
  FunctionName: string | undefined;
770
977
  Qualifier?: string | undefined;
@@ -788,6 +995,7 @@ export interface UpdateFunctionCodeRequest {
788
995
  RevisionId?: string | undefined;
789
996
  Architectures?: Architecture[] | undefined;
790
997
  SourceKMSKeyArn?: string | undefined;
998
+ PublishTo?: FunctionVersionLatestPublished | undefined;
791
999
  }
792
1000
  export interface UpdateFunctionConfigurationRequest {
793
1001
  FunctionName: string | undefined;
@@ -809,13 +1017,8 @@ export interface UpdateFunctionConfigurationRequest {
809
1017
  EphemeralStorage?: EphemeralStorage | undefined;
810
1018
  SnapStart?: SnapStart | undefined;
811
1019
  LoggingConfig?: LoggingConfig | undefined;
812
- }
813
- export interface UpdateFunctionEventInvokeConfigRequest {
814
- FunctionName: string | undefined;
815
- Qualifier?: string | undefined;
816
- MaximumRetryAttempts?: number | undefined;
817
- MaximumEventAgeInSeconds?: number | undefined;
818
- DestinationConfig?: DestinationConfig | undefined;
1020
+ CapacityProviderConfig?: CapacityProviderConfig | undefined;
1021
+ DurableConfig?: DurableConfig | undefined;
819
1022
  }
820
1023
  export interface UpdateFunctionUrlConfigRequest {
821
1024
  FunctionName: string | undefined;
@@ -880,12 +1083,194 @@ export interface PublishVersionRequest {
880
1083
  CodeSha256?: string | undefined;
881
1084
  Description?: string | undefined;
882
1085
  RevisionId?: string | undefined;
1086
+ PublishTo?: FunctionVersionLatestPublished | undefined;
883
1087
  }
884
1088
  export interface GetAccountSettingsRequest {}
885
1089
  export interface GetAccountSettingsResponse {
886
1090
  AccountLimit?: AccountLimit | undefined;
887
1091
  AccountUsage?: AccountUsage | undefined;
888
1092
  }
1093
+ export interface GetDurableExecutionRequest {
1094
+ DurableExecutionArn: string | undefined;
1095
+ }
1096
+ export interface TraceHeader {
1097
+ XAmznTraceId?: string | undefined;
1098
+ }
1099
+ export interface GetDurableExecutionResponse {
1100
+ DurableExecutionArn: string | undefined;
1101
+ DurableExecutionName: string | undefined;
1102
+ FunctionArn: string | undefined;
1103
+ InputPayload?: string | undefined;
1104
+ Result?: string | undefined;
1105
+ Error?: ErrorObject | undefined;
1106
+ StartTimestamp: Date | undefined;
1107
+ Status: ExecutionStatus | undefined;
1108
+ EndTimestamp?: Date | undefined;
1109
+ Version?: string | undefined;
1110
+ TraceHeader?: TraceHeader | undefined;
1111
+ }
1112
+ export interface GetDurableExecutionHistoryRequest {
1113
+ DurableExecutionArn: string | undefined;
1114
+ IncludeExecutionData?: boolean | undefined;
1115
+ MaxItems?: number | undefined;
1116
+ Marker?: string | undefined;
1117
+ ReverseOrder?: boolean | undefined;
1118
+ }
1119
+ export interface EventError {
1120
+ Payload?: ErrorObject | undefined;
1121
+ Truncated?: boolean | undefined;
1122
+ }
1123
+ export interface CallbackFailedDetails {
1124
+ Error: EventError | undefined;
1125
+ }
1126
+ export interface CallbackStartedDetails {
1127
+ CallbackId: string | undefined;
1128
+ HeartbeatTimeout?: number | undefined;
1129
+ Timeout?: number | undefined;
1130
+ }
1131
+ export interface EventResult {
1132
+ Payload?: string | undefined;
1133
+ Truncated?: boolean | undefined;
1134
+ }
1135
+ export interface CallbackSucceededDetails {
1136
+ Result: EventResult | undefined;
1137
+ }
1138
+ export interface CallbackTimedOutDetails {
1139
+ Error: EventError | undefined;
1140
+ }
1141
+ export interface ChainedInvokeFailedDetails {
1142
+ Error: EventError | undefined;
1143
+ }
1144
+ export interface EventInput {
1145
+ Payload?: string | undefined;
1146
+ Truncated?: boolean | undefined;
1147
+ }
1148
+ export interface ChainedInvokeStartedDetails {
1149
+ FunctionName: string | undefined;
1150
+ TenantId?: string | undefined;
1151
+ Input?: EventInput | undefined;
1152
+ ExecutedVersion?: string | undefined;
1153
+ DurableExecutionArn?: string | undefined;
1154
+ }
1155
+ export interface ChainedInvokeStoppedDetails {
1156
+ Error: EventError | undefined;
1157
+ }
1158
+ export interface ChainedInvokeSucceededDetails {
1159
+ Result: EventResult | undefined;
1160
+ }
1161
+ export interface ChainedInvokeTimedOutDetails {
1162
+ Error: EventError | undefined;
1163
+ }
1164
+ export interface ContextFailedDetails {
1165
+ Error: EventError | undefined;
1166
+ }
1167
+ export interface ContextStartedDetails {}
1168
+ export interface ContextSucceededDetails {
1169
+ Result: EventResult | undefined;
1170
+ }
1171
+ export interface ExecutionFailedDetails {
1172
+ Error: EventError | undefined;
1173
+ }
1174
+ export interface ExecutionStartedDetails {
1175
+ Input: EventInput | undefined;
1176
+ ExecutionTimeout: number | undefined;
1177
+ }
1178
+ export interface ExecutionStoppedDetails {
1179
+ Error: EventError | undefined;
1180
+ }
1181
+ export interface ExecutionSucceededDetails {
1182
+ Result: EventResult | undefined;
1183
+ }
1184
+ export interface ExecutionTimedOutDetails {
1185
+ Error?: EventError | undefined;
1186
+ }
1187
+ export interface InvocationCompletedDetails {
1188
+ StartTimestamp: Date | undefined;
1189
+ EndTimestamp: Date | undefined;
1190
+ RequestId: string | undefined;
1191
+ Error?: EventError | undefined;
1192
+ }
1193
+ export interface RetryDetails {
1194
+ CurrentAttempt?: number | undefined;
1195
+ NextAttemptDelaySeconds?: number | undefined;
1196
+ }
1197
+ export interface StepFailedDetails {
1198
+ Error: EventError | undefined;
1199
+ RetryDetails: RetryDetails | undefined;
1200
+ }
1201
+ export interface StepStartedDetails {}
1202
+ export interface StepSucceededDetails {
1203
+ Result: EventResult | undefined;
1204
+ RetryDetails: RetryDetails | undefined;
1205
+ }
1206
+ export interface WaitCancelledDetails {
1207
+ Error?: EventError | undefined;
1208
+ }
1209
+ export interface WaitStartedDetails {
1210
+ Duration: number | undefined;
1211
+ ScheduledEndTimestamp: Date | undefined;
1212
+ }
1213
+ export interface WaitSucceededDetails {
1214
+ Duration?: number | undefined;
1215
+ }
1216
+ export interface Event {
1217
+ EventType?: EventType | undefined;
1218
+ SubType?: string | undefined;
1219
+ EventId?: number | undefined;
1220
+ Id?: string | undefined;
1221
+ Name?: string | undefined;
1222
+ EventTimestamp?: Date | undefined;
1223
+ ParentId?: string | undefined;
1224
+ ExecutionStartedDetails?: ExecutionStartedDetails | undefined;
1225
+ ExecutionSucceededDetails?: ExecutionSucceededDetails | undefined;
1226
+ ExecutionFailedDetails?: ExecutionFailedDetails | undefined;
1227
+ ExecutionTimedOutDetails?: ExecutionTimedOutDetails | undefined;
1228
+ ExecutionStoppedDetails?: ExecutionStoppedDetails | undefined;
1229
+ ContextStartedDetails?: ContextStartedDetails | undefined;
1230
+ ContextSucceededDetails?: ContextSucceededDetails | undefined;
1231
+ ContextFailedDetails?: ContextFailedDetails | undefined;
1232
+ WaitStartedDetails?: WaitStartedDetails | undefined;
1233
+ WaitSucceededDetails?: WaitSucceededDetails | undefined;
1234
+ WaitCancelledDetails?: WaitCancelledDetails | undefined;
1235
+ StepStartedDetails?: StepStartedDetails | undefined;
1236
+ StepSucceededDetails?: StepSucceededDetails | undefined;
1237
+ StepFailedDetails?: StepFailedDetails | undefined;
1238
+ ChainedInvokeStartedDetails?: ChainedInvokeStartedDetails | undefined;
1239
+ ChainedInvokeSucceededDetails?: ChainedInvokeSucceededDetails | undefined;
1240
+ ChainedInvokeFailedDetails?: ChainedInvokeFailedDetails | undefined;
1241
+ ChainedInvokeTimedOutDetails?: ChainedInvokeTimedOutDetails | undefined;
1242
+ ChainedInvokeStoppedDetails?: ChainedInvokeStoppedDetails | undefined;
1243
+ CallbackStartedDetails?: CallbackStartedDetails | undefined;
1244
+ CallbackSucceededDetails?: CallbackSucceededDetails | undefined;
1245
+ CallbackFailedDetails?: CallbackFailedDetails | undefined;
1246
+ CallbackTimedOutDetails?: CallbackTimedOutDetails | undefined;
1247
+ InvocationCompletedDetails?: InvocationCompletedDetails | undefined;
1248
+ }
1249
+ export interface GetDurableExecutionHistoryResponse {
1250
+ Events: Event[] | undefined;
1251
+ NextMarker?: string | undefined;
1252
+ }
1253
+ export interface GetDurableExecutionStateRequest {
1254
+ DurableExecutionArn: string | undefined;
1255
+ CheckpointToken: string | undefined;
1256
+ Marker?: string | undefined;
1257
+ MaxItems?: number | undefined;
1258
+ }
1259
+ export interface GetDurableExecutionStateResponse {
1260
+ Operations: Operation[] | undefined;
1261
+ NextMarker?: string | undefined;
1262
+ }
1263
+ export interface FunctionEventInvokeConfig {
1264
+ LastModified?: Date | undefined;
1265
+ FunctionArn?: string | undefined;
1266
+ MaximumRetryAttempts?: number | undefined;
1267
+ MaximumEventAgeInSeconds?: number | undefined;
1268
+ DestinationConfig?: DestinationConfig | undefined;
1269
+ }
1270
+ export interface GetFunctionEventInvokeConfigRequest {
1271
+ FunctionName: string | undefined;
1272
+ Qualifier?: string | undefined;
1273
+ }
889
1274
  export interface ListLayersRequest {
890
1275
  CompatibleRuntime?: Runtime | undefined;
891
1276
  Marker?: string | undefined;
@@ -989,6 +1374,38 @@ export interface RemoveLayerVersionPermissionRequest {
989
1374
  StatementId: string | undefined;
990
1375
  RevisionId?: string | undefined;
991
1376
  }
1377
+ export interface ListDurableExecutionsByFunctionRequest {
1378
+ FunctionName: string | undefined;
1379
+ Qualifier?: string | undefined;
1380
+ DurableExecutionName?: string | undefined;
1381
+ Statuses?: ExecutionStatus[] | undefined;
1382
+ StartedAfter?: Date | undefined;
1383
+ StartedBefore?: Date | undefined;
1384
+ ReverseOrder?: boolean | undefined;
1385
+ Marker?: string | undefined;
1386
+ MaxItems?: number | undefined;
1387
+ }
1388
+ export interface Execution {
1389
+ DurableExecutionArn: string | undefined;
1390
+ DurableExecutionName: string | undefined;
1391
+ FunctionArn: string | undefined;
1392
+ Status: ExecutionStatus | undefined;
1393
+ StartTimestamp: Date | undefined;
1394
+ EndTimestamp?: Date | undefined;
1395
+ }
1396
+ export interface ListDurableExecutionsByFunctionResponse {
1397
+ DurableExecutions?: Execution[] | undefined;
1398
+ NextMarker?: string | undefined;
1399
+ }
1400
+ export interface ListFunctionEventInvokeConfigsRequest {
1401
+ FunctionName: string | undefined;
1402
+ Marker?: string | undefined;
1403
+ MaxItems?: number | undefined;
1404
+ }
1405
+ export interface ListFunctionEventInvokeConfigsResponse {
1406
+ FunctionEventInvokeConfigs?: FunctionEventInvokeConfig[] | undefined;
1407
+ NextMarker?: string | undefined;
1408
+ }
992
1409
  export interface ListTagsRequest {
993
1410
  Resource: string | undefined;
994
1411
  }
@@ -1030,6 +1447,34 @@ export interface PutProvisionedConcurrencyConfigResponse {
1030
1447
  StatusReason?: string | undefined;
1031
1448
  LastModified?: string | undefined;
1032
1449
  }
1450
+ export interface PutFunctionEventInvokeConfigRequest {
1451
+ FunctionName: string | undefined;
1452
+ Qualifier?: string | undefined;
1453
+ MaximumRetryAttempts?: number | undefined;
1454
+ MaximumEventAgeInSeconds?: number | undefined;
1455
+ DestinationConfig?: DestinationConfig | undefined;
1456
+ }
1457
+ export interface SendDurableExecutionCallbackFailureRequest {
1458
+ CallbackId: string | undefined;
1459
+ Error?: ErrorObject | undefined;
1460
+ }
1461
+ export interface SendDurableExecutionCallbackFailureResponse {}
1462
+ export interface SendDurableExecutionCallbackHeartbeatRequest {
1463
+ CallbackId: string | undefined;
1464
+ }
1465
+ export interface SendDurableExecutionCallbackHeartbeatResponse {}
1466
+ export interface SendDurableExecutionCallbackSuccessRequest {
1467
+ CallbackId: string | undefined;
1468
+ Result?: Uint8Array | undefined;
1469
+ }
1470
+ export interface SendDurableExecutionCallbackSuccessResponse {}
1471
+ export interface StopDurableExecutionRequest {
1472
+ DurableExecutionArn: string | undefined;
1473
+ Error?: ErrorObject | undefined;
1474
+ }
1475
+ export interface StopDurableExecutionResponse {
1476
+ StopTimestamp: Date | undefined;
1477
+ }
1033
1478
  export interface TagResourceRequest {
1034
1479
  Resource: string | undefined;
1035
1480
  Tags: Record<string, string> | undefined;
@@ -1038,3 +1483,10 @@ export interface UntagResourceRequest {
1038
1483
  Resource: string | undefined;
1039
1484
  TagKeys: string[] | undefined;
1040
1485
  }
1486
+ export interface UpdateFunctionEventInvokeConfigRequest {
1487
+ FunctionName: string | undefined;
1488
+ Qualifier?: string | undefined;
1489
+ MaximumRetryAttempts?: number | undefined;
1490
+ MaximumEventAgeInSeconds?: number | undefined;
1491
+ DestinationConfig?: DestinationConfig | undefined;
1492
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ GetDurableExecutionHistoryCommandInput,
4
+ GetDurableExecutionHistoryCommandOutput,
5
+ } from "../commands/GetDurableExecutionHistoryCommand";
6
+ import { LambdaPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateGetDurableExecutionHistory: (
8
+ config: LambdaPaginationConfiguration,
9
+ input: GetDurableExecutionHistoryCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<GetDurableExecutionHistoryCommandOutput>;