@aws-sdk/client-cloudsearch 3.309.0 → 3.312.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.
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
8
8
  const CloudSearchServiceException_1 = require("../models/CloudSearchServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_BuildSuggestersCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-www-form-urlencoded",
13
- };
11
+ const headers = SHARED_HEADERS;
14
12
  let body;
15
13
  body = buildFormUrlencodedString({
16
14
  ...se_BuildSuggestersRequest(input, context),
@@ -21,9 +19,7 @@ const se_BuildSuggestersCommand = async (input, context) => {
21
19
  };
22
20
  exports.se_BuildSuggestersCommand = se_BuildSuggestersCommand;
23
21
  const se_CreateDomainCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-www-form-urlencoded",
26
- };
22
+ const headers = SHARED_HEADERS;
27
23
  let body;
28
24
  body = buildFormUrlencodedString({
29
25
  ...se_CreateDomainRequest(input, context),
@@ -34,9 +30,7 @@ const se_CreateDomainCommand = async (input, context) => {
34
30
  };
35
31
  exports.se_CreateDomainCommand = se_CreateDomainCommand;
36
32
  const se_DefineAnalysisSchemeCommand = async (input, context) => {
37
- const headers = {
38
- "content-type": "application/x-www-form-urlencoded",
39
- };
33
+ const headers = SHARED_HEADERS;
40
34
  let body;
41
35
  body = buildFormUrlencodedString({
42
36
  ...se_DefineAnalysisSchemeRequest(input, context),
@@ -47,9 +41,7 @@ const se_DefineAnalysisSchemeCommand = async (input, context) => {
47
41
  };
48
42
  exports.se_DefineAnalysisSchemeCommand = se_DefineAnalysisSchemeCommand;
49
43
  const se_DefineExpressionCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-www-form-urlencoded",
52
- };
44
+ const headers = SHARED_HEADERS;
53
45
  let body;
54
46
  body = buildFormUrlencodedString({
55
47
  ...se_DefineExpressionRequest(input, context),
@@ -60,9 +52,7 @@ const se_DefineExpressionCommand = async (input, context) => {
60
52
  };
61
53
  exports.se_DefineExpressionCommand = se_DefineExpressionCommand;
62
54
  const se_DefineIndexFieldCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-www-form-urlencoded",
65
- };
55
+ const headers = SHARED_HEADERS;
66
56
  let body;
67
57
  body = buildFormUrlencodedString({
68
58
  ...se_DefineIndexFieldRequest(input, context),
@@ -73,9 +63,7 @@ const se_DefineIndexFieldCommand = async (input, context) => {
73
63
  };
74
64
  exports.se_DefineIndexFieldCommand = se_DefineIndexFieldCommand;
75
65
  const se_DefineSuggesterCommand = async (input, context) => {
76
- const headers = {
77
- "content-type": "application/x-www-form-urlencoded",
78
- };
66
+ const headers = SHARED_HEADERS;
79
67
  let body;
80
68
  body = buildFormUrlencodedString({
81
69
  ...se_DefineSuggesterRequest(input, context),
@@ -86,9 +74,7 @@ const se_DefineSuggesterCommand = async (input, context) => {
86
74
  };
87
75
  exports.se_DefineSuggesterCommand = se_DefineSuggesterCommand;
88
76
  const se_DeleteAnalysisSchemeCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-www-form-urlencoded",
91
- };
77
+ const headers = SHARED_HEADERS;
92
78
  let body;
93
79
  body = buildFormUrlencodedString({
94
80
  ...se_DeleteAnalysisSchemeRequest(input, context),
@@ -99,9 +85,7 @@ const se_DeleteAnalysisSchemeCommand = async (input, context) => {
99
85
  };
100
86
  exports.se_DeleteAnalysisSchemeCommand = se_DeleteAnalysisSchemeCommand;
101
87
  const se_DeleteDomainCommand = async (input, context) => {
102
- const headers = {
103
- "content-type": "application/x-www-form-urlencoded",
104
- };
88
+ const headers = SHARED_HEADERS;
105
89
  let body;
106
90
  body = buildFormUrlencodedString({
107
91
  ...se_DeleteDomainRequest(input, context),
@@ -112,9 +96,7 @@ const se_DeleteDomainCommand = async (input, context) => {
112
96
  };
113
97
  exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
114
98
  const se_DeleteExpressionCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
99
+ const headers = SHARED_HEADERS;
118
100
  let body;
119
101
  body = buildFormUrlencodedString({
120
102
  ...se_DeleteExpressionRequest(input, context),
@@ -125,9 +107,7 @@ const se_DeleteExpressionCommand = async (input, context) => {
125
107
  };
126
108
  exports.se_DeleteExpressionCommand = se_DeleteExpressionCommand;
127
109
  const se_DeleteIndexFieldCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
110
+ const headers = SHARED_HEADERS;
131
111
  let body;
132
112
  body = buildFormUrlencodedString({
133
113
  ...se_DeleteIndexFieldRequest(input, context),
@@ -138,9 +118,7 @@ const se_DeleteIndexFieldCommand = async (input, context) => {
138
118
  };
139
119
  exports.se_DeleteIndexFieldCommand = se_DeleteIndexFieldCommand;
140
120
  const se_DeleteSuggesterCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-www-form-urlencoded",
143
- };
121
+ const headers = SHARED_HEADERS;
144
122
  let body;
145
123
  body = buildFormUrlencodedString({
146
124
  ...se_DeleteSuggesterRequest(input, context),
@@ -151,9 +129,7 @@ const se_DeleteSuggesterCommand = async (input, context) => {
151
129
  };
152
130
  exports.se_DeleteSuggesterCommand = se_DeleteSuggesterCommand;
153
131
  const se_DescribeAnalysisSchemesCommand = async (input, context) => {
154
- const headers = {
155
- "content-type": "application/x-www-form-urlencoded",
156
- };
132
+ const headers = SHARED_HEADERS;
157
133
  let body;
158
134
  body = buildFormUrlencodedString({
159
135
  ...se_DescribeAnalysisSchemesRequest(input, context),
@@ -164,9 +140,7 @@ const se_DescribeAnalysisSchemesCommand = async (input, context) => {
164
140
  };
165
141
  exports.se_DescribeAnalysisSchemesCommand = se_DescribeAnalysisSchemesCommand;
166
142
  const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
167
- const headers = {
168
- "content-type": "application/x-www-form-urlencoded",
169
- };
143
+ const headers = SHARED_HEADERS;
170
144
  let body;
171
145
  body = buildFormUrlencodedString({
172
146
  ...se_DescribeAvailabilityOptionsRequest(input, context),
@@ -177,9 +151,7 @@ const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
177
151
  };
178
152
  exports.se_DescribeAvailabilityOptionsCommand = se_DescribeAvailabilityOptionsCommand;
179
153
  const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-www-form-urlencoded",
182
- };
154
+ const headers = SHARED_HEADERS;
183
155
  let body;
184
156
  body = buildFormUrlencodedString({
185
157
  ...se_DescribeDomainEndpointOptionsRequest(input, context),
@@ -190,9 +162,7 @@ const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
190
162
  };
191
163
  exports.se_DescribeDomainEndpointOptionsCommand = se_DescribeDomainEndpointOptionsCommand;
192
164
  const se_DescribeDomainsCommand = async (input, context) => {
193
- const headers = {
194
- "content-type": "application/x-www-form-urlencoded",
195
- };
165
+ const headers = SHARED_HEADERS;
196
166
  let body;
197
167
  body = buildFormUrlencodedString({
198
168
  ...se_DescribeDomainsRequest(input, context),
@@ -203,9 +173,7 @@ const se_DescribeDomainsCommand = async (input, context) => {
203
173
  };
204
174
  exports.se_DescribeDomainsCommand = se_DescribeDomainsCommand;
205
175
  const se_DescribeExpressionsCommand = async (input, context) => {
206
- const headers = {
207
- "content-type": "application/x-www-form-urlencoded",
208
- };
176
+ const headers = SHARED_HEADERS;
209
177
  let body;
210
178
  body = buildFormUrlencodedString({
211
179
  ...se_DescribeExpressionsRequest(input, context),
@@ -216,9 +184,7 @@ const se_DescribeExpressionsCommand = async (input, context) => {
216
184
  };
217
185
  exports.se_DescribeExpressionsCommand = se_DescribeExpressionsCommand;
218
186
  const se_DescribeIndexFieldsCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-www-form-urlencoded",
221
- };
187
+ const headers = SHARED_HEADERS;
222
188
  let body;
223
189
  body = buildFormUrlencodedString({
224
190
  ...se_DescribeIndexFieldsRequest(input, context),
@@ -229,9 +195,7 @@ const se_DescribeIndexFieldsCommand = async (input, context) => {
229
195
  };
230
196
  exports.se_DescribeIndexFieldsCommand = se_DescribeIndexFieldsCommand;
231
197
  const se_DescribeScalingParametersCommand = async (input, context) => {
232
- const headers = {
233
- "content-type": "application/x-www-form-urlencoded",
234
- };
198
+ const headers = SHARED_HEADERS;
235
199
  let body;
236
200
  body = buildFormUrlencodedString({
237
201
  ...se_DescribeScalingParametersRequest(input, context),
@@ -242,9 +206,7 @@ const se_DescribeScalingParametersCommand = async (input, context) => {
242
206
  };
243
207
  exports.se_DescribeScalingParametersCommand = se_DescribeScalingParametersCommand;
244
208
  const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
245
- const headers = {
246
- "content-type": "application/x-www-form-urlencoded",
247
- };
209
+ const headers = SHARED_HEADERS;
248
210
  let body;
249
211
  body = buildFormUrlencodedString({
250
212
  ...se_DescribeServiceAccessPoliciesRequest(input, context),
@@ -255,9 +217,7 @@ const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
255
217
  };
256
218
  exports.se_DescribeServiceAccessPoliciesCommand = se_DescribeServiceAccessPoliciesCommand;
257
219
  const se_DescribeSuggestersCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-www-form-urlencoded",
260
- };
220
+ const headers = SHARED_HEADERS;
261
221
  let body;
262
222
  body = buildFormUrlencodedString({
263
223
  ...se_DescribeSuggestersRequest(input, context),
@@ -268,9 +228,7 @@ const se_DescribeSuggestersCommand = async (input, context) => {
268
228
  };
269
229
  exports.se_DescribeSuggestersCommand = se_DescribeSuggestersCommand;
270
230
  const se_IndexDocumentsCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-www-form-urlencoded",
273
- };
231
+ const headers = SHARED_HEADERS;
274
232
  let body;
275
233
  body = buildFormUrlencodedString({
276
234
  ...se_IndexDocumentsRequest(input, context),
@@ -281,9 +239,7 @@ const se_IndexDocumentsCommand = async (input, context) => {
281
239
  };
282
240
  exports.se_IndexDocumentsCommand = se_IndexDocumentsCommand;
283
241
  const se_ListDomainNamesCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
242
+ const headers = SHARED_HEADERS;
287
243
  const body = buildFormUrlencodedString({
288
244
  Action: "ListDomainNames",
289
245
  Version: "2013-01-01",
@@ -292,9 +248,7 @@ const se_ListDomainNamesCommand = async (input, context) => {
292
248
  };
293
249
  exports.se_ListDomainNamesCommand = se_ListDomainNamesCommand;
294
250
  const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
295
- const headers = {
296
- "content-type": "application/x-www-form-urlencoded",
297
- };
251
+ const headers = SHARED_HEADERS;
298
252
  let body;
299
253
  body = buildFormUrlencodedString({
300
254
  ...se_UpdateAvailabilityOptionsRequest(input, context),
@@ -305,9 +259,7 @@ const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
305
259
  };
306
260
  exports.se_UpdateAvailabilityOptionsCommand = se_UpdateAvailabilityOptionsCommand;
307
261
  const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
308
- const headers = {
309
- "content-type": "application/x-www-form-urlencoded",
310
- };
262
+ const headers = SHARED_HEADERS;
311
263
  let body;
312
264
  body = buildFormUrlencodedString({
313
265
  ...se_UpdateDomainEndpointOptionsRequest(input, context),
@@ -318,9 +270,7 @@ const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
318
270
  };
319
271
  exports.se_UpdateDomainEndpointOptionsCommand = se_UpdateDomainEndpointOptionsCommand;
320
272
  const se_UpdateScalingParametersCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-www-form-urlencoded",
323
- };
273
+ const headers = SHARED_HEADERS;
324
274
  let body;
325
275
  body = buildFormUrlencodedString({
326
276
  ...se_UpdateScalingParametersRequest(input, context),
@@ -331,9 +281,7 @@ const se_UpdateScalingParametersCommand = async (input, context) => {
331
281
  };
332
282
  exports.se_UpdateScalingParametersCommand = se_UpdateScalingParametersCommand;
333
283
  const se_UpdateServiceAccessPoliciesCommand = async (input, context) => {
334
- const headers = {
335
- "content-type": "application/x-www-form-urlencoded",
336
- };
284
+ const headers = SHARED_HEADERS;
337
285
  let body;
338
286
  body = buildFormUrlencodedString({
339
287
  ...se_UpdateServiceAccessPoliciesRequest(input, context),
@@ -3206,6 +3154,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3206
3154
  }
3207
3155
  return new protocol_http_1.HttpRequest(contents);
3208
3156
  };
3157
+ const SHARED_HEADERS = {
3158
+ "content-type": "application/x-www-form-urlencoded",
3159
+ };
3209
3160
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3210
3161
  if (encoded.length) {
3211
3162
  const parser = new fast_xml_parser_1.XMLParser({
@@ -4,9 +4,7 @@ import { XMLParser } from "fast-xml-parser";
4
4
  import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
5
5
  import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
6
6
  export const se_BuildSuggestersCommand = async (input, context) => {
7
- const headers = {
8
- "content-type": "application/x-www-form-urlencoded",
9
- };
7
+ const headers = SHARED_HEADERS;
10
8
  let body;
11
9
  body = buildFormUrlencodedString({
12
10
  ...se_BuildSuggestersRequest(input, context),
@@ -16,9 +14,7 @@ export const se_BuildSuggestersCommand = async (input, context) => {
16
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
15
  };
18
16
  export const se_CreateDomainCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-www-form-urlencoded",
21
- };
17
+ const headers = SHARED_HEADERS;
22
18
  let body;
23
19
  body = buildFormUrlencodedString({
24
20
  ...se_CreateDomainRequest(input, context),
@@ -28,9 +24,7 @@ export const se_CreateDomainCommand = async (input, context) => {
28
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
25
  };
30
26
  export const se_DefineAnalysisSchemeCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-www-form-urlencoded",
33
- };
27
+ const headers = SHARED_HEADERS;
34
28
  let body;
35
29
  body = buildFormUrlencodedString({
36
30
  ...se_DefineAnalysisSchemeRequest(input, context),
@@ -40,9 +34,7 @@ export const se_DefineAnalysisSchemeCommand = async (input, context) => {
40
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
35
  };
42
36
  export const se_DefineExpressionCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-www-form-urlencoded",
45
- };
37
+ const headers = SHARED_HEADERS;
46
38
  let body;
47
39
  body = buildFormUrlencodedString({
48
40
  ...se_DefineExpressionRequest(input, context),
@@ -52,9 +44,7 @@ export const se_DefineExpressionCommand = async (input, context) => {
52
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
45
  };
54
46
  export const se_DefineIndexFieldCommand = async (input, context) => {
55
- const headers = {
56
- "content-type": "application/x-www-form-urlencoded",
57
- };
47
+ const headers = SHARED_HEADERS;
58
48
  let body;
59
49
  body = buildFormUrlencodedString({
60
50
  ...se_DefineIndexFieldRequest(input, context),
@@ -64,9 +54,7 @@ export const se_DefineIndexFieldCommand = async (input, context) => {
64
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
55
  };
66
56
  export const se_DefineSuggesterCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-www-form-urlencoded",
69
- };
57
+ const headers = SHARED_HEADERS;
70
58
  let body;
71
59
  body = buildFormUrlencodedString({
72
60
  ...se_DefineSuggesterRequest(input, context),
@@ -76,9 +64,7 @@ export const se_DefineSuggesterCommand = async (input, context) => {
76
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
65
  };
78
66
  export const se_DeleteAnalysisSchemeCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-www-form-urlencoded",
81
- };
67
+ const headers = SHARED_HEADERS;
82
68
  let body;
83
69
  body = buildFormUrlencodedString({
84
70
  ...se_DeleteAnalysisSchemeRequest(input, context),
@@ -88,9 +74,7 @@ export const se_DeleteAnalysisSchemeCommand = async (input, context) => {
88
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
75
  };
90
76
  export const se_DeleteDomainCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-www-form-urlencoded",
93
- };
77
+ const headers = SHARED_HEADERS;
94
78
  let body;
95
79
  body = buildFormUrlencodedString({
96
80
  ...se_DeleteDomainRequest(input, context),
@@ -100,9 +84,7 @@ export const se_DeleteDomainCommand = async (input, context) => {
100
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
85
  };
102
86
  export const se_DeleteExpressionCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
87
+ const headers = SHARED_HEADERS;
106
88
  let body;
107
89
  body = buildFormUrlencodedString({
108
90
  ...se_DeleteExpressionRequest(input, context),
@@ -112,9 +94,7 @@ export const se_DeleteExpressionCommand = async (input, context) => {
112
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
95
  };
114
96
  export const se_DeleteIndexFieldCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
97
+ const headers = SHARED_HEADERS;
118
98
  let body;
119
99
  body = buildFormUrlencodedString({
120
100
  ...se_DeleteIndexFieldRequest(input, context),
@@ -124,9 +104,7 @@ export const se_DeleteIndexFieldCommand = async (input, context) => {
124
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
105
  };
126
106
  export const se_DeleteSuggesterCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-www-form-urlencoded",
129
- };
107
+ const headers = SHARED_HEADERS;
130
108
  let body;
131
109
  body = buildFormUrlencodedString({
132
110
  ...se_DeleteSuggesterRequest(input, context),
@@ -136,9 +114,7 @@ export const se_DeleteSuggesterCommand = async (input, context) => {
136
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
115
  };
138
116
  export const se_DescribeAnalysisSchemesCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-www-form-urlencoded",
141
- };
117
+ const headers = SHARED_HEADERS;
142
118
  let body;
143
119
  body = buildFormUrlencodedString({
144
120
  ...se_DescribeAnalysisSchemesRequest(input, context),
@@ -148,9 +124,7 @@ export const se_DescribeAnalysisSchemesCommand = async (input, context) => {
148
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
125
  };
150
126
  export const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-www-form-urlencoded",
153
- };
127
+ const headers = SHARED_HEADERS;
154
128
  let body;
155
129
  body = buildFormUrlencodedString({
156
130
  ...se_DescribeAvailabilityOptionsRequest(input, context),
@@ -160,9 +134,7 @@ export const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
160
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
135
  };
162
136
  export const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-www-form-urlencoded",
165
- };
137
+ const headers = SHARED_HEADERS;
166
138
  let body;
167
139
  body = buildFormUrlencodedString({
168
140
  ...se_DescribeDomainEndpointOptionsRequest(input, context),
@@ -172,9 +144,7 @@ export const se_DescribeDomainEndpointOptionsCommand = async (input, context) =>
172
144
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
145
  };
174
146
  export const se_DescribeDomainsCommand = async (input, context) => {
175
- const headers = {
176
- "content-type": "application/x-www-form-urlencoded",
177
- };
147
+ const headers = SHARED_HEADERS;
178
148
  let body;
179
149
  body = buildFormUrlencodedString({
180
150
  ...se_DescribeDomainsRequest(input, context),
@@ -184,9 +154,7 @@ export const se_DescribeDomainsCommand = async (input, context) => {
184
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
155
  };
186
156
  export const se_DescribeExpressionsCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-www-form-urlencoded",
189
- };
157
+ const headers = SHARED_HEADERS;
190
158
  let body;
191
159
  body = buildFormUrlencodedString({
192
160
  ...se_DescribeExpressionsRequest(input, context),
@@ -196,9 +164,7 @@ export const se_DescribeExpressionsCommand = async (input, context) => {
196
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
165
  };
198
166
  export const se_DescribeIndexFieldsCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-www-form-urlencoded",
201
- };
167
+ const headers = SHARED_HEADERS;
202
168
  let body;
203
169
  body = buildFormUrlencodedString({
204
170
  ...se_DescribeIndexFieldsRequest(input, context),
@@ -208,9 +174,7 @@ export const se_DescribeIndexFieldsCommand = async (input, context) => {
208
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
175
  };
210
176
  export const se_DescribeScalingParametersCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-www-form-urlencoded",
213
- };
177
+ const headers = SHARED_HEADERS;
214
178
  let body;
215
179
  body = buildFormUrlencodedString({
216
180
  ...se_DescribeScalingParametersRequest(input, context),
@@ -220,9 +184,7 @@ export const se_DescribeScalingParametersCommand = async (input, context) => {
220
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
185
  };
222
186
  export const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-www-form-urlencoded",
225
- };
187
+ const headers = SHARED_HEADERS;
226
188
  let body;
227
189
  body = buildFormUrlencodedString({
228
190
  ...se_DescribeServiceAccessPoliciesRequest(input, context),
@@ -232,9 +194,7 @@ export const se_DescribeServiceAccessPoliciesCommand = async (input, context) =>
232
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
195
  };
234
196
  export const se_DescribeSuggestersCommand = async (input, context) => {
235
- const headers = {
236
- "content-type": "application/x-www-form-urlencoded",
237
- };
197
+ const headers = SHARED_HEADERS;
238
198
  let body;
239
199
  body = buildFormUrlencodedString({
240
200
  ...se_DescribeSuggestersRequest(input, context),
@@ -244,9 +204,7 @@ export const se_DescribeSuggestersCommand = async (input, context) => {
244
204
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
205
  };
246
206
  export const se_IndexDocumentsCommand = async (input, context) => {
247
- const headers = {
248
- "content-type": "application/x-www-form-urlencoded",
249
- };
207
+ const headers = SHARED_HEADERS;
250
208
  let body;
251
209
  body = buildFormUrlencodedString({
252
210
  ...se_IndexDocumentsRequest(input, context),
@@ -256,9 +214,7 @@ export const se_IndexDocumentsCommand = async (input, context) => {
256
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
215
  };
258
216
  export const se_ListDomainNamesCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
217
+ const headers = SHARED_HEADERS;
262
218
  const body = buildFormUrlencodedString({
263
219
  Action: "ListDomainNames",
264
220
  Version: "2013-01-01",
@@ -266,9 +222,7 @@ export const se_ListDomainNamesCommand = async (input, context) => {
266
222
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
223
  };
268
224
  export const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
269
- const headers = {
270
- "content-type": "application/x-www-form-urlencoded",
271
- };
225
+ const headers = SHARED_HEADERS;
272
226
  let body;
273
227
  body = buildFormUrlencodedString({
274
228
  ...se_UpdateAvailabilityOptionsRequest(input, context),
@@ -278,9 +232,7 @@ export const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
278
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
279
233
  };
280
234
  export const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-www-form-urlencoded",
283
- };
235
+ const headers = SHARED_HEADERS;
284
236
  let body;
285
237
  body = buildFormUrlencodedString({
286
238
  ...se_UpdateDomainEndpointOptionsRequest(input, context),
@@ -290,9 +242,7 @@ export const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
290
242
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
291
243
  };
292
244
  export const se_UpdateScalingParametersCommand = async (input, context) => {
293
- const headers = {
294
- "content-type": "application/x-www-form-urlencoded",
295
- };
245
+ const headers = SHARED_HEADERS;
296
246
  let body;
297
247
  body = buildFormUrlencodedString({
298
248
  ...se_UpdateScalingParametersRequest(input, context),
@@ -302,9 +252,7 @@ export const se_UpdateScalingParametersCommand = async (input, context) => {
302
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
253
  };
304
254
  export const se_UpdateServiceAccessPoliciesCommand = async (input, context) => {
305
- const headers = {
306
- "content-type": "application/x-www-form-urlencoded",
307
- };
255
+ const headers = SHARED_HEADERS;
308
256
  let body;
309
257
  body = buildFormUrlencodedString({
310
258
  ...se_UpdateServiceAccessPoliciesRequest(input, context),
@@ -3150,6 +3098,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3150
3098
  }
3151
3099
  return new __HttpRequest(contents);
3152
3100
  };
3101
+ const SHARED_HEADERS = {
3102
+ "content-type": "application/x-www-form-urlencoded",
3103
+ };
3153
3104
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3154
3105
  if (encoded.length) {
3155
3106
  const parser = new XMLParser({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
4
- "version": "3.309.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.309.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.309.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.309.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
+ "@aws-sdk/config-resolver": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.310.0",
27
+ "@aws-sdk/fetch-http-handler": "3.310.0",
28
+ "@aws-sdk/hash-node": "3.310.0",
29
+ "@aws-sdk/invalid-dependency": "3.310.0",
30
+ "@aws-sdk/middleware-content-length": "3.310.0",
31
+ "@aws-sdk/middleware-endpoint": "3.310.0",
32
+ "@aws-sdk/middleware-host-header": "3.310.0",
33
+ "@aws-sdk/middleware-logger": "3.310.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
+ "@aws-sdk/middleware-retry": "3.310.0",
36
+ "@aws-sdk/middleware-serde": "3.310.0",
37
+ "@aws-sdk/middleware-signing": "3.310.0",
38
+ "@aws-sdk/middleware-stack": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/node-config-provider": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.310.0",
42
+ "@aws-sdk/protocol-http": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.310.0",
44
+ "@aws-sdk/types": "3.310.0",
45
+ "@aws-sdk/url-parser": "3.310.0",
46
+ "@aws-sdk/util-base64": "3.310.0",
47
+ "@aws-sdk/util-body-length-browser": "3.310.0",
48
+ "@aws-sdk/util-body-length-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-retry": "3.310.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.310.0",
54
+ "@aws-sdk/util-user-agent-node": "3.310.0",
55
+ "@aws-sdk/util-utf8": "3.310.0",
56
56
  "fast-xml-parser": "4.1.2",
57
57
  "tslib": "^2.5.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "concurrently": "7.0.0",
@@ -77,7 +77,7 @@
77
77
  }
78
78
  },
79
79
  "files": [
80
- "dist-*"
80
+ "dist-*/**"
81
81
  ],
82
82
  "author": {
83
83
  "name": "AWS SDK for JavaScript Team",