@aws-sdk/client-timestream-influxdb 3.534.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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +293 -0
  3. package/dist-cjs/TimestreamInfluxDB.js +33 -0
  4. package/dist-cjs/TimestreamInfluxDBClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateDbInstanceCommand.js +29 -0
  8. package/dist-cjs/commands/CreateDbParameterGroupCommand.js +28 -0
  9. package/dist-cjs/commands/DeleteDbInstanceCommand.js +28 -0
  10. package/dist-cjs/commands/GetDbInstanceCommand.js +28 -0
  11. package/dist-cjs/commands/GetDbParameterGroupCommand.js +28 -0
  12. package/dist-cjs/commands/ListDbInstancesCommand.js +28 -0
  13. package/dist-cjs/commands/ListDbParameterGroupsCommand.js +28 -0
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  15. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  16. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  17. package/dist-cjs/commands/UpdateDbInstanceCommand.js +28 -0
  18. package/dist-cjs/commands/index.js +14 -0
  19. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  20. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  21. package/dist-cjs/endpoint/ruleset.js +7 -0
  22. package/dist-cjs/extensionConfiguration.js +2 -0
  23. package/dist-cjs/index.js +12 -0
  24. package/dist-cjs/models/TimestreamInfluxDBServiceException.js +12 -0
  25. package/dist-cjs/models/index.js +4 -0
  26. package/dist-cjs/models/models_0.js +159 -0
  27. package/dist-cjs/pagination/Interfaces.js +2 -0
  28. package/dist-cjs/pagination/ListDbInstancesPaginator.js +7 -0
  29. package/dist-cjs/pagination/ListDbParameterGroupsPaginator.js +7 -0
  30. package/dist-cjs/pagination/index.js +6 -0
  31. package/dist-cjs/protocols/Aws_json1_0.js +365 -0
  32. package/dist-cjs/runtimeConfig.browser.js +39 -0
  33. package/dist-cjs/runtimeConfig.js +49 -0
  34. package/dist-cjs/runtimeConfig.native.js +15 -0
  35. package/dist-cjs/runtimeConfig.shared.js +34 -0
  36. package/dist-cjs/runtimeExtensions.js +25 -0
  37. package/dist-es/TimestreamInfluxDB.js +29 -0
  38. package/dist-es/TimestreamInfluxDBClient.js +52 -0
  39. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  40. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  41. package/dist-es/commands/CreateDbInstanceCommand.js +25 -0
  42. package/dist-es/commands/CreateDbParameterGroupCommand.js +24 -0
  43. package/dist-es/commands/DeleteDbInstanceCommand.js +24 -0
  44. package/dist-es/commands/GetDbInstanceCommand.js +24 -0
  45. package/dist-es/commands/GetDbParameterGroupCommand.js +24 -0
  46. package/dist-es/commands/ListDbInstancesCommand.js +24 -0
  47. package/dist-es/commands/ListDbParameterGroupsCommand.js +24 -0
  48. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  49. package/dist-es/commands/TagResourceCommand.js +24 -0
  50. package/dist-es/commands/UntagResourceCommand.js +24 -0
  51. package/dist-es/commands/UpdateDbInstanceCommand.js +24 -0
  52. package/dist-es/commands/index.js +11 -0
  53. package/dist-es/endpoint/EndpointParameters.js +14 -0
  54. package/dist-es/endpoint/endpointResolver.js +8 -0
  55. package/dist-es/endpoint/ruleset.js +4 -0
  56. package/dist-es/extensionConfiguration.js +1 -0
  57. package/dist-es/index.js +7 -0
  58. package/dist-es/models/TimestreamInfluxDBServiceException.js +8 -0
  59. package/dist-es/models/index.js +1 -0
  60. package/dist-es/models/models_0.js +148 -0
  61. package/dist-es/pagination/Interfaces.js +1 -0
  62. package/dist-es/pagination/ListDbInstancesPaginator.js +4 -0
  63. package/dist-es/pagination/ListDbParameterGroupsPaginator.js +4 -0
  64. package/dist-es/pagination/index.js +3 -0
  65. package/dist-es/protocols/Aws_json1_0.js +340 -0
  66. package/dist-es/runtimeConfig.browser.js +34 -0
  67. package/dist-es/runtimeConfig.js +44 -0
  68. package/dist-es/runtimeConfig.native.js +11 -0
  69. package/dist-es/runtimeConfig.shared.js +30 -0
  70. package/dist-es/runtimeExtensions.js +21 -0
  71. package/dist-types/TimestreamInfluxDB.d.ts +87 -0
  72. package/dist-types/TimestreamInfluxDBClient.d.ts +182 -0
  73. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  74. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  75. package/dist-types/commands/CreateDbInstanceCommand.d.ts +129 -0
  76. package/dist-types/commands/CreateDbParameterGroupCommand.d.ts +108 -0
  77. package/dist-types/commands/DeleteDbInstanceCommand.d.ts +101 -0
  78. package/dist-types/commands/GetDbInstanceCommand.d.ts +98 -0
  79. package/dist-types/commands/GetDbParameterGroupCommand.d.ts +87 -0
  80. package/dist-types/commands/ListDbInstancesCommand.d.ts +87 -0
  81. package/dist-types/commands/ListDbParameterGroupsCommand.d.ts +82 -0
  82. package/dist-types/commands/ListTagsForResourceCommand.d.ts +63 -0
  83. package/dist-types/commands/TagResourceCommand.d.ts +62 -0
  84. package/dist-types/commands/UntagResourceCommand.d.ts +62 -0
  85. package/dist-types/commands/UpdateDbInstanceCommand.d.ts +108 -0
  86. package/dist-types/commands/index.d.ts +11 -0
  87. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  88. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  89. package/dist-types/endpoint/ruleset.d.ts +2 -0
  90. package/dist-types/extensionConfiguration.d.ts +9 -0
  91. package/dist-types/index.d.ts +15 -0
  92. package/dist-types/models/TimestreamInfluxDBServiceException.d.ts +13 -0
  93. package/dist-types/models/index.d.ts +1 -0
  94. package/dist-types/models/models_0.d.ts +1099 -0
  95. package/dist-types/pagination/Interfaces.d.ts +8 -0
  96. package/dist-types/pagination/ListDbInstancesPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListDbParameterGroupsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/index.d.ts +3 -0
  99. package/dist-types/protocols/Aws_json1_0.d.ts +101 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  101. package/dist-types/runtimeConfig.d.ts +45 -0
  102. package/dist-types/runtimeConfig.native.d.ts +44 -0
  103. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  104. package/dist-types/runtimeExtensions.d.ts +17 -0
  105. package/dist-types/ts3.4/TimestreamInfluxDB.d.ts +194 -0
  106. package/dist-types/ts3.4/TimestreamInfluxDBClient.d.ts +189 -0
  107. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  108. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  109. package/dist-types/ts3.4/commands/CreateDbInstanceCommand.d.ts +29 -0
  110. package/dist-types/ts3.4/commands/CreateDbParameterGroupCommand.d.ts +30 -0
  111. package/dist-types/ts3.4/commands/DeleteDbInstanceCommand.d.ts +29 -0
  112. package/dist-types/ts3.4/commands/GetDbInstanceCommand.d.ts +26 -0
  113. package/dist-types/ts3.4/commands/GetDbParameterGroupCommand.d.ts +30 -0
  114. package/dist-types/ts3.4/commands/ListDbInstancesCommand.d.ts +29 -0
  115. package/dist-types/ts3.4/commands/ListDbParameterGroupsCommand.d.ts +30 -0
  116. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +30 -0
  117. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +24 -0
  118. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +24 -0
  119. package/dist-types/ts3.4/commands/UpdateDbInstanceCommand.d.ts +29 -0
  120. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  121. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  122. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  123. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  125. package/dist-types/ts3.4/index.d.ts +10 -0
  126. package/dist-types/ts3.4/models/TimestreamInfluxDBServiceException.d.ts +8 -0
  127. package/dist-types/ts3.4/models/index.d.ts +1 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +319 -0
  129. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  130. package/dist-types/ts3.4/pagination/ListDbInstancesPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListDbParameterGroupsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  133. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +137 -0
  134. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
  135. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  136. package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
  137. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  138. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  139. package/package.json +101 -0
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListDbInstancesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListDbParameterGroupsPaginator"), exports);
@@ -0,0 +1,365 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.de_UpdateDbInstanceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListDbParameterGroupsCommand = exports.de_ListDbInstancesCommand = exports.de_GetDbParameterGroupCommand = exports.de_GetDbInstanceCommand = exports.de_DeleteDbInstanceCommand = exports.de_CreateDbParameterGroupCommand = exports.de_CreateDbInstanceCommand = exports.se_UpdateDbInstanceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListDbParameterGroupsCommand = exports.se_ListDbInstancesCommand = exports.se_GetDbParameterGroupCommand = exports.se_GetDbInstanceCommand = exports.se_DeleteDbInstanceCommand = exports.se_CreateDbParameterGroupCommand = exports.se_CreateDbInstanceCommand = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const TimestreamInfluxDBServiceException_1 = require("../models/TimestreamInfluxDBServiceException");
9
+ const se_CreateDbInstanceCommand = async (input, context) => {
10
+ const headers = sharedHeaders("CreateDbInstance");
11
+ let body;
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
+ };
15
+ exports.se_CreateDbInstanceCommand = se_CreateDbInstanceCommand;
16
+ const se_CreateDbParameterGroupCommand = async (input, context) => {
17
+ const headers = sharedHeaders("CreateDbParameterGroup");
18
+ let body;
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
+ };
22
+ exports.se_CreateDbParameterGroupCommand = se_CreateDbParameterGroupCommand;
23
+ const se_DeleteDbInstanceCommand = async (input, context) => {
24
+ const headers = sharedHeaders("DeleteDbInstance");
25
+ let body;
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
+ };
29
+ exports.se_DeleteDbInstanceCommand = se_DeleteDbInstanceCommand;
30
+ const se_GetDbInstanceCommand = async (input, context) => {
31
+ const headers = sharedHeaders("GetDbInstance");
32
+ let body;
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
+ };
36
+ exports.se_GetDbInstanceCommand = se_GetDbInstanceCommand;
37
+ const se_GetDbParameterGroupCommand = async (input, context) => {
38
+ const headers = sharedHeaders("GetDbParameterGroup");
39
+ let body;
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
+ };
43
+ exports.se_GetDbParameterGroupCommand = se_GetDbParameterGroupCommand;
44
+ const se_ListDbInstancesCommand = async (input, context) => {
45
+ const headers = sharedHeaders("ListDbInstances");
46
+ let body;
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
+ };
50
+ exports.se_ListDbInstancesCommand = se_ListDbInstancesCommand;
51
+ const se_ListDbParameterGroupsCommand = async (input, context) => {
52
+ const headers = sharedHeaders("ListDbParameterGroups");
53
+ let body;
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
+ };
57
+ exports.se_ListDbParameterGroupsCommand = se_ListDbParameterGroupsCommand;
58
+ const se_ListTagsForResourceCommand = async (input, context) => {
59
+ const headers = sharedHeaders("ListTagsForResource");
60
+ let body;
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
+ };
64
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
65
+ const se_TagResourceCommand = async (input, context) => {
66
+ const headers = sharedHeaders("TagResource");
67
+ let body;
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
+ };
71
+ exports.se_TagResourceCommand = se_TagResourceCommand;
72
+ const se_UntagResourceCommand = async (input, context) => {
73
+ const headers = sharedHeaders("UntagResource");
74
+ let body;
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
+ };
78
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
79
+ const se_UpdateDbInstanceCommand = async (input, context) => {
80
+ const headers = sharedHeaders("UpdateDbInstance");
81
+ let body;
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
+ };
85
+ exports.se_UpdateDbInstanceCommand = se_UpdateDbInstanceCommand;
86
+ const de_CreateDbInstanceCommand = async (output, context) => {
87
+ if (output.statusCode >= 300) {
88
+ return de_CommandError(output, context);
89
+ }
90
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
91
+ let contents = {};
92
+ contents = (0, smithy_client_1._json)(data);
93
+ const response = {
94
+ $metadata: deserializeMetadata(output),
95
+ ...contents,
96
+ };
97
+ return response;
98
+ };
99
+ exports.de_CreateDbInstanceCommand = de_CreateDbInstanceCommand;
100
+ const de_CreateDbParameterGroupCommand = async (output, context) => {
101
+ if (output.statusCode >= 300) {
102
+ return de_CommandError(output, context);
103
+ }
104
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
105
+ let contents = {};
106
+ contents = (0, smithy_client_1._json)(data);
107
+ const response = {
108
+ $metadata: deserializeMetadata(output),
109
+ ...contents,
110
+ };
111
+ return response;
112
+ };
113
+ exports.de_CreateDbParameterGroupCommand = de_CreateDbParameterGroupCommand;
114
+ const de_DeleteDbInstanceCommand = async (output, context) => {
115
+ if (output.statusCode >= 300) {
116
+ return de_CommandError(output, context);
117
+ }
118
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
119
+ let contents = {};
120
+ contents = (0, smithy_client_1._json)(data);
121
+ const response = {
122
+ $metadata: deserializeMetadata(output),
123
+ ...contents,
124
+ };
125
+ return response;
126
+ };
127
+ exports.de_DeleteDbInstanceCommand = de_DeleteDbInstanceCommand;
128
+ const de_GetDbInstanceCommand = async (output, context) => {
129
+ if (output.statusCode >= 300) {
130
+ return de_CommandError(output, context);
131
+ }
132
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
133
+ let contents = {};
134
+ contents = (0, smithy_client_1._json)(data);
135
+ const response = {
136
+ $metadata: deserializeMetadata(output),
137
+ ...contents,
138
+ };
139
+ return response;
140
+ };
141
+ exports.de_GetDbInstanceCommand = de_GetDbInstanceCommand;
142
+ const de_GetDbParameterGroupCommand = async (output, context) => {
143
+ if (output.statusCode >= 300) {
144
+ return de_CommandError(output, context);
145
+ }
146
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
147
+ let contents = {};
148
+ contents = (0, smithy_client_1._json)(data);
149
+ const response = {
150
+ $metadata: deserializeMetadata(output),
151
+ ...contents,
152
+ };
153
+ return response;
154
+ };
155
+ exports.de_GetDbParameterGroupCommand = de_GetDbParameterGroupCommand;
156
+ const de_ListDbInstancesCommand = async (output, context) => {
157
+ if (output.statusCode >= 300) {
158
+ return de_CommandError(output, context);
159
+ }
160
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
161
+ let contents = {};
162
+ contents = (0, smithy_client_1._json)(data);
163
+ const response = {
164
+ $metadata: deserializeMetadata(output),
165
+ ...contents,
166
+ };
167
+ return response;
168
+ };
169
+ exports.de_ListDbInstancesCommand = de_ListDbInstancesCommand;
170
+ const de_ListDbParameterGroupsCommand = async (output, context) => {
171
+ if (output.statusCode >= 300) {
172
+ return de_CommandError(output, context);
173
+ }
174
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
175
+ let contents = {};
176
+ contents = (0, smithy_client_1._json)(data);
177
+ const response = {
178
+ $metadata: deserializeMetadata(output),
179
+ ...contents,
180
+ };
181
+ return response;
182
+ };
183
+ exports.de_ListDbParameterGroupsCommand = de_ListDbParameterGroupsCommand;
184
+ const de_ListTagsForResourceCommand = async (output, context) => {
185
+ if (output.statusCode >= 300) {
186
+ return de_CommandError(output, context);
187
+ }
188
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
189
+ let contents = {};
190
+ contents = (0, smithy_client_1._json)(data);
191
+ const response = {
192
+ $metadata: deserializeMetadata(output),
193
+ ...contents,
194
+ };
195
+ return response;
196
+ };
197
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
198
+ const de_TagResourceCommand = async (output, context) => {
199
+ if (output.statusCode >= 300) {
200
+ return de_CommandError(output, context);
201
+ }
202
+ await (0, smithy_client_1.collectBody)(output.body, context);
203
+ const response = {
204
+ $metadata: deserializeMetadata(output),
205
+ };
206
+ return response;
207
+ };
208
+ exports.de_TagResourceCommand = de_TagResourceCommand;
209
+ const de_UntagResourceCommand = async (output, context) => {
210
+ if (output.statusCode >= 300) {
211
+ return de_CommandError(output, context);
212
+ }
213
+ await (0, smithy_client_1.collectBody)(output.body, context);
214
+ const response = {
215
+ $metadata: deserializeMetadata(output),
216
+ };
217
+ return response;
218
+ };
219
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
220
+ const de_UpdateDbInstanceCommand = async (output, context) => {
221
+ if (output.statusCode >= 300) {
222
+ return de_CommandError(output, context);
223
+ }
224
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
225
+ let contents = {};
226
+ contents = (0, smithy_client_1._json)(data);
227
+ const response = {
228
+ $metadata: deserializeMetadata(output),
229
+ ...contents,
230
+ };
231
+ return response;
232
+ };
233
+ exports.de_UpdateDbInstanceCommand = de_UpdateDbInstanceCommand;
234
+ const de_CommandError = async (output, context) => {
235
+ const parsedOutput = {
236
+ ...output,
237
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
238
+ };
239
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
240
+ switch (errorCode) {
241
+ case "AccessDeniedException":
242
+ case "com.amazonaws.timestreaminfluxdb#AccessDeniedException":
243
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
244
+ case "ConflictException":
245
+ case "com.amazonaws.timestreaminfluxdb#ConflictException":
246
+ throw await de_ConflictExceptionRes(parsedOutput, context);
247
+ case "InternalServerException":
248
+ case "com.amazonaws.timestreaminfluxdb#InternalServerException":
249
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
250
+ case "ResourceNotFoundException":
251
+ case "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException":
252
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
253
+ case "ServiceQuotaExceededException":
254
+ case "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException":
255
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
256
+ case "ThrottlingException":
257
+ case "com.amazonaws.timestreaminfluxdb#ThrottlingException":
258
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
259
+ case "ValidationException":
260
+ case "com.amazonaws.timestreaminfluxdb#ValidationException":
261
+ throw await de_ValidationExceptionRes(parsedOutput, context);
262
+ default:
263
+ const parsedBody = parsedOutput.body;
264
+ return throwDefaultError({
265
+ output,
266
+ parsedBody,
267
+ errorCode,
268
+ });
269
+ }
270
+ };
271
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
272
+ const body = parsedOutput.body;
273
+ const deserialized = (0, smithy_client_1._json)(body);
274
+ const exception = new models_0_1.AccessDeniedException({
275
+ $metadata: deserializeMetadata(parsedOutput),
276
+ ...deserialized,
277
+ });
278
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
279
+ };
280
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
281
+ const body = parsedOutput.body;
282
+ const deserialized = (0, smithy_client_1._json)(body);
283
+ const exception = new models_0_1.ConflictException({
284
+ $metadata: deserializeMetadata(parsedOutput),
285
+ ...deserialized,
286
+ });
287
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
288
+ };
289
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
290
+ const body = parsedOutput.body;
291
+ const deserialized = (0, smithy_client_1._json)(body);
292
+ const exception = new models_0_1.InternalServerException({
293
+ $metadata: deserializeMetadata(parsedOutput),
294
+ ...deserialized,
295
+ });
296
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
297
+ };
298
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
299
+ const body = parsedOutput.body;
300
+ const deserialized = (0, smithy_client_1._json)(body);
301
+ const exception = new models_0_1.ResourceNotFoundException({
302
+ $metadata: deserializeMetadata(parsedOutput),
303
+ ...deserialized,
304
+ });
305
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
306
+ };
307
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
308
+ const body = parsedOutput.body;
309
+ const deserialized = (0, smithy_client_1._json)(body);
310
+ const exception = new models_0_1.ServiceQuotaExceededException({
311
+ $metadata: deserializeMetadata(parsedOutput),
312
+ ...deserialized,
313
+ });
314
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
315
+ };
316
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
317
+ const body = parsedOutput.body;
318
+ const deserialized = (0, smithy_client_1._json)(body);
319
+ const exception = new models_0_1.ThrottlingException({
320
+ $metadata: deserializeMetadata(parsedOutput),
321
+ ...deserialized,
322
+ });
323
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
324
+ };
325
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
326
+ const body = parsedOutput.body;
327
+ const deserialized = (0, smithy_client_1._json)(body);
328
+ const exception = new models_0_1.ValidationException({
329
+ $metadata: deserializeMetadata(parsedOutput),
330
+ ...deserialized,
331
+ });
332
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
333
+ };
334
+ const deserializeMetadata = (output) => ({
335
+ httpStatusCode: output.statusCode,
336
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
337
+ extendedRequestId: output.headers["x-amz-id-2"],
338
+ cfId: output.headers["x-amz-cf-id"],
339
+ });
340
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
341
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(TimestreamInfluxDBServiceException_1.TimestreamInfluxDBServiceException);
342
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
343
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const contents = {
345
+ protocol,
346
+ hostname,
347
+ port,
348
+ method: "POST",
349
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
350
+ headers,
351
+ };
352
+ if (resolvedHostname !== undefined) {
353
+ contents.hostname = resolvedHostname;
354
+ }
355
+ if (body !== undefined) {
356
+ contents.body = body;
357
+ }
358
+ return new protocol_http_1.HttpRequest(contents);
359
+ };
360
+ function sharedHeaders(operation) {
361
+ return {
362
+ "content-type": "application/x-amz-json-1.0",
363
+ "x-amz-target": `AmazonTimestreamInfluxDB.${operation}`,
364
+ };
365
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
10
+ const hash_node_1 = require("@smithy/hash-node");
11
+ const middleware_retry_1 = require("@smithy/middleware-retry");
12
+ const node_config_provider_1 = require("@smithy/node-config-provider");
13
+ const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@smithy/smithy-client");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
+ const smithy_client_2 = require("@smithy/smithy-client");
20
+ const getRuntimeConfig = (config) => {
21
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ return {
27
+ ...clientSharedValues,
28
+ ...config,
29
+ runtime: "node",
30
+ defaultsMode,
31
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
32
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
+ retryMode: config?.retryMode ??
39
+ (0, node_config_provider_1.loadConfig)({
40
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
41
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
42
+ }),
43
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
44
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
+ };
48
+ };
49
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const url_parser_1 = require("@smithy/url-parser");
7
+ const util_base64_1 = require("@smithy/util-base64");
8
+ const util_utf8_1 = require("@smithy/util-utf8");
9
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
11
+ const getRuntimeConfig = (config) => {
12
+ return {
13
+ apiVersion: "2023-01-27",
14
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
15
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
16
+ disableHostPrefix: config?.disableHostPrefix ?? false,
17
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
18
+ extensions: config?.extensions ?? [],
19
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultTimestreamInfluxDBHttpAuthSchemeProvider,
20
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
21
+ {
22
+ schemeId: "aws.auth#sigv4",
23
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
+ signer: new core_1.AwsSdkSigV4Signer(),
25
+ },
26
+ ],
27
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
28
+ serviceId: config?.serviceId ?? "Timestream InfluxDB",
29
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
31
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
32
+ };
33
+ };
34
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
+ const asPartial = (t) => t;
9
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
10
+ const extensionConfiguration = {
11
+ ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
12
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
13
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
14
+ ...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
15
+ };
16
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
17
+ return {
18
+ ...runtimeConfig,
19
+ ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
20
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
21
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
22
+ ...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
23
+ };
24
+ };
25
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,29 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CreateDbInstanceCommand, } from "./commands/CreateDbInstanceCommand";
3
+ import { CreateDbParameterGroupCommand, } from "./commands/CreateDbParameterGroupCommand";
4
+ import { DeleteDbInstanceCommand, } from "./commands/DeleteDbInstanceCommand";
5
+ import { GetDbInstanceCommand, } from "./commands/GetDbInstanceCommand";
6
+ import { GetDbParameterGroupCommand, } from "./commands/GetDbParameterGroupCommand";
7
+ import { ListDbInstancesCommand, } from "./commands/ListDbInstancesCommand";
8
+ import { ListDbParameterGroupsCommand, } from "./commands/ListDbParameterGroupsCommand";
9
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
10
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
11
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
12
+ import { UpdateDbInstanceCommand, } from "./commands/UpdateDbInstanceCommand";
13
+ import { TimestreamInfluxDBClient } from "./TimestreamInfluxDBClient";
14
+ const commands = {
15
+ CreateDbInstanceCommand,
16
+ CreateDbParameterGroupCommand,
17
+ DeleteDbInstanceCommand,
18
+ GetDbInstanceCommand,
19
+ GetDbParameterGroupCommand,
20
+ ListDbInstancesCommand,
21
+ ListDbParameterGroupsCommand,
22
+ ListTagsForResourceCommand,
23
+ TagResourceCommand,
24
+ UntagResourceCommand,
25
+ UpdateDbInstanceCommand,
26
+ };
27
+ export class TimestreamInfluxDB extends TimestreamInfluxDBClient {
28
+ }
29
+ createAggregatedClient(commands, TimestreamInfluxDB);
@@ -0,0 +1,52 @@
1
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
+ import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
+ import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
+ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
+ import { Client as __Client, } from "@smithy/smithy-client";
11
+ import { defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
12
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
13
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
+ export { __Client };
16
+ export class TimestreamInfluxDBClient extends __Client {
17
+ constructor(...[configuration]) {
18
+ const _config_0 = __getRuntimeConfig(configuration || {});
19
+ const _config_1 = resolveClientEndpointParameters(_config_0);
20
+ const _config_2 = resolveRegionConfig(_config_1);
21
+ const _config_3 = resolveEndpointConfig(_config_2);
22
+ const _config_4 = resolveRetryConfig(_config_3);
23
+ const _config_5 = resolveHostHeaderConfig(_config_4);
24
+ const _config_6 = resolveUserAgentConfig(_config_5);
25
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
+ super(_config_8);
28
+ this.config = _config_8;
29
+ this.middlewareStack.use(getRetryPlugin(this.config));
30
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
31
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
+ this.middlewareStack.use(getLoggerPlugin(this.config));
33
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
35
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
+ httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
38
+ }));
39
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
40
+ }
41
+ destroy() {
42
+ super.destroy();
43
+ }
44
+ getDefaultHttpAuthSchemeParametersProvider() {
45
+ return defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider;
46
+ }
47
+ getIdentityProviderConfigProvider() {
48
+ return async (config) => new DefaultIdentityProviderConfig({
49
+ "aws.auth#sigv4": config.credentials,
50
+ });
51
+ }
52
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };