@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,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { FunctionConfigurationFilterSensitiveLog, UpdateFunctionCodeRequestFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UpdateFunctionCodeCommand, serializeAws_restJson1UpdateFunctionCodeCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateFunctionCodeCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFunctionCodeCommand, _super);
|
|
8
|
+
function UpdateFunctionCodeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateFunctionCodeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "UpdateFunctionCodeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateFunctionCodeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFunctionCodeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UpdateFunctionCodeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateFunctionCodeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UpdateFunctionCodeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateFunctionCodeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFunctionCodeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { FunctionConfigurationFilterSensitiveLog, UpdateFunctionConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UpdateFunctionConfigurationCommand, serializeAws_restJson1UpdateFunctionConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateFunctionConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFunctionConfigurationCommand, _super);
|
|
8
|
+
function UpdateFunctionConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateFunctionConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "UpdateFunctionConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateFunctionConfigurationRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFunctionConfigurationCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UpdateFunctionConfigurationCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateFunctionConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UpdateFunctionConfigurationCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateFunctionConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFunctionConfigurationCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { FunctionEventInvokeConfigFilterSensitiveLog, UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand, serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateFunctionEventInvokeConfigCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFunctionEventInvokeConfigCommand, _super);
|
|
8
|
+
function UpdateFunctionEventInvokeConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateFunctionEventInvokeConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "UpdateFunctionEventInvokeConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: FunctionEventInvokeConfigFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFunctionEventInvokeConfigCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateFunctionEventInvokeConfigCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateFunctionEventInvokeConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFunctionEventInvokeConfigCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateFunctionUrlConfigRequestFilterSensitiveLog, UpdateFunctionUrlConfigResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UpdateFunctionUrlConfigCommand, serializeAws_restJson1UpdateFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateFunctionUrlConfigCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFunctionUrlConfigCommand, _super);
|
|
8
|
+
function UpdateFunctionUrlConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "UpdateFunctionUrlConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateFunctionUrlConfigRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: UpdateFunctionUrlConfigResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UpdateFunctionUrlConfigCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UpdateFunctionUrlConfigCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateFunctionUrlConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFunctionUrlConfigCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"af-south-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -233,7 +234,7 @@ const regionHash = {
|
|
|
233
234
|
],
|
|
234
235
|
},
|
|
235
236
|
};
|
|
236
|
-
|
|
237
|
+
var partitionHash = {
|
|
237
238
|
aws: {
|
|
238
239
|
regions: [
|
|
239
240
|
"af-south-1",
|
|
@@ -357,9 +358,8 @@ const partitionHash = {
|
|
|
357
358
|
],
|
|
358
359
|
},
|
|
359
360
|
};
|
|
360
|
-
export
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
});
|
|
361
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
362
|
+
return __generator(this, function (_a) {
|
|
363
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "lambda", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
364
|
+
});
|
|
365
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var LambdaServiceException = (function (_super) {
|
|
4
|
+
__extends(LambdaServiceException, _super);
|
|
5
|
+
function LambdaServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, LambdaServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return LambdaServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { LambdaServiceException };
|