@aws-sdk/client-lambda 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Lambda.js +261 -254
- package/dist-es/LambdaClient.js +28 -22
- package/dist-es/commands/AddLayerVersionPermissionCommand.js +28 -21
- package/dist-es/commands/AddPermissionCommand.js +28 -21
- package/dist-es/commands/CreateAliasCommand.js +28 -21
- package/dist-es/commands/CreateCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/CreateEventSourceMappingCommand.js +28 -21
- package/dist-es/commands/CreateFunctionCommand.js +28 -21
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +28 -21
- package/dist-es/commands/DeleteAliasCommand.js +29 -22
- package/dist-es/commands/DeleteCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/DeleteEventSourceMappingCommand.js +28 -21
- package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +29 -22
- package/dist-es/commands/DeleteFunctionCommand.js +29 -22
- package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +29 -22
- package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +29 -22
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +29 -22
- package/dist-es/commands/DeleteLayerVersionCommand.js +29 -22
- package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +29 -22
- package/dist-es/commands/GetAccountSettingsCommand.js +28 -21
- package/dist-es/commands/GetAliasCommand.js +28 -21
- package/dist-es/commands/GetCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/GetEventSourceMappingCommand.js +28 -21
- package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/GetFunctionCommand.js +28 -21
- package/dist-es/commands/GetFunctionConcurrencyCommand.js +28 -21
- package/dist-es/commands/GetFunctionConfigurationCommand.js +28 -21
- package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +28 -21
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +28 -21
- package/dist-es/commands/GetLayerVersionByArnCommand.js +28 -21
- package/dist-es/commands/GetLayerVersionCommand.js +28 -21
- package/dist-es/commands/GetLayerVersionPolicyCommand.js +28 -21
- package/dist-es/commands/GetPolicyCommand.js +28 -21
- package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +28 -21
- package/dist-es/commands/InvokeAsyncCommand.js +28 -21
- package/dist-es/commands/InvokeCommand.js +28 -21
- package/dist-es/commands/ListAliasesCommand.js +28 -21
- package/dist-es/commands/ListCodeSigningConfigsCommand.js +28 -21
- package/dist-es/commands/ListEventSourceMappingsCommand.js +28 -21
- package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +28 -21
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +28 -21
- package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/ListFunctionsCommand.js +28 -21
- package/dist-es/commands/ListLayerVersionsCommand.js +28 -21
- package/dist-es/commands/ListLayersCommand.js +28 -21
- package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +28 -21
- package/dist-es/commands/ListTagsCommand.js +28 -21
- package/dist-es/commands/ListVersionsByFunctionCommand.js +28 -21
- package/dist-es/commands/PublishLayerVersionCommand.js +28 -21
- package/dist-es/commands/PublishVersionCommand.js +28 -21
- package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/PutFunctionConcurrencyCommand.js +28 -21
- package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +28 -21
- package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +28 -21
- package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +29 -22
- package/dist-es/commands/RemovePermissionCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateAliasCommand.js +28 -21
- package/dist-es/commands/UpdateCodeSigningConfigCommand.js +28 -21
- package/dist-es/commands/UpdateEventSourceMappingCommand.js +28 -21
- package/dist-es/commands/UpdateFunctionCodeCommand.js +28 -21
- package/dist-es/commands/UpdateFunctionConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +28 -21
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LambdaServiceException.js +10 -5
- package/dist-es/models/models_0.js +611 -910
- package/dist-es/pagination/ListAliasesPaginator.js +68 -25
- package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +68 -25
- package/dist-es/pagination/ListEventSourceMappingsPaginator.js +68 -25
- package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +68 -25
- package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +68 -25
- package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +68 -25
- package/dist-es/pagination/ListFunctionsPaginator.js +68 -25
- package/dist-es/pagination/ListLayerVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListLayersPaginator.js +68 -25
- package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +68 -25
- package/dist-es/pagination/ListVersionsByFunctionPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +7958 -6112
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForFunctionActive.js +65 -45
- package/dist-es/waiters/waitForFunctionActiveV2.js +65 -45
- package/dist-es/waiters/waitForFunctionExists.js +42 -23
- package/dist-es/waiters/waitForFunctionUpdated.js +65 -45
- package/dist-es/waiters/waitForFunctionUpdatedV2.js +65 -45
- package/package.json +5 -5
|
@@ -1,49 +1,69 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { GetFunctionCommand } from "../commands/GetFunctionCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, returnComparator, returnComparator, exception_1;
|
|
6
|
+
return __generator(this, function (_a) {
|
|
7
|
+
switch (_a.label) {
|
|
8
|
+
case 0:
|
|
9
|
+
_a.trys.push([0, 2, , 3]);
|
|
10
|
+
return [4, client.send(new GetFunctionCommand(input))];
|
|
11
|
+
case 1:
|
|
12
|
+
result_1 = _a.sent();
|
|
13
|
+
reason = result_1;
|
|
14
|
+
try {
|
|
15
|
+
returnComparator = function () {
|
|
16
|
+
return result_1.Configuration.LastUpdateStatus;
|
|
17
|
+
};
|
|
18
|
+
if (returnComparator() === "Successful") {
|
|
19
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
catch (e) { }
|
|
23
|
+
try {
|
|
24
|
+
returnComparator = function () {
|
|
25
|
+
return result_1.Configuration.LastUpdateStatus;
|
|
26
|
+
};
|
|
27
|
+
if (returnComparator() === "Failed") {
|
|
28
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (e) { }
|
|
32
|
+
try {
|
|
33
|
+
returnComparator = function () {
|
|
34
|
+
return result_1.Configuration.LastUpdateStatus;
|
|
35
|
+
};
|
|
36
|
+
if (returnComparator() === "InProgress") {
|
|
37
|
+
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (e) { }
|
|
41
|
+
return [3, 3];
|
|
42
|
+
case 2:
|
|
43
|
+
exception_1 = _a.sent();
|
|
44
|
+
reason = exception_1;
|
|
45
|
+
return [3, 3];
|
|
46
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
15
47
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var waitForFunctionUpdatedV2 = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var serviceDefaults;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
54
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
55
|
+
});
|
|
56
|
+
}); };
|
|
57
|
+
export var waitUntilFunctionUpdatedV2 = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
+
var serviceDefaults, result;
|
|
59
|
+
return __generator(this, function (_a) {
|
|
60
|
+
switch (_a.label) {
|
|
61
|
+
case 0:
|
|
62
|
+
serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
63
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
64
|
+
case 1:
|
|
65
|
+
result = _a.sent();
|
|
66
|
+
return [2, checkExceptions(result)];
|
|
24
67
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
return result.Configuration.LastUpdateStatus;
|
|
29
|
-
};
|
|
30
|
-
if (returnComparator() === "InProgress") {
|
|
31
|
-
return { state: WaiterState.RETRY, reason };
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
}
|
|
36
|
-
catch (exception) {
|
|
37
|
-
reason = exception;
|
|
38
|
-
}
|
|
39
|
-
return { state: WaiterState.RETRY, reason };
|
|
40
|
-
};
|
|
41
|
-
export const waitForFunctionUpdatedV2 = async (params, input) => {
|
|
42
|
-
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
43
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
-
};
|
|
45
|
-
export const waitUntilFunctionUpdatedV2 = async (params, input) => {
|
|
46
|
-
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
47
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
-
return checkExceptions(result);
|
|
49
|
-
};
|
|
68
|
+
});
|
|
69
|
+
}); };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.185.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.185.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.185.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.183.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
30
|
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.185.0",
|
|
33
33
|
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
34
|
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
35
|
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.185.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
40
|
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
41
|
"@aws-sdk/types": "3.183.0",
|