@aws-sdk/client-appconfigdata 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +193 -187
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AppConfigDataClient.js +2 -0
- package/dist-es/commands/GetLatestConfigurationCommand.js +3 -10
- package/dist-es/commands/StartConfigurationSessionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -5
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +182 -0
- package/dist-types/AppConfigDataClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/AppConfigDataClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -163
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -29
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class AppConfigDataClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,12 +110,12 @@ class AppConfigDataClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class AppConfigDataServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let AppConfigDataServiceException$1 = class AppConfigDataServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const InvalidParameterProblem = {
|
|
121
121
|
CORRUPTED: "Corrupted",
|
|
@@ -133,7 +133,7 @@ exports.BadRequestDetails = void 0;
|
|
|
133
133
|
const BadRequestReason = {
|
|
134
134
|
INVALID_PARAMETERS: "InvalidParameters",
|
|
135
135
|
};
|
|
136
|
-
class BadRequestException extends AppConfigDataServiceException {
|
|
136
|
+
let BadRequestException$1 = class BadRequestException extends AppConfigDataServiceException$1 {
|
|
137
137
|
name = "BadRequestException";
|
|
138
138
|
$fault = "client";
|
|
139
139
|
Message;
|
|
@@ -150,8 +150,8 @@ class BadRequestException extends AppConfigDataServiceException {
|
|
|
150
150
|
this.Reason = opts.Reason;
|
|
151
151
|
this.Details = opts.Details;
|
|
152
152
|
}
|
|
153
|
-
}
|
|
154
|
-
class InternalServerException extends AppConfigDataServiceException {
|
|
153
|
+
};
|
|
154
|
+
let InternalServerException$1 = class InternalServerException extends AppConfigDataServiceException$1 {
|
|
155
155
|
name = "InternalServerException";
|
|
156
156
|
$fault = "server";
|
|
157
157
|
Message;
|
|
@@ -164,7 +164,7 @@ class InternalServerException extends AppConfigDataServiceException {
|
|
|
164
164
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
165
165
|
this.Message = opts.Message;
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
};
|
|
168
168
|
const ResourceType = {
|
|
169
169
|
APPLICATION: "Application",
|
|
170
170
|
CONFIGURATION: "Configuration",
|
|
@@ -172,7 +172,7 @@ const ResourceType = {
|
|
|
172
172
|
DEPLOYMENT: "Deployment",
|
|
173
173
|
ENVIRONMENT: "Environment",
|
|
174
174
|
};
|
|
175
|
-
class ResourceNotFoundException extends AppConfigDataServiceException {
|
|
175
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends AppConfigDataServiceException$1 {
|
|
176
176
|
name = "ResourceNotFoundException";
|
|
177
177
|
$fault = "client";
|
|
178
178
|
Message;
|
|
@@ -189,8 +189,8 @@ class ResourceNotFoundException extends AppConfigDataServiceException {
|
|
|
189
189
|
this.ResourceType = opts.ResourceType;
|
|
190
190
|
this.ReferencedBy = opts.ReferencedBy;
|
|
191
191
|
}
|
|
192
|
-
}
|
|
193
|
-
class ThrottlingException extends AppConfigDataServiceException {
|
|
192
|
+
};
|
|
193
|
+
let ThrottlingException$1 = class ThrottlingException extends AppConfigDataServiceException$1 {
|
|
194
194
|
name = "ThrottlingException";
|
|
195
195
|
$fault = "client";
|
|
196
196
|
Message;
|
|
@@ -203,184 +203,196 @@ class ThrottlingException extends AppConfigDataServiceException {
|
|
|
203
203
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
204
204
|
this.Message = opts.Message;
|
|
205
205
|
}
|
|
206
|
-
}
|
|
207
|
-
const GetLatestConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
208
|
-
...obj,
|
|
209
|
-
...(obj.Configuration && { Configuration: smithyClient.SENSITIVE_STRING }),
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
213
|
-
const b = core.requestBuilder(input, context);
|
|
214
|
-
const headers = {};
|
|
215
|
-
b.bp("/configuration");
|
|
216
|
-
const query = smithyClient.map({
|
|
217
|
-
[_ct]: [, smithyClient.expectNonNull(input[_CT], `ConfigurationToken`)],
|
|
218
|
-
});
|
|
219
|
-
let body;
|
|
220
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
224
|
-
const b = core.requestBuilder(input, context);
|
|
225
|
-
const headers = {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
};
|
|
228
|
-
b.bp("/configurationsessions");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
231
|
-
ApplicationIdentifier: [],
|
|
232
|
-
ConfigurationProfileIdentifier: [],
|
|
233
|
-
EnvironmentIdentifier: [],
|
|
234
|
-
RequiredMinimumPollIntervalInSeconds: [],
|
|
235
|
-
}));
|
|
236
|
-
b.m("POST").h(headers).b(body);
|
|
237
|
-
return b.build();
|
|
238
|
-
};
|
|
239
|
-
const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
241
|
-
return de_CommandError(output, context);
|
|
242
|
-
}
|
|
243
|
-
const contents = smithyClient.map({
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
[_NPCT]: [, output.headers[_npct]],
|
|
246
|
-
[_NPIIS]: [() => void 0 !== output.headers[_npiis], () => smithyClient.strictParseInt32(output.headers[_npiis])],
|
|
247
|
-
[_CTo]: [, output.headers[_ct_]],
|
|
248
|
-
[_VL]: [, output.headers[_vl]],
|
|
249
|
-
});
|
|
250
|
-
const data = await smithyClient.collectBody(output.body, context);
|
|
251
|
-
contents.Configuration = data;
|
|
252
|
-
return contents;
|
|
253
|
-
};
|
|
254
|
-
const de_StartConfigurationSessionCommand = async (output, context) => {
|
|
255
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
256
|
-
return de_CommandError(output, context);
|
|
257
|
-
}
|
|
258
|
-
const contents = smithyClient.map({
|
|
259
|
-
$metadata: deserializeMetadata(output),
|
|
260
|
-
});
|
|
261
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
262
|
-
const doc = smithyClient.take(data, {
|
|
263
|
-
InitialConfigurationToken: smithyClient.expectString,
|
|
264
|
-
});
|
|
265
|
-
Object.assign(contents, doc);
|
|
266
|
-
return contents;
|
|
267
|
-
};
|
|
268
|
-
const de_CommandError = async (output, context) => {
|
|
269
|
-
const parsedOutput = {
|
|
270
|
-
...output,
|
|
271
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
272
|
-
};
|
|
273
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
-
switch (errorCode) {
|
|
275
|
-
case "BadRequestException":
|
|
276
|
-
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
277
|
-
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
278
|
-
case "InternalServerException":
|
|
279
|
-
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
280
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
281
|
-
case "ResourceNotFoundException":
|
|
282
|
-
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
284
|
-
case "ThrottlingException":
|
|
285
|
-
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
286
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
287
|
-
default:
|
|
288
|
-
const parsedBody = parsedOutput.body;
|
|
289
|
-
return throwDefaultError({
|
|
290
|
-
output,
|
|
291
|
-
parsedBody,
|
|
292
|
-
errorCode,
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
206
|
};
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
Message: smithyClient.expectString,
|
|
303
|
-
Reason: smithyClient.expectString,
|
|
304
|
-
});
|
|
305
|
-
Object.assign(contents, doc);
|
|
306
|
-
const exception = new BadRequestException({
|
|
307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
-
...contents,
|
|
309
|
-
});
|
|
310
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
311
|
-
};
|
|
312
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
313
|
-
const contents = smithyClient.map({});
|
|
314
|
-
const data = parsedOutput.body;
|
|
315
|
-
const doc = smithyClient.take(data, {
|
|
316
|
-
Message: smithyClient.expectString,
|
|
317
|
-
});
|
|
318
|
-
Object.assign(contents, doc);
|
|
319
|
-
const exception = new InternalServerException({
|
|
320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
321
|
-
...contents,
|
|
322
|
-
});
|
|
323
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
324
|
-
};
|
|
325
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
326
|
-
const contents = smithyClient.map({});
|
|
327
|
-
const data = parsedOutput.body;
|
|
328
|
-
const doc = smithyClient.take(data, {
|
|
329
|
-
Message: smithyClient.expectString,
|
|
330
|
-
ReferencedBy: smithyClient._json,
|
|
331
|
-
ResourceType: smithyClient.expectString,
|
|
332
|
-
});
|
|
333
|
-
Object.assign(contents, doc);
|
|
334
|
-
const exception = new ResourceNotFoundException({
|
|
335
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
336
|
-
...contents,
|
|
337
|
-
});
|
|
338
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
339
|
-
};
|
|
340
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
341
|
-
const contents = smithyClient.map({});
|
|
342
|
-
const data = parsedOutput.body;
|
|
343
|
-
const doc = smithyClient.take(data, {
|
|
344
|
-
Message: smithyClient.expectString,
|
|
345
|
-
});
|
|
346
|
-
Object.assign(contents, doc);
|
|
347
|
-
const exception = new ThrottlingException({
|
|
348
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
349
|
-
...contents,
|
|
350
|
-
});
|
|
351
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
352
|
-
};
|
|
353
|
-
const deserializeMetadata = (output) => ({
|
|
354
|
-
httpStatusCode: output.statusCode,
|
|
355
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
356
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
357
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
358
|
-
});
|
|
207
|
+
|
|
208
|
+
const _AI = "ApplicationIdentifier";
|
|
209
|
+
const _BRD = "BadRequestDetails";
|
|
210
|
+
const _BRE = "BadRequestException";
|
|
211
|
+
const _C = "Configuration";
|
|
212
|
+
const _CPI = "ConfigurationProfileIdentifier";
|
|
359
213
|
const _CT = "ConfigurationToken";
|
|
214
|
+
const _CT_ = "Content-Type";
|
|
360
215
|
const _CTo = "ContentType";
|
|
216
|
+
const _D = "Details";
|
|
217
|
+
const _EI = "EnvironmentIdentifier";
|
|
218
|
+
const _GLC = "GetLatestConfiguration";
|
|
219
|
+
const _GLCR = "GetLatestConfigurationRequest";
|
|
220
|
+
const _GLCRe = "GetLatestConfigurationResponse";
|
|
221
|
+
const _ICT = "InitialConfigurationToken";
|
|
222
|
+
const _IP = "InvalidParameters";
|
|
223
|
+
const _IPD = "InvalidParameterDetail";
|
|
224
|
+
const _IPM = "InvalidParameterMap";
|
|
225
|
+
const _ISE = "InternalServerException";
|
|
226
|
+
const _M = "Message";
|
|
361
227
|
const _NPCT = "NextPollConfigurationToken";
|
|
228
|
+
const _NPCT_ = "Next-Poll-Configuration-Token";
|
|
362
229
|
const _NPIIS = "NextPollIntervalInSeconds";
|
|
230
|
+
const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
|
|
231
|
+
const _P = "Problem";
|
|
232
|
+
const _R = "Reason";
|
|
233
|
+
const _RB = "ReferencedBy";
|
|
234
|
+
const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
|
|
235
|
+
const _RNFE = "ResourceNotFoundException";
|
|
236
|
+
const _RT = "ResourceType";
|
|
237
|
+
const _SB = "SensitiveBlob";
|
|
238
|
+
const _SCS = "StartConfigurationSession";
|
|
239
|
+
const _SCSR = "StartConfigurationSessionRequest";
|
|
240
|
+
const _SCSRt = "StartConfigurationSessionResponse";
|
|
241
|
+
const _TE = "ThrottlingException";
|
|
363
242
|
const _VL = "VersionLabel";
|
|
243
|
+
const _VL_ = "Version-Label";
|
|
244
|
+
const _c = "client";
|
|
364
245
|
const _ct = "configuration_token";
|
|
365
|
-
const
|
|
366
|
-
const
|
|
367
|
-
const
|
|
368
|
-
const
|
|
246
|
+
const _e = "error";
|
|
247
|
+
const _h = "http";
|
|
248
|
+
const _hE = "httpError";
|
|
249
|
+
const _hH = "httpHeader";
|
|
250
|
+
const _hQ = "httpQuery";
|
|
251
|
+
const _s = "server";
|
|
252
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
|
|
253
|
+
const n0 = "com.amazonaws.appconfigdata";
|
|
254
|
+
var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
255
|
+
var BadRequestException = [
|
|
256
|
+
-3,
|
|
257
|
+
n0,
|
|
258
|
+
_BRE,
|
|
259
|
+
{
|
|
260
|
+
[_e]: _c,
|
|
261
|
+
[_hE]: 400,
|
|
262
|
+
},
|
|
263
|
+
[_M, _R, _D],
|
|
264
|
+
[0, 0, () => BadRequestDetails],
|
|
265
|
+
];
|
|
266
|
+
schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
|
|
267
|
+
var GetLatestConfigurationRequest = [
|
|
268
|
+
3,
|
|
269
|
+
n0,
|
|
270
|
+
_GLCR,
|
|
271
|
+
0,
|
|
272
|
+
[_CT],
|
|
273
|
+
[
|
|
274
|
+
[
|
|
275
|
+
0,
|
|
276
|
+
{
|
|
277
|
+
[_hQ]: _ct,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
],
|
|
281
|
+
];
|
|
282
|
+
var GetLatestConfigurationResponse = [
|
|
283
|
+
3,
|
|
284
|
+
n0,
|
|
285
|
+
_GLCRe,
|
|
286
|
+
0,
|
|
287
|
+
[_NPCT, _NPIIS, _CTo, _C, _VL],
|
|
288
|
+
[
|
|
289
|
+
[
|
|
290
|
+
0,
|
|
291
|
+
{
|
|
292
|
+
[_hH]: _NPCT_,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
[
|
|
296
|
+
1,
|
|
297
|
+
{
|
|
298
|
+
[_hH]: _NPIIS_,
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
[
|
|
302
|
+
0,
|
|
303
|
+
{
|
|
304
|
+
[_hH]: _CT_,
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
[() => SensitiveBlob, 16],
|
|
308
|
+
[
|
|
309
|
+
0,
|
|
310
|
+
{
|
|
311
|
+
[_hH]: _VL_,
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
],
|
|
315
|
+
];
|
|
316
|
+
var InternalServerException = [
|
|
317
|
+
-3,
|
|
318
|
+
n0,
|
|
319
|
+
_ISE,
|
|
320
|
+
{
|
|
321
|
+
[_e]: _s,
|
|
322
|
+
[_hE]: 500,
|
|
323
|
+
},
|
|
324
|
+
[_M],
|
|
325
|
+
[0],
|
|
326
|
+
];
|
|
327
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
328
|
+
var InvalidParameterDetail = [3, n0, _IPD, 0, [_P], [0]];
|
|
329
|
+
var ResourceNotFoundException = [
|
|
330
|
+
-3,
|
|
331
|
+
n0,
|
|
332
|
+
_RNFE,
|
|
333
|
+
{
|
|
334
|
+
[_e]: _c,
|
|
335
|
+
[_hE]: 404,
|
|
336
|
+
},
|
|
337
|
+
[_M, _RT, _RB],
|
|
338
|
+
[0, 0, 128 | 0],
|
|
339
|
+
];
|
|
340
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
341
|
+
var StartConfigurationSessionRequest = [
|
|
342
|
+
3,
|
|
343
|
+
n0,
|
|
344
|
+
_SCSR,
|
|
345
|
+
0,
|
|
346
|
+
[_AI, _EI, _CPI, _RMPIIS],
|
|
347
|
+
[0, 0, 0, 1],
|
|
348
|
+
];
|
|
349
|
+
var StartConfigurationSessionResponse = [3, n0, _SCSRt, 0, [_ICT], [0]];
|
|
350
|
+
var ThrottlingException = [
|
|
351
|
+
-3,
|
|
352
|
+
n0,
|
|
353
|
+
_TE,
|
|
354
|
+
{
|
|
355
|
+
[_e]: _c,
|
|
356
|
+
[_hE]: 429,
|
|
357
|
+
},
|
|
358
|
+
[_M],
|
|
359
|
+
[0],
|
|
360
|
+
];
|
|
361
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
362
|
+
var AppConfigDataServiceException = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
|
|
363
|
+
schema.TypeRegistry.for(_sm).registerError(AppConfigDataServiceException, AppConfigDataServiceException$1);
|
|
364
|
+
var InvalidParameterMap = [2, n0, _IPM, 0, 0, () => InvalidParameterDetail];
|
|
365
|
+
var BadRequestDetails = [3, n0, _BRD, 0, [_IP], [() => InvalidParameterMap]];
|
|
366
|
+
var GetLatestConfiguration = [
|
|
367
|
+
9,
|
|
368
|
+
n0,
|
|
369
|
+
_GLC,
|
|
370
|
+
{
|
|
371
|
+
[_h]: ["GET", "/configuration", 200],
|
|
372
|
+
},
|
|
373
|
+
() => GetLatestConfigurationRequest,
|
|
374
|
+
() => GetLatestConfigurationResponse,
|
|
375
|
+
];
|
|
376
|
+
var StartConfigurationSession = [
|
|
377
|
+
9,
|
|
378
|
+
n0,
|
|
379
|
+
_SCS,
|
|
380
|
+
{
|
|
381
|
+
[_h]: ["POST", "/configurationsessions", 201],
|
|
382
|
+
},
|
|
383
|
+
() => StartConfigurationSessionRequest,
|
|
384
|
+
() => StartConfigurationSessionResponse,
|
|
385
|
+
];
|
|
369
386
|
|
|
370
387
|
class GetLatestConfigurationCommand extends smithyClient.Command
|
|
371
388
|
.classBuilder()
|
|
372
389
|
.ep(commonParams)
|
|
373
390
|
.m(function (Command, cs, config, o) {
|
|
374
|
-
return [
|
|
375
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
376
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
377
|
-
];
|
|
391
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
378
392
|
})
|
|
379
393
|
.s("AppConfigData", "GetLatestConfiguration", {})
|
|
380
394
|
.n("AppConfigDataClient", "GetLatestConfigurationCommand")
|
|
381
|
-
.
|
|
382
|
-
.ser(se_GetLatestConfigurationCommand)
|
|
383
|
-
.de(de_GetLatestConfigurationCommand)
|
|
395
|
+
.sc(GetLatestConfiguration)
|
|
384
396
|
.build() {
|
|
385
397
|
}
|
|
386
398
|
|
|
@@ -388,16 +400,11 @@ class StartConfigurationSessionCommand extends smithyClient.Command
|
|
|
388
400
|
.classBuilder()
|
|
389
401
|
.ep(commonParams)
|
|
390
402
|
.m(function (Command, cs, config, o) {
|
|
391
|
-
return [
|
|
392
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
393
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
394
|
-
];
|
|
403
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
395
404
|
})
|
|
396
405
|
.s("AppConfigData", "StartConfigurationSession", {})
|
|
397
406
|
.n("AppConfigDataClient", "StartConfigurationSessionCommand")
|
|
398
|
-
.
|
|
399
|
-
.ser(se_StartConfigurationSessionCommand)
|
|
400
|
-
.de(de_StartConfigurationSessionCommand)
|
|
407
|
+
.sc(StartConfigurationSession)
|
|
401
408
|
.build() {
|
|
402
409
|
}
|
|
403
410
|
|
|
@@ -419,14 +426,13 @@ Object.defineProperty(exports, "__Client", {
|
|
|
419
426
|
});
|
|
420
427
|
exports.AppConfigData = AppConfigData;
|
|
421
428
|
exports.AppConfigDataClient = AppConfigDataClient;
|
|
422
|
-
exports.AppConfigDataServiceException = AppConfigDataServiceException;
|
|
423
|
-
exports.BadRequestException = BadRequestException;
|
|
429
|
+
exports.AppConfigDataServiceException = AppConfigDataServiceException$1;
|
|
430
|
+
exports.BadRequestException = BadRequestException$1;
|
|
424
431
|
exports.BadRequestReason = BadRequestReason;
|
|
425
432
|
exports.GetLatestConfigurationCommand = GetLatestConfigurationCommand;
|
|
426
|
-
exports.
|
|
427
|
-
exports.InternalServerException = InternalServerException;
|
|
433
|
+
exports.InternalServerException = InternalServerException$1;
|
|
428
434
|
exports.InvalidParameterProblem = InvalidParameterProblem;
|
|
429
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
435
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
430
436
|
exports.ResourceType = ResourceType;
|
|
431
437
|
exports.StartConfigurationSessionCommand = StartConfigurationSessionCommand;
|
|
432
|
-
exports.ThrottlingException = ThrottlingException;
|
|
438
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.appconfigdata" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "AppConfigData",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class AppConfigDataClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetLatestConfigurationCommand, se_GetLatestConfigurationCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetLatestConfiguration } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetLatestConfigurationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AppConfigData", "GetLatestConfiguration", {})
|
|
18
13
|
.n("AppConfigDataClient", "GetLatestConfigurationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetLatestConfigurationCommand)
|
|
21
|
-
.de(de_GetLatestConfigurationCommand)
|
|
14
|
+
.sc(GetLatestConfiguration)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartConfigurationSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartConfigurationSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AppConfigData", "StartConfigurationSession", {})
|
|
17
13
|
.n("AppConfigDataClient", "StartConfigurationSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartConfigurationSessionCommand)
|
|
20
|
-
.de(de_StartConfigurationSessionCommand)
|
|
14
|
+
.sc(StartConfigurationSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
|
|
3
2
|
export const InvalidParameterProblem = {
|
|
4
3
|
CORRUPTED: "Corrupted",
|
|
@@ -87,7 +86,3 @@ export class ThrottlingException extends __BaseException {
|
|
|
87
86
|
this.Message = opts.Message;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
|
-
export const GetLatestConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
91
|
-
...obj,
|
|
92
|
-
...(obj.Configuration && { Configuration: SENSITIVE_STRING }),
|
|
93
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.appconfigdata" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "AppConfigData",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
const _AI = "ApplicationIdentifier";
|
|
2
|
+
const _BRD = "BadRequestDetails";
|
|
3
|
+
const _BRE = "BadRequestException";
|
|
4
|
+
const _C = "Configuration";
|
|
5
|
+
const _CPI = "ConfigurationProfileIdentifier";
|
|
6
|
+
const _CT = "ConfigurationToken";
|
|
7
|
+
const _CT_ = "Content-Type";
|
|
8
|
+
const _CTo = "ContentType";
|
|
9
|
+
const _D = "Details";
|
|
10
|
+
const _EI = "EnvironmentIdentifier";
|
|
11
|
+
const _GLC = "GetLatestConfiguration";
|
|
12
|
+
const _GLCR = "GetLatestConfigurationRequest";
|
|
13
|
+
const _GLCRe = "GetLatestConfigurationResponse";
|
|
14
|
+
const _ICT = "InitialConfigurationToken";
|
|
15
|
+
const _IP = "InvalidParameters";
|
|
16
|
+
const _IPD = "InvalidParameterDetail";
|
|
17
|
+
const _IPM = "InvalidParameterMap";
|
|
18
|
+
const _ISE = "InternalServerException";
|
|
19
|
+
const _M = "Message";
|
|
20
|
+
const _NPCT = "NextPollConfigurationToken";
|
|
21
|
+
const _NPCT_ = "Next-Poll-Configuration-Token";
|
|
22
|
+
const _NPIIS = "NextPollIntervalInSeconds";
|
|
23
|
+
const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
|
|
24
|
+
const _P = "Problem";
|
|
25
|
+
const _R = "Reason";
|
|
26
|
+
const _RB = "ReferencedBy";
|
|
27
|
+
const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
|
|
28
|
+
const _RNFE = "ResourceNotFoundException";
|
|
29
|
+
const _RT = "ResourceType";
|
|
30
|
+
const _SB = "SensitiveBlob";
|
|
31
|
+
const _SCS = "StartConfigurationSession";
|
|
32
|
+
const _SCSR = "StartConfigurationSessionRequest";
|
|
33
|
+
const _SCSRt = "StartConfigurationSessionResponse";
|
|
34
|
+
const _TE = "ThrottlingException";
|
|
35
|
+
const _VL = "VersionLabel";
|
|
36
|
+
const _VL_ = "Version-Label";
|
|
37
|
+
const _c = "client";
|
|
38
|
+
const _ct = "configuration_token";
|
|
39
|
+
const _e = "error";
|
|
40
|
+
const _h = "http";
|
|
41
|
+
const _hE = "httpError";
|
|
42
|
+
const _hH = "httpHeader";
|
|
43
|
+
const _hQ = "httpQuery";
|
|
44
|
+
const _s = "server";
|
|
45
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
|
|
46
|
+
const n0 = "com.amazonaws.appconfigdata";
|
|
47
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
48
|
+
import { AppConfigDataServiceException as __AppConfigDataServiceException } from "../models/AppConfigDataServiceException";
|
|
49
|
+
import { BadRequestException as __BadRequestException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, } from "../models/index";
|
|
50
|
+
export var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
51
|
+
export var BadRequestException = [
|
|
52
|
+
-3,
|
|
53
|
+
n0,
|
|
54
|
+
_BRE,
|
|
55
|
+
{
|
|
56
|
+
[_e]: _c,
|
|
57
|
+
[_hE]: 400,
|
|
58
|
+
},
|
|
59
|
+
[_M, _R, _D],
|
|
60
|
+
[0, 0, () => BadRequestDetails],
|
|
61
|
+
];
|
|
62
|
+
TypeRegistry.for(n0).registerError(BadRequestException, __BadRequestException);
|
|
63
|
+
export var GetLatestConfigurationRequest = [
|
|
64
|
+
3,
|
|
65
|
+
n0,
|
|
66
|
+
_GLCR,
|
|
67
|
+
0,
|
|
68
|
+
[_CT],
|
|
69
|
+
[
|
|
70
|
+
[
|
|
71
|
+
0,
|
|
72
|
+
{
|
|
73
|
+
[_hQ]: _ct,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
],
|
|
77
|
+
];
|
|
78
|
+
export var GetLatestConfigurationResponse = [
|
|
79
|
+
3,
|
|
80
|
+
n0,
|
|
81
|
+
_GLCRe,
|
|
82
|
+
0,
|
|
83
|
+
[_NPCT, _NPIIS, _CTo, _C, _VL],
|
|
84
|
+
[
|
|
85
|
+
[
|
|
86
|
+
0,
|
|
87
|
+
{
|
|
88
|
+
[_hH]: _NPCT_,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
1,
|
|
93
|
+
{
|
|
94
|
+
[_hH]: _NPIIS_,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
0,
|
|
99
|
+
{
|
|
100
|
+
[_hH]: _CT_,
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
[() => SensitiveBlob, 16],
|
|
104
|
+
[
|
|
105
|
+
0,
|
|
106
|
+
{
|
|
107
|
+
[_hH]: _VL_,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
],
|
|
111
|
+
];
|
|
112
|
+
export var InternalServerException = [
|
|
113
|
+
-3,
|
|
114
|
+
n0,
|
|
115
|
+
_ISE,
|
|
116
|
+
{
|
|
117
|
+
[_e]: _s,
|
|
118
|
+
[_hE]: 500,
|
|
119
|
+
},
|
|
120
|
+
[_M],
|
|
121
|
+
[0],
|
|
122
|
+
];
|
|
123
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
124
|
+
export var InvalidParameterDetail = [3, n0, _IPD, 0, [_P], [0]];
|
|
125
|
+
export var ResourceNotFoundException = [
|
|
126
|
+
-3,
|
|
127
|
+
n0,
|
|
128
|
+
_RNFE,
|
|
129
|
+
{
|
|
130
|
+
[_e]: _c,
|
|
131
|
+
[_hE]: 404,
|
|
132
|
+
},
|
|
133
|
+
[_M, _RT, _RB],
|
|
134
|
+
[0, 0, 128 | 0],
|
|
135
|
+
];
|
|
136
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
137
|
+
export var StartConfigurationSessionRequest = [
|
|
138
|
+
3,
|
|
139
|
+
n0,
|
|
140
|
+
_SCSR,
|
|
141
|
+
0,
|
|
142
|
+
[_AI, _EI, _CPI, _RMPIIS],
|
|
143
|
+
[0, 0, 0, 1],
|
|
144
|
+
];
|
|
145
|
+
export var StartConfigurationSessionResponse = [3, n0, _SCSRt, 0, [_ICT], [0]];
|
|
146
|
+
export var ThrottlingException = [
|
|
147
|
+
-3,
|
|
148
|
+
n0,
|
|
149
|
+
_TE,
|
|
150
|
+
{
|
|
151
|
+
[_e]: _c,
|
|
152
|
+
[_hE]: 429,
|
|
153
|
+
},
|
|
154
|
+
[_M],
|
|
155
|
+
[0],
|
|
156
|
+
];
|
|
157
|
+
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
158
|
+
export var AppConfigDataServiceException = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
|
|
159
|
+
TypeRegistry.for(_sm).registerError(AppConfigDataServiceException, __AppConfigDataServiceException);
|
|
160
|
+
export var InvalidParameterMap = [2, n0, _IPM, 0, 0, () => InvalidParameterDetail];
|
|
161
|
+
export var StringMap = 128 | 0;
|
|
162
|
+
export var BadRequestDetails = [3, n0, _BRD, 0, [_IP], [() => InvalidParameterMap]];
|
|
163
|
+
export var GetLatestConfiguration = [
|
|
164
|
+
9,
|
|
165
|
+
n0,
|
|
166
|
+
_GLC,
|
|
167
|
+
{
|
|
168
|
+
[_h]: ["GET", "/configuration", 200],
|
|
169
|
+
},
|
|
170
|
+
() => GetLatestConfigurationRequest,
|
|
171
|
+
() => GetLatestConfigurationResponse,
|
|
172
|
+
];
|
|
173
|
+
export var StartConfigurationSession = [
|
|
174
|
+
9,
|
|
175
|
+
n0,
|
|
176
|
+
_SCS,
|
|
177
|
+
{
|
|
178
|
+
[_h]: ["POST", "/configurationsessions", 201],
|
|
179
|
+
},
|
|
180
|
+
() => StartConfigurationSessionRequest,
|
|
181
|
+
() => StartConfigurationSessionResponse,
|
|
182
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
|
|
11
11
|
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
|
|
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* Optional extensions
|
|
144
144
|
*/
|
|
145
145
|
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
148
|
+
* may be overridden. A default will always be set by the client.
|
|
149
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
150
|
+
* the client.
|
|
151
|
+
* @alpha
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
146
155
|
/**
|
|
147
156
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
157
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppConfigDataHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var SensitiveBlob: StaticSimpleSchema;
|
|
3
|
+
export declare var BadRequestException: StaticErrorSchema;
|
|
4
|
+
export declare var GetLatestConfigurationRequest: StaticStructureSchema;
|
|
5
|
+
export declare var GetLatestConfigurationResponse: StaticStructureSchema;
|
|
6
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidParameterDetail: StaticStructureSchema;
|
|
8
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
9
|
+
export declare var StartConfigurationSessionRequest: StaticStructureSchema;
|
|
10
|
+
export declare var StartConfigurationSessionResponse: StaticStructureSchema;
|
|
11
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
12
|
+
export declare var AppConfigDataServiceException: StaticErrorSchema;
|
|
13
|
+
export declare var InvalidParameterMap: StaticMapSchema;
|
|
14
|
+
export declare var StringMap: number;
|
|
15
|
+
export declare var BadRequestDetails: StaticStructureSchema;
|
|
16
|
+
export declare var GetLatestConfiguration: StaticOperationSchema;
|
|
17
|
+
export declare var StartConfigurationSession: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -90,6 +93,7 @@ export interface ClientDefaults
|
|
|
90
93
|
retryMode?: string | __Provider<string>;
|
|
91
94
|
logger?: __Logger;
|
|
92
95
|
extensions?: RuntimeExtension[];
|
|
96
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
93
97
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
94
98
|
}
|
|
95
99
|
export type AppConfigDataClientConfigType = Partial<
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppConfigDataHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticMapSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticSimpleSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var SensitiveBlob: StaticSimpleSchema;
|
|
9
|
+
export declare var BadRequestException: StaticErrorSchema;
|
|
10
|
+
export declare var GetLatestConfigurationRequest: StaticStructureSchema;
|
|
11
|
+
export declare var GetLatestConfigurationResponse: StaticStructureSchema;
|
|
12
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
13
|
+
export declare var InvalidParameterDetail: StaticStructureSchema;
|
|
14
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
15
|
+
export declare var StartConfigurationSessionRequest: StaticStructureSchema;
|
|
16
|
+
export declare var StartConfigurationSessionResponse: StaticStructureSchema;
|
|
17
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
18
|
+
export declare var AppConfigDataServiceException: StaticErrorSchema;
|
|
19
|
+
export declare var InvalidParameterMap: StaticMapSchema;
|
|
20
|
+
export declare var StringMap: number;
|
|
21
|
+
export declare var BadRequestDetails: StaticStructureSchema;
|
|
22
|
+
export declare var GetLatestConfiguration: StaticOperationSchema;
|
|
23
|
+
export declare var StartConfigurationSession: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfigdata",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-appconfigdata",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
5
|
-
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/configuration");
|
|
10
|
-
const query = map({
|
|
11
|
-
[_ct]: [, __expectNonNull(input[_CT], `ConfigurationToken`)],
|
|
12
|
-
});
|
|
13
|
-
let body;
|
|
14
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
15
|
-
return b.build();
|
|
16
|
-
};
|
|
17
|
-
export const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
18
|
-
const b = rb(input, context);
|
|
19
|
-
const headers = {
|
|
20
|
-
"content-type": "application/json",
|
|
21
|
-
};
|
|
22
|
-
b.bp("/configurationsessions");
|
|
23
|
-
let body;
|
|
24
|
-
body = JSON.stringify(take(input, {
|
|
25
|
-
ApplicationIdentifier: [],
|
|
26
|
-
ConfigurationProfileIdentifier: [],
|
|
27
|
-
EnvironmentIdentifier: [],
|
|
28
|
-
RequiredMinimumPollIntervalInSeconds: [],
|
|
29
|
-
}));
|
|
30
|
-
b.m("POST").h(headers).b(body);
|
|
31
|
-
return b.build();
|
|
32
|
-
};
|
|
33
|
-
export const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
34
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
35
|
-
return de_CommandError(output, context);
|
|
36
|
-
}
|
|
37
|
-
const contents = map({
|
|
38
|
-
$metadata: deserializeMetadata(output),
|
|
39
|
-
[_NPCT]: [, output.headers[_npct]],
|
|
40
|
-
[_NPIIS]: [() => void 0 !== output.headers[_npiis], () => __strictParseInt32(output.headers[_npiis])],
|
|
41
|
-
[_CTo]: [, output.headers[_ct_]],
|
|
42
|
-
[_VL]: [, output.headers[_vl]],
|
|
43
|
-
});
|
|
44
|
-
const data = await collectBody(output.body, context);
|
|
45
|
-
contents.Configuration = data;
|
|
46
|
-
return contents;
|
|
47
|
-
};
|
|
48
|
-
export const de_StartConfigurationSessionCommand = async (output, context) => {
|
|
49
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
50
|
-
return de_CommandError(output, context);
|
|
51
|
-
}
|
|
52
|
-
const contents = map({
|
|
53
|
-
$metadata: deserializeMetadata(output),
|
|
54
|
-
});
|
|
55
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
56
|
-
const doc = take(data, {
|
|
57
|
-
InitialConfigurationToken: __expectString,
|
|
58
|
-
});
|
|
59
|
-
Object.assign(contents, doc);
|
|
60
|
-
return contents;
|
|
61
|
-
};
|
|
62
|
-
const de_CommandError = async (output, context) => {
|
|
63
|
-
const parsedOutput = {
|
|
64
|
-
...output,
|
|
65
|
-
body: await parseErrorBody(output.body, context),
|
|
66
|
-
};
|
|
67
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
|
-
switch (errorCode) {
|
|
69
|
-
case "BadRequestException":
|
|
70
|
-
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
71
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
72
|
-
case "InternalServerException":
|
|
73
|
-
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
74
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
75
|
-
case "ResourceNotFoundException":
|
|
76
|
-
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
77
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
78
|
-
case "ThrottlingException":
|
|
79
|
-
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
80
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
81
|
-
default:
|
|
82
|
-
const parsedBody = parsedOutput.body;
|
|
83
|
-
return throwDefaultError({
|
|
84
|
-
output,
|
|
85
|
-
parsedBody,
|
|
86
|
-
errorCode,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
91
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
92
|
-
const contents = map({});
|
|
93
|
-
const data = parsedOutput.body;
|
|
94
|
-
const doc = take(data, {
|
|
95
|
-
Details: (_) => _json(__expectUnion(_)),
|
|
96
|
-
Message: __expectString,
|
|
97
|
-
Reason: __expectString,
|
|
98
|
-
});
|
|
99
|
-
Object.assign(contents, doc);
|
|
100
|
-
const exception = new BadRequestException({
|
|
101
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
102
|
-
...contents,
|
|
103
|
-
});
|
|
104
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
105
|
-
};
|
|
106
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
107
|
-
const contents = map({});
|
|
108
|
-
const data = parsedOutput.body;
|
|
109
|
-
const doc = take(data, {
|
|
110
|
-
Message: __expectString,
|
|
111
|
-
});
|
|
112
|
-
Object.assign(contents, doc);
|
|
113
|
-
const exception = new InternalServerException({
|
|
114
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
115
|
-
...contents,
|
|
116
|
-
});
|
|
117
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
118
|
-
};
|
|
119
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
120
|
-
const contents = map({});
|
|
121
|
-
const data = parsedOutput.body;
|
|
122
|
-
const doc = take(data, {
|
|
123
|
-
Message: __expectString,
|
|
124
|
-
ReferencedBy: _json,
|
|
125
|
-
ResourceType: __expectString,
|
|
126
|
-
});
|
|
127
|
-
Object.assign(contents, doc);
|
|
128
|
-
const exception = new ResourceNotFoundException({
|
|
129
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
130
|
-
...contents,
|
|
131
|
-
});
|
|
132
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
133
|
-
};
|
|
134
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
135
|
-
const contents = map({});
|
|
136
|
-
const data = parsedOutput.body;
|
|
137
|
-
const doc = take(data, {
|
|
138
|
-
Message: __expectString,
|
|
139
|
-
});
|
|
140
|
-
Object.assign(contents, doc);
|
|
141
|
-
const exception = new ThrottlingException({
|
|
142
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
143
|
-
...contents,
|
|
144
|
-
});
|
|
145
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
146
|
-
};
|
|
147
|
-
const deserializeMetadata = (output) => ({
|
|
148
|
-
httpStatusCode: output.statusCode,
|
|
149
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
150
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
151
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
152
|
-
});
|
|
153
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
154
|
-
const _CT = "ConfigurationToken";
|
|
155
|
-
const _CTo = "ContentType";
|
|
156
|
-
const _NPCT = "NextPollConfigurationToken";
|
|
157
|
-
const _NPIIS = "NextPollIntervalInSeconds";
|
|
158
|
-
const _VL = "VersionLabel";
|
|
159
|
-
const _ct = "configuration_token";
|
|
160
|
-
const _ct_ = "content-type";
|
|
161
|
-
const _npct = "next-poll-configuration-token";
|
|
162
|
-
const _npiis = "next-poll-interval-in-seconds";
|
|
163
|
-
const _vl = "version-label";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "../commands/GetLatestConfigurationCommand";
|
|
4
|
-
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "../commands/StartConfigurationSessionCommand";
|
|
5
|
-
/**
|
|
6
|
-
* serializeAws_restJson1GetLatestConfigurationCommand
|
|
7
|
-
*/
|
|
8
|
-
export declare const se_GetLatestConfigurationCommand: (input: GetLatestConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
-
/**
|
|
10
|
-
* serializeAws_restJson1StartConfigurationSessionCommand
|
|
11
|
-
*/
|
|
12
|
-
export declare const se_StartConfigurationSessionCommand: (input: StartConfigurationSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
-
/**
|
|
14
|
-
* deserializeAws_restJson1GetLatestConfigurationCommand
|
|
15
|
-
*/
|
|
16
|
-
export declare const de_GetLatestConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLatestConfigurationCommandOutput>;
|
|
17
|
-
/**
|
|
18
|
-
* deserializeAws_restJson1StartConfigurationSessionCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const de_StartConfigurationSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartConfigurationSessionCommandOutput>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
GetLatestConfigurationCommandInput,
|
|
8
|
-
GetLatestConfigurationCommandOutput,
|
|
9
|
-
} from "../commands/GetLatestConfigurationCommand";
|
|
10
|
-
import {
|
|
11
|
-
StartConfigurationSessionCommandInput,
|
|
12
|
-
StartConfigurationSessionCommandOutput,
|
|
13
|
-
} from "../commands/StartConfigurationSessionCommand";
|
|
14
|
-
export declare const se_GetLatestConfigurationCommand: (
|
|
15
|
-
input: GetLatestConfigurationCommandInput,
|
|
16
|
-
context: __SerdeContext
|
|
17
|
-
) => Promise<__HttpRequest>;
|
|
18
|
-
export declare const se_StartConfigurationSessionCommand: (
|
|
19
|
-
input: StartConfigurationSessionCommandInput,
|
|
20
|
-
context: __SerdeContext
|
|
21
|
-
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const de_GetLatestConfigurationCommand: (
|
|
23
|
-
output: __HttpResponse,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<GetLatestConfigurationCommandOutput>;
|
|
26
|
-
export declare const de_StartConfigurationSessionCommand: (
|
|
27
|
-
output: __HttpResponse,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<StartConfigurationSessionCommandOutput>;
|