@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.
- package/README.md +136 -0
- package/dist-cjs/index.js +1663 -100
- package/dist-es/Lambda.js +34 -0
- package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
- package/dist-es/commands/CreateCapacityProviderCommand.js +16 -0
- package/dist-es/commands/DeleteCapacityProviderCommand.js +16 -0
- package/dist-es/commands/GetCapacityProviderCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
- package/dist-es/commands/GetFunctionScalingConfigCommand.js +16 -0
- package/dist-es/commands/ListCapacityProvidersCommand.js +16 -0
- package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
- package/dist-es/commands/ListFunctionVersionsByCapacityProviderCommand.js +16 -0
- package/dist-es/commands/PutFunctionScalingConfigCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
- package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
- package/dist-es/commands/UpdateCapacityProviderCommand.js +16 -0
- package/dist-es/commands/index.js +17 -0
- package/dist-es/models/enums.js +109 -6
- package/dist-es/models/errors.js +76 -0
- package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
- package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
- package/dist-es/pagination/ListCapacityProvidersPaginator.js +4 -0
- package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
- package/dist-es/pagination/ListFunctionVersionsByCapacityProviderPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/schemas/schemas_0.js +1216 -95
- package/dist-types/Lambda.d.ts +120 -0
- package/dist-types/LambdaClient.d.ts +19 -2
- package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
- package/dist-types/commands/CreateCapacityProviderCommand.d.ts +162 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +38 -3
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +126 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -4
- package/dist-types/commands/GetCapacityProviderCommand.d.ts +123 -0
- package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
- package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
- package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +19 -3
- package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +19 -3
- package/dist-types/commands/GetFunctionScalingConfigCommand.d.ts +95 -0
- package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/dist-types/commands/InvokeCommand.d.ts +11 -1
- package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +4 -1
- package/dist-types/commands/ListCapacityProvidersCommand.d.ts +125 -0
- package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
- package/dist-types/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +95 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +19 -3
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +23 -3
- package/dist-types/commands/PublishVersionCommand.d.ts +19 -3
- package/dist-types/commands/PutFunctionScalingConfigCommand.d.ts +94 -0
- package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
- package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
- package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
- package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +136 -0
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +16 -3
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +34 -3
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/models/enums.d.ts +189 -14
- package/dist-types/models/errors.d.ts +89 -1
- package/dist-types/models/models_0.d.ts +3205 -1373
- package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
- package/dist-types/pagination/ListCapacityProvidersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/schemas/schemas_0.d.ts +134 -0
- package/dist-types/ts3.4/Lambda.d.ts +314 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +102 -0
- package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +8 -3
- package/dist-types/ts3.4/commands/GetCapacityProviderCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFunctionScalingConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCapacityProvidersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutFunctionScalingConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
- package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/models/enums.d.ts +126 -7
- package/dist-types/ts3.4/models/errors.d.ts +52 -0
- package/dist-types/ts3.4/models/models_0.d.ts +494 -42
- package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCapacityProvidersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
- package/package.json +5 -5
|
@@ -0,0 +1,94 @@
|
|
|
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 { PutFunctionScalingConfigRequest, PutFunctionScalingConfigResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutFunctionScalingConfigCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutFunctionScalingConfigCommandInput extends PutFunctionScalingConfigRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutFunctionScalingConfigCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutFunctionScalingConfigCommandOutput extends PutFunctionScalingConfigResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutFunctionScalingConfigCommand_base: {
|
|
25
|
+
new (input: PutFunctionScalingConfigCommandInput): import("@smithy/smithy-client").CommandImpl<PutFunctionScalingConfigCommandInput, PutFunctionScalingConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: PutFunctionScalingConfigCommandInput): import("@smithy/smithy-client").CommandImpl<PutFunctionScalingConfigCommandInput, PutFunctionScalingConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Sets the scaling configuration for a Lambda Managed Instances function. The scaling configuration defines the minimum and maximum number of execution environments that can be provisioned for the function, allowing you to control scaling behavior and resource allocation.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, PutFunctionScalingConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, PutFunctionScalingConfigCommand } = 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 = { // PutFunctionScalingConfigRequest
|
|
40
|
+
* FunctionName: "STRING_VALUE", // required
|
|
41
|
+
* Qualifier: "STRING_VALUE", // required
|
|
42
|
+
* FunctionScalingConfig: { // FunctionScalingConfig
|
|
43
|
+
* MinExecutionEnvironments: Number("int"),
|
|
44
|
+
* MaxExecutionEnvironments: Number("int"),
|
|
45
|
+
* },
|
|
46
|
+
* };
|
|
47
|
+
* const command = new PutFunctionScalingConfigCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // PutFunctionScalingConfigResponse
|
|
50
|
+
* // FunctionState: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param PutFunctionScalingConfigCommandInput - {@link PutFunctionScalingConfigCommandInput}
|
|
56
|
+
* @returns {@link PutFunctionScalingConfigCommandOutput}
|
|
57
|
+
* @see {@link PutFunctionScalingConfigCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link PutFunctionScalingConfigCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
62
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
65
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceException} (server fault)
|
|
71
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
74
|
+
* <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>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link LambdaServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class PutFunctionScalingConfigCommand extends PutFunctionScalingConfigCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: PutFunctionScalingConfigRequest;
|
|
87
|
+
output: PutFunctionScalingConfigResponse;
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: PutFunctionScalingConfigCommandInput;
|
|
91
|
+
output: PutFunctionScalingConfigCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { SendDurableExecutionCallbackFailureRequest, SendDurableExecutionCallbackFailureResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendDurableExecutionCallbackFailureCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendDurableExecutionCallbackFailureCommandInput extends SendDurableExecutionCallbackFailureRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendDurableExecutionCallbackFailureCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendDurableExecutionCallbackFailureCommandOutput extends SendDurableExecutionCallbackFailureResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendDurableExecutionCallbackFailureCommand_base: {
|
|
25
|
+
new (input: SendDurableExecutionCallbackFailureCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackFailureCommandInput, SendDurableExecutionCallbackFailureCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: SendDurableExecutionCallbackFailureCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackFailureCommandInput, SendDurableExecutionCallbackFailureCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Sends a failure response for a callback operation in a durable execution. Use this API when an external system cannot complete a callback operation successfully.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, SendDurableExecutionCallbackFailureCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, SendDurableExecutionCallbackFailureCommand } = 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 = { // SendDurableExecutionCallbackFailureRequest
|
|
40
|
+
* CallbackId: "STRING_VALUE", // required
|
|
41
|
+
* Error: { // ErrorObject
|
|
42
|
+
* ErrorMessage: "STRING_VALUE",
|
|
43
|
+
* ErrorType: "STRING_VALUE",
|
|
44
|
+
* ErrorData: "STRING_VALUE",
|
|
45
|
+
* StackTrace: [ // StackTraceEntries
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new SendDurableExecutionCallbackFailureCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // {};
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param SendDurableExecutionCallbackFailureCommandInput - {@link SendDurableExecutionCallbackFailureCommandInput}
|
|
57
|
+
* @returns {@link SendDurableExecutionCallbackFailureCommandOutput}
|
|
58
|
+
* @see {@link SendDurableExecutionCallbackFailureCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link SendDurableExecutionCallbackFailureCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link CallbackTimeoutException} (client fault)
|
|
63
|
+
* <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
66
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ServiceException} (server fault)
|
|
69
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
72
|
+
* <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>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link LambdaServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class SendDurableExecutionCallbackFailureCommand extends SendDurableExecutionCallbackFailureCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: SendDurableExecutionCallbackFailureRequest;
|
|
85
|
+
output: {};
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: SendDurableExecutionCallbackFailureCommandInput;
|
|
89
|
+
output: SendDurableExecutionCallbackFailureCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { SendDurableExecutionCallbackHeartbeatRequest, SendDurableExecutionCallbackHeartbeatResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendDurableExecutionCallbackHeartbeatCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendDurableExecutionCallbackHeartbeatCommandInput extends SendDurableExecutionCallbackHeartbeatRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendDurableExecutionCallbackHeartbeatCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendDurableExecutionCallbackHeartbeatCommandOutput extends SendDurableExecutionCallbackHeartbeatResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendDurableExecutionCallbackHeartbeatCommand_base: {
|
|
25
|
+
new (input: SendDurableExecutionCallbackHeartbeatCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackHeartbeatCommandInput, SendDurableExecutionCallbackHeartbeatCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: SendDurableExecutionCallbackHeartbeatCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackHeartbeatCommandInput, SendDurableExecutionCallbackHeartbeatCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Sends a heartbeat signal for a long-running callback operation to prevent timeout. Use this API to extend the callback timeout period while the external operation is still in progress.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, SendDurableExecutionCallbackHeartbeatCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, SendDurableExecutionCallbackHeartbeatCommand } = 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 = { // SendDurableExecutionCallbackHeartbeatRequest
|
|
40
|
+
* CallbackId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new SendDurableExecutionCallbackHeartbeatCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param SendDurableExecutionCallbackHeartbeatCommandInput - {@link SendDurableExecutionCallbackHeartbeatCommandInput}
|
|
49
|
+
* @returns {@link SendDurableExecutionCallbackHeartbeatCommandOutput}
|
|
50
|
+
* @see {@link SendDurableExecutionCallbackHeartbeatCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link SendDurableExecutionCallbackHeartbeatCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link CallbackTimeoutException} (client fault)
|
|
55
|
+
* <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
58
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ServiceException} (server fault)
|
|
61
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
64
|
+
* <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>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link LambdaServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class SendDurableExecutionCallbackHeartbeatCommand extends SendDurableExecutionCallbackHeartbeatCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: SendDurableExecutionCallbackHeartbeatRequest;
|
|
77
|
+
output: {};
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: SendDurableExecutionCallbackHeartbeatCommandInput;
|
|
81
|
+
output: SendDurableExecutionCallbackHeartbeatCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
|
|
4
|
+
import { SendDurableExecutionCallbackSuccessRequest, SendDurableExecutionCallbackSuccessResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type SendDurableExecutionCallbackSuccessCommandInputType = Omit<SendDurableExecutionCallbackSuccessRequest, "Result"> & {
|
|
14
|
+
Result?: BlobPayloadInputTypes;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The input for {@link SendDurableExecutionCallbackSuccessCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface SendDurableExecutionCallbackSuccessCommandInput extends SendDurableExecutionCallbackSuccessCommandInputType {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* The output of {@link SendDurableExecutionCallbackSuccessCommand}.
|
|
27
|
+
*/
|
|
28
|
+
export interface SendDurableExecutionCallbackSuccessCommandOutput extends SendDurableExecutionCallbackSuccessResponse, __MetadataBearer {
|
|
29
|
+
}
|
|
30
|
+
declare const SendDurableExecutionCallbackSuccessCommand_base: {
|
|
31
|
+
new (input: SendDurableExecutionCallbackSuccessCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackSuccessCommandInput, SendDurableExecutionCallbackSuccessCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
32
|
+
new (input: SendDurableExecutionCallbackSuccessCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackSuccessCommandInput, SendDurableExecutionCallbackSuccessCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
33
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* <p>Sends a successful completion response for a callback operation in a durable execution. Use this API when an external system has successfully completed a callback operation.</p>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { LambdaClient, SendDurableExecutionCallbackSuccessCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
41
|
+
* // const { LambdaClient, SendDurableExecutionCallbackSuccessCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
42
|
+
* // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
43
|
+
* const config = {}; // type is LambdaClientConfig
|
|
44
|
+
* const client = new LambdaClient(config);
|
|
45
|
+
* const input = { // SendDurableExecutionCallbackSuccessRequest
|
|
46
|
+
* CallbackId: "STRING_VALUE", // required
|
|
47
|
+
* Result: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
48
|
+
* };
|
|
49
|
+
* const command = new SendDurableExecutionCallbackSuccessCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // {};
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param SendDurableExecutionCallbackSuccessCommandInput - {@link SendDurableExecutionCallbackSuccessCommandInput}
|
|
56
|
+
* @returns {@link SendDurableExecutionCallbackSuccessCommandOutput}
|
|
57
|
+
* @see {@link SendDurableExecutionCallbackSuccessCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link SendDurableExecutionCallbackSuccessCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link CallbackTimeoutException} (client fault)
|
|
62
|
+
* <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
65
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceException} (server fault)
|
|
68
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
71
|
+
* <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>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link LambdaServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class SendDurableExecutionCallbackSuccessCommand extends SendDurableExecutionCallbackSuccessCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: SendDurableExecutionCallbackSuccessRequest;
|
|
84
|
+
output: {};
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: SendDurableExecutionCallbackSuccessCommandInput;
|
|
88
|
+
output: SendDurableExecutionCallbackSuccessCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { StopDurableExecutionRequest, StopDurableExecutionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopDurableExecutionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopDurableExecutionCommandInput extends StopDurableExecutionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopDurableExecutionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopDurableExecutionCommandOutput extends StopDurableExecutionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopDurableExecutionCommand_base: {
|
|
25
|
+
new (input: StopDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StopDurableExecutionCommandInput, StopDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StopDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StopDurableExecutionCommandInput, StopDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Stops a running <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>. The execution transitions to STOPPED status and cannot be resumed. Any in-progress operations are terminated.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, StopDurableExecutionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, StopDurableExecutionCommand } = 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 = { // StopDurableExecutionRequest
|
|
40
|
+
* DurableExecutionArn: "STRING_VALUE", // required
|
|
41
|
+
* Error: { // ErrorObject
|
|
42
|
+
* ErrorMessage: "STRING_VALUE",
|
|
43
|
+
* ErrorType: "STRING_VALUE",
|
|
44
|
+
* ErrorData: "STRING_VALUE",
|
|
45
|
+
* StackTrace: [ // StackTraceEntries
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new StopDurableExecutionCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // StopDurableExecutionResponse
|
|
53
|
+
* // StopTimestamp: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param StopDurableExecutionCommandInput - {@link StopDurableExecutionCommandInput}
|
|
59
|
+
* @returns {@link StopDurableExecutionCommandOutput}
|
|
60
|
+
* @see {@link StopDurableExecutionCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link StopDurableExecutionCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
65
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceException} (server fault)
|
|
71
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
74
|
+
* <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>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link LambdaServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class StopDurableExecutionCommand extends StopDurableExecutionCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: StopDurableExecutionRequest;
|
|
87
|
+
output: StopDurableExecutionResponse;
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: StopDurableExecutionCommandInput;
|
|
91
|
+
output: StopDurableExecutionCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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 { UpdateCapacityProviderRequest, UpdateCapacityProviderResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateCapacityProviderCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateCapacityProviderCommandInput extends UpdateCapacityProviderRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateCapacityProviderCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateCapacityProviderCommandOutput extends UpdateCapacityProviderResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateCapacityProviderCommand_base: {
|
|
25
|
+
new (input: UpdateCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCapacityProviderCommandInput, UpdateCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateCapacityProviderCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCapacityProviderCommandInput, UpdateCapacityProviderCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates the configuration of an existing capacity provider.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, UpdateCapacityProviderCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, UpdateCapacityProviderCommand } = 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 = { // UpdateCapacityProviderRequest
|
|
40
|
+
* CapacityProviderName: "STRING_VALUE", // required
|
|
41
|
+
* CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
|
|
42
|
+
* MaxVCpuCount: Number("int"),
|
|
43
|
+
* ScalingMode: "Auto" || "Manual",
|
|
44
|
+
* ScalingPolicies: [ // CapacityProviderScalingPoliciesList
|
|
45
|
+
* { // TargetTrackingScalingPolicy
|
|
46
|
+
* PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
|
|
47
|
+
* TargetValue: Number("double"), // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* };
|
|
52
|
+
* const command = new UpdateCapacityProviderCommand(input);
|
|
53
|
+
* const response = await client.send(command);
|
|
54
|
+
* // { // UpdateCapacityProviderResponse
|
|
55
|
+
* // CapacityProvider: { // CapacityProvider
|
|
56
|
+
* // CapacityProviderArn: "STRING_VALUE", // required
|
|
57
|
+
* // State: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
58
|
+
* // VpcConfig: { // CapacityProviderVpcConfig
|
|
59
|
+
* // SubnetIds: [ // CapacityProviderSubnetIds // required
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // SecurityGroupIds: [ // CapacityProviderSecurityGroupIds // required
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // },
|
|
66
|
+
* // PermissionsConfig: { // CapacityProviderPermissionsConfig
|
|
67
|
+
* // CapacityProviderOperatorRoleArn: "STRING_VALUE", // required
|
|
68
|
+
* // },
|
|
69
|
+
* // InstanceRequirements: { // InstanceRequirements
|
|
70
|
+
* // Architectures: [ // ArchitecturesList
|
|
71
|
+
* // "x86_64" || "arm64",
|
|
72
|
+
* // ],
|
|
73
|
+
* // AllowedInstanceTypes: [ // InstanceTypeSet
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // ExcludedInstanceTypes: [
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // },
|
|
80
|
+
* // CapacityProviderScalingConfig: { // CapacityProviderScalingConfig
|
|
81
|
+
* // MaxVCpuCount: Number("int"),
|
|
82
|
+
* // ScalingMode: "Auto" || "Manual",
|
|
83
|
+
* // ScalingPolicies: [ // CapacityProviderScalingPoliciesList
|
|
84
|
+
* // { // TargetTrackingScalingPolicy
|
|
85
|
+
* // PredefinedMetricType: "LambdaCapacityProviderAverageCPUUtilization", // required
|
|
86
|
+
* // TargetValue: Number("double"), // required
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // },
|
|
90
|
+
* // KmsKeyArn: "STRING_VALUE",
|
|
91
|
+
* // LastModified: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param UpdateCapacityProviderCommandInput - {@link UpdateCapacityProviderCommandInput}
|
|
98
|
+
* @returns {@link UpdateCapacityProviderCommandOutput}
|
|
99
|
+
* @see {@link UpdateCapacityProviderCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link UpdateCapacityProviderCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
104
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
107
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
110
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ServiceException} (server fault)
|
|
113
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
116
|
+
* <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>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link LambdaServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare class UpdateCapacityProviderCommand extends UpdateCapacityProviderCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: UpdateCapacityProviderRequest;
|
|
129
|
+
output: UpdateCapacityProviderResponse;
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: UpdateCapacityProviderCommandInput;
|
|
133
|
+
output: UpdateCapacityProviderCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -50,6 +50,7 @@ declare const UpdateFunctionCodeCommand_base: {
|
|
|
50
50
|
* "x86_64" || "arm64",
|
|
51
51
|
* ],
|
|
52
52
|
* SourceKMSKeyArn: "STRING_VALUE",
|
|
53
|
+
* PublishTo: "LATEST_PUBLISHED",
|
|
53
54
|
* };
|
|
54
55
|
* const command = new UpdateFunctionCodeCommand(input);
|
|
55
56
|
* const response = await client.send(command);
|
|
@@ -102,12 +103,12 @@ declare const UpdateFunctionCodeCommand_base: {
|
|
|
102
103
|
* // SigningJobArn: "STRING_VALUE",
|
|
103
104
|
* // },
|
|
104
105
|
* // ],
|
|
105
|
-
* // State: "Pending" || "Active" || "Inactive" || "Failed",
|
|
106
|
+
* // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
|
|
106
107
|
* // StateReason: "STRING_VALUE",
|
|
107
|
-
* // 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",
|
|
108
|
+
* // 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",
|
|
108
109
|
* // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
|
|
109
110
|
* // LastUpdateStatusReason: "STRING_VALUE",
|
|
110
|
-
* // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError",
|
|
111
|
+
* // 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",
|
|
111
112
|
* // FileSystemConfigs: [ // FileSystemConfigList
|
|
112
113
|
* // { // FileSystemConfig
|
|
113
114
|
* // Arn: "STRING_VALUE", // required
|
|
@@ -155,6 +156,18 @@ declare const UpdateFunctionCodeCommand_base: {
|
|
|
155
156
|
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
156
157
|
* // LogGroup: "STRING_VALUE",
|
|
157
158
|
* // },
|
|
159
|
+
* // CapacityProviderConfig: { // CapacityProviderConfig
|
|
160
|
+
* // LambdaManagedInstancesCapacityProviderConfig: { // LambdaManagedInstancesCapacityProviderConfig
|
|
161
|
+
* // CapacityProviderArn: "STRING_VALUE", // required
|
|
162
|
+
* // PerExecutionEnvironmentMaxConcurrency: Number("int"),
|
|
163
|
+
* // ExecutionEnvironmentMemoryGiBPerVCpu: Number("double"),
|
|
164
|
+
* // },
|
|
165
|
+
* // },
|
|
166
|
+
* // ConfigSha256: "STRING_VALUE",
|
|
167
|
+
* // DurableConfig: { // DurableConfig
|
|
168
|
+
* // RetentionPeriodInDays: Number("int"),
|
|
169
|
+
* // ExecutionTimeout: Number("int"),
|
|
170
|
+
* // },
|
|
158
171
|
* // TenancyConfig: { // TenancyConfig
|
|
159
172
|
* // TenantIsolationMode: "PER_TENANT", // required
|
|
160
173
|
* // },
|