@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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Lambda.js +0 -9
- package/dist-cjs/LambdaClient.js +0 -14
- package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +0 -29
- package/dist-cjs/commands/AddPermissionCommand.js +0 -36
- package/dist-cjs/commands/CreateAliasCommand.js +0 -29
- package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +0 -26
- package/dist-cjs/commands/CreateEventSourceMappingCommand.js +0 -88
- package/dist-cjs/commands/CreateFunctionCommand.js +0 -70
- package/dist-cjs/commands/DeleteAliasCommand.js +0 -24
- package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +0 -27
- package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/DeleteFunctionCommand.js +0 -29
- package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +0 -24
- package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/DeleteLayerVersionCommand.js +0 -26
- package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -24
- package/dist-cjs/commands/GetAliasCommand.js +0 -24
- package/dist-cjs/commands/GetCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/GetEventSourceMappingCommand.js +0 -25
- package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/GetFunctionCommand.js +0 -26
- package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +0 -25
- package/dist-cjs/commands/GetFunctionConfigurationCommand.js +0 -26
- package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/GetLayerVersionByArnCommand.js +0 -26
- package/dist-cjs/commands/GetLayerVersionCommand.js +0 -26
- package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +0 -25
- package/dist-cjs/commands/GetPolicyCommand.js +0 -24
- package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/InvokeAsyncCommand.js +0 -29
- package/dist-cjs/commands/InvokeCommand.js +0 -50
- package/dist-cjs/commands/ListAliasesCommand.js +0 -25
- package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +0 -26
- package/dist-cjs/commands/ListEventSourceMappingsCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionsCommand.js +0 -32
- package/dist-cjs/commands/ListLayerVersionsCommand.js +0 -27
- package/dist-cjs/commands/ListLayersCommand.js +0 -29
- package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsCommand.js +0 -25
- package/dist-cjs/commands/ListVersionsByFunctionCommand.js +0 -25
- package/dist-cjs/commands/PublishLayerVersionCommand.js +0 -27
- package/dist-cjs/commands/PublishVersionCommand.js +0 -32
- package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +0 -32
- package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +0 -34
- package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +0 -26
- package/dist-cjs/commands/RemovePermissionCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -24
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateAliasCommand.js +0 -24
- package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +0 -49
- package/dist-cjs/commands/UpdateFunctionCodeCommand.js +0 -32
- package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +0 -38
- package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/index.js +61 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -74
- package/dist-cjs/models/models_0.js +0 -474
- package/dist-cjs/pagination/ListAliasesPaginator.js +0 -10
- package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListLayerVersionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListLayersPaginator.js +0 -10
- package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForFunctionActive.js +0 -9
- package/dist-cjs/waiters/waitForFunctionExists.js +0 -9
- package/dist-cjs/waiters/waitForFunctionUpdated.js +0 -9
- package/dist-es/commands/index.js +58 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -74
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/commands/index.d.ts +58 -0
- package/dist-types/index.d.ts +5 -74
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/Lambda.d.ts +59 -478
- package/dist-types/ts3.4/LambdaClient.d.ts +24 -95
- package/dist-types/ts3.4/commands/AddLayerVersionPermissionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateCodeSigningConfigCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateEventSourceMappingCommand.d.ts +2 -84
- package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEventSourceMappingCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteFunctionConcurrencyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteLayerVersionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetEventSourceMappingCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetFunctionCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetFunctionConcurrencyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetFunctionConfigurationCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetLayerVersionByArnCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetLayerVersionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetLayerVersionPolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/InvokeAsyncCommand.d.ts +5 -32
- package/dist-types/ts3.4/commands/InvokeCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListCodeSigningConfigsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListEventSourceMappingsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionEventInvokeConfigsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListLayerVersionsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListLayersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListVersionsByFunctionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PublishLayerVersionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PublishVersionCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutFunctionCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutFunctionConcurrencyCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutFunctionEventInvokeConfigCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/PutProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/RemoveLayerVersionPermissionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateEventSourceMappingCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/UpdateFunctionCodeCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/UpdateFunctionConfigurationCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +58 -0
- package/dist-types/ts3.4/index.d.ts +5 -74
- package/dist-types/ts3.4/models/models_0.d.ts +699 -3177
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForFunctionActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFunctionExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFunctionUpdated.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +33 -33
|
@@ -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>Update the code signing configuration for the function. Changes to the code signing configuration take effect the
|
|
10
|
-
* next time a user tries to deploy a code package to the 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, PutFunctionCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, PutFunctionCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new PutFunctionCodeSigningConfigCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link PutFunctionCodeSigningConfigCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link PutFunctionCodeSigningConfigCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class PutFunctionCodeSigningConfigCommand 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>Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency
|
|
10
|
-
* level.</p>
|
|
11
|
-
* <p>Concurrency settings apply to the function as a whole, including all published versions and the unpublished
|
|
12
|
-
* version. Reserving concurrency both ensures that your function has capacity to process the specified number of
|
|
13
|
-
* events simultaneously, and prevents it from scaling beyond that level. Use <a>GetFunction</a> to see
|
|
14
|
-
* the current setting for a function.</p>
|
|
15
|
-
* <p>Use <a>GetAccountSettings</a> to see your Regional concurrency limit. You can reserve concurrency
|
|
16
|
-
* for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for
|
|
17
|
-
* functions that aren't configured with a per-function limit. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing Concurrency</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, PutFunctionConcurrencyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
22
|
-
* // const { LambdaClient, PutFunctionConcurrencyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
23
|
-
* const client = new LambdaClient(config);
|
|
24
|
-
* const command = new PutFunctionConcurrencyCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link PutFunctionConcurrencyCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link PutFunctionConcurrencyCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class PutFunctionConcurrencyCommand 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,45 +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>Configures options for <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous
|
|
10
|
-
* invocation</a> on a function, version, or alias. If a configuration already exists for a function, version,
|
|
11
|
-
* or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without
|
|
12
|
-
* affecting existing settings for other options, use <a>UpdateFunctionEventInvokeConfig</a>.</p>
|
|
13
|
-
* <p>By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains
|
|
14
|
-
* events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous
|
|
15
|
-
* invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with
|
|
16
|
-
* <a>UpdateFunctionConfiguration</a>.</p>
|
|
17
|
-
* <p>To send an invocation record to a queue, topic, function, or event bus, specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">destination</a>. You can configure separate destinations for successful invocations (on-success) and events
|
|
18
|
-
* that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a
|
|
19
|
-
* dead-letter queue.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { LambdaClient, PutFunctionEventInvokeConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
24
|
-
* // const { LambdaClient, PutFunctionEventInvokeConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
25
|
-
* const client = new LambdaClient(config);
|
|
26
|
-
* const command = new PutFunctionEventInvokeConfigCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link PutFunctionEventInvokeConfigCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link PutFunctionEventInvokeConfigCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class PutFunctionEventInvokeConfigCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
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>Adds a provisioned concurrency configuration to 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, PutProvisionedConcurrencyConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
14
|
-
* // const { LambdaClient, PutProvisionedConcurrencyConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
15
|
-
* const client = new LambdaClient(config);
|
|
16
|
-
* const command = new PutProvisionedConcurrencyConfigCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutProvisionedConcurrencyConfigCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutProvisionedConcurrencyConfigCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class PutProvisionedConcurrencyConfigCommand 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,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>Removes a statement from the permissions policy for a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
|
|
10
|
-
* layer</a>. For more information, see
|
|
11
|
-
* <a>AddLayerVersionPermission</a>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { LambdaClient, RemoveLayerVersionPermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
16
|
-
* // const { LambdaClient, RemoveLayerVersionPermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
17
|
-
* const client = new LambdaClient(config);
|
|
18
|
-
* const command = new RemoveLayerVersionPermissionCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link RemoveLayerVersionPermissionCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link RemoveLayerVersionPermissionCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class RemoveLayerVersionPermissionCommand 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>Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement
|
|
10
|
-
* from the output of <a>GetPolicy</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, RemovePermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, RemovePermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new RemovePermissionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link RemovePermissionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link RemovePermissionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class RemovePermissionCommand 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,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>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to 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, TagResourceCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
14
|
-
* // const { LambdaClient, TagResourceCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
15
|
-
* const client = new LambdaClient(config);
|
|
16
|
-
* const command = new TagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class TagResourceCommand 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,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>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from 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, UntagResourceCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
14
|
-
* // const { LambdaClient, UntagResourceCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
15
|
-
* const client = new LambdaClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand 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,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>Updates the configuration of a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { LambdaClient, UpdateAliasCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
14
|
-
* // const { LambdaClient, UpdateAliasCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
15
|
-
* const client = new LambdaClient(config);
|
|
16
|
-
* const command = new UpdateAliasCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateAliasCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateAliasCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateAliasCommand 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>Update the code signing configuration. Changes to the code signing configuration take effect the next time a
|
|
10
|
-
* user tries to deploy a code package to the 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, UpdateCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, UpdateCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new UpdateCodeSigningConfigCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link UpdateCodeSigningConfigCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link UpdateCodeSigningConfigCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class UpdateCodeSigningConfigCommand 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,60 +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>Updates an event source mapping. You can change the function that Lambda invokes, or pause
|
|
10
|
-
* invocation and resume later from the same location.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
|
|
13
|
-
* <ul>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>
|
|
16
|
-
* <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
|
|
17
|
-
* </li>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>
|
|
20
|
-
* <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>
|
|
24
|
-
* <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* </ul>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { LambdaClient, UpdateEventSourceMappingCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
39
|
-
* // const { LambdaClient, UpdateEventSourceMappingCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
40
|
-
* const client = new LambdaClient(config);
|
|
41
|
-
* const command = new UpdateEventSourceMappingCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link UpdateEventSourceMappingCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link UpdateEventSourceMappingCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
8
|
class UpdateEventSourceMappingCommand extends smithy_client_1.Command {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
9
|
constructor(input) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
10
|
super();
|
|
56
11
|
this.input = input;
|
|
57
|
-
// End section: command_constructor
|
|
58
12
|
}
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
63
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
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>Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed
|
|
10
|
-
* by a trusted publisher. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">Configuring code signing</a>.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>The function's code is locked when you publish a version. You can't modify the code of a published version,
|
|
13
|
-
* only the unpublished version.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if
|
|
16
|
-
* you update the image tag to a new image, Lambda does not automatically update the function.</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, UpdateFunctionCodeCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
22
|
-
* // const { LambdaClient, UpdateFunctionCodeCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
23
|
-
* const client = new LambdaClient(config);
|
|
24
|
-
* const command = new UpdateFunctionCodeCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link UpdateFunctionCodeCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link UpdateFunctionCodeCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class UpdateFunctionCodeCommand 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,49 +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>Modify the version-specific settings of a Lambda function.</p>
|
|
10
|
-
*
|
|
11
|
-
* <p>When you update a function, Lambda provisions an instance of the function and its supporting resources. If
|
|
12
|
-
* your function connects to a VPC, this process can take a minute. During this time, you can't modify the function,
|
|
13
|
-
* but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>, and
|
|
14
|
-
* <code>LastUpdateStatusReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a>
|
|
15
|
-
* indicate when the update is complete and the function is processing events with the new configuration. For more
|
|
16
|
-
* information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function
|
|
17
|
-
* States</a>.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
|
|
20
|
-
* modify the configuration of a published version, only the unpublished version.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
|
|
23
|
-
* to an account or Amazon Web Services service, use <a>AddPermission</a>.</p>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { LambdaClient, UpdateFunctionConfigurationCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
28
|
-
* // const { LambdaClient, UpdateFunctionConfigurationCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
29
|
-
* const client = new LambdaClient(config);
|
|
30
|
-
* const command = new UpdateFunctionConfigurationCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link UpdateFunctionConfigurationCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link UpdateFunctionConfigurationCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
8
|
class UpdateFunctionConfigurationCommand extends smithy_client_1.Command {
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
9
|
constructor(input) {
|
|
43
|
-
// Start section: command_constructor
|
|
44
10
|
super();
|
|
45
11
|
this.input = input;
|
|
46
|
-
// End section: command_constructor
|
|
47
12
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
52
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
53
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>Updates the configuration for asynchronous invocation for a function, version, or alias.</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, UpdateFunctionEventInvokeConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, UpdateFunctionEventInvokeConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new UpdateFunctionEventInvokeConfigCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link UpdateFunctionEventInvokeConfigCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link UpdateFunctionEventInvokeConfigCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class UpdateFunctionEventInvokeConfigCommand 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);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AddLayerVersionPermissionCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./AddPermissionCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreateAliasCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateCodeSigningConfigCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateEventSourceMappingCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./CreateFunctionCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeleteAliasCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DeleteCodeSigningConfigCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteEventSourceMappingCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DeleteFunctionCodeSigningConfigCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DeleteFunctionCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DeleteFunctionConcurrencyCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DeleteFunctionEventInvokeConfigCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DeleteLayerVersionCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DeleteProvisionedConcurrencyConfigCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetAccountSettingsCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./GetAliasCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./GetCodeSigningConfigCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetEventSourceMappingCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./GetFunctionCodeSigningConfigCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./GetFunctionCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./GetFunctionConcurrencyCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./GetFunctionConfigurationCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./GetFunctionEventInvokeConfigCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./GetLayerVersionByArnCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./GetLayerVersionCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./GetLayerVersionPolicyCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./GetPolicyCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./GetProvisionedConcurrencyConfigCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./InvokeAsyncCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./InvokeCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListAliasesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListCodeSigningConfigsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./ListEventSourceMappingsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ListFunctionEventInvokeConfigsCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./ListFunctionsByCodeSigningConfigCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListFunctionsCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./ListLayerVersionsCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ListLayersCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./ListProvisionedConcurrencyConfigsCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./ListTagsCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./ListVersionsByFunctionCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./PublishLayerVersionCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./PublishVersionCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./PutFunctionCodeSigningConfigCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./PutFunctionConcurrencyCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./PutFunctionEventInvokeConfigCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./PutProvisionedConcurrencyConfigCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./RemoveLayerVersionPermissionCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./RemovePermissionCommand"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
55
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./UpdateAliasCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./UpdateCodeSigningConfigCommand"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./UpdateEventSourceMappingCommand"), exports);
|
|
59
|
+
tslib_1.__exportStar(require("./UpdateFunctionCodeCommand"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./UpdateFunctionConfigurationCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./UpdateFunctionEventInvokeConfigCommand"), exports);
|