@aws-sdk/client-lambda 3.940.0 → 3.943.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +136 -0
  2. package/dist-cjs/index.js +1663 -100
  3. package/dist-es/Lambda.js +34 -0
  4. package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
  5. package/dist-es/commands/CreateCapacityProviderCommand.js +16 -0
  6. package/dist-es/commands/DeleteCapacityProviderCommand.js +16 -0
  7. package/dist-es/commands/GetCapacityProviderCommand.js +16 -0
  8. package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
  9. package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
  10. package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
  11. package/dist-es/commands/GetFunctionScalingConfigCommand.js +16 -0
  12. package/dist-es/commands/ListCapacityProvidersCommand.js +16 -0
  13. package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
  14. package/dist-es/commands/ListFunctionVersionsByCapacityProviderCommand.js +16 -0
  15. package/dist-es/commands/PutFunctionScalingConfigCommand.js +16 -0
  16. package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
  17. package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
  18. package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
  19. package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
  20. package/dist-es/commands/UpdateCapacityProviderCommand.js +16 -0
  21. package/dist-es/commands/index.js +17 -0
  22. package/dist-es/models/enums.js +109 -6
  23. package/dist-es/models/errors.js +76 -0
  24. package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
  25. package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
  26. package/dist-es/pagination/ListCapacityProvidersPaginator.js +4 -0
  27. package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
  28. package/dist-es/pagination/ListFunctionVersionsByCapacityProviderPaginator.js +4 -0
  29. package/dist-es/pagination/index.js +5 -0
  30. package/dist-es/schemas/schemas_0.js +1216 -95
  31. package/dist-types/Lambda.d.ts +120 -0
  32. package/dist-types/LambdaClient.d.ts +19 -2
  33. package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
  34. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +162 -0
  35. package/dist-types/commands/CreateFunctionCommand.d.ts +38 -3
  36. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +126 -0
  37. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -4
  38. package/dist-types/commands/GetCapacityProviderCommand.d.ts +123 -0
  39. package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
  40. package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
  41. package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
  42. package/dist-types/commands/GetFunctionCommand.d.ts +19 -3
  43. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +19 -3
  44. package/dist-types/commands/GetFunctionScalingConfigCommand.d.ts +95 -0
  45. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  46. package/dist-types/commands/InvokeCommand.d.ts +11 -1
  47. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +4 -1
  48. package/dist-types/commands/ListCapacityProvidersCommand.d.ts +125 -0
  49. package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
  50. package/dist-types/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +95 -0
  51. package/dist-types/commands/ListFunctionsCommand.d.ts +19 -3
  52. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +23 -3
  53. package/dist-types/commands/PublishVersionCommand.d.ts +19 -3
  54. package/dist-types/commands/PutFunctionScalingConfigCommand.d.ts +94 -0
  55. package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
  56. package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
  57. package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
  58. package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
  59. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +136 -0
  60. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +16 -3
  61. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +34 -3
  62. package/dist-types/commands/index.d.ts +17 -0
  63. package/dist-types/models/enums.d.ts +189 -14
  64. package/dist-types/models/errors.d.ts +89 -1
  65. package/dist-types/models/models_0.d.ts +3205 -1373
  66. package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
  67. package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
  68. package/dist-types/pagination/ListCapacityProvidersPaginator.d.ts +7 -0
  69. package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
  70. package/dist-types/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +7 -0
  71. package/dist-types/pagination/index.d.ts +5 -0
  72. package/dist-types/schemas/schemas_0.d.ts +134 -0
  73. package/dist-types/ts3.4/Lambda.d.ts +314 -0
  74. package/dist-types/ts3.4/LambdaClient.d.ts +102 -0
  75. package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +51 -0
  78. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +8 -3
  79. package/dist-types/ts3.4/commands/GetCapacityProviderCommand.d.ts +51 -0
  80. package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/GetFunctionScalingConfigCommand.d.ts +51 -0
  84. package/dist-types/ts3.4/commands/ListCapacityProvidersCommand.d.ts +51 -0
  85. package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +51 -0
  87. package/dist-types/ts3.4/commands/PutFunctionScalingConfigCommand.d.ts +51 -0
  88. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
  89. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
  90. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
  91. package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
  92. package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +51 -0
  93. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  94. package/dist-types/ts3.4/models/enums.d.ts +126 -7
  95. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  96. package/dist-types/ts3.4/models/models_0.d.ts +494 -42
  97. package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
  98. package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
  99. package/dist-types/ts3.4/pagination/ListCapacityProvidersPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  103. package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
  104. package/package.json +5 -5
@@ -0,0 +1,162 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { CreateCapacityProviderRequest, CreateCapacityProviderResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateCapacityProviderCommand}.
14
+ */
15
+ export interface CreateCapacityProviderCommandInput extends CreateCapacityProviderRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateCapacityProviderCommand}.
21
+ */
22
+ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProviderResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateCapacityProviderCommand_base: {
25
+ new (input: CreateCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCapacityProviderCommandInput, CreateCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCapacityProviderCommandInput, CreateCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a capacity provider that manages compute resources for Lambda functions</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, CreateCapacityProviderCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, CreateCapacityProviderCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // CreateCapacityProviderRequest
40
+ * CapacityProviderName: "STRING_VALUE", // required
41
+ * VpcConfig: { // CapacityProviderVpcConfig
42
+ * SubnetIds: [ // CapacityProviderSubnetIds // required
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * SecurityGroupIds: [ // CapacityProviderSecurityGroupIds // required
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * },
49
+ * PermissionsConfig: { // CapacityProviderPermissionsConfig
50
+ * CapacityProviderOperatorRoleArn: "STRING_VALUE", // required
51
+ * },
52
+ * InstanceRequirements: { // InstanceRequirements
53
+ * Architectures: [ // ArchitecturesList
54
+ * "x86_64" || "arm64",
55
+ * ],
56
+ * AllowedInstanceTypes: [ // InstanceTypeSet
57
+ * "STRING_VALUE",
58
+ * ],
59
+ * ExcludedInstanceTypes: [
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * },
63
+ * CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
64
+ * MaxVCpuCount: Number("int"),
65
+ * ScalingMode: "Auto" || "Manual",
66
+ * ScalingPolicies: [ // CapacityProviderScalingPoliciesList
67
+ * { // TargetTrackingScalingPolicy
68
+ * PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
69
+ * TargetValue: Number("double"), // required
70
+ * },
71
+ * ],
72
+ * },
73
+ * KmsKeyArn: "STRING_VALUE",
74
+ * Tags: { // Tags
75
+ * "<keys>": "STRING_VALUE",
76
+ * },
77
+ * };
78
+ * const command = new CreateCapacityProviderCommand(input);
79
+ * const response = await client.send(command);
80
+ * // { // CreateCapacityProviderResponse
81
+ * // CapacityProvider: { // CapacityProvider
82
+ * // CapacityProviderArn: "STRING_VALUE", // required
83
+ * // State: "Pending" || "Active" || "Failed" || "Deleting", // required
84
+ * // VpcConfig: { // CapacityProviderVpcConfig
85
+ * // SubnetIds: [ // CapacityProviderSubnetIds // required
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // SecurityGroupIds: [ // CapacityProviderSecurityGroupIds // required
89
+ * // "STRING_VALUE",
90
+ * // ],
91
+ * // },
92
+ * // PermissionsConfig: { // CapacityProviderPermissionsConfig
93
+ * // CapacityProviderOperatorRoleArn: "STRING_VALUE", // required
94
+ * // },
95
+ * // InstanceRequirements: { // InstanceRequirements
96
+ * // Architectures: [ // ArchitecturesList
97
+ * // "x86_64" || "arm64",
98
+ * // ],
99
+ * // AllowedInstanceTypes: [ // InstanceTypeSet
100
+ * // "STRING_VALUE",
101
+ * // ],
102
+ * // ExcludedInstanceTypes: [
103
+ * // "STRING_VALUE",
104
+ * // ],
105
+ * // },
106
+ * // CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
107
+ * // MaxVCpuCount: Number("int"),
108
+ * // ScalingMode: "Auto" || "Manual",
109
+ * // ScalingPolicies: [ // CapacityProviderScalingPoliciesList
110
+ * // { // TargetTrackingScalingPolicy
111
+ * // PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
112
+ * // TargetValue: Number("double"), // required
113
+ * // },
114
+ * // ],
115
+ * // },
116
+ * // KmsKeyArn: "STRING_VALUE",
117
+ * // LastModified: "STRING_VALUE",
118
+ * // },
119
+ * // };
120
+ *
121
+ * ```
122
+ *
123
+ * @param CreateCapacityProviderCommandInput - {@link CreateCapacityProviderCommandInput}
124
+ * @returns {@link CreateCapacityProviderCommandOutput}
125
+ * @see {@link CreateCapacityProviderCommandInput} for command's `input` shape.
126
+ * @see {@link CreateCapacityProviderCommandOutput} for command's `response` shape.
127
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
128
+ *
129
+ * @throws {@link CapacityProviderLimitExceededException} (client fault)
130
+ * <p>The maximum number of capacity providers for your account has been exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a> </p>
131
+ *
132
+ * @throws {@link InvalidParameterValueException} (client fault)
133
+ * <p>One of the parameters in the request is not valid.</p>
134
+ *
135
+ * @throws {@link ResourceConflictException} (client fault)
136
+ * <p>The resource already exists, or another operation is in progress.</p>
137
+ *
138
+ * @throws {@link ServiceException} (server fault)
139
+ * <p>The Lambda service encountered an internal error.</p>
140
+ *
141
+ * @throws {@link TooManyRequestsException} (client fault)
142
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
143
+ *
144
+ * @throws {@link LambdaServiceException}
145
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
146
+ *
147
+ *
148
+ * @public
149
+ */
150
+ export declare class CreateCapacityProviderCommand extends CreateCapacityProviderCommand_base {
151
+ /** @internal type navigation helper, not in runtime. */
152
+ protected static __types: {
153
+ api: {
154
+ input: CreateCapacityProviderRequest;
155
+ output: CreateCapacityProviderResponse;
156
+ };
157
+ sdk: {
158
+ input: CreateCapacityProviderCommandInput;
159
+ output: CreateCapacityProviderCommandOutput;
160
+ };
161
+ };
162
+ }
@@ -112,6 +112,18 @@ declare const CreateFunctionCommand_base: {
112
112
  * SystemLogLevel: "DEBUG" || "INFO" || "WARN",
113
113
  * LogGroup: "STRING_VALUE",
114
114
  * },
115
+ * CapacityProviderConfig: { // CapacityProviderConfig
116
+ * LambdaManagedInstancesCapacityProviderConfig: { // LambdaManagedInstancesCapacityProviderConfig
117
+ * CapacityProviderArn: "STRING_VALUE", // required
118
+ * PerExecutionEnvironmentMaxConcurrency: Number("int"),
119
+ * ExecutionEnvironmentMemoryGiBPerVCpu: Number("double"),
120
+ * },
121
+ * },
122
+ * PublishTo: "LATEST_PUBLISHED",
123
+ * DurableConfig: { // DurableConfig
124
+ * RetentionPeriodInDays: Number("int"),
125
+ * ExecutionTimeout: Number("int"),
126
+ * },
115
127
  * TenancyConfig: { // TenancyConfig
116
128
  * TenantIsolationMode: "PER_TENANT", // required
117
129
  * },
@@ -167,12 +179,12 @@ declare const CreateFunctionCommand_base: {
167
179
  * // SigningJobArn: "STRING_VALUE",
168
180
  * // },
169
181
  * // ],
170
- * // State: "Pending" || "Active" || "Inactive" || "Failed",
182
+ * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
171
183
  * // StateReason: "STRING_VALUE",
172
- * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError",
184
+ * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "DrainingDurableExecutions" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted",
173
185
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
174
186
  * // LastUpdateStatusReason: "STRING_VALUE",
175
- * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError",
187
+ * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted",
176
188
  * // FileSystemConfigs: [ // FileSystemConfigList
177
189
  * // { // FileSystemConfig
178
190
  * // Arn: "STRING_VALUE", // required
@@ -220,6 +232,18 @@ declare const CreateFunctionCommand_base: {
220
232
  * // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
221
233
  * // LogGroup: "STRING_VALUE",
222
234
  * // },
235
+ * // CapacityProviderConfig: { // CapacityProviderConfig
236
+ * // LambdaManagedInstancesCapacityProviderConfig: { // LambdaManagedInstancesCapacityProviderConfig
237
+ * // CapacityProviderArn: "STRING_VALUE", // required
238
+ * // PerExecutionEnvironmentMaxConcurrency: Number("int"),
239
+ * // ExecutionEnvironmentMemoryGiBPerVCpu: Number("double"),
240
+ * // },
241
+ * // },
242
+ * // ConfigSha256: "STRING_VALUE",
243
+ * // DurableConfig: { // DurableConfig
244
+ * // RetentionPeriodInDays: Number("int"),
245
+ * // ExecutionTimeout: Number("int"),
246
+ * // },
223
247
  * // TenancyConfig: { // TenancyConfig
224
248
  * // TenantIsolationMode: "PER_TENANT", // required
225
249
  * // },
@@ -242,6 +266,9 @@ declare const CreateFunctionCommand_base: {
242
266
  * @throws {@link CodeVerificationFailedException} (client fault)
243
267
  * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.</p>
244
268
  *
269
+ * @throws {@link FunctionVersionsPerCapacityProviderLimitExceededException} (client fault)
270
+ * <p>The maximum number of function versions that can be associated with a single capacity provider has been exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
271
+ *
245
272
  * @throws {@link InvalidCodeSignatureException} (client fault)
246
273
  * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.</p>
247
274
  *
@@ -273,6 +300,10 @@ declare const CreateFunctionCommand_base: {
273
300
  * S3Key: "function.zip"
274
301
  * },
275
302
  * Description: "Process image objects from Amazon S3.",
303
+ * DurableConfig: {
304
+ * ExecutionTimeout: 31622400,
305
+ * RetentionPeriodInDays: 30
306
+ * },
276
307
  * Environment: {
277
308
  * Variables: {
278
309
  * BUCKET: "my-bucket-1xpuxmplzrlbh",
@@ -301,6 +332,10 @@ declare const CreateFunctionCommand_base: {
301
332
  * CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
302
333
  * CodeSize: 5797206,
303
334
  * Description: "Process image objects from Amazon S3.",
335
+ * DurableConfig: {
336
+ * ExecutionTimeout: 31622400,
337
+ * RetentionPeriodInDays: 30
338
+ * },
304
339
  * Environment: {
305
340
  * Variables: {
306
341
  * BUCKET: "my-bucket-1xpuxmplzrlbh",
@@ -0,0 +1,126 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { DeleteCapacityProviderRequest, DeleteCapacityProviderResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteCapacityProviderCommand}.
14
+ */
15
+ export interface DeleteCapacityProviderCommandInput extends DeleteCapacityProviderRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteCapacityProviderCommand}.
21
+ */
22
+ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProviderResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteCapacityProviderCommand_base: {
25
+ new (input: DeleteCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCapacityProviderCommandInput, DeleteCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCapacityProviderCommandInput, DeleteCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a capacity provider. You cannot delete a capacity provider that is currently being used by Lambda functions.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, DeleteCapacityProviderCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, DeleteCapacityProviderCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // DeleteCapacityProviderRequest
40
+ * CapacityProviderName: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteCapacityProviderCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DeleteCapacityProviderResponse
45
+ * // CapacityProvider: { // CapacityProvider
46
+ * // CapacityProviderArn: "STRING_VALUE", // required
47
+ * // State: "Pending" || "Active" || "Failed" || "Deleting", // required
48
+ * // VpcConfig: { // CapacityProviderVpcConfig
49
+ * // SubnetIds: [ // CapacityProviderSubnetIds // required
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // SecurityGroupIds: [ // CapacityProviderSecurityGroupIds // required
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // },
56
+ * // PermissionsConfig: { // CapacityProviderPermissionsConfig
57
+ * // CapacityProviderOperatorRoleArn: "STRING_VALUE", // required
58
+ * // },
59
+ * // InstanceRequirements: { // InstanceRequirements
60
+ * // Architectures: [ // ArchitecturesList
61
+ * // "x86_64" || "arm64",
62
+ * // ],
63
+ * // AllowedInstanceTypes: [ // InstanceTypeSet
64
+ * // "STRING_VALUE",
65
+ * // ],
66
+ * // ExcludedInstanceTypes: [
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // },
70
+ * // CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
71
+ * // MaxVCpuCount: Number("int"),
72
+ * // ScalingMode: "Auto" || "Manual",
73
+ * // ScalingPolicies: [ // CapacityProviderScalingPoliciesList
74
+ * // { // TargetTrackingScalingPolicy
75
+ * // PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
76
+ * // TargetValue: Number("double"), // required
77
+ * // },
78
+ * // ],
79
+ * // },
80
+ * // KmsKeyArn: "STRING_VALUE",
81
+ * // LastModified: "STRING_VALUE",
82
+ * // },
83
+ * // };
84
+ *
85
+ * ```
86
+ *
87
+ * @param DeleteCapacityProviderCommandInput - {@link DeleteCapacityProviderCommandInput}
88
+ * @returns {@link DeleteCapacityProviderCommandOutput}
89
+ * @see {@link DeleteCapacityProviderCommandInput} for command's `input` shape.
90
+ * @see {@link DeleteCapacityProviderCommandOutput} for command's `response` shape.
91
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
92
+ *
93
+ * @throws {@link InvalidParameterValueException} (client fault)
94
+ * <p>One of the parameters in the request is not valid.</p>
95
+ *
96
+ * @throws {@link ResourceConflictException} (client fault)
97
+ * <p>The resource already exists, or another operation is in progress.</p>
98
+ *
99
+ * @throws {@link ResourceNotFoundException} (client fault)
100
+ * <p>The resource specified in the request does not exist.</p>
101
+ *
102
+ * @throws {@link ServiceException} (server fault)
103
+ * <p>The Lambda service encountered an internal error.</p>
104
+ *
105
+ * @throws {@link TooManyRequestsException} (client fault)
106
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
107
+ *
108
+ * @throws {@link LambdaServiceException}
109
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
110
+ *
111
+ *
112
+ * @public
113
+ */
114
+ export declare class DeleteCapacityProviderCommand extends DeleteCapacityProviderCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: DeleteCapacityProviderRequest;
119
+ output: DeleteCapacityProviderResponse;
120
+ };
121
+ sdk: {
122
+ input: DeleteCapacityProviderCommandInput;
123
+ output: DeleteCapacityProviderCommandOutput;
124
+ };
125
+ };
126
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
- import { DeleteFunctionRequest } from "../models/models_0";
4
+ import { DeleteFunctionRequest, DeleteFunctionResponse } from "../models/models_0";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -19,7 +19,7 @@ export interface DeleteFunctionCommandInput extends DeleteFunctionRequest {
19
19
  *
20
20
  * The output of {@link DeleteFunctionCommand}.
21
21
  */
22
- export interface DeleteFunctionCommandOutput extends __MetadataBearer {
22
+ export interface DeleteFunctionCommandOutput extends DeleteFunctionResponse, __MetadataBearer {
23
23
  }
24
24
  declare const DeleteFunctionCommand_base: {
25
25
  new (input: DeleteFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFunctionCommandInput, DeleteFunctionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
@@ -42,7 +42,9 @@ declare const DeleteFunctionCommand_base: {
42
42
  * };
43
43
  * const command = new DeleteFunctionCommand(input);
44
44
  * const response = await client.send(command);
45
- * // {};
45
+ * // { // DeleteFunctionResponse
46
+ * // StatusCode: Number("int"),
47
+ * // };
46
48
  *
47
49
  * ```
48
50
  *
@@ -92,7 +94,7 @@ export declare class DeleteFunctionCommand extends DeleteFunctionCommand_base {
92
94
  protected static __types: {
93
95
  api: {
94
96
  input: DeleteFunctionRequest;
95
- output: {};
97
+ output: DeleteFunctionResponse;
96
98
  };
97
99
  sdk: {
98
100
  input: DeleteFunctionCommandInput;
@@ -0,0 +1,123 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { GetCapacityProviderRequest, GetCapacityProviderResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetCapacityProviderCommand}.
14
+ */
15
+ export interface GetCapacityProviderCommandInput extends GetCapacityProviderRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetCapacityProviderCommand}.
21
+ */
22
+ export interface GetCapacityProviderCommandOutput extends GetCapacityProviderResponse, __MetadataBearer {
23
+ }
24
+ declare const GetCapacityProviderCommand_base: {
25
+ new (input: GetCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<GetCapacityProviderCommandInput, GetCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<GetCapacityProviderCommandInput, GetCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a specific capacity provider, including its configuration, state, and associated resources.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, GetCapacityProviderCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, GetCapacityProviderCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // GetCapacityProviderRequest
40
+ * CapacityProviderName: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetCapacityProviderCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetCapacityProviderResponse
45
+ * // CapacityProvider: { // CapacityProvider
46
+ * // CapacityProviderArn: "STRING_VALUE", // required
47
+ * // State: "Pending" || "Active" || "Failed" || "Deleting", // required
48
+ * // VpcConfig: { // CapacityProviderVpcConfig
49
+ * // SubnetIds: [ // CapacityProviderSubnetIds // required
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // SecurityGroupIds: [ // CapacityProviderSecurityGroupIds // required
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // },
56
+ * // PermissionsConfig: { // CapacityProviderPermissionsConfig
57
+ * // CapacityProviderOperatorRoleArn: "STRING_VALUE", // required
58
+ * // },
59
+ * // InstanceRequirements: { // InstanceRequirements
60
+ * // Architectures: [ // ArchitecturesList
61
+ * // "x86_64" || "arm64",
62
+ * // ],
63
+ * // AllowedInstanceTypes: [ // InstanceTypeSet
64
+ * // "STRING_VALUE",
65
+ * // ],
66
+ * // ExcludedInstanceTypes: [
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // },
70
+ * // CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
71
+ * // MaxVCpuCount: Number("int"),
72
+ * // ScalingMode: "Auto" || "Manual",
73
+ * // ScalingPolicies: [ // CapacityProviderScalingPoliciesList
74
+ * // { // TargetTrackingScalingPolicy
75
+ * // PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
76
+ * // TargetValue: Number("double"), // required
77
+ * // },
78
+ * // ],
79
+ * // },
80
+ * // KmsKeyArn: "STRING_VALUE",
81
+ * // LastModified: "STRING_VALUE",
82
+ * // },
83
+ * // };
84
+ *
85
+ * ```
86
+ *
87
+ * @param GetCapacityProviderCommandInput - {@link GetCapacityProviderCommandInput}
88
+ * @returns {@link GetCapacityProviderCommandOutput}
89
+ * @see {@link GetCapacityProviderCommandInput} for command's `input` shape.
90
+ * @see {@link GetCapacityProviderCommandOutput} for command's `response` shape.
91
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
92
+ *
93
+ * @throws {@link InvalidParameterValueException} (client fault)
94
+ * <p>One of the parameters in the request is not valid.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The resource specified in the request does not exist.</p>
98
+ *
99
+ * @throws {@link ServiceException} (server fault)
100
+ * <p>The Lambda service encountered an internal error.</p>
101
+ *
102
+ * @throws {@link TooManyRequestsException} (client fault)
103
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
104
+ *
105
+ * @throws {@link LambdaServiceException}
106
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
107
+ *
108
+ *
109
+ * @public
110
+ */
111
+ export declare class GetCapacityProviderCommand extends GetCapacityProviderCommand_base {
112
+ /** @internal type navigation helper, not in runtime. */
113
+ protected static __types: {
114
+ api: {
115
+ input: GetCapacityProviderRequest;
116
+ output: GetCapacityProviderResponse;
117
+ };
118
+ sdk: {
119
+ input: GetCapacityProviderCommandInput;
120
+ output: GetCapacityProviderCommandOutput;
121
+ };
122
+ };
123
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { GetDurableExecutionRequest, GetDurableExecutionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetDurableExecutionCommand}.
14
+ */
15
+ export interface GetDurableExecutionCommandInput extends GetDurableExecutionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDurableExecutionCommand}.
21
+ */
22
+ export interface GetDurableExecutionCommandOutput extends GetDurableExecutionResponse, __MetadataBearer {
23
+ }
24
+ declare const GetDurableExecutionCommand_base: {
25
+ new (input: GetDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionCommandInput, GetDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionCommandInput, GetDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves detailed information about a specific <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>, including its current status, input payload, result or error information, and execution metadata such as start time and usage statistics.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, GetDurableExecutionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, GetDurableExecutionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // GetDurableExecutionRequest
40
+ * DurableExecutionArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetDurableExecutionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetDurableExecutionResponse
45
+ * // DurableExecutionArn: "STRING_VALUE", // required
46
+ * // DurableExecutionName: "STRING_VALUE", // required
47
+ * // FunctionArn: "STRING_VALUE", // required
48
+ * // InputPayload: "STRING_VALUE",
49
+ * // Result: "STRING_VALUE",
50
+ * // Error: { // ErrorObject
51
+ * // ErrorMessage: "STRING_VALUE",
52
+ * // ErrorType: "STRING_VALUE",
53
+ * // ErrorData: "STRING_VALUE",
54
+ * // StackTrace: [ // StackTraceEntries
55
+ * // "STRING_VALUE",
56
+ * // ],
57
+ * // },
58
+ * // StartTimestamp: new Date("TIMESTAMP"), // required
59
+ * // Status: "RUNNING" || "SUCCEEDED" || "FAILED" || "TIMED_OUT" || "STOPPED", // required
60
+ * // EndTimestamp: new Date("TIMESTAMP"),
61
+ * // Version: "STRING_VALUE",
62
+ * // TraceHeader: { // TraceHeader
63
+ * // XAmznTraceId: "STRING_VALUE",
64
+ * // },
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param GetDurableExecutionCommandInput - {@link GetDurableExecutionCommandInput}
70
+ * @returns {@link GetDurableExecutionCommandOutput}
71
+ * @see {@link GetDurableExecutionCommandInput} for command's `input` shape.
72
+ * @see {@link GetDurableExecutionCommandOutput} for command's `response` shape.
73
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
74
+ *
75
+ * @throws {@link InvalidParameterValueException} (client fault)
76
+ * <p>One of the parameters in the request is not valid.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The resource specified in the request does not exist.</p>
80
+ *
81
+ * @throws {@link ServiceException} (server fault)
82
+ * <p>The Lambda service encountered an internal error.</p>
83
+ *
84
+ * @throws {@link TooManyRequestsException} (client fault)
85
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
86
+ *
87
+ * @throws {@link LambdaServiceException}
88
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class GetDurableExecutionCommand extends GetDurableExecutionCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: GetDurableExecutionRequest;
98
+ output: GetDurableExecutionResponse;
99
+ };
100
+ sdk: {
101
+ input: GetDurableExecutionCommandInput;
102
+ output: GetDurableExecutionCommandOutput;
103
+ };
104
+ };
105
+ }