@aws-sdk/client-lambda 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +69 -63
- package/dist-es/Lambda.js +254 -261
- package/dist-es/LambdaClient.js +22 -28
- package/dist-es/commands/AddLayerVersionPermissionCommand.js +21 -28
- package/dist-es/commands/AddPermissionCommand.js +21 -28
- package/dist-es/commands/CreateAliasCommand.js +21 -28
- package/dist-es/commands/CreateCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/CreateEventSourceMappingCommand.js +21 -28
- package/dist-es/commands/CreateFunctionCommand.js +21 -28
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +21 -28
- package/dist-es/commands/DeleteAliasCommand.js +22 -29
- package/dist-es/commands/DeleteCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/DeleteEventSourceMappingCommand.js +21 -28
- package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +22 -29
- package/dist-es/commands/DeleteFunctionCommand.js +22 -29
- package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +22 -29
- package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +22 -29
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +22 -29
- package/dist-es/commands/DeleteLayerVersionCommand.js +22 -29
- package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +22 -29
- package/dist-es/commands/GetAccountSettingsCommand.js +21 -28
- package/dist-es/commands/GetAliasCommand.js +21 -28
- package/dist-es/commands/GetCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/GetEventSourceMappingCommand.js +21 -28
- package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/GetFunctionCommand.js +21 -28
- package/dist-es/commands/GetFunctionConcurrencyCommand.js +21 -28
- package/dist-es/commands/GetFunctionConfigurationCommand.js +21 -28
- package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +21 -28
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +21 -28
- package/dist-es/commands/GetLayerVersionByArnCommand.js +21 -28
- package/dist-es/commands/GetLayerVersionCommand.js +21 -28
- package/dist-es/commands/GetLayerVersionPolicyCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +21 -28
- package/dist-es/commands/InvokeAsyncCommand.js +21 -28
- package/dist-es/commands/InvokeCommand.js +21 -28
- package/dist-es/commands/ListAliasesCommand.js +21 -28
- package/dist-es/commands/ListCodeSigningConfigsCommand.js +21 -28
- package/dist-es/commands/ListEventSourceMappingsCommand.js +21 -28
- package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +21 -28
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +21 -28
- package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/ListFunctionsCommand.js +21 -28
- package/dist-es/commands/ListLayerVersionsCommand.js +21 -28
- package/dist-es/commands/ListLayersCommand.js +21 -28
- package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/ListVersionsByFunctionCommand.js +21 -28
- package/dist-es/commands/PublishLayerVersionCommand.js +21 -28
- package/dist-es/commands/PublishVersionCommand.js +21 -28
- package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/PutFunctionConcurrencyCommand.js +21 -28
- package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +21 -28
- package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +21 -28
- package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +22 -29
- package/dist-es/commands/RemovePermissionCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateAliasCommand.js +21 -28
- package/dist-es/commands/UpdateCodeSigningConfigCommand.js +21 -28
- package/dist-es/commands/UpdateEventSourceMappingCommand.js +21 -28
- package/dist-es/commands/UpdateFunctionCodeCommand.js +21 -28
- package/dist-es/commands/UpdateFunctionConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +21 -28
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LambdaServiceException.js +5 -10
- package/dist-es/models/models_0.js +910 -611
- package/dist-es/pagination/ListAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListEventSourceMappingsPaginator.js +25 -68
- package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +25 -68
- package/dist-es/pagination/ListFunctionsPaginator.js +25 -68
- package/dist-es/pagination/ListLayerVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListLayersPaginator.js +25 -68
- package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListVersionsByFunctionPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +6122 -7955
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForFunctionActive.js +45 -65
- package/dist-es/waiters/waitForFunctionActiveV2.js +45 -65
- package/dist-es/waiters/waitForFunctionExists.js +23 -42
- package/dist-es/waiters/waitForFunctionUpdated.js +45 -65
- package/dist-es/waiters/waitForFunctionUpdatedV2.js +45 -65
- package/package.json +34 -34
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { FunctionConfigurationFilterSensitiveLog, UpdateFunctionCodeRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1UpdateFunctionCodeCommand, serializeAws_restJson1UpdateFunctionCodeCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateFunctionCodeCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "LambdaClient";
|
|
15
|
+
const commandName = "UpdateFunctionCodeCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateFunctionCodeRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateFunctionCodeCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1UpdateFunctionCodeCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1UpdateFunctionCodeCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateFunctionCodeCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { FunctionConfigurationFilterSensitiveLog, UpdateFunctionConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1UpdateFunctionConfigurationCommand, serializeAws_restJson1UpdateFunctionConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateFunctionConfigurationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "LambdaClient";
|
|
15
|
+
const commandName = "UpdateFunctionConfigurationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateFunctionConfigurationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateFunctionConfigurationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1UpdateFunctionConfigurationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1UpdateFunctionConfigurationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateFunctionConfigurationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { FunctionEventInvokeConfigFilterSensitiveLog, UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand, serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateFunctionEventInvokeConfigCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "LambdaClient";
|
|
15
|
+
const commandName = "UpdateFunctionEventInvokeConfigCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: FunctionEventInvokeConfigFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateFunctionEventInvokeConfigCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateFunctionEventInvokeConfigCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UpdateFunctionUrlConfigRequestFilterSensitiveLog, UpdateFunctionUrlConfigResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1UpdateFunctionUrlConfigCommand, serializeAws_restJson1UpdateFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateFunctionUrlConfigCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "LambdaClient";
|
|
15
|
+
const commandName = "UpdateFunctionUrlConfigCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateFunctionUrlConfigRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UpdateFunctionUrlConfigResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1UpdateFunctionUrlConfigCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1UpdateFunctionUrlConfigCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateFunctionUrlConfigCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
"af-south-1": {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -234,7 +233,7 @@ var regionHash = {
|
|
|
234
233
|
],
|
|
235
234
|
},
|
|
236
235
|
};
|
|
237
|
-
|
|
236
|
+
const partitionHash = {
|
|
238
237
|
aws: {
|
|
239
238
|
regions: [
|
|
240
239
|
"af-south-1",
|
|
@@ -358,8 +357,9 @@ var partitionHash = {
|
|
|
358
357
|
],
|
|
359
358
|
},
|
|
360
359
|
};
|
|
361
|
-
export
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
360
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
361
|
+
...options,
|
|
362
|
+
signingService: "lambda",
|
|
363
|
+
regionHash,
|
|
364
|
+
partitionHash,
|
|
365
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, LambdaServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class LambdaServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, LambdaServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { LambdaServiceException };
|
|
7
|
+
}
|