@aws-sdk/client-lambda 3.942.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 (70) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +1037 -83
  3. package/dist-es/Lambda.js +18 -0
  4. package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
  5. package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
  6. package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
  7. package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
  8. package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
  9. package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
  10. package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
  11. package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
  12. package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/enums.js +59 -0
  15. package/dist-es/models/errors.js +32 -0
  16. package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
  17. package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
  18. package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +3 -0
  20. package/dist-es/schemas/schemas_0.js +806 -84
  21. package/dist-types/Lambda.d.ts +63 -0
  22. package/dist-types/LambdaClient.d.ts +11 -2
  23. package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
  24. package/dist-types/commands/CreateFunctionCommand.d.ts +17 -1
  25. package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
  26. package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
  27. package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
  28. package/dist-types/commands/GetFunctionCommand.d.ts +9 -1
  29. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +9 -1
  30. package/dist-types/commands/InvokeCommand.d.ts +7 -0
  31. package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
  32. package/dist-types/commands/ListFunctionsCommand.d.ts +9 -1
  33. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +13 -1
  34. package/dist-types/commands/PublishVersionCommand.d.ts +5 -1
  35. package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
  36. package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
  37. package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
  38. package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
  39. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +5 -1
  40. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +17 -1
  41. package/dist-types/commands/index.d.ts +9 -0
  42. package/dist-types/models/enums.d.ts +99 -0
  43. package/dist-types/models/errors.d.ts +36 -0
  44. package/dist-types/models/models_0.d.ts +1510 -173
  45. package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
  46. package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
  47. package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
  48. package/dist-types/pagination/index.d.ts +3 -0
  49. package/dist-types/schemas/schemas_0.d.ts +90 -0
  50. package/dist-types/ts3.4/Lambda.d.ts +171 -0
  51. package/dist-types/ts3.4/LambdaClient.d.ts +54 -0
  52. package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
  60. package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  62. package/dist-types/ts3.4/models/enums.d.ts +67 -0
  63. package/dist-types/ts3.4/models/errors.d.ts +21 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +322 -0
  65. package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
  66. package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  69. package/dist-types/ts3.4/schemas/schemas_0.d.ts +90 -0
  70. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { StreamingBlobTypes } from "@smithy/types";
2
- import { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourcePosition, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, PackageType, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
2
+ import { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
3
3
  /**
4
4
  * <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
5
5
  * @public
@@ -641,6 +641,407 @@ export interface UpdateCapacityProviderResponse {
641
641
  */
642
642
  CapacityProvider: CapacityProvider | undefined;
643
643
  }
644
+ /**
645
+ * <p>Configuration options for callback operations in durable executions, including timeout settings and retry behavior.</p>
646
+ * @public
647
+ */
648
+ export interface CallbackOptions {
649
+ /**
650
+ * <p>The timeout for the callback operation in seconds. If not specified or set to 0, the callback has no timeout.</p>
651
+ * @public
652
+ */
653
+ TimeoutSeconds?: number | undefined;
654
+ /**
655
+ * <p>The heartbeat timeout for the callback operation, in seconds. If not specified or set to 0, heartbeat timeout is disabled.</p>
656
+ * @public
657
+ */
658
+ HeartbeatTimeoutSeconds?: number | undefined;
659
+ }
660
+ /**
661
+ * <p>Configuration options for chained function invocations in durable executions, including retry settings and timeout configuration.</p>
662
+ * @public
663
+ */
664
+ export interface ChainedInvokeOptions {
665
+ /**
666
+ * <p>The name or ARN of the Lambda function to invoke.</p>
667
+ * @public
668
+ */
669
+ FunctionName: string | undefined;
670
+ /**
671
+ * <p>The tenant identifier for the chained invocation.</p>
672
+ * @public
673
+ */
674
+ TenantId?: string | undefined;
675
+ }
676
+ /**
677
+ * <p>Configuration options for a durable execution context.</p>
678
+ * @public
679
+ */
680
+ export interface ContextOptions {
681
+ /**
682
+ * <p>Whether the state data of children of the completed context should be included in the invoke payload and <code>GetDurableExecutionState</code> response.</p>
683
+ * @public
684
+ */
685
+ ReplayChildren?: boolean | undefined;
686
+ }
687
+ /**
688
+ * <p>An object that contains error information.</p>
689
+ * @public
690
+ */
691
+ export interface ErrorObject {
692
+ /**
693
+ * <p>A human-readable error message.</p>
694
+ * @public
695
+ */
696
+ ErrorMessage?: string | undefined;
697
+ /**
698
+ * <p>The error type.</p>
699
+ * @public
700
+ */
701
+ ErrorType?: string | undefined;
702
+ /**
703
+ * <p>Machine-readable error data.</p>
704
+ * @public
705
+ */
706
+ ErrorData?: string | undefined;
707
+ /**
708
+ * <p>Stack trace information for the error.</p>
709
+ * @public
710
+ */
711
+ StackTrace?: string[] | undefined;
712
+ }
713
+ /**
714
+ * <p>Configuration options for a step operation.</p>
715
+ * @public
716
+ */
717
+ export interface StepOptions {
718
+ /**
719
+ * <p>The delay in seconds before the next retry attempt.</p>
720
+ * @public
721
+ */
722
+ NextAttemptDelaySeconds?: number | undefined;
723
+ }
724
+ /**
725
+ * <p>Specifies how long to pause the durable execution.</p>
726
+ * @public
727
+ */
728
+ export interface WaitOptions {
729
+ /**
730
+ * <p>The duration to wait, in seconds.</p>
731
+ * @public
732
+ */
733
+ WaitSeconds?: number | undefined;
734
+ }
735
+ /**
736
+ * <p>An update to be applied to an operation during checkpointing.</p>
737
+ * @public
738
+ */
739
+ export interface OperationUpdate {
740
+ /**
741
+ * <p>The unique identifier for this operation.</p>
742
+ * @public
743
+ */
744
+ Id: string | undefined;
745
+ /**
746
+ * <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
747
+ * @public
748
+ */
749
+ ParentId?: string | undefined;
750
+ /**
751
+ * <p>The customer-provided name for this operation.</p>
752
+ * @public
753
+ */
754
+ Name?: string | undefined;
755
+ /**
756
+ * <p>The type of operation to update.</p>
757
+ * @public
758
+ */
759
+ Type: OperationType | undefined;
760
+ /**
761
+ * <p>The subtype of the operation, providing additional categorization.</p>
762
+ * @public
763
+ */
764
+ SubType?: string | undefined;
765
+ /**
766
+ * <p>The action to take on the operation.</p>
767
+ * @public
768
+ */
769
+ Action: OperationAction | undefined;
770
+ /**
771
+ * <p>The payload for successful operations.</p>
772
+ * @public
773
+ */
774
+ Payload?: string | undefined;
775
+ /**
776
+ * <p>The error information for failed operations.</p>
777
+ * @public
778
+ */
779
+ Error?: ErrorObject | undefined;
780
+ /**
781
+ * <p>Options for context operations.</p>
782
+ * @public
783
+ */
784
+ ContextOptions?: ContextOptions | undefined;
785
+ /**
786
+ * <p>Options for step operations.</p>
787
+ * @public
788
+ */
789
+ StepOptions?: StepOptions | undefined;
790
+ /**
791
+ * <p>Options for wait operations.</p>
792
+ * @public
793
+ */
794
+ WaitOptions?: WaitOptions | undefined;
795
+ /**
796
+ * <p>Configuration options for callback operations in durable executions, including timeout settings and retry behavior.</p>
797
+ * @public
798
+ */
799
+ CallbackOptions?: CallbackOptions | undefined;
800
+ /**
801
+ * <p>Configuration options for chained function invocations in durable executions, including retry settings and timeout configuration.</p>
802
+ * @public
803
+ */
804
+ ChainedInvokeOptions?: ChainedInvokeOptions | undefined;
805
+ }
806
+ /**
807
+ * @public
808
+ */
809
+ export interface CheckpointDurableExecutionRequest {
810
+ /**
811
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
812
+ * @public
813
+ */
814
+ DurableExecutionArn: string | undefined;
815
+ /**
816
+ * <p>A unique token that identifies the current checkpoint state. This token is provided by the Lambda runtime and must be used to ensure checkpoints are applied in the correct order. Each checkpoint operation consumes this token and returns a new one.</p>
817
+ * @public
818
+ */
819
+ CheckpointToken: string | undefined;
820
+ /**
821
+ * <p>An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.</p>
822
+ * @public
823
+ */
824
+ Updates?: OperationUpdate[] | undefined;
825
+ /**
826
+ * <p>An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. If provided, Lambda uses this token to detect and handle duplicate requests within a 15-minute window.</p>
827
+ * @public
828
+ */
829
+ ClientToken?: string | undefined;
830
+ }
831
+ /**
832
+ * <p>Contains details about a callback operation in a durable execution, including the callback token and timeout configuration.</p>
833
+ * @public
834
+ */
835
+ export interface CallbackDetails {
836
+ /**
837
+ * <p>The callback ID. Callback IDs are generated by the <code>DurableContext</code> when a durable function calls <code>ctx.waitForCallback</code>.</p>
838
+ * @public
839
+ */
840
+ CallbackId?: string | undefined;
841
+ /**
842
+ * <p>The response payload from the callback operation as a string.</p>
843
+ * @public
844
+ */
845
+ Result?: string | undefined;
846
+ /**
847
+ * <p>An error object that contains details about the failure.</p>
848
+ * @public
849
+ */
850
+ Error?: ErrorObject | undefined;
851
+ }
852
+ /**
853
+ * <p>Contains details about a chained function invocation in a durable execution, including the target function and invocation parameters.</p>
854
+ * @public
855
+ */
856
+ export interface ChainedInvokeDetails {
857
+ /**
858
+ * <p>The response payload from the chained invocation.</p>
859
+ * @public
860
+ */
861
+ Result?: string | undefined;
862
+ /**
863
+ * <p>Details about the chained invocation failure.</p>
864
+ * @public
865
+ */
866
+ Error?: ErrorObject | undefined;
867
+ }
868
+ /**
869
+ * <p>Details about a durable execution context.</p>
870
+ * @public
871
+ */
872
+ export interface ContextDetails {
873
+ /**
874
+ * <p>Whether the state data of child operations of this completed context should be included in the invoke payload and <code>GetDurableExecutionState</code> response.</p>
875
+ * @public
876
+ */
877
+ ReplayChildren?: boolean | undefined;
878
+ /**
879
+ * <p>The response payload from the context.</p>
880
+ * @public
881
+ */
882
+ Result?: string | undefined;
883
+ /**
884
+ * <p>Details about the context failure.</p>
885
+ * @public
886
+ */
887
+ Error?: ErrorObject | undefined;
888
+ }
889
+ /**
890
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>.</p>
891
+ * @public
892
+ */
893
+ export interface ExecutionDetails {
894
+ /**
895
+ * <p>The original input payload provided for the durable execution.</p>
896
+ * @public
897
+ */
898
+ InputPayload?: string | undefined;
899
+ }
900
+ /**
901
+ * <p>Details about a step operation.</p>
902
+ * @public
903
+ */
904
+ export interface StepDetails {
905
+ /**
906
+ * <p>The current attempt number for this step.</p>
907
+ * @public
908
+ */
909
+ Attempt?: number | undefined;
910
+ /**
911
+ * <p>The date and time when the next attempt is scheduled, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD). Only populated when the step is in a pending state.</p>
912
+ * @public
913
+ */
914
+ NextAttemptTimestamp?: Date | undefined;
915
+ /**
916
+ * <p>The JSON response payload from the step operation.</p>
917
+ * @public
918
+ */
919
+ Result?: string | undefined;
920
+ /**
921
+ * <p>Details about the step failure.</p>
922
+ * @public
923
+ */
924
+ Error?: ErrorObject | undefined;
925
+ }
926
+ /**
927
+ * <p>Details about a wait operation.</p>
928
+ * @public
929
+ */
930
+ export interface WaitDetails {
931
+ /**
932
+ * <p>The date and time when the wait operation is scheduled to complete, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
933
+ * @public
934
+ */
935
+ ScheduledEndTimestamp?: Date | undefined;
936
+ }
937
+ /**
938
+ * <p>Information about an operation within a durable execution.</p>
939
+ * @public
940
+ */
941
+ export interface Operation {
942
+ /**
943
+ * <p>The unique identifier for this operation.</p>
944
+ * @public
945
+ */
946
+ Id: string | undefined;
947
+ /**
948
+ * <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
949
+ * @public
950
+ */
951
+ ParentId?: string | undefined;
952
+ /**
953
+ * <p>The customer-provided name for this operation.</p>
954
+ * @public
955
+ */
956
+ Name?: string | undefined;
957
+ /**
958
+ * <p>The type of operation.</p>
959
+ * @public
960
+ */
961
+ Type: OperationType | undefined;
962
+ /**
963
+ * <p>The subtype of the operation, providing additional categorization.</p>
964
+ * @public
965
+ */
966
+ SubType?: string | undefined;
967
+ /**
968
+ * <p>The date and time when the operation started, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
969
+ * @public
970
+ */
971
+ StartTimestamp: Date | undefined;
972
+ /**
973
+ * <p>The date and time when the operation ended, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
974
+ * @public
975
+ */
976
+ EndTimestamp?: Date | undefined;
977
+ /**
978
+ * <p>The current status of the operation.</p>
979
+ * @public
980
+ */
981
+ Status: OperationStatus | undefined;
982
+ /**
983
+ * <p>Details about the execution, if this operation represents an execution.</p>
984
+ * @public
985
+ */
986
+ ExecutionDetails?: ExecutionDetails | undefined;
987
+ /**
988
+ * <p>Details about the context, if this operation represents a context.</p>
989
+ * @public
990
+ */
991
+ ContextDetails?: ContextDetails | undefined;
992
+ /**
993
+ * <p>Details about the step, if this operation represents a step.</p>
994
+ * @public
995
+ */
996
+ StepDetails?: StepDetails | undefined;
997
+ /**
998
+ * <p>Details about the wait operation, if this operation represents a wait.</p>
999
+ * @public
1000
+ */
1001
+ WaitDetails?: WaitDetails | undefined;
1002
+ /**
1003
+ * <p>Contains details about a callback operation in a durable execution, including the callback token and timeout configuration.</p>
1004
+ * @public
1005
+ */
1006
+ CallbackDetails?: CallbackDetails | undefined;
1007
+ /**
1008
+ * <p>Contains details about a chained function invocation in a durable execution, including the target function and invocation parameters.</p>
1009
+ * @public
1010
+ */
1011
+ ChainedInvokeDetails?: ChainedInvokeDetails | undefined;
1012
+ }
1013
+ /**
1014
+ * <p>Contains operations that have been updated since the last checkpoint, such as completed asynchronous work like timers or callbacks.</p>
1015
+ * @public
1016
+ */
1017
+ export interface CheckpointUpdatedExecutionState {
1018
+ /**
1019
+ * <p>A list of operations that have been updated since the last checkpoint.</p>
1020
+ * @public
1021
+ */
1022
+ Operations?: Operation[] | undefined;
1023
+ /**
1024
+ * <p>Indicates that more results are available. Use this value in a subsequent call to retrieve the next page of results.</p>
1025
+ * @public
1026
+ */
1027
+ NextMarker?: string | undefined;
1028
+ }
1029
+ /**
1030
+ * <p>The response from the CheckpointDurableExecution operation.</p>
1031
+ * @public
1032
+ */
1033
+ export interface CheckpointDurableExecutionResponse {
1034
+ /**
1035
+ * <p>A new checkpoint token to use for the next checkpoint operation. This token replaces the one provided in the request and must be used for subsequent checkpoints to maintain proper ordering.</p>
1036
+ * @public
1037
+ */
1038
+ CheckpointToken?: string | undefined;
1039
+ /**
1040
+ * <p>Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. This allows the SDK to update its internal state during replay.</p>
1041
+ * @public
1042
+ */
1043
+ NewExecutionState: CheckpointUpdatedExecutionState | undefined;
1044
+ }
644
1045
  /**
645
1046
  * <p>Code signing configuration <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies">policies</a> specify the validation failure action for signature mismatch or expiry.</p>
646
1047
  * @public
@@ -1637,12 +2038,28 @@ export interface DeadLetterConfig {
1637
2038
  TargetArn?: string | undefined;
1638
2039
  }
1639
2040
  /**
1640
- * <p>A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.</p>
2041
+ * <p>Configuration settings for <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable functions</a>, including execution timeout and retention period for execution history.</p>
1641
2042
  * @public
1642
2043
  */
1643
- export interface Environment {
2044
+ export interface DurableConfig {
1644
2045
  /**
1645
- * <p>Environment variable key-value pairs. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">Using Lambda environment variables</a>.</p>
2046
+ * <p>The number of days to retain execution history after a durable execution completes. After this period, execution history is no longer available through the GetDurableExecutionHistory API.</p>
2047
+ * @public
2048
+ */
2049
+ RetentionPeriodInDays?: number | undefined;
2050
+ /**
2051
+ * <p>The maximum time (in seconds) that a durable execution can run before timing out. This timeout applies to the entire durable execution, not individual function invocations.</p>
2052
+ * @public
2053
+ */
2054
+ ExecutionTimeout?: number | undefined;
2055
+ }
2056
+ /**
2057
+ * <p>A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.</p>
2058
+ * @public
2059
+ */
2060
+ export interface Environment {
2061
+ /**
2062
+ * <p>Environment variable key-value pairs. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">Using Lambda environment variables</a>.</p>
1646
2063
  * @public
1647
2064
  */
1648
2065
  Variables?: Record<string, string> | undefined;
@@ -1909,6 +2326,11 @@ export interface CreateFunctionRequest {
1909
2326
  * @public
1910
2327
  */
1911
2328
  PublishTo?: FunctionVersionLatestPublished | undefined;
2329
+ /**
2330
+ * <p>Configuration settings for durable functions. Enables creating functions with durability that can remember their state and continue execution even after interruptions.</p>
2331
+ * @public
2332
+ */
2333
+ DurableConfig?: DurableConfig | undefined;
1912
2334
  /**
1913
2335
  * <p>Configuration for multi-tenant applications that use Lambda functions. Defines tenant isolation settings and resource allocations. Required for functions supporting multiple tenants.</p>
1914
2336
  * @public
@@ -2285,6 +2707,11 @@ export interface FunctionConfiguration {
2285
2707
  * @public
2286
2708
  */
2287
2709
  ConfigSha256?: string | undefined;
2710
+ /**
2711
+ * <p>The function's durable execution configuration settings, if the function is configured for durability.</p>
2712
+ * @public
2713
+ */
2714
+ DurableConfig?: DurableConfig | undefined;
2288
2715
  /**
2289
2716
  * <p>The function's tenant isolation configuration settings. Determines whether the Lambda function runs on a shared or dedicated infrastructure per unique tenant.</p>
2290
2717
  * @public
@@ -2804,6 +3231,11 @@ export interface InvocationRequest {
2804
3231
  * @public
2805
3232
  */
2806
3233
  ClientContext?: string | undefined;
3234
+ /**
3235
+ * <p>Optional unique name for the durable execution. When you start your special function, you can give it a unique name to identify this specific execution. It's like giving a nickname to a task.</p>
3236
+ * @public
3237
+ */
3238
+ DurableExecutionName?: string | undefined;
2807
3239
  /**
2808
3240
  * <p>The JSON that you want to provide to your Lambda function as input. The maximum payload size is 6 MB for synchronous invocations and 1 MB for asynchronous invocations.</p> <p>You can enter the JSON directly. For example, <code>--payload '\{ "key": "value" \}'</code>. You can also specify a file path. For example, <code>--payload file://payload.json</code>.</p>
2809
3241
  * @public
@@ -2849,6 +3281,11 @@ export interface InvocationResponse {
2849
3281
  * @public
2850
3282
  */
2851
3283
  ExecutedVersion?: string | undefined;
3284
+ /**
3285
+ * <p>The ARN of the durable execution that was started. This is returned when invoking a durable function and provides a unique identifier for tracking the execution.</p>
3286
+ * @public
3287
+ */
3288
+ DurableExecutionArn?: string | undefined;
2852
3289
  }
2853
3290
  /**
2854
3291
  * @public
@@ -3527,6 +3964,11 @@ export interface UpdateFunctionConfigurationRequest {
3527
3964
  * @public
3528
3965
  */
3529
3966
  CapacityProviderConfig?: CapacityProviderConfig | undefined;
3967
+ /**
3968
+ * <p>Configuration settings for durable functions. Allows updating execution timeout and retention period for functions with durability enabled.</p>
3969
+ * @public
3970
+ */
3971
+ DurableConfig?: DurableConfig | undefined;
3530
3972
  }
3531
3973
  /**
3532
3974
  * @public
@@ -3821,388 +4263,1101 @@ export interface GetAccountSettingsResponse {
3821
4263
  /**
3822
4264
  * @public
3823
4265
  */
3824
- export interface FunctionEventInvokeConfig {
3825
- /**
3826
- * <p>The date and time that the configuration was last updated.</p>
3827
- * @public
3828
- */
3829
- LastModified?: Date | undefined;
3830
- /**
3831
- * <p>The Amazon Resource Name (ARN) of the function.</p>
3832
- * @public
3833
- */
3834
- FunctionArn?: string | undefined;
3835
- /**
3836
- * <p>The maximum number of times to retry when the function returns an error.</p>
3837
- * @public
3838
- */
3839
- MaximumRetryAttempts?: number | undefined;
3840
- /**
3841
- * <p>The maximum age of a request that Lambda sends to a function for processing.</p>
3842
- * @public
3843
- */
3844
- MaximumEventAgeInSeconds?: number | undefined;
4266
+ export interface GetDurableExecutionRequest {
3845
4267
  /**
3846
- * <p>A destination for events after they have been sent to a function for processing.</p> <p class="title"> <b>Destinations</b> </p> <ul> <li> <p> <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li> <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p> <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p> </li> <li> <p> <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul> <note> <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p> </note>
4268
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
3847
4269
  * @public
3848
4270
  */
3849
- DestinationConfig?: DestinationConfig | undefined;
4271
+ DurableExecutionArn: string | undefined;
3850
4272
  }
3851
4273
  /**
4274
+ * <p>Contains trace headers for the Lambda durable execution.</p>
3852
4275
  * @public
3853
4276
  */
3854
- export interface GetFunctionEventInvokeConfigRequest {
3855
- /**
3856
- * <p>The name or ARN 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>
3857
- * @public
3858
- */
3859
- FunctionName: string | undefined;
4277
+ export interface TraceHeader {
3860
4278
  /**
3861
- * <p>A version number or alias name.</p>
4279
+ * <p>The X-Ray trace header associated with the durable execution.</p>
3862
4280
  * @public
3863
4281
  */
3864
- Qualifier?: string | undefined;
4282
+ XAmznTraceId?: string | undefined;
3865
4283
  }
3866
4284
  /**
4285
+ * <p>The response from the GetDurableExecution operation, containing detailed information about the durable execution.</p>
3867
4286
  * @public
3868
4287
  */
3869
- export interface ListLayersRequest {
4288
+ export interface GetDurableExecutionResponse {
3870
4289
  /**
3871
- * <p>A runtime identifier.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
4290
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
3872
4291
  * @public
3873
4292
  */
3874
- CompatibleRuntime?: Runtime | undefined;
4293
+ DurableExecutionArn: string | undefined;
3875
4294
  /**
3876
- * <p>A pagination token returned by a previous call.</p>
4295
+ * <p>The name of the durable execution. This is either the name you provided when invoking the function, or a system-generated unique identifier if no name was provided.</p>
3877
4296
  * @public
3878
4297
  */
3879
- Marker?: string | undefined;
4298
+ DurableExecutionName: string | undefined;
3880
4299
  /**
3881
- * <p>The maximum number of layers to return.</p>
4300
+ * <p>The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution.</p>
3882
4301
  * @public
3883
4302
  */
3884
- MaxItems?: number | undefined;
4303
+ FunctionArn: string | undefined;
3885
4304
  /**
3886
- * <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
4305
+ * <p>The JSON input payload that was provided when the durable execution was started. For asynchronous invocations, this is limited to 256 KB. For synchronous invocations, this can be up to 6 MB.</p>
3887
4306
  * @public
3888
4307
  */
3889
- CompatibleArchitecture?: Architecture | undefined;
3890
- }
3891
- /**
3892
- * <p>Details about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
3893
- * @public
3894
- */
3895
- export interface LayerVersionsListItem {
4308
+ InputPayload?: string | undefined;
3896
4309
  /**
3897
- * <p>The ARN of the layer version.</p>
4310
+ * <p>The JSON result returned by the durable execution if it completed successfully. This field is only present when the execution status is <code>SUCCEEDED</code>. The result is limited to 256 KB.</p>
3898
4311
  * @public
3899
4312
  */
3900
- LayerVersionArn?: string | undefined;
4313
+ Result?: string | undefined;
3901
4314
  /**
3902
- * <p>The version number.</p>
4315
+ * <p>Error information if the durable execution failed. This field is only present when the execution status is <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>STOPPED</code>. The combined size of all error fields is limited to 256 KB.</p>
3903
4316
  * @public
3904
4317
  */
3905
- Version?: number | undefined;
4318
+ Error?: ErrorObject | undefined;
3906
4319
  /**
3907
- * <p>The description of the version.</p>
4320
+ * <p>The date and time when the durable execution started, in Unix timestamp format.</p>
3908
4321
  * @public
3909
4322
  */
3910
- Description?: string | undefined;
4323
+ StartTimestamp: Date | undefined;
3911
4324
  /**
3912
- * <p>The date that the version was created, in ISO 8601 format. For example, <code>2018-11-27T15:10:45.123+0000</code>.</p>
4325
+ * <p>The current status of the durable execution. Valid values are <code>RUNNING</code>, <code>SUCCEEDED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, and <code>STOPPED</code>.</p>
3913
4326
  * @public
3914
4327
  */
3915
- CreatedDate?: string | undefined;
4328
+ Status: ExecutionStatus | undefined;
3916
4329
  /**
3917
- * <p>The layer's compatible runtimes.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
4330
+ * <p>The date and time when the durable execution ended, in Unix timestamp format. This field is only present if the execution has completed (status is <code>SUCCEEDED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>STOPPED</code>).</p>
3918
4331
  * @public
3919
4332
  */
3920
- CompatibleRuntimes?: Runtime[] | undefined;
4333
+ EndTimestamp?: Date | undefined;
3921
4334
  /**
3922
- * <p>The layer's open-source license.</p>
4335
+ * <p>The version of the Lambda function that was invoked for this durable execution. This ensures that all replays during the execution use the same function version.</p>
3923
4336
  * @public
3924
4337
  */
3925
- LicenseInfo?: string | undefined;
4338
+ Version?: string | undefined;
3926
4339
  /**
3927
- * <p>A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architectures</a>.</p>
4340
+ * <p>The trace headers associated with the durable execution.</p>
3928
4341
  * @public
3929
4342
  */
3930
- CompatibleArchitectures?: Architecture[] | undefined;
4343
+ TraceHeader?: TraceHeader | undefined;
3931
4344
  }
3932
4345
  /**
3933
- * <p>Details about an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
3934
4346
  * @public
3935
4347
  */
3936
- export interface LayersListItem {
4348
+ export interface GetDurableExecutionHistoryRequest {
3937
4349
  /**
3938
- * <p>The name of the layer.</p>
4350
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
3939
4351
  * @public
3940
4352
  */
3941
- LayerName?: string | undefined;
4353
+ DurableExecutionArn: string | undefined;
3942
4354
  /**
3943
- * <p>The Amazon Resource Name (ARN) of the function layer.</p>
4355
+ * <p>Specifies whether to include execution data such as step results and callback payloads in the history events. Set to <code>true</code> to include data, or <code>false</code> to exclude it for a more compact response. The default is <code>true</code>.</p>
3944
4356
  * @public
3945
4357
  */
3946
- LayerArn?: string | undefined;
4358
+ IncludeExecutionData?: boolean | undefined;
3947
4359
  /**
3948
- * <p>The newest version of the layer.</p>
4360
+ * <p>The maximum number of history events to return per call. You can use <code>Marker</code> to retrieve additional pages of results. The default is 100 and the maximum allowed is 1000. A value of 0 uses the default.</p>
3949
4361
  * @public
3950
4362
  */
3951
- LatestMatchingVersion?: LayerVersionsListItem | undefined;
3952
- }
3953
- /**
3954
- * @public
3955
- */
3956
- export interface ListLayersResponse {
4363
+ MaxItems?: number | undefined;
3957
4364
  /**
3958
- * <p>A pagination token returned when the response doesn't contain all layers.</p>
4365
+ * <p>If <code>NextMarker</code> was returned from a previous request, use this value to retrieve the next page of results. Each pagination token expires after 24 hours.</p>
3959
4366
  * @public
3960
4367
  */
3961
- NextMarker?: string | undefined;
4368
+ Marker?: string | undefined;
3962
4369
  /**
3963
- * <p>A list of function layers.</p>
4370
+ * <p>When set to <code>true</code>, returns the history events in reverse chronological order (newest first). By default, events are returned in chronological order (oldest first).</p>
3964
4371
  * @public
3965
4372
  */
3966
- Layers?: LayersListItem[] | undefined;
4373
+ ReverseOrder?: boolean | undefined;
3967
4374
  }
3968
4375
  /**
4376
+ * <p>Error information for an event.</p>
3969
4377
  * @public
3970
4378
  */
3971
- export interface DeleteLayerVersionRequest {
4379
+ export interface EventError {
3972
4380
  /**
3973
- * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
4381
+ * <p>The error payload.</p>
3974
4382
  * @public
3975
4383
  */
3976
- LayerName: string | undefined;
4384
+ Payload?: ErrorObject | undefined;
3977
4385
  /**
3978
- * <p>The version number.</p>
4386
+ * <p>Indicates if the error payload was truncated due to size limits.</p>
3979
4387
  * @public
3980
4388
  */
3981
- VersionNumber: number | undefined;
4389
+ Truncated?: boolean | undefined;
3982
4390
  }
3983
4391
  /**
4392
+ * <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
3984
4393
  * @public
3985
4394
  */
3986
- export interface GetLayerVersionRequest {
3987
- /**
3988
- * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
3989
- * @public
3990
- */
3991
- LayerName: string | undefined;
4395
+ export interface CallbackFailedDetails {
3992
4396
  /**
3993
- * <p>The version number.</p>
4397
+ * <p>An error object that contains details about the failure.</p>
3994
4398
  * @public
3995
4399
  */
3996
- VersionNumber: number | undefined;
4400
+ Error: EventError | undefined;
3997
4401
  }
3998
4402
  /**
3999
- * <p>Details about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
4403
+ * <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
4000
4404
  * @public
4001
4405
  */
4002
- export interface LayerVersionContentOutput {
4406
+ export interface CallbackStartedDetails {
4003
4407
  /**
4004
- * <p>A link to the layer archive in Amazon S3 that is valid for 10 minutes.</p>
4408
+ * <p>The callback ID. Callback IDs are generated by the <code>DurableContext</code> when a durable function calls <code>ctx.waitForCallback</code>.</p>
4005
4409
  * @public
4006
4410
  */
4007
- Location?: string | undefined;
4411
+ CallbackId: string | undefined;
4008
4412
  /**
4009
- * <p>The SHA-256 hash of the layer archive.</p>
4413
+ * <p>The heartbeat timeout value, in seconds.</p>
4010
4414
  * @public
4011
4415
  */
4012
- CodeSha256?: string | undefined;
4416
+ HeartbeatTimeout?: number | undefined;
4013
4417
  /**
4014
- * <p>The size of the layer archive in bytes.</p>
4418
+ * <p>The timeout value, in seconds.</p>
4015
4419
  * @public
4016
4420
  */
4017
- CodeSize?: number | undefined;
4421
+ Timeout?: number | undefined;
4422
+ }
4423
+ /**
4424
+ * <p>Result information for an event.</p>
4425
+ * @public
4426
+ */
4427
+ export interface EventResult {
4018
4428
  /**
4019
- * <p>The Amazon Resource Name (ARN) for a signing profile version.</p>
4429
+ * <p>The result payload.</p>
4020
4430
  * @public
4021
4431
  */
4022
- SigningProfileVersionArn?: string | undefined;
4432
+ Payload?: string | undefined;
4023
4433
  /**
4024
- * <p>The Amazon Resource Name (ARN) of a signing job.</p>
4434
+ * <p>Indicates if the error payload was truncated due to size limits.</p>
4025
4435
  * @public
4026
4436
  */
4027
- SigningJobArn?: string | undefined;
4437
+ Truncated?: boolean | undefined;
4028
4438
  }
4029
4439
  /**
4440
+ * <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
4030
4441
  * @public
4031
4442
  */
4032
- export interface GetLayerVersionResponse {
4443
+ export interface CallbackSucceededDetails {
4033
4444
  /**
4034
- * <p>Details about the layer version.</p>
4445
+ * <p>The response payload from the successful operation.</p>
4035
4446
  * @public
4036
4447
  */
4037
- Content?: LayerVersionContentOutput | undefined;
4448
+ Result: EventResult | undefined;
4449
+ }
4450
+ /**
4451
+ * <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
4452
+ * @public
4453
+ */
4454
+ export interface CallbackTimedOutDetails {
4038
4455
  /**
4039
- * <p>The ARN of the layer.</p>
4456
+ * <p>Details about the callback timeout.</p>
4040
4457
  * @public
4041
4458
  */
4042
- LayerArn?: string | undefined;
4459
+ Error: EventError | undefined;
4460
+ }
4461
+ /**
4462
+ * <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
4463
+ * @public
4464
+ */
4465
+ export interface ChainedInvokeFailedDetails {
4043
4466
  /**
4044
- * <p>The ARN of the layer version.</p>
4467
+ * <p>Details about the chained invocation failure.</p>
4045
4468
  * @public
4046
4469
  */
4047
- LayerVersionArn?: string | undefined;
4470
+ Error: EventError | undefined;
4471
+ }
4472
+ /**
4473
+ * <p>Input information for an event.</p>
4474
+ * @public
4475
+ */
4476
+ export interface EventInput {
4048
4477
  /**
4049
- * <p>The description of the version.</p>
4478
+ * <p>The input payload.</p>
4050
4479
  * @public
4051
4480
  */
4052
- Description?: string | undefined;
4481
+ Payload?: string | undefined;
4053
4482
  /**
4054
- * <p>The date that the layer version was created, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
4483
+ * <p>Indicates if the error payload was truncated due to size limits.</p>
4055
4484
  * @public
4056
4485
  */
4057
- CreatedDate?: string | undefined;
4486
+ Truncated?: boolean | undefined;
4487
+ }
4488
+ /**
4489
+ * <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
4490
+ * @public
4491
+ */
4492
+ export interface ChainedInvokeStartedDetails {
4058
4493
  /**
4059
- * <p>The version number.</p>
4494
+ * <p>The name or ARN of the Lambda function being invoked.</p>
4060
4495
  * @public
4061
4496
  */
4062
- Version?: number | undefined;
4497
+ FunctionName: string | undefined;
4063
4498
  /**
4064
- * <p>The layer's compatible runtimes.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
4499
+ * <p>The tenant identifier for the chained invocation.</p>
4065
4500
  * @public
4066
4501
  */
4067
- CompatibleRuntimes?: Runtime[] | undefined;
4502
+ TenantId?: string | undefined;
4068
4503
  /**
4069
- * <p>The layer's software license.</p>
4504
+ * <p>The JSON input payload provided to the chained invocation.</p>
4070
4505
  * @public
4071
4506
  */
4072
- LicenseInfo?: string | undefined;
4507
+ Input?: EventInput | undefined;
4073
4508
  /**
4074
- * <p>A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architectures</a>.</p>
4509
+ * <p>The version of the function that was executed.</p>
4075
4510
  * @public
4076
4511
  */
4077
- CompatibleArchitectures?: Architecture[] | undefined;
4512
+ ExecutedVersion?: string | undefined;
4513
+ /**
4514
+ * <p>The Amazon Resource Name (ARN) that identifies the durable execution.</p>
4515
+ * @public
4516
+ */
4517
+ DurableExecutionArn?: string | undefined;
4078
4518
  }
4079
4519
  /**
4520
+ * <p>Details about a chained invocation that was stopped.</p>
4080
4521
  * @public
4081
4522
  */
4082
- export interface GetLayerVersionByArnRequest {
4523
+ export interface ChainedInvokeStoppedDetails {
4083
4524
  /**
4084
- * <p>The ARN of the layer version.</p>
4525
+ * <p>Details about why the chained invocation stopped.</p>
4085
4526
  * @public
4086
4527
  */
4087
- Arn: string | undefined;
4528
+ Error: EventError | undefined;
4088
4529
  }
4089
4530
  /**
4531
+ * <p>Details about a chained invocation that succeeded.</p>
4090
4532
  * @public
4091
4533
  */
4092
- export interface GetLayerVersionPolicyRequest {
4534
+ export interface ChainedInvokeSucceededDetails {
4093
4535
  /**
4094
- * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
4095
- * @public
4096
- */
4097
- LayerName: string | undefined;
4098
- /**
4099
- * <p>The version number.</p>
4536
+ * <p>The response payload from the successful operation.</p>
4100
4537
  * @public
4101
4538
  */
4102
- VersionNumber: number | undefined;
4539
+ Result: EventResult | undefined;
4103
4540
  }
4104
4541
  /**
4542
+ * <p>Details about a chained invocation that timed out.</p>
4105
4543
  * @public
4106
4544
  */
4107
- export interface GetLayerVersionPolicyResponse {
4545
+ export interface ChainedInvokeTimedOutDetails {
4108
4546
  /**
4109
- * <p>The policy document.</p>
4547
+ * <p>Details about the chained invocation timeout.</p>
4110
4548
  * @public
4111
4549
  */
4112
- Policy?: string | undefined;
4550
+ Error: EventError | undefined;
4551
+ }
4552
+ /**
4553
+ * <p>Details about a context that failed.</p>
4554
+ * @public
4555
+ */
4556
+ export interface ContextFailedDetails {
4113
4557
  /**
4114
- * <p>A unique identifier for the current revision of the policy.</p>
4558
+ * <p>Details about the context failure.</p>
4115
4559
  * @public
4116
4560
  */
4117
- RevisionId?: string | undefined;
4561
+ Error: EventError | undefined;
4118
4562
  }
4119
4563
  /**
4564
+ * <p>Details about a context that has started.</p>
4120
4565
  * @public
4121
4566
  */
4122
- export interface ListLayerVersionsRequest {
4567
+ export interface ContextStartedDetails {
4568
+ }
4569
+ /**
4570
+ * <p>Details about a context that succeeded.</p>
4571
+ * @public
4572
+ */
4573
+ export interface ContextSucceededDetails {
4123
4574
  /**
4124
- * <p>A runtime identifier.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
4575
+ * <p>The JSON response payload from the successful context.</p>
4125
4576
  * @public
4126
4577
  */
4127
- CompatibleRuntime?: Runtime | undefined;
4578
+ Result: EventResult | undefined;
4579
+ }
4580
+ /**
4581
+ * <p>Details about a failed <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>.</p>
4582
+ * @public
4583
+ */
4584
+ export interface ExecutionFailedDetails {
4128
4585
  /**
4129
- * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
4586
+ * <p>Details about the execution failure.</p>
4130
4587
  * @public
4131
4588
  */
4132
- LayerName: string | undefined;
4589
+ Error: EventError | undefined;
4590
+ }
4591
+ /**
4592
+ * <p>Details about a durable execution that started.</p>
4593
+ * @public
4594
+ */
4595
+ export interface ExecutionStartedDetails {
4133
4596
  /**
4134
- * <p>A pagination token returned by a previous call.</p>
4597
+ * <p>The input payload provided for the durable execution.</p>
4135
4598
  * @public
4136
4599
  */
4137
- Marker?: string | undefined;
4600
+ Input: EventInput | undefined;
4138
4601
  /**
4139
- * <p>The maximum number of versions to return.</p>
4602
+ * <p>The maximum amount of time that the durable execution is allowed to run, in seconds.</p>
4140
4603
  * @public
4141
4604
  */
4142
- MaxItems?: number | undefined;
4605
+ ExecutionTimeout: number | undefined;
4606
+ }
4607
+ /**
4608
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that stopped.</p>
4609
+ * @public
4610
+ */
4611
+ export interface ExecutionStoppedDetails {
4143
4612
  /**
4144
- * <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
4613
+ * <p>Details about why the execution stopped.</p>
4145
4614
  * @public
4146
4615
  */
4147
- CompatibleArchitecture?: Architecture | undefined;
4616
+ Error: EventError | undefined;
4148
4617
  }
4149
4618
  /**
4619
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that succeeded.</p>
4150
4620
  * @public
4151
4621
  */
4152
- export interface ListLayerVersionsResponse {
4622
+ export interface ExecutionSucceededDetails {
4153
4623
  /**
4154
- * <p>A pagination token returned when the response doesn't contain all versions.</p>
4624
+ * <p>The response payload from the successful operation.</p>
4155
4625
  * @public
4156
4626
  */
4157
- NextMarker?: string | undefined;
4627
+ Result: EventResult | undefined;
4628
+ }
4629
+ /**
4630
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that timed out.</p>
4631
+ * @public
4632
+ */
4633
+ export interface ExecutionTimedOutDetails {
4158
4634
  /**
4159
- * <p>A list of versions.</p>
4635
+ * <p>Details about the execution timeout.</p>
4160
4636
  * @public
4161
4637
  */
4162
- LayerVersions?: LayerVersionsListItem[] | undefined;
4638
+ Error?: EventError | undefined;
4163
4639
  }
4164
4640
  /**
4165
- * <p>A ZIP archive that contains the contents of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>. You can specify either an Amazon S3 location, or upload a layer archive directly.</p>
4641
+ * <p>Details about a function invocation that completed.</p>
4166
4642
  * @public
4167
4643
  */
4168
- export interface LayerVersionContentInput {
4644
+ export interface InvocationCompletedDetails {
4169
4645
  /**
4170
- * <p>The Amazon S3 bucket of the layer archive.</p>
4646
+ * <p>The date and time when the invocation started, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
4171
4647
  * @public
4172
4648
  */
4173
- S3Bucket?: string | undefined;
4649
+ StartTimestamp: Date | undefined;
4174
4650
  /**
4175
- * <p>The Amazon S3 key of the layer archive.</p>
4651
+ * <p>The date and time when the invocation ended, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
4176
4652
  * @public
4177
4653
  */
4178
- S3Key?: string | undefined;
4654
+ EndTimestamp: Date | undefined;
4179
4655
  /**
4180
- * <p>For versioned objects, the version of the layer archive object to use.</p>
4656
+ * <p>The request ID for the invocation.</p>
4181
4657
  * @public
4182
4658
  */
4183
- S3ObjectVersion?: string | undefined;
4659
+ RequestId: string | undefined;
4184
4660
  /**
4185
- * <p>The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.</p>
4661
+ * <p>Details about the invocation failure.</p>
4186
4662
  * @public
4187
4663
  */
4188
- ZipFile?: Uint8Array | undefined;
4664
+ Error?: EventError | undefined;
4189
4665
  }
4190
4666
  /**
4667
+ * <p>Information about retry attempts for an operation.</p>
4191
4668
  * @public
4192
4669
  */
4193
- export interface PublishLayerVersionRequest {
4670
+ export interface RetryDetails {
4194
4671
  /**
4195
- * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
4672
+ * <p>The current attempt number for this operation.</p>
4196
4673
  * @public
4197
4674
  */
4198
- LayerName: string | undefined;
4675
+ CurrentAttempt?: number | undefined;
4199
4676
  /**
4200
- * <p>The description of the version.</p>
4677
+ * <p>The delay before the next retry attempt, in seconds.</p>
4201
4678
  * @public
4202
4679
  */
4203
- Description?: string | undefined;
4680
+ NextAttemptDelaySeconds?: number | undefined;
4681
+ }
4682
+ /**
4683
+ * <p>Details about a step that failed.</p>
4684
+ * @public
4685
+ */
4686
+ export interface StepFailedDetails {
4204
4687
  /**
4205
- * <p>The function layer archive.</p>
4688
+ * <p>Details about the step failure.</p>
4689
+ * @public
4690
+ */
4691
+ Error: EventError | undefined;
4692
+ /**
4693
+ * <p>Information about retry attempts for this step operation.</p>
4694
+ * @public
4695
+ */
4696
+ RetryDetails: RetryDetails | undefined;
4697
+ }
4698
+ /**
4699
+ * <p>Details about a step that has started.</p>
4700
+ * @public
4701
+ */
4702
+ export interface StepStartedDetails {
4703
+ }
4704
+ /**
4705
+ * <p>Details about a step that succeeded.</p>
4706
+ * @public
4707
+ */
4708
+ export interface StepSucceededDetails {
4709
+ /**
4710
+ * <p>The response payload from the successful operation.</p>
4711
+ * @public
4712
+ */
4713
+ Result: EventResult | undefined;
4714
+ /**
4715
+ * <p>Information about retry attempts for this step operation.</p>
4716
+ * @public
4717
+ */
4718
+ RetryDetails: RetryDetails | undefined;
4719
+ }
4720
+ /**
4721
+ * <p>Details about a wait operation that was cancelled.</p>
4722
+ * @public
4723
+ */
4724
+ export interface WaitCancelledDetails {
4725
+ /**
4726
+ * <p>Details about why the wait operation was cancelled.</p>
4727
+ * @public
4728
+ */
4729
+ Error?: EventError | undefined;
4730
+ }
4731
+ /**
4732
+ * <p>Details about a wait operation that has started.</p>
4733
+ * @public
4734
+ */
4735
+ export interface WaitStartedDetails {
4736
+ /**
4737
+ * <p>The duration to wait, in seconds.</p>
4738
+ * @public
4739
+ */
4740
+ Duration: number | undefined;
4741
+ /**
4742
+ * <p>The date and time when the wait operation is scheduled to complete, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
4743
+ * @public
4744
+ */
4745
+ ScheduledEndTimestamp: Date | undefined;
4746
+ }
4747
+ /**
4748
+ * <p>Details about a wait operation that succeeded.</p>
4749
+ * @public
4750
+ */
4751
+ export interface WaitSucceededDetails {
4752
+ /**
4753
+ * <p>The wait duration, in seconds.</p>
4754
+ * @public
4755
+ */
4756
+ Duration?: number | undefined;
4757
+ }
4758
+ /**
4759
+ * <p>An event that occurred during the execution of a durable function.</p>
4760
+ * @public
4761
+ */
4762
+ export interface Event {
4763
+ /**
4764
+ * <p>The type of event that occurred.</p>
4765
+ * @public
4766
+ */
4767
+ EventType?: EventType | undefined;
4768
+ /**
4769
+ * <p>The subtype of the event, providing additional categorization.</p>
4770
+ * @public
4771
+ */
4772
+ SubType?: string | undefined;
4773
+ /**
4774
+ * <p>The unique identifier for this event. Event IDs increment sequentially.</p>
4775
+ * @public
4776
+ */
4777
+ EventId?: number | undefined;
4778
+ /**
4779
+ * <p>The unique identifier for this operation.</p>
4780
+ * @public
4781
+ */
4782
+ Id?: string | undefined;
4783
+ /**
4784
+ * <p>The customer-provided name for this operation.</p>
4785
+ * @public
4786
+ */
4787
+ Name?: string | undefined;
4788
+ /**
4789
+ * <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
4790
+ * @public
4791
+ */
4792
+ EventTimestamp?: Date | undefined;
4793
+ /**
4794
+ * <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
4795
+ * @public
4796
+ */
4797
+ ParentId?: string | undefined;
4798
+ /**
4799
+ * <p>Details about an execution that started.</p>
4800
+ * @public
4801
+ */
4802
+ ExecutionStartedDetails?: ExecutionStartedDetails | undefined;
4803
+ /**
4804
+ * <p>Details about an execution that succeeded.</p>
4805
+ * @public
4806
+ */
4807
+ ExecutionSucceededDetails?: ExecutionSucceededDetails | undefined;
4808
+ /**
4809
+ * <p>Details about an execution that failed.</p>
4810
+ * @public
4811
+ */
4812
+ ExecutionFailedDetails?: ExecutionFailedDetails | undefined;
4813
+ /**
4814
+ * <p>Details about an execution that timed out.</p>
4815
+ * @public
4816
+ */
4817
+ ExecutionTimedOutDetails?: ExecutionTimedOutDetails | undefined;
4818
+ /**
4819
+ * <p>Details about an execution that was stopped.</p>
4820
+ * @public
4821
+ */
4822
+ ExecutionStoppedDetails?: ExecutionStoppedDetails | undefined;
4823
+ /**
4824
+ * <p>Details about a context that started.</p>
4825
+ * @public
4826
+ */
4827
+ ContextStartedDetails?: ContextStartedDetails | undefined;
4828
+ /**
4829
+ * <p>Details about a context that succeeded.</p>
4830
+ * @public
4831
+ */
4832
+ ContextSucceededDetails?: ContextSucceededDetails | undefined;
4833
+ /**
4834
+ * <p>Details about a context that failed.</p>
4835
+ * @public
4836
+ */
4837
+ ContextFailedDetails?: ContextFailedDetails | undefined;
4838
+ /**
4839
+ * <p>Details about a wait operation that started.</p>
4840
+ * @public
4841
+ */
4842
+ WaitStartedDetails?: WaitStartedDetails | undefined;
4843
+ /**
4844
+ * <p>Details about a wait operation that succeeded.</p>
4845
+ * @public
4846
+ */
4847
+ WaitSucceededDetails?: WaitSucceededDetails | undefined;
4848
+ /**
4849
+ * <p>Details about a wait operation that was cancelled.</p>
4850
+ * @public
4851
+ */
4852
+ WaitCancelledDetails?: WaitCancelledDetails | undefined;
4853
+ /**
4854
+ * <p>Details about a step that started.</p>
4855
+ * @public
4856
+ */
4857
+ StepStartedDetails?: StepStartedDetails | undefined;
4858
+ /**
4859
+ * <p>Details about a step that succeeded.</p>
4860
+ * @public
4861
+ */
4862
+ StepSucceededDetails?: StepSucceededDetails | undefined;
4863
+ /**
4864
+ * <p>Details about a step that failed.</p>
4865
+ * @public
4866
+ */
4867
+ StepFailedDetails?: StepFailedDetails | undefined;
4868
+ /**
4869
+ * <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
4870
+ * @public
4871
+ */
4872
+ ChainedInvokeStartedDetails?: ChainedInvokeStartedDetails | undefined;
4873
+ /**
4874
+ * <p>Details about a chained invocation that succeeded.</p>
4875
+ * @public
4876
+ */
4877
+ ChainedInvokeSucceededDetails?: ChainedInvokeSucceededDetails | undefined;
4878
+ /**
4879
+ * <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
4880
+ * @public
4881
+ */
4882
+ ChainedInvokeFailedDetails?: ChainedInvokeFailedDetails | undefined;
4883
+ /**
4884
+ * <p>Details about a chained invocation that timed out.</p>
4885
+ * @public
4886
+ */
4887
+ ChainedInvokeTimedOutDetails?: ChainedInvokeTimedOutDetails | undefined;
4888
+ /**
4889
+ * <p>Details about a chained invocation that was stopped.</p>
4890
+ * @public
4891
+ */
4892
+ ChainedInvokeStoppedDetails?: ChainedInvokeStoppedDetails | undefined;
4893
+ /**
4894
+ * <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
4895
+ * @public
4896
+ */
4897
+ CallbackStartedDetails?: CallbackStartedDetails | undefined;
4898
+ /**
4899
+ * <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
4900
+ * @public
4901
+ */
4902
+ CallbackSucceededDetails?: CallbackSucceededDetails | undefined;
4903
+ /**
4904
+ * <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
4905
+ * @public
4906
+ */
4907
+ CallbackFailedDetails?: CallbackFailedDetails | undefined;
4908
+ /**
4909
+ * <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
4910
+ * @public
4911
+ */
4912
+ CallbackTimedOutDetails?: CallbackTimedOutDetails | undefined;
4913
+ /**
4914
+ * <p>Details about a function invocation that completed.</p>
4915
+ * @public
4916
+ */
4917
+ InvocationCompletedDetails?: InvocationCompletedDetails | undefined;
4918
+ }
4919
+ /**
4920
+ * <p>The response from the GetDurableExecutionHistory operation, containing the execution history and events.</p>
4921
+ * @public
4922
+ */
4923
+ export interface GetDurableExecutionHistoryResponse {
4924
+ /**
4925
+ * <p>An array of execution history events, ordered chronologically unless <code>ReverseOrder</code> is set to <code>true</code>. Each event represents a significant occurrence during the execution, such as step completion or callback resolution.</p>
4926
+ * @public
4927
+ */
4928
+ Events: Event[] | undefined;
4929
+ /**
4930
+ * <p>If present, indicates that more history events are available. Use this value as the <code>Marker</code> parameter in a subsequent request to retrieve the next page of results.</p>
4931
+ * @public
4932
+ */
4933
+ NextMarker?: string | undefined;
4934
+ }
4935
+ /**
4936
+ * @public
4937
+ */
4938
+ export interface GetDurableExecutionStateRequest {
4939
+ /**
4940
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
4941
+ * @public
4942
+ */
4943
+ DurableExecutionArn: string | undefined;
4944
+ /**
4945
+ * <p>A checkpoint token that identifies the current state of the execution. This token is provided by the Lambda runtime and ensures that state retrieval is consistent with the current execution context.</p>
4946
+ * @public
4947
+ */
4948
+ CheckpointToken: string | undefined;
4949
+ /**
4950
+ * <p>If <code>NextMarker</code> was returned from a previous request, use this value to retrieve the next page of operations. Each pagination token expires after 24 hours.</p>
4951
+ * @public
4952
+ */
4953
+ Marker?: string | undefined;
4954
+ /**
4955
+ * <p>The maximum number of operations to return per call. You can use <code>Marker</code> to retrieve additional pages of results. The default is 100 and the maximum allowed is 1000. A value of 0 uses the default.</p>
4956
+ * @public
4957
+ */
4958
+ MaxItems?: number | undefined;
4959
+ }
4960
+ /**
4961
+ * <p>The response from the GetDurableExecutionState operation, containing the current execution state for replay.</p>
4962
+ * @public
4963
+ */
4964
+ export interface GetDurableExecutionStateResponse {
4965
+ /**
4966
+ * <p>An array of operations that represent the current state of the durable execution. Operations are ordered by their start sequence number in ascending order and include information needed for replay processing.</p>
4967
+ * @public
4968
+ */
4969
+ Operations: Operation[] | undefined;
4970
+ /**
4971
+ * <p>If present, indicates that more operations are available. Use this value as the <code>Marker</code> parameter in a subsequent request to retrieve the next page of results.</p>
4972
+ * @public
4973
+ */
4974
+ NextMarker?: string | undefined;
4975
+ }
4976
+ /**
4977
+ * @public
4978
+ */
4979
+ export interface FunctionEventInvokeConfig {
4980
+ /**
4981
+ * <p>The date and time that the configuration was last updated.</p>
4982
+ * @public
4983
+ */
4984
+ LastModified?: Date | undefined;
4985
+ /**
4986
+ * <p>The Amazon Resource Name (ARN) of the function.</p>
4987
+ * @public
4988
+ */
4989
+ FunctionArn?: string | undefined;
4990
+ /**
4991
+ * <p>The maximum number of times to retry when the function returns an error.</p>
4992
+ * @public
4993
+ */
4994
+ MaximumRetryAttempts?: number | undefined;
4995
+ /**
4996
+ * <p>The maximum age of a request that Lambda sends to a function for processing.</p>
4997
+ * @public
4998
+ */
4999
+ MaximumEventAgeInSeconds?: number | undefined;
5000
+ /**
5001
+ * <p>A destination for events after they have been sent to a function for processing.</p> <p class="title"> <b>Destinations</b> </p> <ul> <li> <p> <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li> <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p> <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p> </li> <li> <p> <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul> <note> <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p> </note>
5002
+ * @public
5003
+ */
5004
+ DestinationConfig?: DestinationConfig | undefined;
5005
+ }
5006
+ /**
5007
+ * @public
5008
+ */
5009
+ export interface GetFunctionEventInvokeConfigRequest {
5010
+ /**
5011
+ * <p>The name or ARN 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>
5012
+ * @public
5013
+ */
5014
+ FunctionName: string | undefined;
5015
+ /**
5016
+ * <p>A version number or alias name.</p>
5017
+ * @public
5018
+ */
5019
+ Qualifier?: string | undefined;
5020
+ }
5021
+ /**
5022
+ * @public
5023
+ */
5024
+ export interface ListLayersRequest {
5025
+ /**
5026
+ * <p>A runtime identifier.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
5027
+ * @public
5028
+ */
5029
+ CompatibleRuntime?: Runtime | undefined;
5030
+ /**
5031
+ * <p>A pagination token returned by a previous call.</p>
5032
+ * @public
5033
+ */
5034
+ Marker?: string | undefined;
5035
+ /**
5036
+ * <p>The maximum number of layers to return.</p>
5037
+ * @public
5038
+ */
5039
+ MaxItems?: number | undefined;
5040
+ /**
5041
+ * <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
5042
+ * @public
5043
+ */
5044
+ CompatibleArchitecture?: Architecture | undefined;
5045
+ }
5046
+ /**
5047
+ * <p>Details about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
5048
+ * @public
5049
+ */
5050
+ export interface LayerVersionsListItem {
5051
+ /**
5052
+ * <p>The ARN of the layer version.</p>
5053
+ * @public
5054
+ */
5055
+ LayerVersionArn?: string | undefined;
5056
+ /**
5057
+ * <p>The version number.</p>
5058
+ * @public
5059
+ */
5060
+ Version?: number | undefined;
5061
+ /**
5062
+ * <p>The description of the version.</p>
5063
+ * @public
5064
+ */
5065
+ Description?: string | undefined;
5066
+ /**
5067
+ * <p>The date that the version was created, in ISO 8601 format. For example, <code>2018-11-27T15:10:45.123+0000</code>.</p>
5068
+ * @public
5069
+ */
5070
+ CreatedDate?: string | undefined;
5071
+ /**
5072
+ * <p>The layer's compatible runtimes.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
5073
+ * @public
5074
+ */
5075
+ CompatibleRuntimes?: Runtime[] | undefined;
5076
+ /**
5077
+ * <p>The layer's open-source license.</p>
5078
+ * @public
5079
+ */
5080
+ LicenseInfo?: string | undefined;
5081
+ /**
5082
+ * <p>A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architectures</a>.</p>
5083
+ * @public
5084
+ */
5085
+ CompatibleArchitectures?: Architecture[] | undefined;
5086
+ }
5087
+ /**
5088
+ * <p>Details about an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
5089
+ * @public
5090
+ */
5091
+ export interface LayersListItem {
5092
+ /**
5093
+ * <p>The name of the layer.</p>
5094
+ * @public
5095
+ */
5096
+ LayerName?: string | undefined;
5097
+ /**
5098
+ * <p>The Amazon Resource Name (ARN) of the function layer.</p>
5099
+ * @public
5100
+ */
5101
+ LayerArn?: string | undefined;
5102
+ /**
5103
+ * <p>The newest version of the layer.</p>
5104
+ * @public
5105
+ */
5106
+ LatestMatchingVersion?: LayerVersionsListItem | undefined;
5107
+ }
5108
+ /**
5109
+ * @public
5110
+ */
5111
+ export interface ListLayersResponse {
5112
+ /**
5113
+ * <p>A pagination token returned when the response doesn't contain all layers.</p>
5114
+ * @public
5115
+ */
5116
+ NextMarker?: string | undefined;
5117
+ /**
5118
+ * <p>A list of function layers.</p>
5119
+ * @public
5120
+ */
5121
+ Layers?: LayersListItem[] | undefined;
5122
+ }
5123
+ /**
5124
+ * @public
5125
+ */
5126
+ export interface DeleteLayerVersionRequest {
5127
+ /**
5128
+ * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
5129
+ * @public
5130
+ */
5131
+ LayerName: string | undefined;
5132
+ /**
5133
+ * <p>The version number.</p>
5134
+ * @public
5135
+ */
5136
+ VersionNumber: number | undefined;
5137
+ }
5138
+ /**
5139
+ * @public
5140
+ */
5141
+ export interface GetLayerVersionRequest {
5142
+ /**
5143
+ * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
5144
+ * @public
5145
+ */
5146
+ LayerName: string | undefined;
5147
+ /**
5148
+ * <p>The version number.</p>
5149
+ * @public
5150
+ */
5151
+ VersionNumber: number | undefined;
5152
+ }
5153
+ /**
5154
+ * <p>Details about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>.</p>
5155
+ * @public
5156
+ */
5157
+ export interface LayerVersionContentOutput {
5158
+ /**
5159
+ * <p>A link to the layer archive in Amazon S3 that is valid for 10 minutes.</p>
5160
+ * @public
5161
+ */
5162
+ Location?: string | undefined;
5163
+ /**
5164
+ * <p>The SHA-256 hash of the layer archive.</p>
5165
+ * @public
5166
+ */
5167
+ CodeSha256?: string | undefined;
5168
+ /**
5169
+ * <p>The size of the layer archive in bytes.</p>
5170
+ * @public
5171
+ */
5172
+ CodeSize?: number | undefined;
5173
+ /**
5174
+ * <p>The Amazon Resource Name (ARN) for a signing profile version.</p>
5175
+ * @public
5176
+ */
5177
+ SigningProfileVersionArn?: string | undefined;
5178
+ /**
5179
+ * <p>The Amazon Resource Name (ARN) of a signing job.</p>
5180
+ * @public
5181
+ */
5182
+ SigningJobArn?: string | undefined;
5183
+ }
5184
+ /**
5185
+ * @public
5186
+ */
5187
+ export interface GetLayerVersionResponse {
5188
+ /**
5189
+ * <p>Details about the layer version.</p>
5190
+ * @public
5191
+ */
5192
+ Content?: LayerVersionContentOutput | undefined;
5193
+ /**
5194
+ * <p>The ARN of the layer.</p>
5195
+ * @public
5196
+ */
5197
+ LayerArn?: string | undefined;
5198
+ /**
5199
+ * <p>The ARN of the layer version.</p>
5200
+ * @public
5201
+ */
5202
+ LayerVersionArn?: string | undefined;
5203
+ /**
5204
+ * <p>The description of the version.</p>
5205
+ * @public
5206
+ */
5207
+ Description?: string | undefined;
5208
+ /**
5209
+ * <p>The date that the layer version was created, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
5210
+ * @public
5211
+ */
5212
+ CreatedDate?: string | undefined;
5213
+ /**
5214
+ * <p>The version number.</p>
5215
+ * @public
5216
+ */
5217
+ Version?: number | undefined;
5218
+ /**
5219
+ * <p>The layer's compatible runtimes.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
5220
+ * @public
5221
+ */
5222
+ CompatibleRuntimes?: Runtime[] | undefined;
5223
+ /**
5224
+ * <p>The layer's software license.</p>
5225
+ * @public
5226
+ */
5227
+ LicenseInfo?: string | undefined;
5228
+ /**
5229
+ * <p>A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architectures</a>.</p>
5230
+ * @public
5231
+ */
5232
+ CompatibleArchitectures?: Architecture[] | undefined;
5233
+ }
5234
+ /**
5235
+ * @public
5236
+ */
5237
+ export interface GetLayerVersionByArnRequest {
5238
+ /**
5239
+ * <p>The ARN of the layer version.</p>
5240
+ * @public
5241
+ */
5242
+ Arn: string | undefined;
5243
+ }
5244
+ /**
5245
+ * @public
5246
+ */
5247
+ export interface GetLayerVersionPolicyRequest {
5248
+ /**
5249
+ * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
5250
+ * @public
5251
+ */
5252
+ LayerName: string | undefined;
5253
+ /**
5254
+ * <p>The version number.</p>
5255
+ * @public
5256
+ */
5257
+ VersionNumber: number | undefined;
5258
+ }
5259
+ /**
5260
+ * @public
5261
+ */
5262
+ export interface GetLayerVersionPolicyResponse {
5263
+ /**
5264
+ * <p>The policy document.</p>
5265
+ * @public
5266
+ */
5267
+ Policy?: string | undefined;
5268
+ /**
5269
+ * <p>A unique identifier for the current revision of the policy.</p>
5270
+ * @public
5271
+ */
5272
+ RevisionId?: string | undefined;
5273
+ }
5274
+ /**
5275
+ * @public
5276
+ */
5277
+ export interface ListLayerVersionsRequest {
5278
+ /**
5279
+ * <p>A runtime identifier.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
5280
+ * @public
5281
+ */
5282
+ CompatibleRuntime?: Runtime | undefined;
5283
+ /**
5284
+ * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
5285
+ * @public
5286
+ */
5287
+ LayerName: string | undefined;
5288
+ /**
5289
+ * <p>A pagination token returned by a previous call.</p>
5290
+ * @public
5291
+ */
5292
+ Marker?: string | undefined;
5293
+ /**
5294
+ * <p>The maximum number of versions to return.</p>
5295
+ * @public
5296
+ */
5297
+ MaxItems?: number | undefined;
5298
+ /**
5299
+ * <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
5300
+ * @public
5301
+ */
5302
+ CompatibleArchitecture?: Architecture | undefined;
5303
+ }
5304
+ /**
5305
+ * @public
5306
+ */
5307
+ export interface ListLayerVersionsResponse {
5308
+ /**
5309
+ * <p>A pagination token returned when the response doesn't contain all versions.</p>
5310
+ * @public
5311
+ */
5312
+ NextMarker?: string | undefined;
5313
+ /**
5314
+ * <p>A list of versions.</p>
5315
+ * @public
5316
+ */
5317
+ LayerVersions?: LayerVersionsListItem[] | undefined;
5318
+ }
5319
+ /**
5320
+ * <p>A ZIP archive that contains the contents of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>. You can specify either an Amazon S3 location, or upload a layer archive directly.</p>
5321
+ * @public
5322
+ */
5323
+ export interface LayerVersionContentInput {
5324
+ /**
5325
+ * <p>The Amazon S3 bucket of the layer archive.</p>
5326
+ * @public
5327
+ */
5328
+ S3Bucket?: string | undefined;
5329
+ /**
5330
+ * <p>The Amazon S3 key of the layer archive.</p>
5331
+ * @public
5332
+ */
5333
+ S3Key?: string | undefined;
5334
+ /**
5335
+ * <p>For versioned objects, the version of the layer archive object to use.</p>
5336
+ * @public
5337
+ */
5338
+ S3ObjectVersion?: string | undefined;
5339
+ /**
5340
+ * <p>The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.</p>
5341
+ * @public
5342
+ */
5343
+ ZipFile?: Uint8Array | undefined;
5344
+ }
5345
+ /**
5346
+ * @public
5347
+ */
5348
+ export interface PublishLayerVersionRequest {
5349
+ /**
5350
+ * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
5351
+ * @public
5352
+ */
5353
+ LayerName: string | undefined;
5354
+ /**
5355
+ * <p>The description of the version.</p>
5356
+ * @public
5357
+ */
5358
+ Description?: string | undefined;
5359
+ /**
5360
+ * <p>The function layer archive.</p>
4206
5361
  * @public
4207
5362
  */
4208
5363
  Content: LayerVersionContentInput | undefined;
@@ -4297,6 +5452,108 @@ export interface RemoveLayerVersionPermissionRequest {
4297
5452
  */
4298
5453
  RevisionId?: string | undefined;
4299
5454
  }
5455
+ /**
5456
+ * @public
5457
+ */
5458
+ export interface ListDurableExecutionsByFunctionRequest {
5459
+ /**
5460
+ * <p>The name or ARN of the Lambda function. You can specify a function name, a partial ARN, or a full ARN.</p>
5461
+ * @public
5462
+ */
5463
+ FunctionName: string | undefined;
5464
+ /**
5465
+ * <p>The function version or alias. If not specified, lists executions for the $LATEST version.</p>
5466
+ * @public
5467
+ */
5468
+ Qualifier?: string | undefined;
5469
+ /**
5470
+ * <p>Filter executions by name. Only executions with names that contain this string are returned.</p>
5471
+ * @public
5472
+ */
5473
+ DurableExecutionName?: string | undefined;
5474
+ /**
5475
+ * <p>Filter executions by status. Valid values: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, STOPPED.</p>
5476
+ * @public
5477
+ */
5478
+ Statuses?: ExecutionStatus[] | undefined;
5479
+ /**
5480
+ * <p>Filter executions that started after this timestamp (ISO 8601 format).</p>
5481
+ * @public
5482
+ */
5483
+ StartedAfter?: Date | undefined;
5484
+ /**
5485
+ * <p>Filter executions that started before this timestamp (ISO 8601 format).</p>
5486
+ * @public
5487
+ */
5488
+ StartedBefore?: Date | undefined;
5489
+ /**
5490
+ * <p>Set to true to return results in reverse chronological order (newest first). Default is false.</p>
5491
+ * @public
5492
+ */
5493
+ ReverseOrder?: boolean | undefined;
5494
+ /**
5495
+ * <p>Pagination token from a previous request to continue retrieving results.</p>
5496
+ * @public
5497
+ */
5498
+ Marker?: string | undefined;
5499
+ /**
5500
+ * <p>Maximum number of executions to return (1-1000). Default is 100.</p>
5501
+ * @public
5502
+ */
5503
+ MaxItems?: number | undefined;
5504
+ }
5505
+ /**
5506
+ * <p>Information about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>.</p>
5507
+ * @public
5508
+ */
5509
+ export interface Execution {
5510
+ /**
5511
+ * <p>The Amazon Resource Name (ARN) of the durable execution, if this execution is a durable execution.</p>
5512
+ * @public
5513
+ */
5514
+ DurableExecutionArn: string | undefined;
5515
+ /**
5516
+ * <p>The unique name of the durable execution, if one was provided when the execution was started.</p>
5517
+ * @public
5518
+ */
5519
+ DurableExecutionName: string | undefined;
5520
+ /**
5521
+ * <p>The Amazon Resource Name (ARN) of the Lambda function.</p>
5522
+ * @public
5523
+ */
5524
+ FunctionArn: string | undefined;
5525
+ /**
5526
+ * <p>The current status of the durable execution.</p>
5527
+ * @public
5528
+ */
5529
+ Status: ExecutionStatus | undefined;
5530
+ /**
5531
+ * <p>The date and time when the durable execution started, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
5532
+ * @public
5533
+ */
5534
+ StartTimestamp: Date | undefined;
5535
+ /**
5536
+ * <p>The date and time when the durable execution ended, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
5537
+ * @public
5538
+ */
5539
+ EndTimestamp?: Date | undefined;
5540
+ }
5541
+ /**
5542
+ * <p>The response from the ListDurableExecutionsByFunction operation, containing a list of durable executions and pagination information.</p>
5543
+ * @public
5544
+ */
5545
+ export interface ListDurableExecutionsByFunctionResponse {
5546
+ /**
5547
+ * <p>List of durable execution summaries matching the filter criteria.</p>
5548
+ * @public
5549
+ */
5550
+ DurableExecutions?: Execution[] | undefined;
5551
+ /**
5552
+ * <p>Pagination token for retrieving additional results. Present only if there are more results available.</p>
5553
+ * @public
5554
+ */
5555
+ NextMarker?: string | undefined;
5556
+ }
4300
5557
  /**
4301
5558
  * @public
4302
5559
  */
@@ -4527,6 +5784,86 @@ export interface PutFunctionEventInvokeConfigRequest {
4527
5784
  */
4528
5785
  DestinationConfig?: DestinationConfig | undefined;
4529
5786
  }
5787
+ /**
5788
+ * @public
5789
+ */
5790
+ export interface SendDurableExecutionCallbackFailureRequest {
5791
+ /**
5792
+ * <p>The unique identifier for the callback operation.</p>
5793
+ * @public
5794
+ */
5795
+ CallbackId: string | undefined;
5796
+ /**
5797
+ * <p>Error details describing why the callback operation failed.</p>
5798
+ * @public
5799
+ */
5800
+ Error?: ErrorObject | undefined;
5801
+ }
5802
+ /**
5803
+ * @public
5804
+ */
5805
+ export interface SendDurableExecutionCallbackFailureResponse {
5806
+ }
5807
+ /**
5808
+ * @public
5809
+ */
5810
+ export interface SendDurableExecutionCallbackHeartbeatRequest {
5811
+ /**
5812
+ * <p>The unique identifier for the callback operation.</p>
5813
+ * @public
5814
+ */
5815
+ CallbackId: string | undefined;
5816
+ }
5817
+ /**
5818
+ * @public
5819
+ */
5820
+ export interface SendDurableExecutionCallbackHeartbeatResponse {
5821
+ }
5822
+ /**
5823
+ * @public
5824
+ */
5825
+ export interface SendDurableExecutionCallbackSuccessRequest {
5826
+ /**
5827
+ * <p>The unique identifier for the callback operation.</p>
5828
+ * @public
5829
+ */
5830
+ CallbackId: string | undefined;
5831
+ /**
5832
+ * <p>The result data from the successful callback operation. Maximum size is 256 KB.</p>
5833
+ * @public
5834
+ */
5835
+ Result?: Uint8Array | undefined;
5836
+ }
5837
+ /**
5838
+ * @public
5839
+ */
5840
+ export interface SendDurableExecutionCallbackSuccessResponse {
5841
+ }
5842
+ /**
5843
+ * @public
5844
+ */
5845
+ export interface StopDurableExecutionRequest {
5846
+ /**
5847
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
5848
+ * @public
5849
+ */
5850
+ DurableExecutionArn: string | undefined;
5851
+ /**
5852
+ * <p>Optional error details explaining why the execution is being stopped.</p>
5853
+ * @public
5854
+ */
5855
+ Error?: ErrorObject | undefined;
5856
+ }
5857
+ /**
5858
+ * @public
5859
+ */
5860
+ export interface StopDurableExecutionResponse {
5861
+ /**
5862
+ * <p>The timestamp when the execution was stopped (ISO 8601 format).</p>
5863
+ * @public
5864
+ */
5865
+ StopTimestamp: Date | undefined;
5866
+ }
4530
5867
  /**
4531
5868
  * @public
4532
5869
  */