@aws-sdk/client-lambda 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Lambda.js +254 -261
  3. package/dist-es/LambdaClient.js +22 -28
  4. package/dist-es/commands/AddLayerVersionPermissionCommand.js +21 -28
  5. package/dist-es/commands/AddPermissionCommand.js +21 -28
  6. package/dist-es/commands/CreateAliasCommand.js +21 -28
  7. package/dist-es/commands/CreateCodeSigningConfigCommand.js +21 -28
  8. package/dist-es/commands/CreateEventSourceMappingCommand.js +21 -28
  9. package/dist-es/commands/CreateFunctionCommand.js +21 -28
  10. package/dist-es/commands/CreateFunctionUrlConfigCommand.js +21 -28
  11. package/dist-es/commands/DeleteAliasCommand.js +22 -29
  12. package/dist-es/commands/DeleteCodeSigningConfigCommand.js +21 -28
  13. package/dist-es/commands/DeleteEventSourceMappingCommand.js +21 -28
  14. package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +22 -29
  15. package/dist-es/commands/DeleteFunctionCommand.js +22 -29
  16. package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +22 -29
  17. package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +22 -29
  18. package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +22 -29
  19. package/dist-es/commands/DeleteLayerVersionCommand.js +22 -29
  20. package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +22 -29
  21. package/dist-es/commands/GetAccountSettingsCommand.js +21 -28
  22. package/dist-es/commands/GetAliasCommand.js +21 -28
  23. package/dist-es/commands/GetCodeSigningConfigCommand.js +21 -28
  24. package/dist-es/commands/GetEventSourceMappingCommand.js +21 -28
  25. package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +21 -28
  26. package/dist-es/commands/GetFunctionCommand.js +21 -28
  27. package/dist-es/commands/GetFunctionConcurrencyCommand.js +21 -28
  28. package/dist-es/commands/GetFunctionConfigurationCommand.js +21 -28
  29. package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +21 -28
  30. package/dist-es/commands/GetFunctionUrlConfigCommand.js +21 -28
  31. package/dist-es/commands/GetLayerVersionByArnCommand.js +21 -28
  32. package/dist-es/commands/GetLayerVersionCommand.js +21 -28
  33. package/dist-es/commands/GetLayerVersionPolicyCommand.js +21 -28
  34. package/dist-es/commands/GetPolicyCommand.js +21 -28
  35. package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +21 -28
  36. package/dist-es/commands/InvokeAsyncCommand.js +21 -28
  37. package/dist-es/commands/InvokeCommand.js +21 -28
  38. package/dist-es/commands/ListAliasesCommand.js +21 -28
  39. package/dist-es/commands/ListCodeSigningConfigsCommand.js +21 -28
  40. package/dist-es/commands/ListEventSourceMappingsCommand.js +21 -28
  41. package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +21 -28
  42. package/dist-es/commands/ListFunctionUrlConfigsCommand.js +21 -28
  43. package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +21 -28
  44. package/dist-es/commands/ListFunctionsCommand.js +21 -28
  45. package/dist-es/commands/ListLayerVersionsCommand.js +21 -28
  46. package/dist-es/commands/ListLayersCommand.js +21 -28
  47. package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +21 -28
  48. package/dist-es/commands/ListTagsCommand.js +21 -28
  49. package/dist-es/commands/ListVersionsByFunctionCommand.js +21 -28
  50. package/dist-es/commands/PublishLayerVersionCommand.js +21 -28
  51. package/dist-es/commands/PublishVersionCommand.js +21 -28
  52. package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +21 -28
  53. package/dist-es/commands/PutFunctionConcurrencyCommand.js +21 -28
  54. package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +21 -28
  55. package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +21 -28
  56. package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +22 -29
  57. package/dist-es/commands/RemovePermissionCommand.js +22 -29
  58. package/dist-es/commands/TagResourceCommand.js +22 -29
  59. package/dist-es/commands/UntagResourceCommand.js +22 -29
  60. package/dist-es/commands/UpdateAliasCommand.js +21 -28
  61. package/dist-es/commands/UpdateCodeSigningConfigCommand.js +21 -28
  62. package/dist-es/commands/UpdateEventSourceMappingCommand.js +21 -28
  63. package/dist-es/commands/UpdateFunctionCodeCommand.js +21 -28
  64. package/dist-es/commands/UpdateFunctionConfigurationCommand.js +21 -28
  65. package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +21 -28
  66. package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +21 -28
  67. package/dist-es/endpoints.js +8 -8
  68. package/dist-es/models/LambdaServiceException.js +5 -10
  69. package/dist-es/models/models_0.js +910 -611
  70. package/dist-es/pagination/ListAliasesPaginator.js +25 -68
  71. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +25 -68
  72. package/dist-es/pagination/ListEventSourceMappingsPaginator.js +25 -68
  73. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +25 -68
  74. package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +25 -68
  75. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +25 -68
  76. package/dist-es/pagination/ListFunctionsPaginator.js +25 -68
  77. package/dist-es/pagination/ListLayerVersionsPaginator.js +25 -68
  78. package/dist-es/pagination/ListLayersPaginator.js +25 -68
  79. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +25 -68
  80. package/dist-es/pagination/ListVersionsByFunctionPaginator.js +25 -68
  81. package/dist-es/protocols/Aws_restJson1.js +6122 -7968
  82. package/dist-es/runtimeConfig.browser.js +26 -12
  83. package/dist-es/runtimeConfig.js +30 -12
  84. package/dist-es/runtimeConfig.native.js +8 -5
  85. package/dist-es/runtimeConfig.shared.js +8 -11
  86. package/dist-es/waiters/waitForFunctionActive.js +45 -65
  87. package/dist-es/waiters/waitForFunctionActiveV2.js +45 -65
  88. package/dist-es/waiters/waitForFunctionExists.js +23 -42
  89. package/dist-es/waiters/waitForFunctionUpdated.js +45 -65
  90. package/dist-es/waiters/waitForFunctionUpdatedV2.js +45 -65
  91. package/package.json +34 -34
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var LambdaClient = (function (_super) {
13
- __extends(LambdaClient, _super);
14
- function LambdaClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class LambdaClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- LambdaClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return LambdaClient;
38
- }(__Client));
39
- export { LambdaClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -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 { AddLayerVersionPermissionRequestFilterSensitiveLog, AddLayerVersionPermissionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AddLayerVersionPermissionCommand, serializeAws_restJson1AddLayerVersionPermissionCommand, } from "../protocols/Aws_restJson1";
6
- var AddLayerVersionPermissionCommand = (function (_super) {
7
- __extends(AddLayerVersionPermissionCommand, _super);
8
- function AddLayerVersionPermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddLayerVersionPermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddLayerVersionPermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "AddLayerVersionPermissionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "AddLayerVersionPermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddLayerVersionPermissionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AddLayerVersionPermissionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddLayerVersionPermissionCommand.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_restJson1AddLayerVersionPermissionCommand(input, context);
33
- };
34
- AddLayerVersionPermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AddLayerVersionPermissionCommand(output, context);
36
- };
37
- return AddLayerVersionPermissionCommand;
38
- }($Command));
39
- export { AddLayerVersionPermissionCommand };
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 { AddPermissionRequestFilterSensitiveLog, AddPermissionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AddPermissionCommand, serializeAws_restJson1AddPermissionCommand, } from "../protocols/Aws_restJson1";
6
- var AddPermissionCommand = (function (_super) {
7
- __extends(AddPermissionCommand, _super);
8
- function AddPermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddPermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddPermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "AddPermissionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "AddPermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddPermissionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AddPermissionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddPermissionCommand.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_restJson1AddPermissionCommand(input, context);
33
- };
34
- AddPermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AddPermissionCommand(output, context);
36
- };
37
- return AddPermissionCommand;
38
- }($Command));
39
- export { AddPermissionCommand };
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 { AliasConfigurationFilterSensitiveLog, CreateAliasRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAliasCommand, serializeAws_restJson1CreateAliasCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAliasCommand = (function (_super) {
7
- __extends(CreateAliasCommand, _super);
8
- function CreateAliasCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAliasCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "CreateAliasCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "CreateAliasCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAliasRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AliasConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAliasCommand.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_restJson1CreateAliasCommand(input, context);
33
- };
34
- CreateAliasCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAliasCommand(output, context);
36
- };
37
- return CreateAliasCommand;
38
- }($Command));
39
- export { CreateAliasCommand };
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 { CreateCodeSigningConfigRequestFilterSensitiveLog, CreateCodeSigningConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateCodeSigningConfigCommand, serializeAws_restJson1CreateCodeSigningConfigCommand, } from "../protocols/Aws_restJson1";
6
- var CreateCodeSigningConfigCommand = (function (_super) {
7
- __extends(CreateCodeSigningConfigCommand, _super);
8
- function CreateCodeSigningConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateCodeSigningConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateCodeSigningConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "CreateCodeSigningConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "CreateCodeSigningConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateCodeSigningConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateCodeSigningConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateCodeSigningConfigCommand.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_restJson1CreateCodeSigningConfigCommand(input, context);
33
- };
34
- CreateCodeSigningConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateCodeSigningConfigCommand(output, context);
36
- };
37
- return CreateCodeSigningConfigCommand;
38
- }($Command));
39
- export { CreateCodeSigningConfigCommand };
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 { CreateEventSourceMappingRequestFilterSensitiveLog, EventSourceMappingConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateEventSourceMappingCommand, serializeAws_restJson1CreateEventSourceMappingCommand, } from "../protocols/Aws_restJson1";
6
- var CreateEventSourceMappingCommand = (function (_super) {
7
- __extends(CreateEventSourceMappingCommand, _super);
8
- function CreateEventSourceMappingCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEventSourceMappingCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEventSourceMappingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "CreateEventSourceMappingCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "CreateEventSourceMappingCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEventSourceMappingRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: EventSourceMappingConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEventSourceMappingCommand.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_restJson1CreateEventSourceMappingCommand(input, context);
33
- };
34
- CreateEventSourceMappingCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateEventSourceMappingCommand(output, context);
36
- };
37
- return CreateEventSourceMappingCommand;
38
- }($Command));
39
- export { CreateEventSourceMappingCommand };
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 { CreateFunctionRequestFilterSensitiveLog, FunctionConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateFunctionCommand, serializeAws_restJson1CreateFunctionCommand, } from "../protocols/Aws_restJson1";
6
- var CreateFunctionCommand = (function (_super) {
7
- __extends(CreateFunctionCommand, _super);
8
- function CreateFunctionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateFunctionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateFunctionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "CreateFunctionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "CreateFunctionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateFunctionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateFunctionCommand.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_restJson1CreateFunctionCommand(input, context);
33
- };
34
- CreateFunctionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateFunctionCommand(output, context);
36
- };
37
- return CreateFunctionCommand;
38
- }($Command));
39
- export { CreateFunctionCommand };
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 { CreateFunctionUrlConfigRequestFilterSensitiveLog, CreateFunctionUrlConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateFunctionUrlConfigCommand, serializeAws_restJson1CreateFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
6
- var CreateFunctionUrlConfigCommand = (function (_super) {
7
- __extends(CreateFunctionUrlConfigCommand, _super);
8
- function CreateFunctionUrlConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateFunctionUrlConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "CreateFunctionUrlConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "CreateFunctionUrlConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateFunctionUrlConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateFunctionUrlConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateFunctionUrlConfigCommand.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_restJson1CreateFunctionUrlConfigCommand(input, context);
33
- };
34
- CreateFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateFunctionUrlConfigCommand(output, context);
36
- };
37
- return CreateFunctionUrlConfigCommand;
38
- }($Command));
39
- export { CreateFunctionUrlConfigCommand };
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 { DeleteAliasRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteAliasCommand, serializeAws_restJson1DeleteAliasCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteAliasCommand = (function (_super) {
7
- __extends(DeleteAliasCommand, _super);
8
- function DeleteAliasCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAliasCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "DeleteAliasCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "DeleteAliasCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAliasRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAliasCommand.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_restJson1DeleteAliasCommand(input, context);
33
- };
34
- DeleteAliasCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteAliasCommand(output, context);
36
- };
37
- return DeleteAliasCommand;
38
- }($Command));
39
- export { DeleteAliasCommand };
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 { DeleteCodeSigningConfigRequestFilterSensitiveLog, DeleteCodeSigningConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteCodeSigningConfigCommand, serializeAws_restJson1DeleteCodeSigningConfigCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteCodeSigningConfigCommand = (function (_super) {
7
- __extends(DeleteCodeSigningConfigCommand, _super);
8
- function DeleteCodeSigningConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCodeSigningConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCodeSigningConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LambdaClient";
18
- var commandName = "DeleteCodeSigningConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LambdaClient";
15
+ const commandName = "DeleteCodeSigningConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCodeSigningConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteCodeSigningConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCodeSigningConfigCommand.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_restJson1DeleteCodeSigningConfigCommand(input, context);
33
- };
34
- DeleteCodeSigningConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteCodeSigningConfigCommand(output, context);
36
- };
37
- return DeleteCodeSigningConfigCommand;
38
- }($Command));
39
- export { DeleteCodeSigningConfigCommand };
31
+ }
32
+ }