@aws-sdk/client-lambda 3.42.0 → 3.47.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.
@@ -1,36 +1,192 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "us-east-1": {
4
+ "af-south-1": {
5
5
  variants: [
6
6
  {
7
- hostname: "lambda.us-east-1.amazonaws.com",
8
- tags: [],
7
+ hostname: "lambda.af-south-1.api.aws",
8
+ tags: ["dualstack"],
9
+ },
10
+ ],
11
+ },
12
+ "ap-east-1": {
13
+ variants: [
14
+ {
15
+ hostname: "lambda.ap-east-1.api.aws",
16
+ tags: ["dualstack"],
17
+ },
18
+ ],
19
+ },
20
+ "ap-northeast-1": {
21
+ variants: [
22
+ {
23
+ hostname: "lambda.ap-northeast-1.api.aws",
24
+ tags: ["dualstack"],
25
+ },
26
+ ],
27
+ },
28
+ "ap-northeast-2": {
29
+ variants: [
30
+ {
31
+ hostname: "lambda.ap-northeast-2.api.aws",
32
+ tags: ["dualstack"],
33
+ },
34
+ ],
35
+ },
36
+ "ap-northeast-3": {
37
+ variants: [
38
+ {
39
+ hostname: "lambda.ap-northeast-3.api.aws",
40
+ tags: ["dualstack"],
41
+ },
42
+ ],
43
+ },
44
+ "ap-south-1": {
45
+ variants: [
46
+ {
47
+ hostname: "lambda.ap-south-1.api.aws",
48
+ tags: ["dualstack"],
49
+ },
50
+ ],
51
+ },
52
+ "ap-southeast-1": {
53
+ variants: [
54
+ {
55
+ hostname: "lambda.ap-southeast-1.api.aws",
56
+ tags: ["dualstack"],
57
+ },
58
+ ],
59
+ },
60
+ "ap-southeast-2": {
61
+ variants: [
62
+ {
63
+ hostname: "lambda.ap-southeast-2.api.aws",
64
+ tags: ["dualstack"],
65
+ },
66
+ ],
67
+ },
68
+ "ap-southeast-3": {
69
+ variants: [
70
+ {
71
+ hostname: "lambda.ap-southeast-3.api.aws",
72
+ tags: ["dualstack"],
73
+ },
74
+ ],
75
+ },
76
+ "ca-central-1": {
77
+ variants: [
78
+ {
79
+ hostname: "lambda.ca-central-1.api.aws",
80
+ tags: ["dualstack"],
81
+ },
82
+ ],
83
+ },
84
+ "cn-north-1": {
85
+ variants: [
86
+ {
87
+ hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
88
+ tags: ["dualstack"],
89
+ },
90
+ ],
91
+ },
92
+ "cn-northwest-1": {
93
+ variants: [
94
+ {
95
+ hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
96
+ tags: ["dualstack"],
97
+ },
98
+ ],
99
+ },
100
+ "eu-central-1": {
101
+ variants: [
102
+ {
103
+ hostname: "lambda.eu-central-1.api.aws",
104
+ tags: ["dualstack"],
105
+ },
106
+ ],
107
+ },
108
+ "eu-north-1": {
109
+ variants: [
110
+ {
111
+ hostname: "lambda.eu-north-1.api.aws",
112
+ tags: ["dualstack"],
113
+ },
114
+ ],
115
+ },
116
+ "eu-south-1": {
117
+ variants: [
118
+ {
119
+ hostname: "lambda.eu-south-1.api.aws",
120
+ tags: ["dualstack"],
121
+ },
122
+ ],
123
+ },
124
+ "eu-west-1": {
125
+ variants: [
126
+ {
127
+ hostname: "lambda.eu-west-1.api.aws",
128
+ tags: ["dualstack"],
129
+ },
130
+ ],
131
+ },
132
+ "eu-west-2": {
133
+ variants: [
134
+ {
135
+ hostname: "lambda.eu-west-2.api.aws",
136
+ tags: ["dualstack"],
137
+ },
138
+ ],
139
+ },
140
+ "eu-west-3": {
141
+ variants: [
142
+ {
143
+ hostname: "lambda.eu-west-3.api.aws",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
147
+ },
148
+ "me-south-1": {
149
+ variants: [
150
+ {
151
+ hostname: "lambda.me-south-1.api.aws",
152
+ tags: ["dualstack"],
9
153
  },
154
+ ],
155
+ },
156
+ "sa-east-1": {
157
+ variants: [
158
+ {
159
+ hostname: "lambda.sa-east-1.api.aws",
160
+ tags: ["dualstack"],
161
+ },
162
+ ],
163
+ },
164
+ "us-east-1": {
165
+ variants: [
10
166
  {
11
167
  hostname: "lambda-fips.us-east-1.amazonaws.com",
12
168
  tags: ["fips"],
13
169
  },
170
+ {
171
+ hostname: "lambda.us-east-1.api.aws",
172
+ tags: ["dualstack"],
173
+ },
14
174
  ],
15
175
  },
16
176
  "us-east-2": {
17
177
  variants: [
18
- {
19
- hostname: "lambda.us-east-2.amazonaws.com",
20
- tags: [],
21
- },
22
178
  {
23
179
  hostname: "lambda-fips.us-east-2.amazonaws.com",
24
180
  tags: ["fips"],
25
181
  },
182
+ {
183
+ hostname: "lambda.us-east-2.api.aws",
184
+ tags: ["dualstack"],
185
+ },
26
186
  ],
27
187
  },
28
188
  "us-gov-east-1": {
29
189
  variants: [
30
- {
31
- hostname: "lambda.us-gov-east-1.amazonaws.com",
32
- tags: [],
33
- },
34
190
  {
35
191
  hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
36
192
  tags: ["fips"],
@@ -39,10 +195,6 @@ var regionHash = {
39
195
  },
40
196
  "us-gov-west-1": {
41
197
  variants: [
42
- {
43
- hostname: "lambda.us-gov-west-1.amazonaws.com",
44
- tags: [],
45
- },
46
198
  {
47
199
  hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
48
200
  tags: ["fips"],
@@ -51,26 +203,26 @@ var regionHash = {
51
203
  },
52
204
  "us-west-1": {
53
205
  variants: [
54
- {
55
- hostname: "lambda.us-west-1.amazonaws.com",
56
- tags: [],
57
- },
58
206
  {
59
207
  hostname: "lambda-fips.us-west-1.amazonaws.com",
60
208
  tags: ["fips"],
61
209
  },
210
+ {
211
+ hostname: "lambda.us-west-1.api.aws",
212
+ tags: ["dualstack"],
213
+ },
62
214
  ],
63
215
  },
64
216
  "us-west-2": {
65
217
  variants: [
66
- {
67
- hostname: "lambda.us-west-2.amazonaws.com",
68
- tags: [],
69
- },
70
218
  {
71
219
  hostname: "lambda-fips.us-west-2.amazonaws.com",
72
220
  tags: ["fips"],
73
221
  },
222
+ {
223
+ hostname: "lambda.us-west-2.api.aws",
224
+ tags: ["dualstack"],
225
+ },
74
226
  ],
75
227
  },
76
228
  };
@@ -85,6 +237,7 @@ var partitionHash = {
85
237
  "ap-south-1",
86
238
  "ap-southeast-1",
87
239
  "ap-southeast-2",
240
+ "ap-southeast-3",
88
241
  "ca-central-1",
89
242
  "eu-central-1",
90
243
  "eu-north-1",
@@ -16,30 +16,6 @@ export var AddLayerVersionPermissionResponse;
16
16
  (function (AddLayerVersionPermissionResponse) {
17
17
  AddLayerVersionPermissionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
18
  })(AddLayerVersionPermissionResponse || (AddLayerVersionPermissionResponse = {}));
19
- export var InvalidParameterValueException;
20
- (function (InvalidParameterValueException) {
21
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
23
- export var PolicyLengthExceededException;
24
- (function (PolicyLengthExceededException) {
25
- PolicyLengthExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(PolicyLengthExceededException || (PolicyLengthExceededException = {}));
27
- export var PreconditionFailedException;
28
- (function (PreconditionFailedException) {
29
- PreconditionFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
- })(PreconditionFailedException || (PreconditionFailedException = {}));
31
- export var ResourceConflictException;
32
- (function (ResourceConflictException) {
33
- ResourceConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
- })(ResourceConflictException || (ResourceConflictException = {}));
35
- export var ResourceNotFoundException;
36
- (function (ResourceNotFoundException) {
37
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
38
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
39
- export var ServiceException;
40
- (function (ServiceException) {
41
- ServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
- })(ServiceException || (ServiceException = {}));
43
19
  export var ThrottleReason;
44
20
  (function (ThrottleReason) {
45
21
  ThrottleReason["CallerRateLimitExceeded"] = "CallerRateLimitExceeded";
@@ -48,10 +24,6 @@ export var ThrottleReason;
48
24
  ThrottleReason["ReservedFunctionConcurrentInvocationLimitExceeded"] = "ReservedFunctionConcurrentInvocationLimitExceeded";
49
25
  ThrottleReason["ReservedFunctionInvocationRateLimitExceeded"] = "ReservedFunctionInvocationRateLimitExceeded";
50
26
  })(ThrottleReason || (ThrottleReason = {}));
51
- export var TooManyRequestsException;
52
- (function (TooManyRequestsException) {
53
- TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
54
- })(TooManyRequestsException || (TooManyRequestsException = {}));
55
27
  export var AddPermissionRequest;
56
28
  (function (AddPermissionRequest) {
57
29
  AddPermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -114,6 +86,14 @@ export var DestinationConfig;
114
86
  (function (DestinationConfig) {
115
87
  DestinationConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
88
  })(DestinationConfig || (DestinationConfig = {}));
89
+ export var Filter;
90
+ (function (Filter) {
91
+ Filter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
+ })(Filter || (Filter = {}));
93
+ export var FilterCriteria;
94
+ (function (FilterCriteria) {
95
+ FilterCriteria.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
+ })(FilterCriteria || (FilterCriteria = {}));
117
97
  export var FunctionResponseType;
118
98
  (function (FunctionResponseType) {
119
99
  FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
@@ -129,8 +109,10 @@ export var SelfManagedEventSource;
129
109
  export var SourceAccessType;
130
110
  (function (SourceAccessType) {
131
111
  SourceAccessType["BASIC_AUTH"] = "BASIC_AUTH";
112
+ SourceAccessType["CLIENT_CERTIFICATE_TLS_AUTH"] = "CLIENT_CERTIFICATE_TLS_AUTH";
132
113
  SourceAccessType["SASL_SCRAM_256_AUTH"] = "SASL_SCRAM_256_AUTH";
133
114
  SourceAccessType["SASL_SCRAM_512_AUTH"] = "SASL_SCRAM_512_AUTH";
115
+ SourceAccessType["SERVER_ROOT_CA_CERTIFICATE"] = "SERVER_ROOT_CA_CERTIFICATE";
134
116
  SourceAccessType["VIRTUAL_HOST"] = "VIRTUAL_HOST";
135
117
  SourceAccessType["VPC_SECURITY_GROUP"] = "VPC_SECURITY_GROUP";
136
118
  SourceAccessType["VPC_SUBNET"] = "VPC_SUBNET";
@@ -153,18 +135,6 @@ export var EventSourceMappingConfiguration;
153
135
  (function (EventSourceMappingConfiguration) {
154
136
  EventSourceMappingConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
137
  })(EventSourceMappingConfiguration || (EventSourceMappingConfiguration = {}));
156
- export var CodeSigningConfigNotFoundException;
157
- (function (CodeSigningConfigNotFoundException) {
158
- CodeSigningConfigNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- })(CodeSigningConfigNotFoundException || (CodeSigningConfigNotFoundException = {}));
160
- export var CodeStorageExceededException;
161
- (function (CodeStorageExceededException) {
162
- CodeStorageExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- })(CodeStorageExceededException || (CodeStorageExceededException = {}));
164
- export var CodeVerificationFailedException;
165
- (function (CodeVerificationFailedException) {
166
- CodeVerificationFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- })(CodeVerificationFailedException || (CodeVerificationFailedException = {}));
168
138
  export var FunctionCode;
169
139
  (function (FunctionCode) {
170
140
  FunctionCode.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ZipFile && { ZipFile: SENSITIVE_STRING }))); };
@@ -311,10 +281,6 @@ export var FunctionConfiguration;
311
281
  ImageConfigResponse: ImageConfigResponse.filterSensitiveLog(obj.ImageConfigResponse),
312
282
  }))); };
313
283
  })(FunctionConfiguration || (FunctionConfiguration = {}));
314
- export var InvalidCodeSignatureException;
315
- (function (InvalidCodeSignatureException) {
316
- InvalidCodeSignatureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
- })(InvalidCodeSignatureException || (InvalidCodeSignatureException = {}));
318
284
  export var DeleteAliasRequest;
319
285
  (function (DeleteAliasRequest) {
320
286
  DeleteAliasRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -331,10 +297,6 @@ export var DeleteEventSourceMappingRequest;
331
297
  (function (DeleteEventSourceMappingRequest) {
332
298
  DeleteEventSourceMappingRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
333
299
  })(DeleteEventSourceMappingRequest || (DeleteEventSourceMappingRequest = {}));
334
- export var ResourceInUseException;
335
- (function (ResourceInUseException) {
336
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
337
- })(ResourceInUseException || (ResourceInUseException = {}));
338
300
  export var DeleteFunctionRequest;
339
301
  (function (DeleteFunctionRequest) {
340
302
  DeleteFunctionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -473,62 +435,6 @@ export var GetProvisionedConcurrencyConfigResponse;
473
435
  (function (GetProvisionedConcurrencyConfigResponse) {
474
436
  GetProvisionedConcurrencyConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
475
437
  })(GetProvisionedConcurrencyConfigResponse || (GetProvisionedConcurrencyConfigResponse = {}));
476
- export var ProvisionedConcurrencyConfigNotFoundException;
477
- (function (ProvisionedConcurrencyConfigNotFoundException) {
478
- ProvisionedConcurrencyConfigNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
479
- })(ProvisionedConcurrencyConfigNotFoundException || (ProvisionedConcurrencyConfigNotFoundException = {}));
480
- export var EC2AccessDeniedException;
481
- (function (EC2AccessDeniedException) {
482
- EC2AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
483
- })(EC2AccessDeniedException || (EC2AccessDeniedException = {}));
484
- export var EC2ThrottledException;
485
- (function (EC2ThrottledException) {
486
- EC2ThrottledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
487
- })(EC2ThrottledException || (EC2ThrottledException = {}));
488
- export var EC2UnexpectedException;
489
- (function (EC2UnexpectedException) {
490
- EC2UnexpectedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
491
- })(EC2UnexpectedException || (EC2UnexpectedException = {}));
492
- export var EFSIOException;
493
- (function (EFSIOException) {
494
- EFSIOException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
495
- })(EFSIOException || (EFSIOException = {}));
496
- export var EFSMountConnectivityException;
497
- (function (EFSMountConnectivityException) {
498
- EFSMountConnectivityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
499
- })(EFSMountConnectivityException || (EFSMountConnectivityException = {}));
500
- export var EFSMountFailureException;
501
- (function (EFSMountFailureException) {
502
- EFSMountFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
503
- })(EFSMountFailureException || (EFSMountFailureException = {}));
504
- export var EFSMountTimeoutException;
505
- (function (EFSMountTimeoutException) {
506
- EFSMountTimeoutException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
507
- })(EFSMountTimeoutException || (EFSMountTimeoutException = {}));
508
- export var ENILimitReachedException;
509
- (function (ENILimitReachedException) {
510
- ENILimitReachedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
511
- })(ENILimitReachedException || (ENILimitReachedException = {}));
512
- export var InvalidRequestContentException;
513
- (function (InvalidRequestContentException) {
514
- InvalidRequestContentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
- })(InvalidRequestContentException || (InvalidRequestContentException = {}));
516
- export var InvalidRuntimeException;
517
- (function (InvalidRuntimeException) {
518
- InvalidRuntimeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
519
- })(InvalidRuntimeException || (InvalidRuntimeException = {}));
520
- export var InvalidSecurityGroupIDException;
521
- (function (InvalidSecurityGroupIDException) {
522
- InvalidSecurityGroupIDException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
523
- })(InvalidSecurityGroupIDException || (InvalidSecurityGroupIDException = {}));
524
- export var InvalidSubnetIDException;
525
- (function (InvalidSubnetIDException) {
526
- InvalidSubnetIDException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
- })(InvalidSubnetIDException || (InvalidSubnetIDException = {}));
528
- export var InvalidZipFileException;
529
- (function (InvalidZipFileException) {
530
- InvalidZipFileException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
531
- })(InvalidZipFileException || (InvalidZipFileException = {}));
532
438
  export var InvocationType;
533
439
  (function (InvocationType) {
534
440
  InvocationType["DryRun"] = "DryRun";
@@ -548,38 +454,6 @@ export var InvocationResponse;
548
454
  (function (InvocationResponse) {
549
455
  InvocationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Payload && { Payload: SENSITIVE_STRING }))); };
550
456
  })(InvocationResponse || (InvocationResponse = {}));
551
- export var KMSAccessDeniedException;
552
- (function (KMSAccessDeniedException) {
553
- KMSAccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
554
- })(KMSAccessDeniedException || (KMSAccessDeniedException = {}));
555
- export var KMSDisabledException;
556
- (function (KMSDisabledException) {
557
- KMSDisabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
558
- })(KMSDisabledException || (KMSDisabledException = {}));
559
- export var KMSInvalidStateException;
560
- (function (KMSInvalidStateException) {
561
- KMSInvalidStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
562
- })(KMSInvalidStateException || (KMSInvalidStateException = {}));
563
- export var KMSNotFoundException;
564
- (function (KMSNotFoundException) {
565
- KMSNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
566
- })(KMSNotFoundException || (KMSNotFoundException = {}));
567
- export var RequestTooLargeException;
568
- (function (RequestTooLargeException) {
569
- RequestTooLargeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
570
- })(RequestTooLargeException || (RequestTooLargeException = {}));
571
- export var ResourceNotReadyException;
572
- (function (ResourceNotReadyException) {
573
- ResourceNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
574
- })(ResourceNotReadyException || (ResourceNotReadyException = {}));
575
- export var SubnetIPAddressLimitReachedException;
576
- (function (SubnetIPAddressLimitReachedException) {
577
- SubnetIPAddressLimitReachedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
578
- })(SubnetIPAddressLimitReachedException || (SubnetIPAddressLimitReachedException = {}));
579
- export var UnsupportedMediaTypeException;
580
- (function (UnsupportedMediaTypeException) {
581
- UnsupportedMediaTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
582
- })(UnsupportedMediaTypeException || (UnsupportedMediaTypeException = {}));
583
457
  export var InvokeAsyncRequest;
584
458
  (function (InvokeAsyncRequest) {
585
459
  InvokeAsyncRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -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.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
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.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
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; })
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : 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 : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), 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 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : 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 : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), 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 });
17
26
  };