@aws-sdk/client-lambda 3.975.0 → 3.978.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.
package/dist-cjs/index.js CHANGED
@@ -1001,6 +1001,7 @@ const _ESM = "EventSourceMappings";
1001
1001
  const _ESMA = "EventSourceMappingArn";
1002
1002
  const _ESMC = "EventSourceMappingConfiguration";
1003
1003
  const _ESML = "EventSourceMappingsList";
1004
+ const _ESMLC = "EventSourceMappingLoggingConfig";
1004
1005
  const _ESMMC = "EventSourceMappingMetricsConfig";
1005
1006
  const _EST = "EventSourceToken";
1006
1007
  const _ESv = "EventStream";
@@ -1786,8 +1787,8 @@ var CreateCodeSigningConfigResponse$ = [3, n0, _CCSCRr,
1786
1787
  ];
1787
1788
  var CreateEventSourceMappingRequest$ = [3, n0, _CESMR,
1788
1789
  0,
1789
- [_FN, _ESA, _En, _BSa, _FCi, _MBWIS, _PF, _SPt, _SPT, _DC, _MRAIS, _BBOFE, _MRA, _Ta, _TWIS, _To, _Qu, _SAC, _SMES, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _MC, _PPC],
1790
- [0, 0, 2, 1, () => FilterCriteria$, 1, 1, 0, 4, () => DestinationConfig$, 1, 2, 1, 128 | 0, 1, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$], 1
1790
+ [_FN, _ESA, _En, _BSa, _FCi, _MBWIS, _PF, _SPt, _SPT, _DC, _MRAIS, _BBOFE, _MRA, _Ta, _TWIS, _To, _Qu, _SAC, _SMES, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _MC, _LC, _PPC],
1791
+ [0, 0, 2, 1, () => FilterCriteria$, 1, 1, 0, 4, () => DestinationConfig$, 1, 2, 1, 128 | 0, 1, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$], 1
1791
1792
  ];
1792
1793
  var CreateFunctionRequest$ = [3, n0, _CFR,
1793
1794
  0,
@@ -1995,8 +1996,13 @@ var EventResult$ = [3, n0, _ERv,
1995
1996
  ];
1996
1997
  var EventSourceMappingConfiguration$ = [3, n0, _ESMC,
1997
1998
  0,
1998
- [_UUID, _SPt, _SPT, _BSa, _MBWIS, _PF, _ESA, _FCi, _FA, _LM, _LPR, _St, _STR, _DC, _To, _Qu, _SAC, _SMES, _MRAIS, _BBOFE, _MRA, _TWIS, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _FCE, _ESMA, _MC, _PPC],
1999
- [0, 0, 4, 1, 1, 1, 0, () => FilterCriteria$, 0, 4, 0, 0, 0, () => DestinationConfig$, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 1, 2, 1, 1, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => FilterCriteriaError$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$]
1999
+ [_UUID, _SPt, _SPT, _BSa, _MBWIS, _PF, _ESA, _FCi, _FA, _LM, _LPR, _St, _STR, _DC, _To, _Qu, _SAC, _SMES, _MRAIS, _BBOFE, _MRA, _TWIS, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _FCE, _ESMA, _MC, _LC, _PPC],
2000
+ [0, 0, 4, 1, 1, 1, 0, () => FilterCriteria$, 0, 4, 0, 0, 0, () => DestinationConfig$, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 1, 2, 1, 1, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => FilterCriteriaError$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$]
2001
+ ];
2002
+ var EventSourceMappingLoggingConfig$ = [3, n0, _ESMLC,
2003
+ 0,
2004
+ [_SLL],
2005
+ [0]
2000
2006
  ];
2001
2007
  var EventSourceMappingMetricsConfig$ = [3, n0, _ESMMC,
2002
2008
  0,
@@ -3025,8 +3031,8 @@ var UpdateCodeSigningConfigResponse$ = [3, n0, _UCSCRp,
3025
3031
  ];
3026
3032
  var UpdateEventSourceMappingRequest$ = [3, n0, _UESMR,
3027
3033
  0,
3028
- [_UUID, _FN, _En, _BSa, _FCi, _MBWIS, _DC, _MRAIS, _BBOFE, _MRA, _PF, _SAC, _TWIS, _FRT, _SC, _AMKESC, _SMKESC, _DDBESC, _KMSKA, _MC, _PPC],
3029
- [[0, 1], 0, 2, 1, () => FilterCriteria$, 1, () => DestinationConfig$, 1, 2, 1, 1, () => SourceAccessConfigurations, 1, 64 | 0, () => ScalingConfig$, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$], 1
3034
+ [_UUID, _FN, _En, _BSa, _FCi, _MBWIS, _DC, _MRAIS, _BBOFE, _MRA, _PF, _SAC, _TWIS, _FRT, _SC, _AMKESC, _SMKESC, _DDBESC, _KMSKA, _MC, _LC, _PPC],
3035
+ [[0, 1], 0, 2, 1, () => FilterCriteria$, 1, () => DestinationConfig$, 1, 2, 1, 1, () => SourceAccessConfigurations, 1, 64 | 0, () => ScalingConfig$, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$], 1
3030
3036
  ];
3031
3037
  var UpdateFunctionCodeRequest$ = [3, n0, _UFCR,
3032
3038
  0,
@@ -4456,97 +4462,6 @@ class UpdateFunctionUrlConfigCommand extends smithyClient.Command
4456
4462
  .build() {
4457
4463
  }
4458
4464
 
4459
- const commands = {
4460
- AddLayerVersionPermissionCommand,
4461
- AddPermissionCommand,
4462
- CheckpointDurableExecutionCommand,
4463
- CreateAliasCommand,
4464
- CreateCapacityProviderCommand,
4465
- CreateCodeSigningConfigCommand,
4466
- CreateEventSourceMappingCommand,
4467
- CreateFunctionCommand,
4468
- CreateFunctionUrlConfigCommand,
4469
- DeleteAliasCommand,
4470
- DeleteCapacityProviderCommand,
4471
- DeleteCodeSigningConfigCommand,
4472
- DeleteEventSourceMappingCommand,
4473
- DeleteFunctionCommand,
4474
- DeleteFunctionCodeSigningConfigCommand,
4475
- DeleteFunctionConcurrencyCommand,
4476
- DeleteFunctionEventInvokeConfigCommand,
4477
- DeleteFunctionUrlConfigCommand,
4478
- DeleteLayerVersionCommand,
4479
- DeleteProvisionedConcurrencyConfigCommand,
4480
- GetAccountSettingsCommand,
4481
- GetAliasCommand,
4482
- GetCapacityProviderCommand,
4483
- GetCodeSigningConfigCommand,
4484
- GetDurableExecutionCommand,
4485
- GetDurableExecutionHistoryCommand,
4486
- GetDurableExecutionStateCommand,
4487
- GetEventSourceMappingCommand,
4488
- GetFunctionCommand,
4489
- GetFunctionCodeSigningConfigCommand,
4490
- GetFunctionConcurrencyCommand,
4491
- GetFunctionConfigurationCommand,
4492
- GetFunctionEventInvokeConfigCommand,
4493
- GetFunctionRecursionConfigCommand,
4494
- GetFunctionScalingConfigCommand,
4495
- GetFunctionUrlConfigCommand,
4496
- GetLayerVersionCommand,
4497
- GetLayerVersionByArnCommand,
4498
- GetLayerVersionPolicyCommand,
4499
- GetPolicyCommand,
4500
- GetProvisionedConcurrencyConfigCommand,
4501
- GetRuntimeManagementConfigCommand,
4502
- InvokeCommand,
4503
- InvokeAsyncCommand,
4504
- InvokeWithResponseStreamCommand,
4505
- ListAliasesCommand,
4506
- ListCapacityProvidersCommand,
4507
- ListCodeSigningConfigsCommand,
4508
- ListDurableExecutionsByFunctionCommand,
4509
- ListEventSourceMappingsCommand,
4510
- ListFunctionEventInvokeConfigsCommand,
4511
- ListFunctionsCommand,
4512
- ListFunctionsByCodeSigningConfigCommand,
4513
- ListFunctionUrlConfigsCommand,
4514
- ListFunctionVersionsByCapacityProviderCommand,
4515
- ListLayersCommand,
4516
- ListLayerVersionsCommand,
4517
- ListProvisionedConcurrencyConfigsCommand,
4518
- ListTagsCommand,
4519
- ListVersionsByFunctionCommand,
4520
- PublishLayerVersionCommand,
4521
- PublishVersionCommand,
4522
- PutFunctionCodeSigningConfigCommand,
4523
- PutFunctionConcurrencyCommand,
4524
- PutFunctionEventInvokeConfigCommand,
4525
- PutFunctionRecursionConfigCommand,
4526
- PutFunctionScalingConfigCommand,
4527
- PutProvisionedConcurrencyConfigCommand,
4528
- PutRuntimeManagementConfigCommand,
4529
- RemoveLayerVersionPermissionCommand,
4530
- RemovePermissionCommand,
4531
- SendDurableExecutionCallbackFailureCommand,
4532
- SendDurableExecutionCallbackHeartbeatCommand,
4533
- SendDurableExecutionCallbackSuccessCommand,
4534
- StopDurableExecutionCommand,
4535
- TagResourceCommand,
4536
- UntagResourceCommand,
4537
- UpdateAliasCommand,
4538
- UpdateCapacityProviderCommand,
4539
- UpdateCodeSigningConfigCommand,
4540
- UpdateEventSourceMappingCommand,
4541
- UpdateFunctionCodeCommand,
4542
- UpdateFunctionConfigurationCommand,
4543
- UpdateFunctionEventInvokeConfigCommand,
4544
- UpdateFunctionUrlConfigCommand,
4545
- };
4546
- class Lambda extends LambdaClient {
4547
- }
4548
- smithyClient.createAggregatedClient(commands, Lambda);
4549
-
4550
4465
  const paginateGetDurableExecutionHistory = core.createPaginator(LambdaClient, GetDurableExecutionHistoryCommand, "Marker", "NextMarker", "MaxItems");
4551
4466
 
4552
4467
  const paginateGetDurableExecutionState = core.createPaginator(LambdaClient, GetDurableExecutionStateCommand, "Marker", "NextMarker", "MaxItems");
@@ -4563,10 +4478,10 @@ const paginateListEventSourceMappings = core.createPaginator(LambdaClient, ListE
4563
4478
 
4564
4479
  const paginateListFunctionEventInvokeConfigs = core.createPaginator(LambdaClient, ListFunctionEventInvokeConfigsCommand, "Marker", "NextMarker", "MaxItems");
4565
4480
 
4566
- const paginateListFunctions = core.createPaginator(LambdaClient, ListFunctionsCommand, "Marker", "NextMarker", "MaxItems");
4567
-
4568
4481
  const paginateListFunctionsByCodeSigningConfig = core.createPaginator(LambdaClient, ListFunctionsByCodeSigningConfigCommand, "Marker", "NextMarker", "MaxItems");
4569
4482
 
4483
+ const paginateListFunctions = core.createPaginator(LambdaClient, ListFunctionsCommand, "Marker", "NextMarker", "MaxItems");
4484
+
4570
4485
  const paginateListFunctionUrlConfigs = core.createPaginator(LambdaClient, ListFunctionUrlConfigsCommand, "Marker", "NextMarker", "MaxItems");
4571
4486
 
4572
4487
  const paginateListFunctionVersionsByCapacityProvider = core.createPaginator(LambdaClient, ListFunctionVersionsByCapacityProviderCommand, "Marker", "NextMarker", "MaxItems");
@@ -4582,11 +4497,11 @@ const paginateListVersionsByFunction = core.createPaginator(LambdaClient, ListVe
4582
4497
  const checkState$5 = async (client, input) => {
4583
4498
  let reason;
4584
4499
  try {
4585
- let result = await client.send(new GetFunctionCommand(input));
4500
+ let result = await client.send(new GetFunctionConfigurationCommand(input));
4586
4501
  reason = result;
4587
4502
  try {
4588
4503
  const returnComparator = () => {
4589
- return result.Configuration.State;
4504
+ return result.State;
4590
4505
  };
4591
4506
  if (returnComparator() === "Active") {
4592
4507
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
@@ -4595,7 +4510,7 @@ const checkState$5 = async (client, input) => {
4595
4510
  catch (e) { }
4596
4511
  try {
4597
4512
  const returnComparator = () => {
4598
- return result.Configuration.State;
4513
+ return result.State;
4599
4514
  };
4600
4515
  if (returnComparator() === "Failed") {
4601
4516
  return { state: utilWaiter.WaiterState.FAILURE, reason };
@@ -4604,7 +4519,7 @@ const checkState$5 = async (client, input) => {
4604
4519
  catch (e) { }
4605
4520
  try {
4606
4521
  const returnComparator = () => {
4607
- return result.Configuration.State;
4522
+ return result.State;
4608
4523
  };
4609
4524
  if (returnComparator() === "Pending") {
4610
4525
  return { state: utilWaiter.WaiterState.RETRY, reason };
@@ -4617,58 +4532,33 @@ const checkState$5 = async (client, input) => {
4617
4532
  }
4618
4533
  return { state: utilWaiter.WaiterState.RETRY, reason };
4619
4534
  };
4620
- const waitForFunctionActiveV2 = async (params, input) => {
4621
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4535
+ const waitForFunctionActive = async (params, input) => {
4536
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4622
4537
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
4623
4538
  };
4624
- const waitUntilFunctionActiveV2 = async (params, input) => {
4625
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4539
+ const waitUntilFunctionActive = async (params, input) => {
4540
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4626
4541
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
4627
4542
  return utilWaiter.checkExceptions(result);
4628
4543
  };
4629
4544
 
4630
4545
  const checkState$4 = async (client, input) => {
4631
- let reason;
4632
- try {
4633
- let result = await client.send(new GetFunctionCommand(input));
4634
- reason = result;
4635
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
4636
- }
4637
- catch (exception) {
4638
- reason = exception;
4639
- if (exception.name && exception.name == "ResourceNotFoundException") {
4640
- return { state: utilWaiter.WaiterState.RETRY, reason };
4641
- }
4642
- }
4643
- return { state: utilWaiter.WaiterState.RETRY, reason };
4644
- };
4645
- const waitForFunctionExists = async (params, input) => {
4646
- const serviceDefaults = { minDelay: 1, maxDelay: 20 };
4647
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
4648
- };
4649
- const waitUntilFunctionExists = async (params, input) => {
4650
- const serviceDefaults = { minDelay: 1, maxDelay: 20 };
4651
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
4652
- return utilWaiter.checkExceptions(result);
4653
- };
4654
-
4655
- const checkState$3 = async (client, input) => {
4656
4546
  let reason;
4657
4547
  try {
4658
4548
  let result = await client.send(new GetFunctionCommand(input));
4659
4549
  reason = result;
4660
4550
  try {
4661
4551
  const returnComparator = () => {
4662
- return result.Configuration.LastUpdateStatus;
4552
+ return result.Configuration.State;
4663
4553
  };
4664
- if (returnComparator() === "Successful") {
4554
+ if (returnComparator() === "Active") {
4665
4555
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
4666
4556
  }
4667
4557
  }
4668
4558
  catch (e) { }
4669
4559
  try {
4670
4560
  const returnComparator = () => {
4671
- return result.Configuration.LastUpdateStatus;
4561
+ return result.Configuration.State;
4672
4562
  };
4673
4563
  if (returnComparator() === "Failed") {
4674
4564
  return { state: utilWaiter.WaiterState.FAILURE, reason };
@@ -4677,9 +4567,9 @@ const checkState$3 = async (client, input) => {
4677
4567
  catch (e) { }
4678
4568
  try {
4679
4569
  const returnComparator = () => {
4680
- return result.Configuration.LastUpdateStatus;
4570
+ return result.Configuration.State;
4681
4571
  };
4682
- if (returnComparator() === "InProgress") {
4572
+ if (returnComparator() === "Pending") {
4683
4573
  return { state: utilWaiter.WaiterState.RETRY, reason };
4684
4574
  }
4685
4575
  }
@@ -4690,12 +4580,37 @@ const checkState$3 = async (client, input) => {
4690
4580
  }
4691
4581
  return { state: utilWaiter.WaiterState.RETRY, reason };
4692
4582
  };
4693
- const waitForFunctionUpdatedV2 = async (params, input) => {
4583
+ const waitForFunctionActiveV2 = async (params, input) => {
4694
4584
  const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4695
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
4585
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
4696
4586
  };
4697
- const waitUntilFunctionUpdatedV2 = async (params, input) => {
4587
+ const waitUntilFunctionActiveV2 = async (params, input) => {
4698
4588
  const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4589
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
4590
+ return utilWaiter.checkExceptions(result);
4591
+ };
4592
+
4593
+ const checkState$3 = async (client, input) => {
4594
+ let reason;
4595
+ try {
4596
+ let result = await client.send(new GetFunctionCommand(input));
4597
+ reason = result;
4598
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
4599
+ }
4600
+ catch (exception) {
4601
+ reason = exception;
4602
+ if (exception.name && exception.name == "ResourceNotFoundException") {
4603
+ return { state: utilWaiter.WaiterState.RETRY, reason };
4604
+ }
4605
+ }
4606
+ return { state: utilWaiter.WaiterState.RETRY, reason };
4607
+ };
4608
+ const waitForFunctionExists = async (params, input) => {
4609
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
4610
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
4611
+ };
4612
+ const waitUntilFunctionExists = async (params, input) => {
4613
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
4699
4614
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
4700
4615
  return utilWaiter.checkExceptions(result);
4701
4616
  };
@@ -4707,16 +4622,16 @@ const checkState$2 = async (client, input) => {
4707
4622
  reason = result;
4708
4623
  try {
4709
4624
  const returnComparator = () => {
4710
- return result.State;
4625
+ return result.LastUpdateStatus;
4711
4626
  };
4712
- if (returnComparator() === "Active") {
4627
+ if (returnComparator() === "Successful") {
4713
4628
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
4714
4629
  }
4715
4630
  }
4716
4631
  catch (e) { }
4717
4632
  try {
4718
4633
  const returnComparator = () => {
4719
- return result.State;
4634
+ return result.LastUpdateStatus;
4720
4635
  };
4721
4636
  if (returnComparator() === "Failed") {
4722
4637
  return { state: utilWaiter.WaiterState.FAILURE, reason };
@@ -4725,9 +4640,9 @@ const checkState$2 = async (client, input) => {
4725
4640
  catch (e) { }
4726
4641
  try {
4727
4642
  const returnComparator = () => {
4728
- return result.State;
4643
+ return result.LastUpdateStatus;
4729
4644
  };
4730
- if (returnComparator() === "Pending") {
4645
+ if (returnComparator() === "InProgress") {
4731
4646
  return { state: utilWaiter.WaiterState.RETRY, reason };
4732
4647
  }
4733
4648
  }
@@ -4738,11 +4653,11 @@ const checkState$2 = async (client, input) => {
4738
4653
  }
4739
4654
  return { state: utilWaiter.WaiterState.RETRY, reason };
4740
4655
  };
4741
- const waitForFunctionActive = async (params, input) => {
4656
+ const waitForFunctionUpdated = async (params, input) => {
4742
4657
  const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4743
4658
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
4744
4659
  };
4745
- const waitUntilFunctionActive = async (params, input) => {
4660
+ const waitUntilFunctionUpdated = async (params, input) => {
4746
4661
  const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4747
4662
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
4748
4663
  return utilWaiter.checkExceptions(result);
@@ -4751,11 +4666,11 @@ const waitUntilFunctionActive = async (params, input) => {
4751
4666
  const checkState$1 = async (client, input) => {
4752
4667
  let reason;
4753
4668
  try {
4754
- let result = await client.send(new GetFunctionConfigurationCommand(input));
4669
+ let result = await client.send(new GetFunctionCommand(input));
4755
4670
  reason = result;
4756
4671
  try {
4757
4672
  const returnComparator = () => {
4758
- return result.LastUpdateStatus;
4673
+ return result.Configuration.LastUpdateStatus;
4759
4674
  };
4760
4675
  if (returnComparator() === "Successful") {
4761
4676
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
@@ -4764,7 +4679,7 @@ const checkState$1 = async (client, input) => {
4764
4679
  catch (e) { }
4765
4680
  try {
4766
4681
  const returnComparator = () => {
4767
- return result.LastUpdateStatus;
4682
+ return result.Configuration.LastUpdateStatus;
4768
4683
  };
4769
4684
  if (returnComparator() === "Failed") {
4770
4685
  return { state: utilWaiter.WaiterState.FAILURE, reason };
@@ -4773,7 +4688,7 @@ const checkState$1 = async (client, input) => {
4773
4688
  catch (e) { }
4774
4689
  try {
4775
4690
  const returnComparator = () => {
4776
- return result.LastUpdateStatus;
4691
+ return result.Configuration.LastUpdateStatus;
4777
4692
  };
4778
4693
  if (returnComparator() === "InProgress") {
4779
4694
  return { state: utilWaiter.WaiterState.RETRY, reason };
@@ -4786,12 +4701,12 @@ const checkState$1 = async (client, input) => {
4786
4701
  }
4787
4702
  return { state: utilWaiter.WaiterState.RETRY, reason };
4788
4703
  };
4789
- const waitForFunctionUpdated = async (params, input) => {
4790
- const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4704
+ const waitForFunctionUpdatedV2 = async (params, input) => {
4705
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4791
4706
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
4792
4707
  };
4793
- const waitUntilFunctionUpdated = async (params, input) => {
4794
- const serviceDefaults = { minDelay: 5, maxDelay: 300 };
4708
+ const waitUntilFunctionUpdatedV2 = async (params, input) => {
4709
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
4795
4710
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
4796
4711
  return utilWaiter.checkExceptions(result);
4797
4712
  };
@@ -4844,6 +4759,123 @@ const waitUntilPublishedVersionActive = async (params, input) => {
4844
4759
  return utilWaiter.checkExceptions(result);
4845
4760
  };
4846
4761
 
4762
+ const commands = {
4763
+ AddLayerVersionPermissionCommand,
4764
+ AddPermissionCommand,
4765
+ CheckpointDurableExecutionCommand,
4766
+ CreateAliasCommand,
4767
+ CreateCapacityProviderCommand,
4768
+ CreateCodeSigningConfigCommand,
4769
+ CreateEventSourceMappingCommand,
4770
+ CreateFunctionCommand,
4771
+ CreateFunctionUrlConfigCommand,
4772
+ DeleteAliasCommand,
4773
+ DeleteCapacityProviderCommand,
4774
+ DeleteCodeSigningConfigCommand,
4775
+ DeleteEventSourceMappingCommand,
4776
+ DeleteFunctionCommand,
4777
+ DeleteFunctionCodeSigningConfigCommand,
4778
+ DeleteFunctionConcurrencyCommand,
4779
+ DeleteFunctionEventInvokeConfigCommand,
4780
+ DeleteFunctionUrlConfigCommand,
4781
+ DeleteLayerVersionCommand,
4782
+ DeleteProvisionedConcurrencyConfigCommand,
4783
+ GetAccountSettingsCommand,
4784
+ GetAliasCommand,
4785
+ GetCapacityProviderCommand,
4786
+ GetCodeSigningConfigCommand,
4787
+ GetDurableExecutionCommand,
4788
+ GetDurableExecutionHistoryCommand,
4789
+ GetDurableExecutionStateCommand,
4790
+ GetEventSourceMappingCommand,
4791
+ GetFunctionCommand,
4792
+ GetFunctionCodeSigningConfigCommand,
4793
+ GetFunctionConcurrencyCommand,
4794
+ GetFunctionConfigurationCommand,
4795
+ GetFunctionEventInvokeConfigCommand,
4796
+ GetFunctionRecursionConfigCommand,
4797
+ GetFunctionScalingConfigCommand,
4798
+ GetFunctionUrlConfigCommand,
4799
+ GetLayerVersionCommand,
4800
+ GetLayerVersionByArnCommand,
4801
+ GetLayerVersionPolicyCommand,
4802
+ GetPolicyCommand,
4803
+ GetProvisionedConcurrencyConfigCommand,
4804
+ GetRuntimeManagementConfigCommand,
4805
+ InvokeCommand,
4806
+ InvokeAsyncCommand,
4807
+ InvokeWithResponseStreamCommand,
4808
+ ListAliasesCommand,
4809
+ ListCapacityProvidersCommand,
4810
+ ListCodeSigningConfigsCommand,
4811
+ ListDurableExecutionsByFunctionCommand,
4812
+ ListEventSourceMappingsCommand,
4813
+ ListFunctionEventInvokeConfigsCommand,
4814
+ ListFunctionsCommand,
4815
+ ListFunctionsByCodeSigningConfigCommand,
4816
+ ListFunctionUrlConfigsCommand,
4817
+ ListFunctionVersionsByCapacityProviderCommand,
4818
+ ListLayersCommand,
4819
+ ListLayerVersionsCommand,
4820
+ ListProvisionedConcurrencyConfigsCommand,
4821
+ ListTagsCommand,
4822
+ ListVersionsByFunctionCommand,
4823
+ PublishLayerVersionCommand,
4824
+ PublishVersionCommand,
4825
+ PutFunctionCodeSigningConfigCommand,
4826
+ PutFunctionConcurrencyCommand,
4827
+ PutFunctionEventInvokeConfigCommand,
4828
+ PutFunctionRecursionConfigCommand,
4829
+ PutFunctionScalingConfigCommand,
4830
+ PutProvisionedConcurrencyConfigCommand,
4831
+ PutRuntimeManagementConfigCommand,
4832
+ RemoveLayerVersionPermissionCommand,
4833
+ RemovePermissionCommand,
4834
+ SendDurableExecutionCallbackFailureCommand,
4835
+ SendDurableExecutionCallbackHeartbeatCommand,
4836
+ SendDurableExecutionCallbackSuccessCommand,
4837
+ StopDurableExecutionCommand,
4838
+ TagResourceCommand,
4839
+ UntagResourceCommand,
4840
+ UpdateAliasCommand,
4841
+ UpdateCapacityProviderCommand,
4842
+ UpdateCodeSigningConfigCommand,
4843
+ UpdateEventSourceMappingCommand,
4844
+ UpdateFunctionCodeCommand,
4845
+ UpdateFunctionConfigurationCommand,
4846
+ UpdateFunctionEventInvokeConfigCommand,
4847
+ UpdateFunctionUrlConfigCommand,
4848
+ };
4849
+ const paginators = {
4850
+ paginateGetDurableExecutionHistory,
4851
+ paginateGetDurableExecutionState,
4852
+ paginateListAliases,
4853
+ paginateListCapacityProviders,
4854
+ paginateListCodeSigningConfigs,
4855
+ paginateListDurableExecutionsByFunction,
4856
+ paginateListEventSourceMappings,
4857
+ paginateListFunctionEventInvokeConfigs,
4858
+ paginateListFunctions,
4859
+ paginateListFunctionsByCodeSigningConfig,
4860
+ paginateListFunctionUrlConfigs,
4861
+ paginateListFunctionVersionsByCapacityProvider,
4862
+ paginateListLayers,
4863
+ paginateListLayerVersions,
4864
+ paginateListProvisionedConcurrencyConfigs,
4865
+ paginateListVersionsByFunction,
4866
+ };
4867
+ const waiters = {
4868
+ waitUntilFunctionActiveV2,
4869
+ waitUntilFunctionExists,
4870
+ waitUntilFunctionUpdatedV2,
4871
+ waitUntilFunctionActive,
4872
+ waitUntilFunctionUpdated,
4873
+ waitUntilPublishedVersionActive,
4874
+ };
4875
+ class Lambda extends LambdaClient {
4876
+ }
4877
+ smithyClient.createAggregatedClient(commands, Lambda, { paginators, waiters });
4878
+
4847
4879
  const ThrottleReason = {
4848
4880
  CallerRateLimitExceeded: "CallerRateLimitExceeded",
4849
4881
  ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded",
@@ -4940,8 +4972,15 @@ const FullDocument = {
4940
4972
  const FunctionResponseType = {
4941
4973
  ReportBatchItemFailures: "ReportBatchItemFailures",
4942
4974
  };
4975
+ const EventSourceMappingSystemLogLevel = {
4976
+ Debug: "DEBUG",
4977
+ Info: "INFO",
4978
+ Warn: "WARN",
4979
+ };
4943
4980
  const EventSourceMappingMetric = {
4981
+ ErrorCount: "ErrorCount",
4944
4982
  EventCount: "EventCount",
4983
+ KafkaMetrics: "KafkaMetrics",
4945
4984
  };
4946
4985
  const EndPointType = {
4947
4986
  KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
@@ -5348,8 +5387,10 @@ exports.EventError$ = EventError$;
5348
5387
  exports.EventInput$ = EventInput$;
5349
5388
  exports.EventResult$ = EventResult$;
5350
5389
  exports.EventSourceMappingConfiguration$ = EventSourceMappingConfiguration$;
5390
+ exports.EventSourceMappingLoggingConfig$ = EventSourceMappingLoggingConfig$;
5351
5391
  exports.EventSourceMappingMetric = EventSourceMappingMetric;
5352
5392
  exports.EventSourceMappingMetricsConfig$ = EventSourceMappingMetricsConfig$;
5393
+ exports.EventSourceMappingSystemLogLevel = EventSourceMappingSystemLogLevel;
5353
5394
  exports.EventSourcePosition = EventSourcePosition;
5354
5395
  exports.EventType = EventType;
5355
5396
  exports.Execution$ = Execution$;
package/dist-es/Lambda.js CHANGED
@@ -85,6 +85,28 @@ import { UpdateFunctionConfigurationCommand, } from "./commands/UpdateFunctionCo
85
85
  import { UpdateFunctionEventInvokeConfigCommand, } from "./commands/UpdateFunctionEventInvokeConfigCommand";
86
86
  import { UpdateFunctionUrlConfigCommand, } from "./commands/UpdateFunctionUrlConfigCommand";
87
87
  import { LambdaClient } from "./LambdaClient";
88
+ import { paginateGetDurableExecutionHistory } from "./pagination/GetDurableExecutionHistoryPaginator";
89
+ import { paginateGetDurableExecutionState } from "./pagination/GetDurableExecutionStatePaginator";
90
+ import { paginateListAliases } from "./pagination/ListAliasesPaginator";
91
+ import { paginateListCapacityProviders } from "./pagination/ListCapacityProvidersPaginator";
92
+ import { paginateListCodeSigningConfigs } from "./pagination/ListCodeSigningConfigsPaginator";
93
+ import { paginateListDurableExecutionsByFunction } from "./pagination/ListDurableExecutionsByFunctionPaginator";
94
+ import { paginateListEventSourceMappings } from "./pagination/ListEventSourceMappingsPaginator";
95
+ import { paginateListFunctionEventInvokeConfigs } from "./pagination/ListFunctionEventInvokeConfigsPaginator";
96
+ import { paginateListFunctionsByCodeSigningConfig } from "./pagination/ListFunctionsByCodeSigningConfigPaginator";
97
+ import { paginateListFunctions } from "./pagination/ListFunctionsPaginator";
98
+ import { paginateListFunctionUrlConfigs } from "./pagination/ListFunctionUrlConfigsPaginator";
99
+ import { paginateListFunctionVersionsByCapacityProvider, } from "./pagination/ListFunctionVersionsByCapacityProviderPaginator";
100
+ import { paginateListLayers } from "./pagination/ListLayersPaginator";
101
+ import { paginateListLayerVersions } from "./pagination/ListLayerVersionsPaginator";
102
+ import { paginateListProvisionedConcurrencyConfigs } from "./pagination/ListProvisionedConcurrencyConfigsPaginator";
103
+ import { paginateListVersionsByFunction } from "./pagination/ListVersionsByFunctionPaginator";
104
+ import { waitUntilFunctionActive } from "./waiters/waitForFunctionActive";
105
+ import { waitUntilFunctionActiveV2 } from "./waiters/waitForFunctionActiveV2";
106
+ import { waitUntilFunctionExists } from "./waiters/waitForFunctionExists";
107
+ import { waitUntilFunctionUpdated } from "./waiters/waitForFunctionUpdated";
108
+ import { waitUntilFunctionUpdatedV2 } from "./waiters/waitForFunctionUpdatedV2";
109
+ import { waitUntilPublishedVersionActive } from "./waiters/waitForPublishedVersionActive";
88
110
  const commands = {
89
111
  AddLayerVersionPermissionCommand,
90
112
  AddPermissionCommand,
@@ -172,6 +194,32 @@ const commands = {
172
194
  UpdateFunctionEventInvokeConfigCommand,
173
195
  UpdateFunctionUrlConfigCommand,
174
196
  };
197
+ const paginators = {
198
+ paginateGetDurableExecutionHistory,
199
+ paginateGetDurableExecutionState,
200
+ paginateListAliases,
201
+ paginateListCapacityProviders,
202
+ paginateListCodeSigningConfigs,
203
+ paginateListDurableExecutionsByFunction,
204
+ paginateListEventSourceMappings,
205
+ paginateListFunctionEventInvokeConfigs,
206
+ paginateListFunctions,
207
+ paginateListFunctionsByCodeSigningConfig,
208
+ paginateListFunctionUrlConfigs,
209
+ paginateListFunctionVersionsByCapacityProvider,
210
+ paginateListLayers,
211
+ paginateListLayerVersions,
212
+ paginateListProvisionedConcurrencyConfigs,
213
+ paginateListVersionsByFunction,
214
+ };
215
+ const waiters = {
216
+ waitUntilFunctionActiveV2,
217
+ waitUntilFunctionExists,
218
+ waitUntilFunctionUpdatedV2,
219
+ waitUntilFunctionActive,
220
+ waitUntilFunctionUpdated,
221
+ waitUntilPublishedVersionActive,
222
+ };
175
223
  export class Lambda extends LambdaClient {
176
224
  }
177
- createAggregatedClient(commands, Lambda);
225
+ createAggregatedClient(commands, Lambda, { paginators, waiters });
@@ -94,8 +94,15 @@ export const FullDocument = {
94
94
  export const FunctionResponseType = {
95
95
  ReportBatchItemFailures: "ReportBatchItemFailures",
96
96
  };
97
+ export const EventSourceMappingSystemLogLevel = {
98
+ Debug: "DEBUG",
99
+ Info: "INFO",
100
+ Warn: "WARN",
101
+ };
97
102
  export const EventSourceMappingMetric = {
103
+ ErrorCount: "ErrorCount",
98
104
  EventCount: "EventCount",
105
+ KafkaMetrics: "KafkaMetrics",
99
106
  };
100
107
  export const EndPointType = {
101
108
  KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
@@ -196,6 +196,7 @@ const _ESM = "EventSourceMappings";
196
196
  const _ESMA = "EventSourceMappingArn";
197
197
  const _ESMC = "EventSourceMappingConfiguration";
198
198
  const _ESML = "EventSourceMappingsList";
199
+ const _ESMLC = "EventSourceMappingLoggingConfig";
199
200
  const _ESMMC = "EventSourceMappingMetricsConfig";
200
201
  const _EST = "EventSourceToken";
201
202
  const _ESv = "EventStream";
@@ -984,8 +985,8 @@ export var CreateCodeSigningConfigResponse$ = [3, n0, _CCSCRr,
984
985
  ];
985
986
  export var CreateEventSourceMappingRequest$ = [3, n0, _CESMR,
986
987
  0,
987
- [_FN, _ESA, _En, _BSa, _FCi, _MBWIS, _PF, _SPt, _SPT, _DC, _MRAIS, _BBOFE, _MRA, _Ta, _TWIS, _To, _Qu, _SAC, _SMES, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _MC, _PPC],
988
- [0, 0, 2, 1, () => FilterCriteria$, 1, 1, 0, 4, () => DestinationConfig$, 1, 2, 1, 128 | 0, 1, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$], 1
988
+ [_FN, _ESA, _En, _BSa, _FCi, _MBWIS, _PF, _SPt, _SPT, _DC, _MRAIS, _BBOFE, _MRA, _Ta, _TWIS, _To, _Qu, _SAC, _SMES, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _MC, _LC, _PPC],
989
+ [0, 0, 2, 1, () => FilterCriteria$, 1, 1, 0, 4, () => DestinationConfig$, 1, 2, 1, 128 | 0, 1, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$], 1
989
990
  ];
990
991
  export var CreateFunctionRequest$ = [3, n0, _CFR,
991
992
  0,
@@ -1193,8 +1194,13 @@ export var EventResult$ = [3, n0, _ERv,
1193
1194
  ];
1194
1195
  export var EventSourceMappingConfiguration$ = [3, n0, _ESMC,
1195
1196
  0,
1196
- [_UUID, _SPt, _SPT, _BSa, _MBWIS, _PF, _ESA, _FCi, _FA, _LM, _LPR, _St, _STR, _DC, _To, _Qu, _SAC, _SMES, _MRAIS, _BBOFE, _MRA, _TWIS, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _FCE, _ESMA, _MC, _PPC],
1197
- [0, 0, 4, 1, 1, 1, 0, () => FilterCriteria$, 0, 4, 0, 0, 0, () => DestinationConfig$, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 1, 2, 1, 1, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => FilterCriteriaError$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$]
1197
+ [_UUID, _SPt, _SPT, _BSa, _MBWIS, _PF, _ESA, _FCi, _FA, _LM, _LPR, _St, _STR, _DC, _To, _Qu, _SAC, _SMES, _MRAIS, _BBOFE, _MRA, _TWIS, _FRT, _AMKESC, _SMKESC, _SC, _DDBESC, _KMSKA, _FCE, _ESMA, _MC, _LC, _PPC],
1198
+ [0, 0, 4, 1, 1, 1, 0, () => FilterCriteria$, 0, 4, 0, 0, 0, () => DestinationConfig$, 64 | 0, 64 | 0, () => SourceAccessConfigurations, () => SelfManagedEventSource$, 1, 2, 1, 1, 64 | 0, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => ScalingConfig$, () => DocumentDBEventSourceConfig$, 0, () => FilterCriteriaError$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$]
1199
+ ];
1200
+ export var EventSourceMappingLoggingConfig$ = [3, n0, _ESMLC,
1201
+ 0,
1202
+ [_SLL],
1203
+ [0]
1198
1204
  ];
1199
1205
  export var EventSourceMappingMetricsConfig$ = [3, n0, _ESMMC,
1200
1206
  0,
@@ -2223,8 +2229,8 @@ export var UpdateCodeSigningConfigResponse$ = [3, n0, _UCSCRp,
2223
2229
  ];
2224
2230
  export var UpdateEventSourceMappingRequest$ = [3, n0, _UESMR,
2225
2231
  0,
2226
- [_UUID, _FN, _En, _BSa, _FCi, _MBWIS, _DC, _MRAIS, _BBOFE, _MRA, _PF, _SAC, _TWIS, _FRT, _SC, _AMKESC, _SMKESC, _DDBESC, _KMSKA, _MC, _PPC],
2227
- [[0, 1], 0, 2, 1, () => FilterCriteria$, 1, () => DestinationConfig$, 1, 2, 1, 1, () => SourceAccessConfigurations, 1, 64 | 0, () => ScalingConfig$, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => ProvisionedPollerConfig$], 1
2232
+ [_UUID, _FN, _En, _BSa, _FCi, _MBWIS, _DC, _MRAIS, _BBOFE, _MRA, _PF, _SAC, _TWIS, _FRT, _SC, _AMKESC, _SMKESC, _DDBESC, _KMSKA, _MC, _LC, _PPC],
2233
+ [[0, 1], 0, 2, 1, () => FilterCriteria$, 1, () => DestinationConfig$, 1, 2, 1, 1, () => SourceAccessConfigurations, 1, 64 | 0, () => ScalingConfig$, () => AmazonManagedKafkaEventSourceConfig$, () => SelfManagedKafkaEventSourceConfig$, () => DocumentDBEventSourceConfig$, 0, () => EventSourceMappingMetricsConfig$, () => EventSourceMappingLoggingConfig$, () => ProvisionedPollerConfig$], 1
2228
2234
  ];
2229
2235
  export var UpdateFunctionCodeRequest$ = [3, n0, _UFCR,
2230
2236
  0,