@aws-sdk/client-lambda 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/LambdaClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +10 -10
- package/dist-types/commands/AddPermissionCommand.d.ts +16 -17
- package/dist-types/commands/CreateAliasCommand.d.ts +12 -12
- package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +13 -13
- package/dist-types/commands/CreateFunctionCommand.d.ts +45 -45
- package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/commands/DeleteAliasCommand.d.ts +8 -5
- package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -22
- package/dist-types/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +8 -5
- package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +8 -5
- package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/commands/DeleteLayerVersionCommand.d.ts +8 -5
- package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +8 -5
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +13 -13
- package/dist-types/commands/GetAliasCommand.d.ts +10 -10
- package/dist-types/commands/GetCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -27
- package/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +33 -33
- package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +5 -5
- package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +27 -27
- package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +1 -26
- package/dist-types/commands/GetFunctionRecursionConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +14 -14
- package/dist-types/commands/GetLayerVersionCommand.d.ts +16 -16
- package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +7 -7
- package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +18 -19
- package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -0
- package/dist-types/commands/InvokeAsyncCommand.d.ts +6 -6
- package/dist-types/commands/InvokeCommand.d.ts +15 -16
- package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +1 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +18 -18
- package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +1 -0
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +12 -12
- package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +13 -13
- package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +1 -0
- package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +40 -40
- package/dist-types/commands/ListLayerVersionsCommand.d.ts +15 -15
- package/dist-types/commands/ListLayersCommand.d.ts +13 -13
- package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +17 -17
- package/dist-types/commands/ListTagsCommand.d.ts +7 -7
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +45 -45
- package/dist-types/commands/PublishLayerVersionCommand.d.ts +21 -21
- package/dist-types/commands/PublishVersionCommand.d.ts +28 -28
- package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +6 -6
- package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +1 -25
- package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -0
- package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +10 -10
- package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +1 -0
- package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +9 -6
- package/dist-types/commands/RemovePermissionCommand.d.ts +9 -6
- package/dist-types/commands/TagResourceCommand.d.ts +9 -6
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateAliasCommand.d.ts +17 -17
- package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +1 -0
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +1 -26
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +21 -21
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +20 -20
- package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +15 -15
- package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -0
- package/package.json +38 -38
|
@@ -40,8 +40,6 @@ const defaultLambdaHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultLambdaHttpAuthSchemeProvider = defaultLambdaHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -228,12 +228,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
228
228
|
|
|
229
229
|
// src/endpoint/EndpointParameters.ts
|
|
230
230
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
231
|
-
return {
|
|
232
|
-
...options,
|
|
231
|
+
return Object.assign(options, {
|
|
233
232
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
234
233
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
235
234
|
defaultSigningName: "lambda"
|
|
236
|
-
};
|
|
235
|
+
});
|
|
237
236
|
}, "resolveClientEndpointParameters");
|
|
238
237
|
var commonParams = {
|
|
239
238
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -290,22 +289,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
290
289
|
}, "resolveHttpAuthRuntimeConfig");
|
|
291
290
|
|
|
292
291
|
// src/runtimeExtensions.ts
|
|
293
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
294
292
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
295
|
-
const extensionConfiguration =
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
293
|
+
const extensionConfiguration = Object.assign(
|
|
294
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
295
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
296
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
297
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
298
|
+
);
|
|
301
299
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
300
|
+
return Object.assign(
|
|
301
|
+
runtimeConfig,
|
|
302
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
303
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
304
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
305
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
306
|
+
);
|
|
309
307
|
}, "resolveRuntimeExtensions");
|
|
310
308
|
|
|
311
309
|
// src/LambdaClient.ts
|
|
@@ -319,6 +317,8 @@ var LambdaClient = class extends import_smithy_client.Client {
|
|
|
319
317
|
config;
|
|
320
318
|
constructor(...[configuration]) {
|
|
321
319
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
320
|
+
super(_config_0);
|
|
321
|
+
this.initConfig = _config_0;
|
|
322
322
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
323
323
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
324
324
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -328,7 +328,6 @@ var LambdaClient = class extends import_smithy_client.Client {
|
|
|
328
328
|
const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
|
|
329
329
|
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
|
|
330
330
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
331
|
-
super(_config_9);
|
|
332
331
|
this.config = _config_9;
|
|
333
332
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
334
333
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/LambdaClient.js
CHANGED
|
@@ -18,6 +18,8 @@ export class LambdaClient extends __Client {
|
|
|
18
18
|
config;
|
|
19
19
|
constructor(...[configuration]) {
|
|
20
20
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
21
|
+
super(_config_0);
|
|
22
|
+
this.initConfig = _config_0;
|
|
21
23
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
22
24
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
23
25
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -27,7 +29,6 @@ export class LambdaClient extends __Client {
|
|
|
27
29
|
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
28
30
|
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
29
31
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
30
|
-
super(_config_9);
|
|
31
32
|
this.config = _config_9;
|
|
32
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultLambdaHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "lambda",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -97,28 +97,28 @@ declare const AddLayerVersionPermissionCommand_base: {
|
|
|
97
97
|
* @throws {@link LambdaServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
99
99
|
*
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
101
|
* @example To add permissions to a layer version
|
|
102
102
|
* ```javascript
|
|
103
103
|
* // The following example grants permission for the account 223456789012 to use version 1 of a layer named my-layer.
|
|
104
104
|
* const input = {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
105
|
+
* Action: "lambda:GetLayerVersion",
|
|
106
|
+
* LayerName: "my-layer",
|
|
107
|
+
* Principal: "223456789012",
|
|
108
|
+
* StatementId: "xaccount",
|
|
109
|
+
* VersionNumber: 1
|
|
110
110
|
* };
|
|
111
111
|
* const command = new AddLayerVersionPermissionCommand(input);
|
|
112
112
|
* const response = await client.send(command);
|
|
113
|
-
* /* response
|
|
113
|
+
* /* response is
|
|
114
114
|
* {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
115
|
+
* RevisionId: "35d87451-f796-4a3f-a618-95a3671b0a0c",
|
|
116
|
+
* Statement: `{"Sid":"xaccount","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::223456789012:root"},"Action":"lambda:GetLayerVersion","Resource":"arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1"}`
|
|
117
117
|
* }
|
|
118
118
|
* *\/
|
|
119
|
-
* // example id: to-add-permissions-to-a-layer-version-1586479797163
|
|
120
119
|
* ```
|
|
121
120
|
*
|
|
121
|
+
* @public
|
|
122
122
|
*/
|
|
123
123
|
export declare class AddLayerVersionPermissionCommand extends AddLayerVersionPermissionCommand_base {
|
|
124
124
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -107,47 +107,46 @@ declare const AddPermissionCommand_base: {
|
|
|
107
107
|
* @throws {@link LambdaServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
109
109
|
*
|
|
110
|
-
*
|
|
110
|
+
*
|
|
111
111
|
* @example To grant Amazon S3 permission to invoke a function
|
|
112
112
|
* ```javascript
|
|
113
113
|
* // The following example adds permission for Amazon S3 to invoke a Lambda function named my-function for notifications from a bucket named my-bucket-1xpuxmplzrlbh in account 123456789012.
|
|
114
114
|
* const input = {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
115
|
+
* Action: "lambda:InvokeFunction",
|
|
116
|
+
* FunctionName: "my-function",
|
|
117
|
+
* Principal: "s3.amazonaws.com",
|
|
118
|
+
* SourceAccount: "123456789012",
|
|
119
|
+
* SourceArn: "arn:aws:s3:::my-bucket-1xpuxmplzrlbh/*",
|
|
120
|
+
* StatementId: "s3"
|
|
121
121
|
* };
|
|
122
122
|
* const command = new AddPermissionCommand(input);
|
|
123
123
|
* const response = await client.send(command);
|
|
124
|
-
* /* response
|
|
124
|
+
* /* response is
|
|
125
125
|
* {
|
|
126
|
-
*
|
|
126
|
+
* Statement: `{"Sid":"s3","Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Action":"lambda:InvokeFunction","Resource":"arn:aws:lambda:us-east-2:123456789012:function:my-function","Condition":{"StringEquals":{"AWS:SourceAccount":"123456789012"},"ArnLike":{"AWS:SourceArn":"arn:aws:s3:::my-bucket-1xpuxmplzrlbh"}}}`
|
|
127
127
|
* }
|
|
128
128
|
* *\/
|
|
129
|
-
* // example id: add-permission-1474651469455
|
|
130
129
|
* ```
|
|
131
130
|
*
|
|
132
131
|
* @example To grant another account permission to invoke a function
|
|
133
132
|
* ```javascript
|
|
134
133
|
* // The following example adds permission for account 223456789012 invoke a Lambda function named my-function.
|
|
135
134
|
* const input = {
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
135
|
+
* Action: "lambda:InvokeFunction",
|
|
136
|
+
* FunctionName: "my-function",
|
|
137
|
+
* Principal: "223456789012",
|
|
138
|
+
* StatementId: "xaccount"
|
|
140
139
|
* };
|
|
141
140
|
* const command = new AddPermissionCommand(input);
|
|
142
141
|
* const response = await client.send(command);
|
|
143
|
-
* /* response
|
|
142
|
+
* /* response is
|
|
144
143
|
* {
|
|
145
|
-
*
|
|
144
|
+
* Statement: `{"Sid":"xaccount","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::223456789012:root"},"Action":"lambda:InvokeFunction","Resource":"arn:aws:lambda:us-east-2:123456789012:function:my-function"}`
|
|
146
145
|
* }
|
|
147
146
|
* *\/
|
|
148
|
-
* // example id: add-permission-1474651469456
|
|
149
147
|
* ```
|
|
150
148
|
*
|
|
149
|
+
* @public
|
|
151
150
|
*/
|
|
152
151
|
export declare class AddPermissionCommand extends AddPermissionCommand_base {
|
|
153
152
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -91,30 +91,30 @@ declare const CreateAliasCommand_base: {
|
|
|
91
91
|
* @throws {@link LambdaServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* @example To create an alias for a Lambda function
|
|
96
96
|
* ```javascript
|
|
97
97
|
* // The following example creates an alias named LIVE that points to version 1 of the my-function Lambda function.
|
|
98
98
|
* const input = {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
99
|
+
* Description: "alias for live version of function",
|
|
100
|
+
* FunctionName: "my-function",
|
|
101
|
+
* FunctionVersion: "1",
|
|
102
|
+
* Name: "LIVE"
|
|
103
103
|
* };
|
|
104
104
|
* const command = new CreateAliasCommand(input);
|
|
105
105
|
* const response = await client.send(command);
|
|
106
|
-
* /* response
|
|
106
|
+
* /* response is
|
|
107
107
|
* {
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
108
|
+
* AliasArn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:LIVE",
|
|
109
|
+
* Description: "alias for live version of function",
|
|
110
|
+
* FunctionVersion: "1",
|
|
111
|
+
* Name: "LIVE",
|
|
112
|
+
* RevisionId: "873282ed-xmpl-4dc8-a069-d0c647e470c6"
|
|
113
113
|
* }
|
|
114
114
|
* *\/
|
|
115
|
-
* // example id: to-create-an-alias-for-a-lambda-function-1586480324259
|
|
116
115
|
* ```
|
|
117
116
|
*
|
|
117
|
+
* @public
|
|
118
118
|
*/
|
|
119
119
|
export declare class CreateAliasCommand extends CreateAliasCommand_base {
|
|
120
120
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -86,6 +86,7 @@ declare const CreateCodeSigningConfigCommand_base: {
|
|
|
86
86
|
* @throws {@link LambdaServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
88
88
|
*
|
|
89
|
+
*
|
|
89
90
|
* @public
|
|
90
91
|
*/
|
|
91
92
|
export declare class CreateCodeSigningConfigCommand extends CreateCodeSigningConfigCommand_base {
|
|
@@ -342,31 +342,31 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
342
342
|
* @throws {@link LambdaServiceException}
|
|
343
343
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
344
344
|
*
|
|
345
|
-
*
|
|
345
|
+
*
|
|
346
346
|
* @example To create a mapping between an event source and an AWS Lambda function
|
|
347
347
|
* ```javascript
|
|
348
348
|
* // The following example creates a mapping between an SQS queue and the my-function Lambda function.
|
|
349
349
|
* const input = {
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
350
|
+
* BatchSize: 5,
|
|
351
|
+
* EventSourceArn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
|
|
352
|
+
* FunctionName: "my-function"
|
|
353
353
|
* };
|
|
354
354
|
* const command = new CreateEventSourceMappingCommand(input);
|
|
355
355
|
* const response = await client.send(command);
|
|
356
|
-
* /* response
|
|
356
|
+
* /* response is
|
|
357
357
|
* {
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
358
|
+
* BatchSize: 5,
|
|
359
|
+
* EventSourceArn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
|
|
360
|
+
* FunctionArn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
361
|
+
* LastModified: 1.569284520333E9,
|
|
362
|
+
* State: "Creating",
|
|
363
|
+
* StateTransitionReason: "USER_INITIATED",
|
|
364
|
+
* UUID: "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE"
|
|
365
365
|
* }
|
|
366
366
|
* *\/
|
|
367
|
-
* // example id: to-create-a-mapping-between-an-event-source-and-an-aws-lambda-function-1586480555467
|
|
368
367
|
* ```
|
|
369
368
|
*
|
|
369
|
+
* @public
|
|
370
370
|
*/
|
|
371
371
|
export declare class CreateEventSourceMappingCommand extends CreateEventSourceMappingCommand_base {
|
|
372
372
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -294,71 +294,71 @@ declare const CreateFunctionCommand_base: {
|
|
|
294
294
|
* @throws {@link LambdaServiceException}
|
|
295
295
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
296
296
|
*
|
|
297
|
-
*
|
|
297
|
+
*
|
|
298
298
|
* @example To create a function
|
|
299
299
|
* ```javascript
|
|
300
300
|
* // The following example creates a function with a deployment package in Amazon S3 and enables X-Ray tracing and environment variable encryption.
|
|
301
301
|
* const input = {
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
302
|
+
* Code: {
|
|
303
|
+
* S3Bucket: "my-bucket-1xpuxmplzrlbh",
|
|
304
|
+
* S3Key: "function.zip"
|
|
305
305
|
* },
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
306
|
+
* Description: "Process image objects from Amazon S3.",
|
|
307
|
+
* Environment: {
|
|
308
|
+
* Variables: {
|
|
309
|
+
* BUCKET: "my-bucket-1xpuxmplzrlbh",
|
|
310
|
+
* PREFIX: "inbound"
|
|
311
311
|
* }
|
|
312
312
|
* },
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
313
|
+
* FunctionName: "my-function",
|
|
314
|
+
* Handler: "index.handler",
|
|
315
|
+
* KMSKeyArn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
|
|
316
|
+
* MemorySize: 256,
|
|
317
|
+
* Publish: true,
|
|
318
|
+
* Role: "arn:aws:iam::123456789012:role/lambda-role",
|
|
319
|
+
* Runtime: "nodejs12.x",
|
|
320
|
+
* Tags: {
|
|
321
|
+
* DEPARTMENT: "Assets"
|
|
322
322
|
* },
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
323
|
+
* Timeout: 15,
|
|
324
|
+
* TracingConfig: {
|
|
325
|
+
* Mode: "Active"
|
|
326
326
|
* }
|
|
327
327
|
* };
|
|
328
328
|
* const command = new CreateFunctionCommand(input);
|
|
329
329
|
* const response = await client.send(command);
|
|
330
|
-
* /* response
|
|
330
|
+
* /* response is
|
|
331
331
|
* {
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
332
|
+
* CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
333
|
+
* CodeSize: 5797206,
|
|
334
|
+
* Description: "Process image objects from Amazon S3.",
|
|
335
|
+
* Environment: {
|
|
336
|
+
* Variables: {
|
|
337
|
+
* BUCKET: "my-bucket-1xpuxmplzrlbh",
|
|
338
|
+
* PREFIX: "inbound"
|
|
339
339
|
* }
|
|
340
340
|
* },
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
341
|
+
* FunctionArn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
342
|
+
* FunctionName: "my-function",
|
|
343
|
+
* Handler: "index.handler",
|
|
344
|
+
* KMSKeyArn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
|
|
345
|
+
* LastModified: "2020-04-10T19:06:32.563+0000",
|
|
346
|
+
* LastUpdateStatus: "Successful",
|
|
347
|
+
* MemorySize: 256,
|
|
348
|
+
* RevisionId: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
|
|
349
|
+
* Role: "arn:aws:iam::123456789012:role/lambda-role",
|
|
350
|
+
* Runtime: "nodejs12.x",
|
|
351
|
+
* State: "Active",
|
|
352
|
+
* Timeout: 15,
|
|
353
|
+
* TracingConfig: {
|
|
354
|
+
* Mode: "Active"
|
|
355
355
|
* },
|
|
356
|
-
*
|
|
356
|
+
* Version: "1"
|
|
357
357
|
* }
|
|
358
358
|
* *\/
|
|
359
|
-
* // example id: to-create-a-function-1586492061186
|
|
360
359
|
* ```
|
|
361
360
|
*
|
|
361
|
+
* @public
|
|
362
362
|
*/
|
|
363
363
|
export declare class CreateFunctionCommand extends CreateFunctionCommand_base {
|
|
364
364
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -109,6 +109,7 @@ declare const CreateFunctionUrlConfigCommand_base: {
|
|
|
109
109
|
* @throws {@link LambdaServiceException}
|
|
110
110
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
111
111
|
*
|
|
112
|
+
*
|
|
112
113
|
* @public
|
|
113
114
|
*/
|
|
114
115
|
export declare class CreateFunctionUrlConfigCommand extends CreateFunctionUrlConfigCommand_base {
|
|
@@ -65,19 +65,22 @@ declare const DeleteAliasCommand_base: {
|
|
|
65
65
|
* @throws {@link LambdaServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To delete a Lambda function alias
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // The following example deletes an alias named BLUE from a function named my-function
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* FunctionName: "my-function",
|
|
74
|
+
* Name: "BLUE"
|
|
75
75
|
* };
|
|
76
76
|
* const command = new DeleteAliasCommand(input);
|
|
77
|
-
* await client.send(command);
|
|
78
|
-
*
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* metadata only *\/ }
|
|
80
|
+
* *\/
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
83
|
+
* @public
|
|
81
84
|
*/
|
|
82
85
|
export declare class DeleteAliasCommand extends DeleteAliasCommand_base {
|
|
83
86
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -65,6 +65,7 @@ declare const DeleteCodeSigningConfigCommand_base: {
|
|
|
65
65
|
* @throws {@link LambdaServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
67
67
|
*
|
|
68
|
+
*
|
|
68
69
|
* @public
|
|
69
70
|
*/
|
|
70
71
|
export declare class DeleteCodeSigningConfigCommand extends DeleteCodeSigningConfigCommand_base {
|
|
@@ -157,29 +157,8 @@ declare const DeleteEventSourceMappingCommand_base: {
|
|
|
157
157
|
* @throws {@link LambdaServiceException}
|
|
158
158
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
159
159
|
*
|
|
160
|
-
* @public
|
|
161
|
-
* @example To delete a Lambda function event source mapping
|
|
162
|
-
* ```javascript
|
|
163
|
-
* // The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
|
|
164
|
-
* const input = {
|
|
165
|
-
* "UUID": "14e0db71-xmpl-4eb5-b481-8945cf9d10c2"
|
|
166
|
-
* };
|
|
167
|
-
* const command = new DeleteEventSourceMappingCommand(input);
|
|
168
|
-
* const response = await client.send(command);
|
|
169
|
-
* /* response ==
|
|
170
|
-
* {
|
|
171
|
-
* "BatchSize": 5,
|
|
172
|
-
* "EventSourceArn": "arn:aws:sqs:us-west-2:123456789012:my-queue",
|
|
173
|
-
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function",
|
|
174
|
-
* "LastModified": "${timestamp}",
|
|
175
|
-
* "State": "Enabled",
|
|
176
|
-
* "StateTransitionReason": "USER_INITIATED",
|
|
177
|
-
* "UUID": "14e0db71-xmpl-4eb5-b481-8945cf9d10c2"
|
|
178
|
-
* }
|
|
179
|
-
* *\/
|
|
180
|
-
* // example id: to-delete-a-lambda-function-event-source-mapping-1481658973862
|
|
181
|
-
* ```
|
|
182
160
|
*
|
|
161
|
+
* @public
|
|
183
162
|
*/
|
|
184
163
|
export declare class DeleteEventSourceMappingCommand extends DeleteEventSourceMappingCommand_base {
|
|
185
164
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -70,6 +70,7 @@ declare const DeleteFunctionCodeSigningConfigCommand_base: {
|
|
|
70
70
|
* @throws {@link LambdaServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class DeleteFunctionCodeSigningConfigCommand extends DeleteFunctionCodeSigningConfigCommand_base {
|
|
@@ -72,19 +72,22 @@ declare const DeleteFunctionCommand_base: {
|
|
|
72
72
|
* @throws {@link LambdaServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
74
74
|
*
|
|
75
|
-
*
|
|
75
|
+
*
|
|
76
76
|
* @example To delete a version of a Lambda function
|
|
77
77
|
* ```javascript
|
|
78
78
|
* // The following example deletes version 1 of a Lambda function named my-function.
|
|
79
79
|
* const input = {
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* FunctionName: "my-function",
|
|
81
|
+
* Qualifier: "1"
|
|
82
82
|
* };
|
|
83
83
|
* const command = new DeleteFunctionCommand(input);
|
|
84
|
-
* await client.send(command);
|
|
85
|
-
*
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* /* response is
|
|
86
|
+
* { /* metadata only *\/ }
|
|
87
|
+
* *\/
|
|
86
88
|
* ```
|
|
87
89
|
*
|
|
90
|
+
* @public
|
|
88
91
|
*/
|
|
89
92
|
export declare class DeleteFunctionCommand extends DeleteFunctionCommand_base {
|
|
90
93
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -67,18 +67,21 @@ declare const DeleteFunctionConcurrencyCommand_base: {
|
|
|
67
67
|
* @throws {@link LambdaServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
69
69
|
*
|
|
70
|
-
*
|
|
70
|
+
*
|
|
71
71
|
* @example To remove the reserved concurrent execution limit from a function
|
|
72
72
|
* ```javascript
|
|
73
73
|
* // The following example deletes the reserved concurrent execution limit from a function named my-function.
|
|
74
74
|
* const input = {
|
|
75
|
-
*
|
|
75
|
+
* FunctionName: "my-function"
|
|
76
76
|
* };
|
|
77
77
|
* const command = new DeleteFunctionConcurrencyCommand(input);
|
|
78
|
-
* await client.send(command);
|
|
79
|
-
*
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* /* response is
|
|
80
|
+
* { /* metadata only *\/ }
|
|
81
|
+
* *\/
|
|
80
82
|
* ```
|
|
81
83
|
*
|
|
84
|
+
* @public
|
|
82
85
|
*/
|
|
83
86
|
export declare class DeleteFunctionConcurrencyCommand extends DeleteFunctionConcurrencyCommand_base {
|
|
84
87
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,19 +69,22 @@ declare const DeleteFunctionEventInvokeConfigCommand_base: {
|
|
|
69
69
|
* @throws {@link LambdaServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
71
71
|
*
|
|
72
|
-
*
|
|
72
|
+
*
|
|
73
73
|
* @example To delete an asynchronous invocation configuration
|
|
74
74
|
* ```javascript
|
|
75
75
|
* // The following example deletes the asynchronous invocation configuration for the GREEN alias of a function named my-function.
|
|
76
76
|
* const input = {
|
|
77
|
-
*
|
|
78
|
-
*
|
|
77
|
+
* FunctionName: "my-function",
|
|
78
|
+
* Qualifier: "GREEN"
|
|
79
79
|
* };
|
|
80
80
|
* const command = new DeleteFunctionEventInvokeConfigCommand(input);
|
|
81
|
-
* await client.send(command);
|
|
82
|
-
*
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* /* response is
|
|
83
|
+
* { /* metadata only *\/ }
|
|
84
|
+
* *\/
|
|
83
85
|
* ```
|
|
84
86
|
*
|
|
87
|
+
* @public
|
|
85
88
|
*/
|
|
86
89
|
export declare class DeleteFunctionEventInvokeConfigCommand extends DeleteFunctionEventInvokeConfigCommand_base {
|
|
87
90
|
/** @internal type navigation helper, not in runtime. */
|