@aws-sdk/client-lambda 3.39.0 → 3.43.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +62 -3
  3. package/dist-cjs/endpoints.js +140 -23
  4. package/dist-cjs/models/models_0.js +18 -4
  5. package/dist-cjs/protocols/Aws_restJson1.js +70 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-es/endpoints.js +140 -23
  9. package/dist-es/models/models_0.js +10 -0
  10. package/dist-es/protocols/Aws_restJson1.js +68 -4
  11. package/dist-es/runtimeConfig.browser.js +3 -2
  12. package/dist-es/runtimeConfig.js +3 -3
  13. package/dist-types/Lambda.d.ts +189 -13
  14. package/dist-types/LambdaClient.d.ts +70 -3
  15. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +1 -1
  16. package/dist-types/commands/AddPermissionCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +50 -11
  20. package/dist-types/commands/CreateFunctionCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +1 -1
  30. package/dist-types/commands/GetAccountSettingsCommand.d.ts +1 -1
  31. package/dist-types/commands/GetAliasCommand.d.ts +1 -1
  32. package/dist-types/commands/GetCodeSigningConfigCommand.d.ts +1 -1
  33. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -1
  34. package/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +1 -1
  35. package/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  36. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +1 -1
  37. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +1 -1
  39. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -1
  40. package/dist-types/commands/GetLayerVersionCommand.d.ts +1 -1
  41. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +1 -1
  42. package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
  43. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +1 -1
  44. package/dist-types/commands/InvokeAsyncCommand.d.ts +1 -1
  45. package/dist-types/commands/InvokeCommand.d.ts +1 -1
  46. package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  47. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
  50. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +1 -1
  51. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  52. package/dist-types/commands/ListLayerVersionsCommand.d.ts +1 -1
  53. package/dist-types/commands/ListLayersCommand.d.ts +1 -1
  54. package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListTagsCommand.d.ts +1 -1
  56. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
  57. package/dist-types/commands/PublishLayerVersionCommand.d.ts +1 -1
  58. package/dist-types/commands/PublishVersionCommand.d.ts +1 -1
  59. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +1 -1
  60. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
  61. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +1 -1
  62. package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +1 -1
  63. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +1 -1
  64. package/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
  65. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  66. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +79 -1
  70. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -1
  71. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +1 -1
  73. package/dist-types/models/models_0.d.ts +98 -15
  74. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  75. package/dist-types/runtimeConfig.d.ts +2 -0
  76. package/dist-types/runtimeConfig.native.d.ts +2 -0
  77. package/dist-types/ts3.4/LambdaClient.d.ts +4 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +26 -0
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  82. package/package.json +24 -24
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "lambda-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "lambda.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "lambda-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "lambda-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "lambda.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "lambda-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "lambda.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "lambda.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "lambda-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "lambda.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "lambda-fips.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "lambda-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "lambda.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "lambda-fips.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -56,27 +104,96 @@ var partitionHash = {
56
104
  "us-west-2",
57
105
  ],
58
106
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
59
- hostname: "lambda.{region}.amazonaws.com",
107
+ variants: [
108
+ {
109
+ hostname: "lambda.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "lambda-fips.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "lambda-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "lambda.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
60
125
  },
61
126
  "aws-cn": {
62
127
  regions: ["cn-north-1", "cn-northwest-1"],
63
128
  regionRegex: "^cn\\-\\w+\\-\\d+$",
64
- hostname: "lambda.{region}.amazonaws.com.cn",
129
+ variants: [
130
+ {
131
+ hostname: "lambda.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "lambda-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "lambda-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "lambda.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
65
147
  },
66
148
  "aws-iso": {
67
149
  regions: ["us-iso-east-1", "us-iso-west-1"],
68
150
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
69
- hostname: "lambda.{region}.c2s.ic.gov",
151
+ variants: [
152
+ {
153
+ hostname: "lambda.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ {
157
+ hostname: "lambda-fips.{region}.c2s.ic.gov",
158
+ tags: ["fips"],
159
+ },
160
+ ],
70
161
  },
71
162
  "aws-iso-b": {
72
163
  regions: ["us-isob-east-1"],
73
164
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
74
- hostname: "lambda.{region}.sc2s.sgov.gov",
165
+ variants: [
166
+ {
167
+ hostname: "lambda.{region}.sc2s.sgov.gov",
168
+ tags: [],
169
+ },
170
+ {
171
+ hostname: "lambda-fips.{region}.sc2s.sgov.gov",
172
+ tags: ["fips"],
173
+ },
174
+ ],
75
175
  },
76
176
  "aws-us-gov": {
77
177
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
78
178
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
79
- hostname: "lambda.{region}.amazonaws.com",
179
+ variants: [
180
+ {
181
+ hostname: "lambda.{region}.amazonaws.com",
182
+ tags: [],
183
+ },
184
+ {
185
+ hostname: "lambda-fips.{region}.amazonaws.com",
186
+ tags: ["fips"],
187
+ },
188
+ {
189
+ hostname: "lambda-fips.{region}.api.aws",
190
+ tags: ["dualstack", "fips"],
191
+ },
192
+ {
193
+ hostname: "lambda.{region}.api.aws",
194
+ tags: ["dualstack"],
195
+ },
196
+ ],
80
197
  },
81
198
  };
82
199
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -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.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,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ 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
21
  };