@aws-sdk/client-lambda 3.36.0 → 3.39.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 (167) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Lambda.js +0 -9
  3. package/dist-cjs/LambdaClient.js +0 -14
  4. package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +0 -29
  5. package/dist-cjs/commands/AddPermissionCommand.js +0 -36
  6. package/dist-cjs/commands/CreateAliasCommand.js +0 -29
  7. package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +0 -26
  8. package/dist-cjs/commands/CreateEventSourceMappingCommand.js +0 -88
  9. package/dist-cjs/commands/CreateFunctionCommand.js +0 -70
  10. package/dist-cjs/commands/DeleteAliasCommand.js +0 -24
  11. package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +0 -25
  12. package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +0 -27
  13. package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +0 -24
  14. package/dist-cjs/commands/DeleteFunctionCommand.js +0 -29
  15. package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +0 -24
  16. package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +0 -25
  17. package/dist-cjs/commands/DeleteLayerVersionCommand.js +0 -26
  18. package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +0 -24
  19. package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -24
  20. package/dist-cjs/commands/GetAliasCommand.js +0 -24
  21. package/dist-cjs/commands/GetCodeSigningConfigCommand.js +0 -24
  22. package/dist-cjs/commands/GetEventSourceMappingCommand.js +0 -25
  23. package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +0 -24
  24. package/dist-cjs/commands/GetFunctionCommand.js +0 -26
  25. package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +0 -25
  26. package/dist-cjs/commands/GetFunctionConfigurationCommand.js +0 -26
  27. package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +0 -25
  28. package/dist-cjs/commands/GetLayerVersionByArnCommand.js +0 -26
  29. package/dist-cjs/commands/GetLayerVersionCommand.js +0 -26
  30. package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +0 -25
  31. package/dist-cjs/commands/GetPolicyCommand.js +0 -24
  32. package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +0 -24
  33. package/dist-cjs/commands/InvokeAsyncCommand.js +0 -29
  34. package/dist-cjs/commands/InvokeCommand.js +0 -50
  35. package/dist-cjs/commands/ListAliasesCommand.js +0 -25
  36. package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +0 -26
  37. package/dist-cjs/commands/ListEventSourceMappingsCommand.js +0 -25
  38. package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +0 -25
  39. package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +0 -25
  40. package/dist-cjs/commands/ListFunctionsCommand.js +0 -32
  41. package/dist-cjs/commands/ListLayerVersionsCommand.js +0 -27
  42. package/dist-cjs/commands/ListLayersCommand.js +0 -29
  43. package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +0 -24
  44. package/dist-cjs/commands/ListTagsCommand.js +0 -25
  45. package/dist-cjs/commands/ListVersionsByFunctionCommand.js +0 -25
  46. package/dist-cjs/commands/PublishLayerVersionCommand.js +0 -27
  47. package/dist-cjs/commands/PublishVersionCommand.js +0 -32
  48. package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +0 -25
  49. package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +0 -32
  50. package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +0 -34
  51. package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +0 -24
  52. package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +0 -26
  53. package/dist-cjs/commands/RemovePermissionCommand.js +0 -25
  54. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  55. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  56. package/dist-cjs/commands/UpdateAliasCommand.js +0 -24
  57. package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +0 -25
  58. package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +0 -49
  59. package/dist-cjs/commands/UpdateFunctionCodeCommand.js +0 -32
  60. package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +0 -38
  61. package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +0 -25
  62. package/dist-cjs/commands/index.js +61 -0
  63. package/dist-cjs/endpoints.js +6 -1
  64. package/dist-cjs/index.js +5 -74
  65. package/dist-cjs/models/models_0.js +0 -474
  66. package/dist-cjs/pagination/ListAliasesPaginator.js +0 -10
  67. package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +0 -10
  68. package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +0 -10
  69. package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +0 -10
  70. package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +0 -10
  71. package/dist-cjs/pagination/ListFunctionsPaginator.js +0 -10
  72. package/dist-cjs/pagination/ListLayerVersionsPaginator.js +0 -10
  73. package/dist-cjs/pagination/ListLayersPaginator.js +0 -10
  74. package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +0 -10
  75. package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +0 -10
  76. package/dist-cjs/pagination/index.js +14 -0
  77. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  78. package/dist-cjs/runtimeConfig.browser.js +1 -5
  79. package/dist-cjs/runtimeConfig.js +1 -5
  80. package/dist-cjs/runtimeConfig.native.js +0 -3
  81. package/dist-cjs/runtimeConfig.shared.js +0 -3
  82. package/dist-cjs/waiters/index.js +6 -0
  83. package/dist-cjs/waiters/waitForFunctionActive.js +0 -9
  84. package/dist-cjs/waiters/waitForFunctionExists.js +0 -9
  85. package/dist-cjs/waiters/waitForFunctionUpdated.js +0 -9
  86. package/dist-es/commands/index.js +58 -0
  87. package/dist-es/endpoints.js +6 -1
  88. package/dist-es/index.js +5 -74
  89. package/dist-es/pagination/index.js +11 -0
  90. package/dist-es/waiters/index.js +3 -0
  91. package/dist-types/commands/index.d.ts +58 -0
  92. package/dist-types/index.d.ts +5 -74
  93. package/dist-types/pagination/index.d.ts +11 -0
  94. package/dist-types/ts3.4/Lambda.d.ts +59 -478
  95. package/dist-types/ts3.4/LambdaClient.d.ts +24 -95
  96. package/dist-types/ts3.4/commands/AddLayerVersionPermissionCommand.d.ts +2 -25
  97. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +2 -32
  98. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -25
  99. package/dist-types/ts3.4/commands/CreateCodeSigningConfigCommand.d.ts +2 -22
  100. package/dist-types/ts3.4/commands/CreateEventSourceMappingCommand.d.ts +2 -84
  101. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -66
  102. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/DeleteCodeSigningConfigCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/DeleteEventSourceMappingCommand.d.ts +2 -23
  105. package/dist-types/ts3.4/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -25
  107. package/dist-types/ts3.4/commands/DeleteFunctionConcurrencyCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +2 -21
  109. package/dist-types/ts3.4/commands/DeleteLayerVersionCommand.d.ts +2 -22
  110. package/dist-types/ts3.4/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/GetCodeSigningConfigCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/GetEventSourceMappingCommand.d.ts +2 -21
  115. package/dist-types/ts3.4/commands/GetFunctionCodeSigningConfigCommand.d.ts +2 -20
  116. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -22
  117. package/dist-types/ts3.4/commands/GetFunctionConcurrencyCommand.d.ts +2 -21
  118. package/dist-types/ts3.4/commands/GetFunctionConfigurationCommand.d.ts +2 -22
  119. package/dist-types/ts3.4/commands/GetFunctionEventInvokeConfigCommand.d.ts +2 -21
  120. package/dist-types/ts3.4/commands/GetLayerVersionByArnCommand.d.ts +2 -22
  121. package/dist-types/ts3.4/commands/GetLayerVersionCommand.d.ts +2 -22
  122. package/dist-types/ts3.4/commands/GetLayerVersionPolicyCommand.d.ts +2 -21
  123. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/GetProvisionedConcurrencyConfigCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/InvokeAsyncCommand.d.ts +5 -32
  126. package/dist-types/ts3.4/commands/InvokeCommand.d.ts +2 -46
  127. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -21
  128. package/dist-types/ts3.4/commands/ListCodeSigningConfigsCommand.d.ts +2 -22
  129. package/dist-types/ts3.4/commands/ListEventSourceMappingsCommand.d.ts +2 -21
  130. package/dist-types/ts3.4/commands/ListFunctionEventInvokeConfigsCommand.d.ts +2 -21
  131. package/dist-types/ts3.4/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +2 -21
  132. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -28
  133. package/dist-types/ts3.4/commands/ListLayerVersionsCommand.d.ts +2 -23
  134. package/dist-types/ts3.4/commands/ListLayersCommand.d.ts +2 -25
  135. package/dist-types/ts3.4/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -21
  137. package/dist-types/ts3.4/commands/ListVersionsByFunctionCommand.d.ts +2 -21
  138. package/dist-types/ts3.4/commands/PublishLayerVersionCommand.d.ts +2 -23
  139. package/dist-types/ts3.4/commands/PublishVersionCommand.d.ts +2 -28
  140. package/dist-types/ts3.4/commands/PutFunctionCodeSigningConfigCommand.d.ts +2 -21
  141. package/dist-types/ts3.4/commands/PutFunctionConcurrencyCommand.d.ts +2 -28
  142. package/dist-types/ts3.4/commands/PutFunctionEventInvokeConfigCommand.d.ts +2 -30
  143. package/dist-types/ts3.4/commands/PutProvisionedConcurrencyConfigCommand.d.ts +2 -20
  144. package/dist-types/ts3.4/commands/RemoveLayerVersionPermissionCommand.d.ts +2 -22
  145. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +2 -21
  146. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  147. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  148. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -20
  149. package/dist-types/ts3.4/commands/UpdateCodeSigningConfigCommand.d.ts +2 -21
  150. package/dist-types/ts3.4/commands/UpdateEventSourceMappingCommand.d.ts +2 -45
  151. package/dist-types/ts3.4/commands/UpdateFunctionCodeCommand.d.ts +2 -28
  152. package/dist-types/ts3.4/commands/UpdateFunctionConfigurationCommand.d.ts +2 -34
  153. package/dist-types/ts3.4/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +2 -21
  154. package/dist-types/ts3.4/commands/index.d.ts +58 -0
  155. package/dist-types/ts3.4/index.d.ts +5 -74
  156. package/dist-types/ts3.4/models/models_0.d.ts +699 -3177
  157. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  158. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  159. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  160. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  161. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  162. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  163. package/dist-types/ts3.4/waiters/waitForFunctionActive.d.ts +2 -9
  164. package/dist-types/ts3.4/waiters/waitForFunctionExists.d.ts +2 -9
  165. package/dist-types/ts3.4/waiters/waitForFunctionUpdated.d.ts +2 -9
  166. package/dist-types/waiters/index.d.ts +3 -0
  167. package/package.json +33 -33
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves the provisioned concurrency configuration for a function's alias or version.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { LambdaClient, GetProvisionedConcurrencyConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
14
- * // const { LambdaClient, GetProvisionedConcurrencyConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
15
- * const client = new LambdaClient(config);
16
- * const command = new GetProvisionedConcurrencyConfigCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetProvisionedConcurrencyConfigCommandInput} for command's `input` shape.
21
- * @see {@link GetProvisionedConcurrencyConfigCommandOutput} for command's `response` shape.
22
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetProvisionedConcurrencyConfigCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * @deprecated
10
- *
11
- * <important>
12
- * <p>For asynchronous function invocation, use <a>Invoke</a>.</p>
13
- * </important>
14
- * <p>Invokes a function asynchronously.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { LambdaClient, InvokeAsyncCommand } from "@aws-sdk/client-lambda"; // ES Modules import
19
- * // const { LambdaClient, InvokeAsyncCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
20
- * const client = new LambdaClient(config);
21
- * const command = new InvokeAsyncCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link InvokeAsyncCommandInput} for command's `input` shape.
26
- * @see {@link InvokeAsyncCommandOutput} for command's `response` shape.
27
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class InvokeAsyncCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,61 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
10
- * asynchronously. To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>.</p>
11
- *
12
- * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>,
13
- * details about the function response, including errors, are included in the response body and headers. For either
14
- * invocation type, you can find more information in the <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p>
15
- *
16
- * <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,
17
- * client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an
18
- * error, Lambda executes the function up to two more times. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html">Retry Behavior</a>.</p>
19
- *
20
- * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>,
21
- * Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity
22
- * to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple
23
- * times, even if no error occurs. To retain events that were not processed, configure your function with a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq">dead-letter queue</a>.</p>
24
- *
25
- * <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
26
- * prevent your function from executing, such as permissions errors, <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limit errors</a>, or issues with your function's code and configuration.
27
- * For example, Lambda returns <code>TooManyRequestsException</code> if executing the function would cause you to
28
- * exceed a concurrency limit at either the account level (<code>ConcurrentInvocationLimitExceeded</code>) or
29
- * function level (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>
30
- *
31
- * <p>For functions with a long timeout, your client might be disconnected during synchronous invocation while it
32
- * waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long
33
- * connections with timeout or keep-alive settings.</p>
34
- *
35
- * <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { LambdaClient, InvokeCommand } from "@aws-sdk/client-lambda"; // ES Modules import
40
- * // const { LambdaClient, InvokeCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
41
- * const client = new LambdaClient(config);
42
- * const command = new InvokeCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link InvokeCommandInput} for command's `input` shape.
47
- * @see {@link InvokeCommandOutput} for command's `response` shape.
48
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
8
  class InvokeCommand extends smithy_client_1.Command {
52
- // Start section: command_properties
53
- // End section: command_properties
54
9
  constructor(input) {
55
- // Start section: command_constructor
56
10
  super();
57
11
  this.input = input;
58
- // End section: command_constructor
59
12
  }
60
- /**
61
- * @internal
62
- */
63
13
  resolveMiddleware(clientStack, configuration, options) {
64
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
65
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">aliases</a>
10
- * for a Lambda function.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListAliasesCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListAliasesCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListAliasesCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListAliasesCommandInput} for command's `input` shape.
22
- * @see {@link ListAliasesCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListAliasesCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html">code
10
- * signing configurations</a>. A request returns up to 10,000 configurations per
11
- * call. You can use the <code>MaxItems</code> parameter to return fewer configurations per call. </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { LambdaClient, ListCodeSigningConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
16
- * // const { LambdaClient, ListCodeSigningConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
17
- * const client = new LambdaClient(config);
18
- * const command = new ListCodeSigningConfigsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListCodeSigningConfigsCommandInput} for command's `input` shape.
23
- * @see {@link ListCodeSigningConfigsCommandOutput} for command's `response` shape.
24
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ListCodeSigningConfigsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists event source mappings. Specify an <code>EventSourceArn</code> to only show event source mappings for a
10
- * single event source.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListEventSourceMappingsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListEventSourceMappingsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListEventSourceMappingsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListEventSourceMappingsCommandInput} for command's `input` shape.
22
- * @see {@link ListEventSourceMappingsCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListEventSourceMappingsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves a list of configurations for asynchronous invocation for a function.</p>
10
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListFunctionEventInvokeConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListFunctionEventInvokeConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListFunctionEventInvokeConfigsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListFunctionEventInvokeConfigsCommandInput} for command's `input` shape.
22
- * @see {@link ListFunctionEventInvokeConfigsCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListFunctionEventInvokeConfigsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>List the functions that use the specified code signing configuration. You can use this method prior to deleting a
10
- * code signing configuration, to verify that no functions are using it.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListFunctionsByCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListFunctionsByCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListFunctionsByCodeSigningConfigCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListFunctionsByCodeSigningConfigCommandInput} for command's `input` shape.
22
- * @see {@link ListFunctionsByCodeSigningConfigCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListFunctionsByCodeSigningConfigCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50
10
- * functions per call.</p>
11
- * <p>Set <code>FunctionVersion</code> to <code>ALL</code> to include all published versions of each function in
12
- * addition to the unpublished version. </p>
13
- * <note>
14
- * <p>The <code>ListFunctions</code> action returns a subset of the <a>FunctionConfiguration</a> fields.
15
- * To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode)
16
- * for a function or version, use <a>GetFunction</a>.</p>
17
- * </note>
18
- * @example
19
- * Use a bare-bones client and the command you need to make an API call.
20
- * ```javascript
21
- * import { LambdaClient, ListFunctionsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
22
- * // const { LambdaClient, ListFunctionsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
23
- * const client = new LambdaClient(config);
24
- * const command = new ListFunctionsCommand(input);
25
- * const response = await client.send(command);
26
- * ```
27
- *
28
- * @see {@link ListFunctionsCommandInput} for command's `input` shape.
29
- * @see {@link ListFunctionsCommandOutput} for command's `response` shape.
30
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
31
- *
32
- */
33
8
  class ListFunctionsCommand extends smithy_client_1.Command {
34
- // Start section: command_properties
35
- // End section: command_properties
36
9
  constructor(input) {
37
- // Start section: command_constructor
38
10
  super();
39
11
  this.input = input;
40
- // End section: command_constructor
41
12
  }
42
- /**
43
- * @internal
44
- */
45
13
  resolveMiddleware(clientStack, configuration, options) {
46
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
47
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists the versions of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
10
- * layer</a>. Versions that have been deleted aren't listed. Specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime identifier</a> to list only
11
- * versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only
12
- * layer versions that are compatible with that architecture.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { LambdaClient, ListLayerVersionsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
17
- * // const { LambdaClient, ListLayerVersionsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
18
- * const client = new LambdaClient(config);
19
- * const command = new ListLayerVersionsCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ListLayerVersionsCommandInput} for command's `input` shape.
24
- * @see {@link ListLayerVersionsCommandOutput} for command's `response` shape.
25
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class ListLayerVersionsCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html">Lambda
10
- * layers</a> and shows information about the latest version of each. Specify a
11
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime
12
- * identifier</a> to list only layers that indicate that they're compatible with that
13
- * runtime. Specify a compatible architecture to include only layers that are compatible with
14
- * that <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { LambdaClient, ListLayersCommand } from "@aws-sdk/client-lambda"; // ES Modules import
19
- * // const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
20
- * const client = new LambdaClient(config);
21
- * const command = new ListLayersCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link ListLayersCommandInput} for command's `input` shape.
26
- * @see {@link ListLayersCommandOutput} for command's `response` shape.
27
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class ListLayersCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves a list of provisioned concurrency configurations for a function.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { LambdaClient, ListProvisionedConcurrencyConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
14
- * // const { LambdaClient, ListProvisionedConcurrencyConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
15
- * const client = new LambdaClient(config);
16
- * const command = new ListProvisionedConcurrencyConfigsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListProvisionedConcurrencyConfigsCommandInput} for command's `input` shape.
21
- * @see {@link ListProvisionedConcurrencyConfigsCommandOutput} for command's `response` shape.
22
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListProvisionedConcurrencyConfigsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
10
- * also view tags with <a>GetFunction</a>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListTagsCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListTagsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListTagsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListTagsCommandInput} for command's `input` shape.
22
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListTagsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">versions</a>,
10
- * with the version-specific configuration of each. Lambda returns up to 50 versions per call.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { LambdaClient, ListVersionsByFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
15
- * // const { LambdaClient, ListVersionsByFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
16
- * const client = new LambdaClient(config);
17
- * const command = new ListVersionsByFunctionCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListVersionsByFunctionCommandInput} for command's `input` shape.
22
- * @see {@link ListVersionsByFunctionCommandOutput} for command's `response` shape.
23
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListVersionsByFunctionCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
10
- * layer</a> from a ZIP archive. Each time you call <code>PublishLayerVersion</code> with the same
11
- * layer name, a new version is created.</p>
12
- * <p>Add layers to your function with <a>CreateFunction</a> or <a>UpdateFunctionConfiguration</a>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { LambdaClient, PublishLayerVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
17
- * // const { LambdaClient, PublishLayerVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
18
- * const client = new LambdaClient(config);
19
- * const command = new PublishLayerVersionCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link PublishLayerVersionCommandInput} for command's `input` shape.
24
- * @see {@link PublishLayerVersionCommandOutput} for command's `response` shape.
25
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class PublishLayerVersionCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the
10
- * current code and configuration of a function. Use versions to create a snapshot of your function code and
11
- * configuration that doesn't change.</p>
12
- *
13
- * <p>Lambda doesn't publish a version if the function's configuration and code haven't changed since the last
14
- * version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the
15
- * function before publishing a version.</p>
16
- *
17
- * <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>
18
- * @example
19
- * Use a bare-bones client and the command you need to make an API call.
20
- * ```javascript
21
- * import { LambdaClient, PublishVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
22
- * // const { LambdaClient, PublishVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
23
- * const client = new LambdaClient(config);
24
- * const command = new PublishVersionCommand(input);
25
- * const response = await client.send(command);
26
- * ```
27
- *
28
- * @see {@link PublishVersionCommandInput} for command's `input` shape.
29
- * @see {@link PublishVersionCommandOutput} for command's `response` shape.
30
- * @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
31
- *
32
- */
33
8
  class PublishVersionCommand extends smithy_client_1.Command {
34
- // Start section: command_properties
35
- // End section: command_properties
36
9
  constructor(input) {
37
- // Start section: command_constructor
38
10
  super();
39
11
  this.input = input;
40
- // End section: command_constructor
41
12
  }
42
- /**
43
- * @internal
44
- */
45
13
  resolveMiddleware(clientStack, configuration, options) {
46
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
47
15
  const stack = clientStack.concat(this.middlewareStack);