@aws-sdk/client-appconfigdata 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AppConfigDataServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +62 -1
- package/dist-cjs/protocols/Aws_restJson1.js +42 -100
- package/dist-es/index.js +1 -0
- package/dist-es/models/AppConfigDataServiceException.js +12 -0
- package/dist-es/models/models_0.js +58 -1
- package/dist-es/protocols/Aws_restJson1.js +59 -113
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AppConfigDataServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -13
- package/dist-types/ts3.4/AppConfigData.d.ts +15 -0
- package/dist-types/ts3.4/AppConfigDataClient.d.ts +75 -0
- package/dist-types/ts3.4/commands/GetLatestConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartConfigurationSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/AppConfigDataServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +148 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
5
|
+
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1GetLatestConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -89,16 +91,16 @@ export var deserializeAws_restJson1GetLatestConfigurationCommand = function (out
|
|
|
89
91
|
});
|
|
90
92
|
}); };
|
|
91
93
|
var deserializeAws_restJson1GetLatestConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
93
|
-
var
|
|
94
|
-
return __generator(this, function (
|
|
95
|
-
switch (
|
|
94
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
95
|
+
var _c;
|
|
96
|
+
return __generator(this, function (_d) {
|
|
97
|
+
switch (_d.label) {
|
|
96
98
|
case 0:
|
|
97
99
|
_a = [__assign({}, output)];
|
|
98
|
-
|
|
100
|
+
_c = {};
|
|
99
101
|
return [4, parseBody(output.body, context)];
|
|
100
102
|
case 1:
|
|
101
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
103
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
102
104
|
errorCode = "UnknownError";
|
|
103
105
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
106
|
_b = errorCode;
|
|
@@ -113,40 +115,22 @@ var deserializeAws_restJson1GetLatestConfigurationCommandError = function (outpu
|
|
|
113
115
|
case "com.amazonaws.appconfigdata#ThrottlingException": return [3, 8];
|
|
114
116
|
}
|
|
115
117
|
return [3, 10];
|
|
116
|
-
case 2:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
case
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
case 4
|
|
123
|
-
|
|
124
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
125
|
-
case 5:
|
|
126
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
127
|
-
return [3, 11];
|
|
128
|
-
case 6:
|
|
129
|
-
_e = [{}];
|
|
130
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
131
|
-
case 7:
|
|
132
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
133
|
-
return [3, 11];
|
|
134
|
-
case 8:
|
|
135
|
-
_f = [{}];
|
|
136
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
137
|
-
case 9:
|
|
138
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
139
|
-
return [3, 11];
|
|
118
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
119
|
+
case 3: throw _d.sent();
|
|
120
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
121
|
+
case 5: throw _d.sent();
|
|
122
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
123
|
+
case 7: throw _d.sent();
|
|
124
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
125
|
+
case 9: throw _d.sent();
|
|
140
126
|
case 10:
|
|
141
127
|
parsedBody = parsedOutput.body;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
response
|
|
148
|
-
delete response.Message;
|
|
149
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
128
|
+
response = new __BaseException({
|
|
129
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
130
|
+
$fault: "client",
|
|
131
|
+
$metadata: deserializeMetadata(output),
|
|
132
|
+
});
|
|
133
|
+
throw __decorateServiceException(response, parsedBody);
|
|
150
134
|
}
|
|
151
135
|
});
|
|
152
136
|
}); };
|
|
@@ -175,16 +159,16 @@ export var deserializeAws_restJson1StartConfigurationSessionCommand = function (
|
|
|
175
159
|
});
|
|
176
160
|
}); };
|
|
177
161
|
var deserializeAws_restJson1StartConfigurationSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
178
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
179
|
-
var
|
|
180
|
-
return __generator(this, function (
|
|
181
|
-
switch (
|
|
162
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
163
|
+
var _c;
|
|
164
|
+
return __generator(this, function (_d) {
|
|
165
|
+
switch (_d.label) {
|
|
182
166
|
case 0:
|
|
183
167
|
_a = [__assign({}, output)];
|
|
184
|
-
|
|
168
|
+
_c = {};
|
|
185
169
|
return [4, parseBody(output.body, context)];
|
|
186
170
|
case 1:
|
|
187
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
171
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
188
172
|
errorCode = "UnknownError";
|
|
189
173
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
190
174
|
_b = errorCode;
|
|
@@ -199,54 +183,29 @@ var deserializeAws_restJson1StartConfigurationSessionCommandError = function (ou
|
|
|
199
183
|
case "com.amazonaws.appconfigdata#ThrottlingException": return [3, 8];
|
|
200
184
|
}
|
|
201
185
|
return [3, 10];
|
|
202
|
-
case 2:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
case
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
case 4
|
|
209
|
-
|
|
210
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
211
|
-
case 5:
|
|
212
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
213
|
-
return [3, 11];
|
|
214
|
-
case 6:
|
|
215
|
-
_e = [{}];
|
|
216
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
217
|
-
case 7:
|
|
218
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
219
|
-
return [3, 11];
|
|
220
|
-
case 8:
|
|
221
|
-
_f = [{}];
|
|
222
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
223
|
-
case 9:
|
|
224
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
225
|
-
return [3, 11];
|
|
186
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
187
|
+
case 3: throw _d.sent();
|
|
188
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
189
|
+
case 5: throw _d.sent();
|
|
190
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
191
|
+
case 7: throw _d.sent();
|
|
192
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
193
|
+
case 9: throw _d.sent();
|
|
226
194
|
case 10:
|
|
227
195
|
parsedBody = parsedOutput.body;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
response
|
|
234
|
-
delete response.Message;
|
|
235
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
196
|
+
response = new __BaseException({
|
|
197
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
198
|
+
$fault: "client",
|
|
199
|
+
$metadata: deserializeMetadata(output),
|
|
200
|
+
});
|
|
201
|
+
throw __decorateServiceException(response, parsedBody);
|
|
236
202
|
}
|
|
237
203
|
});
|
|
238
204
|
}); };
|
|
239
205
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
240
|
-
var contents, data;
|
|
206
|
+
var contents, data, exception;
|
|
241
207
|
return __generator(this, function (_a) {
|
|
242
|
-
contents = {
|
|
243
|
-
name: "BadRequestException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
246
|
-
Details: undefined,
|
|
247
|
-
Message: undefined,
|
|
248
|
-
Reason: undefined,
|
|
249
|
-
};
|
|
208
|
+
contents = {};
|
|
250
209
|
data = parsedOutput.body;
|
|
251
210
|
if (data.Details !== undefined && data.Details !== null) {
|
|
252
211
|
contents.Details = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
|
|
@@ -257,36 +216,26 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
257
216
|
if (data.Reason !== undefined && data.Reason !== null) {
|
|
258
217
|
contents.Reason = __expectString(data.Reason);
|
|
259
218
|
}
|
|
260
|
-
|
|
219
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
220
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
261
221
|
});
|
|
262
222
|
}); };
|
|
263
223
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
264
|
-
var contents, data;
|
|
224
|
+
var contents, data, exception;
|
|
265
225
|
return __generator(this, function (_a) {
|
|
266
|
-
contents = {
|
|
267
|
-
name: "InternalServerException",
|
|
268
|
-
$fault: "server",
|
|
269
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
270
|
-
Message: undefined,
|
|
271
|
-
};
|
|
226
|
+
contents = {};
|
|
272
227
|
data = parsedOutput.body;
|
|
273
228
|
if (data.Message !== undefined && data.Message !== null) {
|
|
274
229
|
contents.Message = __expectString(data.Message);
|
|
275
230
|
}
|
|
276
|
-
|
|
231
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
232
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
277
233
|
});
|
|
278
234
|
}); };
|
|
279
235
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
280
|
-
var contents, data;
|
|
236
|
+
var contents, data, exception;
|
|
281
237
|
return __generator(this, function (_a) {
|
|
282
|
-
contents = {
|
|
283
|
-
name: "ResourceNotFoundException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
286
|
-
Message: undefined,
|
|
287
|
-
ReferencedBy: undefined,
|
|
288
|
-
ResourceType: undefined,
|
|
289
|
-
};
|
|
238
|
+
contents = {};
|
|
290
239
|
data = parsedOutput.body;
|
|
291
240
|
if (data.Message !== undefined && data.Message !== null) {
|
|
292
241
|
contents.Message = __expectString(data.Message);
|
|
@@ -297,23 +246,20 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
297
246
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
298
247
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
299
248
|
}
|
|
300
|
-
|
|
249
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
250
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
301
251
|
});
|
|
302
252
|
}); };
|
|
303
253
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
|
-
var contents, data;
|
|
254
|
+
var contents, data, exception;
|
|
305
255
|
return __generator(this, function (_a) {
|
|
306
|
-
contents = {
|
|
307
|
-
name: "ThrottlingException",
|
|
308
|
-
$fault: "client",
|
|
309
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
310
|
-
Message: undefined,
|
|
311
|
-
};
|
|
256
|
+
contents = {};
|
|
312
257
|
data = parsedOutput.body;
|
|
313
258
|
if (data.Message !== undefined && data.Message !== null) {
|
|
314
259
|
contents.Message = __expectString(data.Message);
|
|
315
260
|
}
|
|
316
|
-
|
|
261
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
262
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
317
263
|
});
|
|
318
264
|
}); };
|
|
319
265
|
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from AppConfigData service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AppConfigDataServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
|
|
2
3
|
export declare enum InvalidParameterProblem {
|
|
3
4
|
/**
|
|
4
5
|
* The parameter was corrupted and could not be understood by the service.
|
|
@@ -69,9 +70,9 @@ export declare enum BadRequestReason {
|
|
|
69
70
|
/**
|
|
70
71
|
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
71
72
|
*/
|
|
72
|
-
export
|
|
73
|
-
name: "BadRequestException";
|
|
74
|
-
$fault: "client";
|
|
73
|
+
export declare class BadRequestException extends __BaseException {
|
|
74
|
+
readonly name: "BadRequestException";
|
|
75
|
+
readonly $fault: "client";
|
|
75
76
|
Message?: string;
|
|
76
77
|
/**
|
|
77
78
|
* <p>Code indicating the reason the request was invalid.</p>
|
|
@@ -81,14 +82,22 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
|
|
|
81
82
|
* <p>Details describing why the request was invalid.</p>
|
|
82
83
|
*/
|
|
83
84
|
Details?: BadRequestDetails;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
|
|
84
89
|
}
|
|
85
90
|
/**
|
|
86
91
|
* <p>There was an internal failure in the service.</p>
|
|
87
92
|
*/
|
|
88
|
-
export
|
|
89
|
-
name: "InternalServerException";
|
|
90
|
-
$fault: "server";
|
|
93
|
+
export declare class InternalServerException extends __BaseException {
|
|
94
|
+
readonly name: "InternalServerException";
|
|
95
|
+
readonly $fault: "server";
|
|
91
96
|
Message?: string;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
92
101
|
}
|
|
93
102
|
export declare enum ResourceType {
|
|
94
103
|
/**
|
|
@@ -115,9 +124,9 @@ export declare enum ResourceType {
|
|
|
115
124
|
/**
|
|
116
125
|
* <p>The requested resource could not be found.</p>
|
|
117
126
|
*/
|
|
118
|
-
export
|
|
119
|
-
name: "ResourceNotFoundException";
|
|
120
|
-
$fault: "client";
|
|
127
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
128
|
+
readonly name: "ResourceNotFoundException";
|
|
129
|
+
readonly $fault: "client";
|
|
121
130
|
Message?: string;
|
|
122
131
|
/**
|
|
123
132
|
* <p>The type of resource that was not found.</p>
|
|
@@ -129,6 +138,10 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
129
138
|
ReferencedBy?: {
|
|
130
139
|
[key: string]: string;
|
|
131
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
132
145
|
}
|
|
133
146
|
export interface StartConfigurationSessionRequest {
|
|
134
147
|
/**
|
|
@@ -179,10 +192,14 @@ export declare namespace StartConfigurationSessionResponse {
|
|
|
179
192
|
/**
|
|
180
193
|
* <p>The request was denied due to request throttling.</p>
|
|
181
194
|
*/
|
|
182
|
-
export
|
|
183
|
-
name: "ThrottlingException";
|
|
184
|
-
$fault: "client";
|
|
195
|
+
export declare class ThrottlingException extends __BaseException {
|
|
196
|
+
readonly name: "ThrottlingException";
|
|
197
|
+
readonly $fault: "client";
|
|
185
198
|
Message?: string;
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
186
203
|
}
|
|
187
204
|
export interface GetLatestConfigurationRequest {
|
|
188
205
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AppConfigDataClient } from "./AppConfigDataClient";
|
|
3
|
+
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
|
|
4
|
+
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
|
|
5
|
+
|
|
6
|
+
export declare class AppConfigData extends AppConfigDataClient {
|
|
7
|
+
|
|
8
|
+
getLatestConfiguration(args: GetLatestConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetLatestConfigurationCommandOutput>;
|
|
9
|
+
getLatestConfiguration(args: GetLatestConfigurationCommandInput, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
|
|
10
|
+
getLatestConfiguration(args: GetLatestConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
|
|
11
|
+
|
|
12
|
+
startConfigurationSession(args: StartConfigurationSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartConfigurationSessionCommandOutput>;
|
|
13
|
+
startConfigurationSession(args: StartConfigurationSessionCommandInput, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
|
|
14
|
+
startConfigurationSession(args: StartConfigurationSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
|
|
10
|
+
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
|
|
11
|
+
export declare type ServiceInputTypes = GetLatestConfigurationCommandInput | StartConfigurationSessionCommandInput;
|
|
12
|
+
export declare type ServiceOutputTypes = GetLatestConfigurationCommandOutput | StartConfigurationSessionCommandOutput;
|
|
13
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
14
|
+
|
|
15
|
+
requestHandler?: __HttpHandler;
|
|
16
|
+
|
|
17
|
+
sha256?: __HashConstructor;
|
|
18
|
+
|
|
19
|
+
urlParser?: __UrlParser;
|
|
20
|
+
|
|
21
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
22
|
+
|
|
23
|
+
streamCollector?: __StreamCollector;
|
|
24
|
+
|
|
25
|
+
base64Decoder?: __Decoder;
|
|
26
|
+
|
|
27
|
+
base64Encoder?: __Encoder;
|
|
28
|
+
|
|
29
|
+
utf8Decoder?: __Decoder;
|
|
30
|
+
|
|
31
|
+
utf8Encoder?: __Encoder;
|
|
32
|
+
|
|
33
|
+
runtime?: string;
|
|
34
|
+
|
|
35
|
+
disableHostPrefix?: boolean;
|
|
36
|
+
|
|
37
|
+
maxAttempts?: number | __Provider<number>;
|
|
38
|
+
|
|
39
|
+
retryMode?: string | __Provider<string>;
|
|
40
|
+
|
|
41
|
+
logger?: __Logger;
|
|
42
|
+
|
|
43
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
44
|
+
|
|
45
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
46
|
+
|
|
47
|
+
serviceId?: string;
|
|
48
|
+
|
|
49
|
+
region?: string | __Provider<string>;
|
|
50
|
+
|
|
51
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
52
|
+
|
|
53
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
54
|
+
|
|
55
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
56
|
+
|
|
57
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
58
|
+
}
|
|
59
|
+
declare type AppConfigDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
60
|
+
|
|
61
|
+
export interface AppConfigDataClientConfig extends AppConfigDataClientConfigType {
|
|
62
|
+
}
|
|
63
|
+
declare type AppConfigDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
64
|
+
|
|
65
|
+
export interface AppConfigDataClientResolvedConfig extends AppConfigDataClientResolvedConfigType {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare class AppConfigDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AppConfigDataClientResolvedConfig> {
|
|
69
|
+
|
|
70
|
+
readonly config: AppConfigDataClientResolvedConfig;
|
|
71
|
+
constructor(configuration: AppConfigDataClientConfig);
|
|
72
|
+
|
|
73
|
+
destroy(): void;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AppConfigDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigDataClient";
|
|
4
|
+
import { GetLatestConfigurationRequest, GetLatestConfigurationResponse } from "../models/models_0";
|
|
5
|
+
export interface GetLatestConfigurationCommandInput extends GetLatestConfigurationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetLatestConfigurationCommandOutput extends GetLatestConfigurationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetLatestConfigurationCommand extends $Command<GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput, AppConfigDataClientResolvedConfig> {
|
|
11
|
+
readonly input: GetLatestConfigurationCommandInput;
|
|
12
|
+
constructor(input: GetLatestConfigurationCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppConfigDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AppConfigDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigDataClient";
|
|
4
|
+
import { StartConfigurationSessionRequest, StartConfigurationSessionResponse } from "../models/models_0";
|
|
5
|
+
export interface StartConfigurationSessionCommandInput extends StartConfigurationSessionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StartConfigurationSessionCommandOutput extends StartConfigurationSessionResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class StartConfigurationSessionCommand extends $Command<StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput, AppConfigDataClientResolvedConfig> {
|
|
11
|
+
readonly input: StartConfigurationSessionCommandInput;
|
|
12
|
+
constructor(input: StartConfigurationSessionCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppConfigDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class AppConfigDataServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|