@aws-sdk/client-lambda 3.635.0 → 3.637.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/index.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +12 -0
- package/dist-types/commands/AddPermissionCommand.d.ts +3 -3
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +6 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +3 -3
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +5 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +5 -0
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +5 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +6 -0
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +55 -3
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1529,6 +1529,7 @@ var se_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1529
1529
|
FilterCriteria: (_) => (0, import_smithy_client._json)(_),
|
|
1530
1530
|
FunctionName: [],
|
|
1531
1531
|
FunctionResponseTypes: (_) => (0, import_smithy_client._json)(_),
|
|
1532
|
+
KMSKeyArn: [],
|
|
1532
1533
|
MaximumBatchingWindowInSeconds: [],
|
|
1533
1534
|
MaximumRecordAgeInSeconds: [],
|
|
1534
1535
|
MaximumRetryAttempts: [],
|
|
@@ -2362,6 +2363,7 @@ var se_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
2362
2363
|
FilterCriteria: (_) => (0, import_smithy_client._json)(_),
|
|
2363
2364
|
FunctionName: [],
|
|
2364
2365
|
FunctionResponseTypes: (_) => (0, import_smithy_client._json)(_),
|
|
2366
|
+
KMSKeyArn: [],
|
|
2365
2367
|
MaximumBatchingWindowInSeconds: [],
|
|
2366
2368
|
MaximumRecordAgeInSeconds: [],
|
|
2367
2369
|
MaximumRetryAttempts: [],
|
|
@@ -2551,8 +2553,10 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2551
2553
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2552
2554
|
EventSourceArn: import_smithy_client.expectString,
|
|
2553
2555
|
FilterCriteria: import_smithy_client._json,
|
|
2556
|
+
FilterCriteriaError: import_smithy_client._json,
|
|
2554
2557
|
FunctionArn: import_smithy_client.expectString,
|
|
2555
2558
|
FunctionResponseTypes: import_smithy_client._json,
|
|
2559
|
+
KMSKeyArn: import_smithy_client.expectString,
|
|
2556
2560
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2557
2561
|
LastProcessingResult: import_smithy_client.expectString,
|
|
2558
2562
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
@@ -2679,8 +2683,10 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2679
2683
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2680
2684
|
EventSourceArn: import_smithy_client.expectString,
|
|
2681
2685
|
FilterCriteria: import_smithy_client._json,
|
|
2686
|
+
FilterCriteriaError: import_smithy_client._json,
|
|
2682
2687
|
FunctionArn: import_smithy_client.expectString,
|
|
2683
2688
|
FunctionResponseTypes: import_smithy_client._json,
|
|
2689
|
+
KMSKeyArn: import_smithy_client.expectString,
|
|
2684
2690
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2685
2691
|
LastProcessingResult: import_smithy_client.expectString,
|
|
2686
2692
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
@@ -2837,8 +2843,10 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2837
2843
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2838
2844
|
EventSourceArn: import_smithy_client.expectString,
|
|
2839
2845
|
FilterCriteria: import_smithy_client._json,
|
|
2846
|
+
FilterCriteriaError: import_smithy_client._json,
|
|
2840
2847
|
FunctionArn: import_smithy_client.expectString,
|
|
2841
2848
|
FunctionResponseTypes: import_smithy_client._json,
|
|
2849
|
+
KMSKeyArn: import_smithy_client.expectString,
|
|
2842
2850
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2843
2851
|
LastProcessingResult: import_smithy_client.expectString,
|
|
2844
2852
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
@@ -3598,8 +3606,10 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3598
3606
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
3599
3607
|
EventSourceArn: import_smithy_client.expectString,
|
|
3600
3608
|
FilterCriteria: import_smithy_client._json,
|
|
3609
|
+
FilterCriteriaError: import_smithy_client._json,
|
|
3601
3610
|
FunctionArn: import_smithy_client.expectString,
|
|
3602
3611
|
FunctionResponseTypes: import_smithy_client._json,
|
|
3612
|
+
KMSKeyArn: import_smithy_client.expectString,
|
|
3603
3613
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3604
3614
|
LastProcessingResult: import_smithy_client.expectString,
|
|
3605
3615
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
@@ -4521,8 +4531,10 @@ var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name((output, context
|
|
|
4521
4531
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
4522
4532
|
EventSourceArn: import_smithy_client.expectString,
|
|
4523
4533
|
FilterCriteria: import_smithy_client._json,
|
|
4534
|
+
FilterCriteriaError: import_smithy_client._json,
|
|
4524
4535
|
FunctionArn: import_smithy_client.expectString,
|
|
4525
4536
|
FunctionResponseTypes: import_smithy_client._json,
|
|
4537
|
+
KMSKeyArn: import_smithy_client.expectString,
|
|
4526
4538
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
4527
4539
|
LastProcessingResult: import_smithy_client.expectString,
|
|
4528
4540
|
MaximumBatchingWindowInSeconds: import_smithy_client.expectInt32,
|
|
@@ -99,6 +99,7 @@ export const se_CreateEventSourceMappingCommand = async (input, context) => {
|
|
|
99
99
|
FilterCriteria: (_) => _json(_),
|
|
100
100
|
FunctionName: [],
|
|
101
101
|
FunctionResponseTypes: (_) => _json(_),
|
|
102
|
+
KMSKeyArn: [],
|
|
102
103
|
MaximumBatchingWindowInSeconds: [],
|
|
103
104
|
MaximumRecordAgeInSeconds: [],
|
|
104
105
|
MaximumRetryAttempts: [],
|
|
@@ -904,6 +905,7 @@ export const se_UpdateEventSourceMappingCommand = async (input, context) => {
|
|
|
904
905
|
FilterCriteria: (_) => _json(_),
|
|
905
906
|
FunctionName: [],
|
|
906
907
|
FunctionResponseTypes: (_) => _json(_),
|
|
908
|
+
KMSKeyArn: [],
|
|
907
909
|
MaximumBatchingWindowInSeconds: [],
|
|
908
910
|
MaximumRecordAgeInSeconds: [],
|
|
909
911
|
MaximumRetryAttempts: [],
|
|
@@ -1084,8 +1086,10 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
|
1084
1086
|
DocumentDBEventSourceConfig: _json,
|
|
1085
1087
|
EventSourceArn: __expectString,
|
|
1086
1088
|
FilterCriteria: _json,
|
|
1089
|
+
FilterCriteriaError: _json,
|
|
1087
1090
|
FunctionArn: __expectString,
|
|
1088
1091
|
FunctionResponseTypes: _json,
|
|
1092
|
+
KMSKeyArn: __expectString,
|
|
1089
1093
|
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1090
1094
|
LastProcessingResult: __expectString,
|
|
1091
1095
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
@@ -1212,8 +1216,10 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
|
1212
1216
|
DocumentDBEventSourceConfig: _json,
|
|
1213
1217
|
EventSourceArn: __expectString,
|
|
1214
1218
|
FilterCriteria: _json,
|
|
1219
|
+
FilterCriteriaError: _json,
|
|
1215
1220
|
FunctionArn: __expectString,
|
|
1216
1221
|
FunctionResponseTypes: _json,
|
|
1222
|
+
KMSKeyArn: __expectString,
|
|
1217
1223
|
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1218
1224
|
LastProcessingResult: __expectString,
|
|
1219
1225
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
@@ -1370,8 +1376,10 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
|
1370
1376
|
DocumentDBEventSourceConfig: _json,
|
|
1371
1377
|
EventSourceArn: __expectString,
|
|
1372
1378
|
FilterCriteria: _json,
|
|
1379
|
+
FilterCriteriaError: _json,
|
|
1373
1380
|
FunctionArn: __expectString,
|
|
1374
1381
|
FunctionResponseTypes: _json,
|
|
1382
|
+
KMSKeyArn: __expectString,
|
|
1375
1383
|
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1376
1384
|
LastProcessingResult: __expectString,
|
|
1377
1385
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
@@ -2131,8 +2139,10 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
|
2131
2139
|
DocumentDBEventSourceConfig: _json,
|
|
2132
2140
|
EventSourceArn: __expectString,
|
|
2133
2141
|
FilterCriteria: _json,
|
|
2142
|
+
FilterCriteriaError: _json,
|
|
2134
2143
|
FunctionArn: __expectString,
|
|
2135
2144
|
FunctionResponseTypes: _json,
|
|
2145
|
+
KMSKeyArn: __expectString,
|
|
2136
2146
|
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2137
2147
|
LastProcessingResult: __expectString,
|
|
2138
2148
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
@@ -3056,8 +3066,10 @@ const de_EventSourceMappingConfiguration = (output, context) => {
|
|
|
3056
3066
|
DocumentDBEventSourceConfig: _json,
|
|
3057
3067
|
EventSourceArn: __expectString,
|
|
3058
3068
|
FilterCriteria: _json,
|
|
3069
|
+
FilterCriteriaError: _json,
|
|
3059
3070
|
FunctionArn: __expectString,
|
|
3060
3071
|
FunctionResponseTypes: _json,
|
|
3072
|
+
KMSKeyArn: __expectString,
|
|
3061
3073
|
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3062
3074
|
LastProcessingResult: __expectString,
|
|
3063
3075
|
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
@@ -27,15 +27,15 @@ declare const AddPermissionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Grants an Amazon Web
|
|
30
|
+
* <p>Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon Web Services organization
|
|
31
31
|
* permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict
|
|
32
32
|
* access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
|
|
33
33
|
* (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
|
|
34
34
|
* to version $LATEST.</p>
|
|
35
35
|
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant
|
|
36
36
|
* permission to an organization defined in Organizations, specify the organization ID as the
|
|
37
|
-
* <code>PrincipalOrgID</code>. For Amazon Web
|
|
38
|
-
* the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web
|
|
37
|
+
* <code>PrincipalOrgID</code>. For Amazon Web Servicesservices, the principal is a domain-style identifier that
|
|
38
|
+
* the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If
|
|
39
39
|
* you grant permission to a service principal without specifying the source, other accounts could potentially
|
|
40
40
|
* configure resources in their account to invoke your Lambda function.</p>
|
|
41
41
|
* <p>This operation adds a statement to a resource-based permissions policy for the function. For more information
|
|
@@ -211,6 +211,7 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
211
211
|
* CollectionName: "STRING_VALUE",
|
|
212
212
|
* FullDocument: "UpdateLookup" || "Default",
|
|
213
213
|
* },
|
|
214
|
+
* KMSKeyArn: "STRING_VALUE",
|
|
214
215
|
* };
|
|
215
216
|
* const command = new CreateEventSourceMappingCommand(input);
|
|
216
217
|
* const response = await client.send(command);
|
|
@@ -282,6 +283,11 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
282
283
|
* // CollectionName: "STRING_VALUE",
|
|
283
284
|
* // FullDocument: "UpdateLookup" || "Default",
|
|
284
285
|
* // },
|
|
286
|
+
* // KMSKeyArn: "STRING_VALUE",
|
|
287
|
+
* // FilterCriteriaError: { // FilterCriteriaError
|
|
288
|
+
* // ErrorCode: "STRING_VALUE",
|
|
289
|
+
* // Message: "STRING_VALUE",
|
|
290
|
+
* // },
|
|
285
291
|
* // };
|
|
286
292
|
*
|
|
287
293
|
* ```
|
|
@@ -29,7 +29,7 @@ declare const CreateFunctionCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Creates a Lambda function. To create a function, you need a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">deployment package</a> and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role">execution role</a>. The
|
|
31
31
|
* deployment package is a .zip file archive or container image that contains your function code. The execution role
|
|
32
|
-
* grants the function permission to use Amazon Web
|
|
32
|
+
* grants the function permission to use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log
|
|
33
33
|
* streaming and X-Ray for request tracing.</p>
|
|
34
34
|
* <p>If the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container
|
|
35
35
|
* image</a>, then you set the package type to <code>Image</code>. For a container image, the code property
|
|
@@ -60,9 +60,9 @@ declare const CreateFunctionCommand_base: {
|
|
|
60
60
|
* <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from
|
|
61
61
|
* a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted
|
|
62
62
|
* publishers for this function.</p>
|
|
63
|
-
* <p>If another Amazon Web Services account or an Amazon Web
|
|
63
|
+
* <p>If another Amazon Web Services account or an Amazon Web Servicesservice invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.</p>
|
|
64
64
|
* <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
|
|
65
|
-
* in other Amazon Web
|
|
65
|
+
* in other Amazon Web Servicesservices, create an event source mapping (<a>CreateEventSourceMapping</a>),
|
|
66
66
|
* or configure a function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Lambda
|
|
67
67
|
* functions</a>.</p>
|
|
68
68
|
* @example
|
|
@@ -110,6 +110,11 @@ declare const DeleteEventSourceMappingCommand_base: {
|
|
|
110
110
|
* // CollectionName: "STRING_VALUE",
|
|
111
111
|
* // FullDocument: "UpdateLookup" || "Default",
|
|
112
112
|
* // },
|
|
113
|
+
* // KMSKeyArn: "STRING_VALUE",
|
|
114
|
+
* // FilterCriteriaError: { // FilterCriteriaError
|
|
115
|
+
* // ErrorCode: "STRING_VALUE",
|
|
116
|
+
* // Message: "STRING_VALUE",
|
|
117
|
+
* // },
|
|
113
118
|
* // };
|
|
114
119
|
*
|
|
115
120
|
* ```
|
|
@@ -30,7 +30,7 @@ declare const DeleteFunctionCommand_base: {
|
|
|
30
30
|
* <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter.
|
|
31
31
|
* Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit
|
|
32
32
|
* permissions for <a>DeleteAlias</a>.</p>
|
|
33
|
-
* <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web
|
|
33
|
+
* <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Servicesservices and resources that invoke your function
|
|
34
34
|
* directly, delete the trigger in the service where you originally configured it.</p>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -108,6 +108,11 @@ declare const GetEventSourceMappingCommand_base: {
|
|
|
108
108
|
* // CollectionName: "STRING_VALUE",
|
|
109
109
|
* // FullDocument: "UpdateLookup" || "Default",
|
|
110
110
|
* // },
|
|
111
|
+
* // KMSKeyArn: "STRING_VALUE",
|
|
112
|
+
* // FilterCriteriaError: { // FilterCriteriaError
|
|
113
|
+
* // ErrorCode: "STRING_VALUE",
|
|
114
|
+
* // Message: "STRING_VALUE",
|
|
115
|
+
* // },
|
|
111
116
|
* // };
|
|
112
117
|
*
|
|
113
118
|
* ```
|
|
@@ -114,6 +114,11 @@ declare const ListEventSourceMappingsCommand_base: {
|
|
|
114
114
|
* // CollectionName: "STRING_VALUE",
|
|
115
115
|
* // FullDocument: "UpdateLookup" || "Default",
|
|
116
116
|
* // },
|
|
117
|
+
* // KMSKeyArn: "STRING_VALUE",
|
|
118
|
+
* // FilterCriteriaError: { // FilterCriteriaError
|
|
119
|
+
* // ErrorCode: "STRING_VALUE",
|
|
120
|
+
* // Message: "STRING_VALUE",
|
|
121
|
+
* // },
|
|
117
122
|
* // },
|
|
118
123
|
* // ],
|
|
119
124
|
* // };
|
|
@@ -27,7 +27,7 @@ declare const RemovePermissionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Revokes function-use permission from an Amazon Web
|
|
30
|
+
* <p>Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You
|
|
31
31
|
* can get the ID of the statement from the output of <a>GetPolicy</a>.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -191,6 +191,7 @@ declare const UpdateEventSourceMappingCommand_base: {
|
|
|
191
191
|
* CollectionName: "STRING_VALUE",
|
|
192
192
|
* FullDocument: "UpdateLookup" || "Default",
|
|
193
193
|
* },
|
|
194
|
+
* KMSKeyArn: "STRING_VALUE",
|
|
194
195
|
* };
|
|
195
196
|
* const command = new UpdateEventSourceMappingCommand(input);
|
|
196
197
|
* const response = await client.send(command);
|
|
@@ -262,6 +263,11 @@ declare const UpdateEventSourceMappingCommand_base: {
|
|
|
262
263
|
* // CollectionName: "STRING_VALUE",
|
|
263
264
|
* // FullDocument: "UpdateLookup" || "Default",
|
|
264
265
|
* // },
|
|
266
|
+
* // KMSKeyArn: "STRING_VALUE",
|
|
267
|
+
* // FilterCriteriaError: { // FilterCriteriaError
|
|
268
|
+
* // ErrorCode: "STRING_VALUE",
|
|
269
|
+
* // Message: "STRING_VALUE",
|
|
270
|
+
* // },
|
|
265
271
|
* // };
|
|
266
272
|
*
|
|
267
273
|
* ```
|
|
@@ -38,7 +38,7 @@ declare const UpdateFunctionConfigurationCommand_base: {
|
|
|
38
38
|
* <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
|
|
39
39
|
* modify the configuration of a published version, only the unpublished version.</p>
|
|
40
40
|
* <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
|
|
41
|
-
* to an Amazon Web Services account or Amazon Web
|
|
41
|
+
* to an Amazon Web Services account or Amazon Web Servicesservice, use <a>AddPermission</a>.</p>
|
|
42
42
|
* @example
|
|
43
43
|
* Use a bare-bones client and the command you need to make an API call.
|
|
44
44
|
* ```javascript
|
|
@@ -299,21 +299,21 @@ export interface AddPermissionRequest {
|
|
|
299
299
|
*/
|
|
300
300
|
Action: string | undefined;
|
|
301
301
|
/**
|
|
302
|
-
* <p>The Amazon Web
|
|
302
|
+
* <p>The Amazon Web Servicesservice or Amazon Web Services account that invokes the function. If you specify a
|
|
303
303
|
* service, use <code>SourceArn</code> or <code>SourceAccount</code> to limit who can invoke the function through
|
|
304
304
|
* that service.</p>
|
|
305
305
|
* @public
|
|
306
306
|
*/
|
|
307
307
|
Principal: string | undefined;
|
|
308
308
|
/**
|
|
309
|
-
* <p>For Amazon Web
|
|
309
|
+
* <p>For Amazon Web Servicesservices, the ARN of the Amazon Web Services resource that invokes the function. For
|
|
310
310
|
* example, an Amazon S3 bucket or Amazon SNS topic.</p>
|
|
311
311
|
* <p>Note that Lambda configures the comparison using the <code>StringLike</code> operator.</p>
|
|
312
312
|
* @public
|
|
313
313
|
*/
|
|
314
314
|
SourceArn?: string;
|
|
315
315
|
/**
|
|
316
|
-
* <p>For Amazon Web
|
|
316
|
+
* <p>For Amazon Web Servicesservice, the ID of the Amazon Web Services account that owns the resource. Use this
|
|
317
317
|
* together with <code>SourceArn</code> to ensure that the specified account owns the resource. It is possible for an
|
|
318
318
|
* Amazon S3 bucket to be deleted by its owner and recreated by another account.</p>
|
|
319
319
|
* @public
|
|
@@ -1079,6 +1079,32 @@ export interface CreateEventSourceMappingRequest {
|
|
|
1079
1079
|
* @public
|
|
1080
1080
|
*/
|
|
1081
1081
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
1082
|
+
/**
|
|
1083
|
+
* <p>
|
|
1084
|
+
* The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
|
1085
|
+
* uses to encrypt your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter criteria</a>.
|
|
1086
|
+
* By default, Lambda does not encrypt your filter criteria object. Specify this
|
|
1087
|
+
* property to encrypt data using your own customer managed key.
|
|
1088
|
+
* </p>
|
|
1089
|
+
* @public
|
|
1090
|
+
*/
|
|
1091
|
+
KMSKeyArn?: string;
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* <p>An object that contains details about an error related to filter criteria encryption.</p>
|
|
1095
|
+
* @public
|
|
1096
|
+
*/
|
|
1097
|
+
export interface FilterCriteriaError {
|
|
1098
|
+
/**
|
|
1099
|
+
* <p>The KMS exception that resulted from filter criteria encryption or decryption.</p>
|
|
1100
|
+
* @public
|
|
1101
|
+
*/
|
|
1102
|
+
ErrorCode?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* <p>The error message.</p>
|
|
1105
|
+
* @public
|
|
1106
|
+
*/
|
|
1107
|
+
Message?: string;
|
|
1082
1108
|
}
|
|
1083
1109
|
/**
|
|
1084
1110
|
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <a>CreateEventSourceMapping</a>.</p>
|
|
@@ -1133,6 +1159,10 @@ export interface EventSourceMappingConfiguration {
|
|
|
1133
1159
|
/**
|
|
1134
1160
|
* <p>An object that defines the filter criteria that
|
|
1135
1161
|
* determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
|
|
1162
|
+
* <p>If filter criteria is encrypted, this field shows up as <code>null</code> in the response
|
|
1163
|
+
* of ListEventSourceMapping API calls. You can view this field in plaintext in the response of
|
|
1164
|
+
* GetEventSourceMapping and DeleteEventSourceMapping calls if you have
|
|
1165
|
+
* <code>kms:Decrypt</code> permissions for the correct KMS key.</p>
|
|
1136
1166
|
* @public
|
|
1137
1167
|
*/
|
|
1138
1168
|
FilterCriteria?: FilterCriteria;
|
|
@@ -1238,6 +1268,18 @@ export interface EventSourceMappingConfiguration {
|
|
|
1238
1268
|
* @public
|
|
1239
1269
|
*/
|
|
1240
1270
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
1271
|
+
/**
|
|
1272
|
+
* <p>
|
|
1273
|
+
* The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
|
1274
|
+
* uses to encrypt your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter criteria</a>.</p>
|
|
1275
|
+
* @public
|
|
1276
|
+
*/
|
|
1277
|
+
KMSKeyArn?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* <p>An object that contains details about an error related to filter criteria encryption.</p>
|
|
1280
|
+
* @public
|
|
1281
|
+
*/
|
|
1282
|
+
FilterCriteriaError?: FilterCriteriaError;
|
|
1241
1283
|
}
|
|
1242
1284
|
/**
|
|
1243
1285
|
* <p>The specified code signing configuration does not exist.</p>
|
|
@@ -6015,6 +6057,16 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
6015
6057
|
* @public
|
|
6016
6058
|
*/
|
|
6017
6059
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
6060
|
+
/**
|
|
6061
|
+
* <p>
|
|
6062
|
+
* The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
|
6063
|
+
* uses to encrypt your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter criteria</a>.
|
|
6064
|
+
* By default, Lambda does not encrypt your filter criteria object. Specify this
|
|
6065
|
+
* property to encrypt data using your own customer managed key.
|
|
6066
|
+
* </p>
|
|
6067
|
+
* @public
|
|
6068
|
+
*/
|
|
6069
|
+
KMSKeyArn?: string;
|
|
6018
6070
|
}
|
|
6019
6071
|
/**
|
|
6020
6072
|
* @public
|
|
@@ -270,6 +270,11 @@ export interface CreateEventSourceMappingRequest {
|
|
|
270
270
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
271
271
|
ScalingConfig?: ScalingConfig;
|
|
272
272
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
273
|
+
KMSKeyArn?: string;
|
|
274
|
+
}
|
|
275
|
+
export interface FilterCriteriaError {
|
|
276
|
+
ErrorCode?: string;
|
|
277
|
+
Message?: string;
|
|
273
278
|
}
|
|
274
279
|
export interface EventSourceMappingConfiguration {
|
|
275
280
|
UUID?: string;
|
|
@@ -299,6 +304,8 @@ export interface EventSourceMappingConfiguration {
|
|
|
299
304
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
300
305
|
ScalingConfig?: ScalingConfig;
|
|
301
306
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
307
|
+
KMSKeyArn?: string;
|
|
308
|
+
FilterCriteriaError?: FilterCriteriaError;
|
|
302
309
|
}
|
|
303
310
|
export declare class CodeSigningConfigNotFoundException extends __BaseException {
|
|
304
311
|
readonly name: "CodeSigningConfigNotFoundException";
|
|
@@ -1480,6 +1487,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
1480
1487
|
FunctionResponseTypes?: FunctionResponseType[];
|
|
1481
1488
|
ScalingConfig?: ScalingConfig;
|
|
1482
1489
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
1490
|
+
KMSKeyArn?: string;
|
|
1483
1491
|
}
|
|
1484
1492
|
export interface UpdateFunctionCodeRequest {
|
|
1485
1493
|
FunctionName: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.637.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lambda",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.637.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.637.0",
|
|
25
25
|
"@aws-sdk/core": "3.635.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.637.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.637.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
32
32
|
"@aws-sdk/types": "3.609.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.637.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.5",
|