@aws-sdk/client-lambda 3.41.0 → 3.46.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 +48 -0
- package/README.md +62 -3
- package/dist-cjs/endpoints.js +257 -0
- package/dist-cjs/models/models_0.js +18 -4
- package/dist-cjs/protocols/Aws_restJson1.js +70 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +257 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +68 -4
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/Lambda.d.ts +189 -13
- package/dist-types/LambdaClient.d.ts +62 -3
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +49 -10
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +78 -0
- package/dist-types/models/models_0.d.ts +98 -15
- package/dist-types/ts3.4/models/models_0.d.ts +26 -0
- package/package.json +37 -44
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,246 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
+
"af-south-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "lambda.af-south-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
hostname: "lambda.af-south-1.api.aws",
|
|
12
|
+
tags: ["dualstack"],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
"ap-east-1": {
|
|
17
|
+
variants: [
|
|
18
|
+
{
|
|
19
|
+
hostname: "lambda.ap-east-1.amazonaws.com",
|
|
20
|
+
tags: [],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
hostname: "lambda.ap-east-1.api.aws",
|
|
24
|
+
tags: ["dualstack"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
"ap-northeast-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "lambda.ap-northeast-1.amazonaws.com",
|
|
32
|
+
tags: [],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
hostname: "lambda.ap-northeast-1.api.aws",
|
|
36
|
+
tags: ["dualstack"],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
"ap-northeast-2": {
|
|
41
|
+
variants: [
|
|
42
|
+
{
|
|
43
|
+
hostname: "lambda.ap-northeast-2.amazonaws.com",
|
|
44
|
+
tags: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
hostname: "lambda.ap-northeast-2.api.aws",
|
|
48
|
+
tags: ["dualstack"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
"ap-northeast-3": {
|
|
53
|
+
variants: [
|
|
54
|
+
{
|
|
55
|
+
hostname: "lambda.ap-northeast-3.amazonaws.com",
|
|
56
|
+
tags: [],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
hostname: "lambda.ap-northeast-3.api.aws",
|
|
60
|
+
tags: ["dualstack"],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
"ap-south-1": {
|
|
65
|
+
variants: [
|
|
66
|
+
{
|
|
67
|
+
hostname: "lambda.ap-south-1.amazonaws.com",
|
|
68
|
+
tags: [],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
hostname: "lambda.ap-south-1.api.aws",
|
|
72
|
+
tags: ["dualstack"],
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
"ap-southeast-1": {
|
|
77
|
+
variants: [
|
|
78
|
+
{
|
|
79
|
+
hostname: "lambda.ap-southeast-1.amazonaws.com",
|
|
80
|
+
tags: [],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "lambda.ap-southeast-1.api.aws",
|
|
84
|
+
tags: ["dualstack"],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
"ap-southeast-2": {
|
|
89
|
+
variants: [
|
|
90
|
+
{
|
|
91
|
+
hostname: "lambda.ap-southeast-2.amazonaws.com",
|
|
92
|
+
tags: [],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
hostname: "lambda.ap-southeast-2.api.aws",
|
|
96
|
+
tags: ["dualstack"],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
"ap-southeast-3": {
|
|
101
|
+
variants: [
|
|
102
|
+
{
|
|
103
|
+
hostname: "lambda.ap-southeast-3.amazonaws.com",
|
|
104
|
+
tags: [],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
hostname: "lambda.ap-southeast-3.api.aws",
|
|
108
|
+
tags: ["dualstack"],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
"ca-central-1": {
|
|
113
|
+
variants: [
|
|
114
|
+
{
|
|
115
|
+
hostname: "lambda.ca-central-1.amazonaws.com",
|
|
116
|
+
tags: [],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
hostname: "lambda.ca-central-1.api.aws",
|
|
120
|
+
tags: ["dualstack"],
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
"cn-north-1": {
|
|
125
|
+
variants: [
|
|
126
|
+
{
|
|
127
|
+
hostname: "lambda.cn-north-1.amazonaws.com.cn",
|
|
128
|
+
tags: [],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
|
|
132
|
+
tags: ["dualstack"],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
"cn-northwest-1": {
|
|
137
|
+
variants: [
|
|
138
|
+
{
|
|
139
|
+
hostname: "lambda.cn-northwest-1.amazonaws.com.cn",
|
|
140
|
+
tags: [],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
|
|
144
|
+
tags: ["dualstack"],
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
"eu-central-1": {
|
|
149
|
+
variants: [
|
|
150
|
+
{
|
|
151
|
+
hostname: "lambda.eu-central-1.amazonaws.com",
|
|
152
|
+
tags: [],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
hostname: "lambda.eu-central-1.api.aws",
|
|
156
|
+
tags: ["dualstack"],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
"eu-north-1": {
|
|
161
|
+
variants: [
|
|
162
|
+
{
|
|
163
|
+
hostname: "lambda.eu-north-1.amazonaws.com",
|
|
164
|
+
tags: [],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
hostname: "lambda.eu-north-1.api.aws",
|
|
168
|
+
tags: ["dualstack"],
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
"eu-south-1": {
|
|
173
|
+
variants: [
|
|
174
|
+
{
|
|
175
|
+
hostname: "lambda.eu-south-1.amazonaws.com",
|
|
176
|
+
tags: [],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
hostname: "lambda.eu-south-1.api.aws",
|
|
180
|
+
tags: ["dualstack"],
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
"eu-west-1": {
|
|
185
|
+
variants: [
|
|
186
|
+
{
|
|
187
|
+
hostname: "lambda.eu-west-1.amazonaws.com",
|
|
188
|
+
tags: [],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
hostname: "lambda.eu-west-1.api.aws",
|
|
192
|
+
tags: ["dualstack"],
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
"eu-west-2": {
|
|
197
|
+
variants: [
|
|
198
|
+
{
|
|
199
|
+
hostname: "lambda.eu-west-2.amazonaws.com",
|
|
200
|
+
tags: [],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
hostname: "lambda.eu-west-2.api.aws",
|
|
204
|
+
tags: ["dualstack"],
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
"eu-west-3": {
|
|
209
|
+
variants: [
|
|
210
|
+
{
|
|
211
|
+
hostname: "lambda.eu-west-3.amazonaws.com",
|
|
212
|
+
tags: [],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
hostname: "lambda.eu-west-3.api.aws",
|
|
216
|
+
tags: ["dualstack"],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
"me-south-1": {
|
|
221
|
+
variants: [
|
|
222
|
+
{
|
|
223
|
+
hostname: "lambda.me-south-1.amazonaws.com",
|
|
224
|
+
tags: [],
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
hostname: "lambda.me-south-1.api.aws",
|
|
228
|
+
tags: ["dualstack"],
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
"sa-east-1": {
|
|
233
|
+
variants: [
|
|
234
|
+
{
|
|
235
|
+
hostname: "lambda.sa-east-1.amazonaws.com",
|
|
236
|
+
tags: [],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
hostname: "lambda.sa-east-1.api.aws",
|
|
240
|
+
tags: ["dualstack"],
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
4
244
|
"us-east-1": {
|
|
5
245
|
variants: [
|
|
6
246
|
{
|
|
@@ -11,6 +251,10 @@ var regionHash = {
|
|
|
11
251
|
hostname: "lambda-fips.us-east-1.amazonaws.com",
|
|
12
252
|
tags: ["fips"],
|
|
13
253
|
},
|
|
254
|
+
{
|
|
255
|
+
hostname: "lambda.us-east-1.api.aws",
|
|
256
|
+
tags: ["dualstack"],
|
|
257
|
+
},
|
|
14
258
|
],
|
|
15
259
|
},
|
|
16
260
|
"us-east-2": {
|
|
@@ -23,6 +267,10 @@ var regionHash = {
|
|
|
23
267
|
hostname: "lambda-fips.us-east-2.amazonaws.com",
|
|
24
268
|
tags: ["fips"],
|
|
25
269
|
},
|
|
270
|
+
{
|
|
271
|
+
hostname: "lambda.us-east-2.api.aws",
|
|
272
|
+
tags: ["dualstack"],
|
|
273
|
+
},
|
|
26
274
|
],
|
|
27
275
|
},
|
|
28
276
|
"us-gov-east-1": {
|
|
@@ -59,6 +307,10 @@ var regionHash = {
|
|
|
59
307
|
hostname: "lambda-fips.us-west-1.amazonaws.com",
|
|
60
308
|
tags: ["fips"],
|
|
61
309
|
},
|
|
310
|
+
{
|
|
311
|
+
hostname: "lambda.us-west-1.api.aws",
|
|
312
|
+
tags: ["dualstack"],
|
|
313
|
+
},
|
|
62
314
|
],
|
|
63
315
|
},
|
|
64
316
|
"us-west-2": {
|
|
@@ -71,6 +323,10 @@ var regionHash = {
|
|
|
71
323
|
hostname: "lambda-fips.us-west-2.amazonaws.com",
|
|
72
324
|
tags: ["fips"],
|
|
73
325
|
},
|
|
326
|
+
{
|
|
327
|
+
hostname: "lambda.us-west-2.api.aws",
|
|
328
|
+
tags: ["dualstack"],
|
|
329
|
+
},
|
|
74
330
|
],
|
|
75
331
|
},
|
|
76
332
|
};
|
|
@@ -85,6 +341,7 @@ var partitionHash = {
|
|
|
85
341
|
"ap-south-1",
|
|
86
342
|
"ap-southeast-1",
|
|
87
343
|
"ap-southeast-2",
|
|
344
|
+
"ap-southeast-3",
|
|
88
345
|
"ca-central-1",
|
|
89
346
|
"eu-central-1",
|
|
90
347
|
"eu-north-1",
|
|
@@ -114,6 +114,14 @@ export var DestinationConfig;
|
|
|
114
114
|
(function (DestinationConfig) {
|
|
115
115
|
DestinationConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
116
|
})(DestinationConfig || (DestinationConfig = {}));
|
|
117
|
+
export var Filter;
|
|
118
|
+
(function (Filter) {
|
|
119
|
+
Filter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
+
})(Filter || (Filter = {}));
|
|
121
|
+
export var FilterCriteria;
|
|
122
|
+
(function (FilterCriteria) {
|
|
123
|
+
FilterCriteria.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
})(FilterCriteria || (FilterCriteria = {}));
|
|
117
125
|
export var FunctionResponseType;
|
|
118
126
|
(function (FunctionResponseType) {
|
|
119
127
|
FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
|
|
@@ -129,8 +137,10 @@ export var SelfManagedEventSource;
|
|
|
129
137
|
export var SourceAccessType;
|
|
130
138
|
(function (SourceAccessType) {
|
|
131
139
|
SourceAccessType["BASIC_AUTH"] = "BASIC_AUTH";
|
|
140
|
+
SourceAccessType["CLIENT_CERTIFICATE_TLS_AUTH"] = "CLIENT_CERTIFICATE_TLS_AUTH";
|
|
132
141
|
SourceAccessType["SASL_SCRAM_256_AUTH"] = "SASL_SCRAM_256_AUTH";
|
|
133
142
|
SourceAccessType["SASL_SCRAM_512_AUTH"] = "SASL_SCRAM_512_AUTH";
|
|
143
|
+
SourceAccessType["SERVER_ROOT_CA_CERTIFICATE"] = "SERVER_ROOT_CA_CERTIFICATE";
|
|
134
144
|
SourceAccessType["VIRTUAL_HOST"] = "VIRTUAL_HOST";
|
|
135
145
|
SourceAccessType["VPC_SECURITY_GROUP"] = "VPC_SECURITY_GROUP";
|
|
136
146
|
SourceAccessType["VPC_SUBNET"] = "VPC_SUBNET";
|
|
@@ -167,12 +167,15 @@ export var serializeAws_restJson1CreateEventSourceMappingCommand = function (inp
|
|
|
167
167
|
"content-type": "application/json",
|
|
168
168
|
};
|
|
169
169
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
|
|
170
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
|
|
170
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
|
|
171
171
|
input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
|
|
172
172
|
input.DestinationConfig !== null && {
|
|
173
173
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
174
174
|
})), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.EventSourceArn !== undefined &&
|
|
175
|
-
input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn })), (input.
|
|
175
|
+
input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn })), (input.FilterCriteria !== undefined &&
|
|
176
|
+
input.FilterCriteria !== null && {
|
|
177
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
178
|
+
})), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
|
|
176
179
|
input.FunctionResponseTypes !== null && {
|
|
177
180
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
178
181
|
})), (input.MaximumBatchingWindowInSeconds !== undefined &&
|
|
@@ -1938,11 +1941,14 @@ export var serializeAws_restJson1UpdateEventSourceMappingCommand = function (inp
|
|
|
1938
1941
|
else {
|
|
1939
1942
|
throw new Error("No value provided for input HTTP label: UUID.");
|
|
1940
1943
|
}
|
|
1941
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
|
|
1944
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
|
|
1942
1945
|
input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
|
|
1943
1946
|
input.DestinationConfig !== null && {
|
|
1944
1947
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1945
|
-
})), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.
|
|
1948
|
+
})), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.FilterCriteria !== undefined &&
|
|
1949
|
+
input.FilterCriteria !== null && {
|
|
1950
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
1951
|
+
})), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
|
|
1946
1952
|
input.FunctionResponseTypes !== null && {
|
|
1947
1953
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
1948
1954
|
})), (input.MaximumBatchingWindowInSeconds !== undefined &&
|
|
@@ -2518,6 +2524,7 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
|
|
|
2518
2524
|
BisectBatchOnFunctionError: undefined,
|
|
2519
2525
|
DestinationConfig: undefined,
|
|
2520
2526
|
EventSourceArn: undefined,
|
|
2527
|
+
FilterCriteria: undefined,
|
|
2521
2528
|
FunctionArn: undefined,
|
|
2522
2529
|
FunctionResponseTypes: undefined,
|
|
2523
2530
|
LastModified: undefined,
|
|
@@ -2554,6 +2561,9 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
|
|
|
2554
2561
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
2555
2562
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
2556
2563
|
}
|
|
2564
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
2565
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
2566
|
+
}
|
|
2557
2567
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2558
2568
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
2559
2569
|
}
|
|
@@ -3106,6 +3116,7 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
|
|
|
3106
3116
|
BisectBatchOnFunctionError: undefined,
|
|
3107
3117
|
DestinationConfig: undefined,
|
|
3108
3118
|
EventSourceArn: undefined,
|
|
3119
|
+
FilterCriteria: undefined,
|
|
3109
3120
|
FunctionArn: undefined,
|
|
3110
3121
|
FunctionResponseTypes: undefined,
|
|
3111
3122
|
LastModified: undefined,
|
|
@@ -3142,6 +3153,9 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
|
|
|
3142
3153
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
3143
3154
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
3144
3155
|
}
|
|
3156
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
3157
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
3158
|
+
}
|
|
3145
3159
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
3146
3160
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
3147
3161
|
}
|
|
@@ -4054,6 +4068,7 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
|
|
|
4054
4068
|
BisectBatchOnFunctionError: undefined,
|
|
4055
4069
|
DestinationConfig: undefined,
|
|
4056
4070
|
EventSourceArn: undefined,
|
|
4071
|
+
FilterCriteria: undefined,
|
|
4057
4072
|
FunctionArn: undefined,
|
|
4058
4073
|
FunctionResponseTypes: undefined,
|
|
4059
4074
|
LastModified: undefined,
|
|
@@ -4090,6 +4105,9 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
|
|
|
4090
4105
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
4091
4106
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
4092
4107
|
}
|
|
4108
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
4109
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
4110
|
+
}
|
|
4093
4111
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
4094
4112
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
4095
4113
|
}
|
|
@@ -7994,6 +8012,7 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
|
|
|
7994
8012
|
BisectBatchOnFunctionError: undefined,
|
|
7995
8013
|
DestinationConfig: undefined,
|
|
7996
8014
|
EventSourceArn: undefined,
|
|
8015
|
+
FilterCriteria: undefined,
|
|
7997
8016
|
FunctionArn: undefined,
|
|
7998
8017
|
FunctionResponseTypes: undefined,
|
|
7999
8018
|
LastModified: undefined,
|
|
@@ -8030,6 +8049,9 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
|
|
|
8030
8049
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
8031
8050
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
8032
8051
|
}
|
|
8052
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
8053
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
8054
|
+
}
|
|
8033
8055
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
8034
8056
|
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
8035
8057
|
}
|
|
@@ -9590,6 +9612,23 @@ var serializeAws_restJson1FileSystemConfigList = function (input, context) {
|
|
|
9590
9612
|
return serializeAws_restJson1FileSystemConfig(entry, context);
|
|
9591
9613
|
});
|
|
9592
9614
|
};
|
|
9615
|
+
var serializeAws_restJson1Filter = function (input, context) {
|
|
9616
|
+
return __assign({}, (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }));
|
|
9617
|
+
};
|
|
9618
|
+
var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
9619
|
+
return __assign({}, (input.Filters !== undefined &&
|
|
9620
|
+
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }));
|
|
9621
|
+
};
|
|
9622
|
+
var serializeAws_restJson1FilterList = function (input, context) {
|
|
9623
|
+
return input
|
|
9624
|
+
.filter(function (e) { return e != null; })
|
|
9625
|
+
.map(function (entry) {
|
|
9626
|
+
if (entry === null) {
|
|
9627
|
+
return null;
|
|
9628
|
+
}
|
|
9629
|
+
return serializeAws_restJson1Filter(entry, context);
|
|
9630
|
+
});
|
|
9631
|
+
};
|
|
9593
9632
|
var serializeAws_restJson1FunctionCode = function (input, context) {
|
|
9594
9633
|
return __assign(__assign(__assign(__assign(__assign({}, (input.ImageUri !== undefined && input.ImageUri !== null && { ImageUri: input.ImageUri })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key })), (input.S3ObjectVersion !== undefined &&
|
|
9595
9634
|
input.S3ObjectVersion !== null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }));
|
|
@@ -9921,6 +9960,9 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
|
|
|
9921
9960
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
9922
9961
|
: undefined,
|
|
9923
9962
|
EventSourceArn: __expectString(output.EventSourceArn),
|
|
9963
|
+
FilterCriteria: output.FilterCriteria !== undefined && output.FilterCriteria !== null
|
|
9964
|
+
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
9965
|
+
: undefined,
|
|
9924
9966
|
FunctionArn: __expectString(output.FunctionArn),
|
|
9925
9967
|
FunctionResponseTypes: output.FunctionResponseTypes !== undefined && output.FunctionResponseTypes !== null
|
|
9926
9968
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
@@ -9981,6 +10023,28 @@ var deserializeAws_restJson1FileSystemConfigList = function (output, context) {
|
|
|
9981
10023
|
return deserializeAws_restJson1FileSystemConfig(entry, context);
|
|
9982
10024
|
});
|
|
9983
10025
|
};
|
|
10026
|
+
var deserializeAws_restJson1Filter = function (output, context) {
|
|
10027
|
+
return {
|
|
10028
|
+
Pattern: __expectString(output.Pattern),
|
|
10029
|
+
};
|
|
10030
|
+
};
|
|
10031
|
+
var deserializeAws_restJson1FilterCriteria = function (output, context) {
|
|
10032
|
+
return {
|
|
10033
|
+
Filters: output.Filters !== undefined && output.Filters !== null
|
|
10034
|
+
? deserializeAws_restJson1FilterList(output.Filters, context)
|
|
10035
|
+
: undefined,
|
|
10036
|
+
};
|
|
10037
|
+
};
|
|
10038
|
+
var deserializeAws_restJson1FilterList = function (output, context) {
|
|
10039
|
+
return (output || [])
|
|
10040
|
+
.filter(function (e) { return e != null; })
|
|
10041
|
+
.map(function (entry) {
|
|
10042
|
+
if (entry === null) {
|
|
10043
|
+
return null;
|
|
10044
|
+
}
|
|
10045
|
+
return deserializeAws_restJson1Filter(entry, context);
|
|
10046
|
+
});
|
|
10047
|
+
};
|
|
9984
10048
|
var deserializeAws_restJson1FunctionArnList = function (output, context) {
|
|
9985
10049
|
return (output || [])
|
|
9986
10050
|
.filter(function (e) { return e != null; })
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|