@aws-sdk/client-appconfigdata 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +40 -53
- package/dist-es/protocols/Aws_restJson1.js +47 -52
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -9,9 +9,9 @@ const serializeAws_restJson1GetLatestConfigurationCommand = async (input, contex
|
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
12
|
-
const query = {
|
|
13
|
-
|
|
14
|
-
};
|
|
12
|
+
const query = map({
|
|
13
|
+
configuration_token: [, input.ConfigurationToken],
|
|
14
|
+
});
|
|
15
15
|
let body;
|
|
16
16
|
return new protocol_http_1.HttpRequest({
|
|
17
17
|
protocol,
|
|
@@ -57,25 +57,18 @@ const deserializeAws_restJson1GetLatestConfigurationCommand = async (output, con
|
|
|
57
57
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
58
58
|
return deserializeAws_restJson1GetLatestConfigurationCommandError(output, context);
|
|
59
59
|
}
|
|
60
|
-
const contents = {
|
|
60
|
+
const contents = map({
|
|
61
61
|
$metadata: deserializeMetadata(output),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
if (output.headers["next-poll-interval-in-seconds"] !== undefined) {
|
|
71
|
-
contents.NextPollIntervalInSeconds = (0, smithy_client_1.strictParseInt32)(output.headers["next-poll-interval-in-seconds"]);
|
|
72
|
-
}
|
|
73
|
-
if (output.headers["content-type"] !== undefined) {
|
|
74
|
-
contents.ContentType = output.headers["content-type"];
|
|
75
|
-
}
|
|
62
|
+
NextPollConfigurationToken: [, output.headers["next-poll-configuration-token"]],
|
|
63
|
+
NextPollIntervalInSeconds: [
|
|
64
|
+
() => void 0 !== output.headers["next-poll-interval-in-seconds"],
|
|
65
|
+
() => (0, smithy_client_1.strictParseInt32)(output.headers["next-poll-interval-in-seconds"]),
|
|
66
|
+
],
|
|
67
|
+
ContentType: [, output.headers["content-type"]],
|
|
68
|
+
});
|
|
76
69
|
const data = await collectBody(output.body, context);
|
|
77
70
|
contents.Configuration = data;
|
|
78
|
-
return
|
|
71
|
+
return contents;
|
|
79
72
|
};
|
|
80
73
|
exports.deserializeAws_restJson1GetLatestConfigurationCommand = deserializeAws_restJson1GetLatestConfigurationCommand;
|
|
81
74
|
const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output, context) => {
|
|
@@ -83,7 +76,6 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
83
76
|
...output,
|
|
84
77
|
body: await parseBody(output.body, context),
|
|
85
78
|
};
|
|
86
|
-
let response;
|
|
87
79
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
88
80
|
switch (errorCode) {
|
|
89
81
|
case "BadRequestException":
|
|
@@ -100,29 +92,26 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
100
92
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
101
93
|
default:
|
|
102
94
|
const parsedBody = parsedOutput.body;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
$metadata,
|
|
95
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
96
|
+
output,
|
|
97
|
+
parsedBody,
|
|
98
|
+
exceptionCtor: AppConfigDataServiceException_1.AppConfigDataServiceException,
|
|
99
|
+
errorCode,
|
|
109
100
|
});
|
|
110
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
111
101
|
}
|
|
112
102
|
};
|
|
113
103
|
const deserializeAws_restJson1StartConfigurationSessionCommand = async (output, context) => {
|
|
114
104
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
115
105
|
return deserializeAws_restJson1StartConfigurationSessionCommandError(output, context);
|
|
116
106
|
}
|
|
117
|
-
const contents = {
|
|
107
|
+
const contents = map({
|
|
118
108
|
$metadata: deserializeMetadata(output),
|
|
119
|
-
|
|
120
|
-
};
|
|
109
|
+
});
|
|
121
110
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
122
|
-
if (data.InitialConfigurationToken
|
|
111
|
+
if (data.InitialConfigurationToken != null) {
|
|
123
112
|
contents.InitialConfigurationToken = (0, smithy_client_1.expectString)(data.InitialConfigurationToken);
|
|
124
113
|
}
|
|
125
|
-
return
|
|
114
|
+
return contents;
|
|
126
115
|
};
|
|
127
116
|
exports.deserializeAws_restJson1StartConfigurationSessionCommand = deserializeAws_restJson1StartConfigurationSessionCommand;
|
|
128
117
|
const deserializeAws_restJson1StartConfigurationSessionCommandError = async (output, context) => {
|
|
@@ -130,7 +119,6 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
130
119
|
...output,
|
|
131
120
|
body: await parseBody(output.body, context),
|
|
132
121
|
};
|
|
133
|
-
let response;
|
|
134
122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
135
123
|
switch (errorCode) {
|
|
136
124
|
case "BadRequestException":
|
|
@@ -147,26 +135,25 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
147
135
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
148
136
|
default:
|
|
149
137
|
const parsedBody = parsedOutput.body;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
$metadata,
|
|
138
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
139
|
+
output,
|
|
140
|
+
parsedBody,
|
|
141
|
+
exceptionCtor: AppConfigDataServiceException_1.AppConfigDataServiceException,
|
|
142
|
+
errorCode,
|
|
156
143
|
});
|
|
157
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
158
144
|
}
|
|
159
145
|
};
|
|
146
|
+
const map = smithy_client_1.map;
|
|
160
147
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
161
|
-
const contents = {};
|
|
148
|
+
const contents = map({});
|
|
162
149
|
const data = parsedOutput.body;
|
|
163
|
-
if (data.Details
|
|
150
|
+
if (data.Details != null) {
|
|
164
151
|
contents.Details = deserializeAws_restJson1BadRequestDetails((0, smithy_client_1.expectUnion)(data.Details), context);
|
|
165
152
|
}
|
|
166
|
-
if (data.Message
|
|
153
|
+
if (data.Message != null) {
|
|
167
154
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
168
155
|
}
|
|
169
|
-
if (data.Reason
|
|
156
|
+
if (data.Reason != null) {
|
|
170
157
|
contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
|
|
171
158
|
}
|
|
172
159
|
const exception = new models_0_1.BadRequestException({
|
|
@@ -176,9 +163,9 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
176
163
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
177
164
|
};
|
|
178
165
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
179
|
-
const contents = {};
|
|
166
|
+
const contents = map({});
|
|
180
167
|
const data = parsedOutput.body;
|
|
181
|
-
if (data.Message
|
|
168
|
+
if (data.Message != null) {
|
|
182
169
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
183
170
|
}
|
|
184
171
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -188,15 +175,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
188
175
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
189
176
|
};
|
|
190
177
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
191
|
-
const contents = {};
|
|
178
|
+
const contents = map({});
|
|
192
179
|
const data = parsedOutput.body;
|
|
193
|
-
if (data.Message
|
|
180
|
+
if (data.Message != null) {
|
|
194
181
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
195
182
|
}
|
|
196
|
-
if (data.ReferencedBy
|
|
183
|
+
if (data.ReferencedBy != null) {
|
|
197
184
|
contents.ReferencedBy = deserializeAws_restJson1StringMap(data.ReferencedBy, context);
|
|
198
185
|
}
|
|
199
|
-
if (data.ResourceType
|
|
186
|
+
if (data.ResourceType != null) {
|
|
200
187
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
201
188
|
}
|
|
202
189
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -206,9 +193,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
206
193
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
207
194
|
};
|
|
208
195
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
209
|
-
const contents = {};
|
|
196
|
+
const contents = map({});
|
|
210
197
|
const data = parsedOutput.body;
|
|
211
|
-
if (data.Message
|
|
198
|
+
if (data.Message != null) {
|
|
212
199
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
213
200
|
}
|
|
214
201
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -218,7 +205,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
218
205
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
219
206
|
};
|
|
220
207
|
const deserializeAws_restJson1BadRequestDetails = (output, context) => {
|
|
221
|
-
if (output.InvalidParameters
|
|
208
|
+
if (output.InvalidParameters != null) {
|
|
222
209
|
return {
|
|
223
210
|
InvalidParameters: deserializeAws_restJson1InvalidParameterMap(output.InvalidParameters, context),
|
|
224
211
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
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";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
5
5
|
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1GetLatestConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -12,7 +12,9 @@ export var serializeAws_restJson1GetLatestConfigurationCommand = function (input
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration";
|
|
15
|
-
query =
|
|
15
|
+
query = map({
|
|
16
|
+
configuration_token: [, input.ConfigurationToken],
|
|
17
|
+
});
|
|
16
18
|
return [2, new __HttpRequest({
|
|
17
19
|
protocol: protocol,
|
|
18
20
|
hostname: hostname,
|
|
@@ -62,32 +64,25 @@ export var deserializeAws_restJson1GetLatestConfigurationCommand = function (out
|
|
|
62
64
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
63
65
|
return [2, deserializeAws_restJson1GetLatestConfigurationCommandError(output, context)];
|
|
64
66
|
}
|
|
65
|
-
contents = {
|
|
67
|
+
contents = map({
|
|
66
68
|
$metadata: deserializeMetadata(output),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
if (output.headers["next-poll-interval-in-seconds"] !== undefined) {
|
|
76
|
-
contents.NextPollIntervalInSeconds = __strictParseInt32(output.headers["next-poll-interval-in-seconds"]);
|
|
77
|
-
}
|
|
78
|
-
if (output.headers["content-type"] !== undefined) {
|
|
79
|
-
contents.ContentType = output.headers["content-type"];
|
|
80
|
-
}
|
|
69
|
+
NextPollConfigurationToken: [, output.headers["next-poll-configuration-token"]],
|
|
70
|
+
NextPollIntervalInSeconds: [
|
|
71
|
+
function () { return void 0 !== output.headers["next-poll-interval-in-seconds"]; },
|
|
72
|
+
function () { return __strictParseInt32(output.headers["next-poll-interval-in-seconds"]); },
|
|
73
|
+
],
|
|
74
|
+
ContentType: [, output.headers["content-type"]],
|
|
75
|
+
});
|
|
81
76
|
return [4, collectBody(output.body, context)];
|
|
82
77
|
case 1:
|
|
83
78
|
data = _a.sent();
|
|
84
79
|
contents.Configuration = data;
|
|
85
|
-
return [2,
|
|
80
|
+
return [2, contents];
|
|
86
81
|
}
|
|
87
82
|
});
|
|
88
83
|
}); };
|
|
89
84
|
var deserializeAws_restJson1GetLatestConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
90
|
-
var parsedOutput, _a,
|
|
85
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
91
86
|
var _c;
|
|
92
87
|
return __generator(this, function (_d) {
|
|
93
88
|
switch (_d.label) {
|
|
@@ -120,14 +115,14 @@ var deserializeAws_restJson1GetLatestConfigurationCommandError = function (outpu
|
|
|
120
115
|
case 9: throw _d.sent();
|
|
121
116
|
case 10:
|
|
122
117
|
parsedBody = parsedOutput.body;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
$metadata: $metadata,
|
|
118
|
+
throwDefaultError({
|
|
119
|
+
output: output,
|
|
120
|
+
parsedBody: parsedBody,
|
|
121
|
+
exceptionCtor: __BaseException,
|
|
122
|
+
errorCode: errorCode,
|
|
129
123
|
});
|
|
130
|
-
|
|
124
|
+
_d.label = 11;
|
|
125
|
+
case 11: return [2];
|
|
131
126
|
}
|
|
132
127
|
});
|
|
133
128
|
}); };
|
|
@@ -139,24 +134,23 @@ export var deserializeAws_restJson1StartConfigurationSessionCommand = function (
|
|
|
139
134
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
140
135
|
return [2, deserializeAws_restJson1StartConfigurationSessionCommandError(output, context)];
|
|
141
136
|
}
|
|
142
|
-
contents = {
|
|
137
|
+
contents = map({
|
|
143
138
|
$metadata: deserializeMetadata(output),
|
|
144
|
-
|
|
145
|
-
};
|
|
139
|
+
});
|
|
146
140
|
_a = __expectNonNull;
|
|
147
141
|
_b = __expectObject;
|
|
148
142
|
return [4, parseBody(output.body, context)];
|
|
149
143
|
case 1:
|
|
150
144
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
151
|
-
if (data.InitialConfigurationToken
|
|
145
|
+
if (data.InitialConfigurationToken != null) {
|
|
152
146
|
contents.InitialConfigurationToken = __expectString(data.InitialConfigurationToken);
|
|
153
147
|
}
|
|
154
|
-
return [2,
|
|
148
|
+
return [2, contents];
|
|
155
149
|
}
|
|
156
150
|
});
|
|
157
151
|
}); };
|
|
158
152
|
var deserializeAws_restJson1StartConfigurationSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
|
-
var parsedOutput, _a,
|
|
153
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
160
154
|
var _c;
|
|
161
155
|
return __generator(this, function (_d) {
|
|
162
156
|
switch (_d.label) {
|
|
@@ -189,29 +183,30 @@ var deserializeAws_restJson1StartConfigurationSessionCommandError = function (ou
|
|
|
189
183
|
case 9: throw _d.sent();
|
|
190
184
|
case 10:
|
|
191
185
|
parsedBody = parsedOutput.body;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
$metadata: $metadata,
|
|
186
|
+
throwDefaultError({
|
|
187
|
+
output: output,
|
|
188
|
+
parsedBody: parsedBody,
|
|
189
|
+
exceptionCtor: __BaseException,
|
|
190
|
+
errorCode: errorCode,
|
|
198
191
|
});
|
|
199
|
-
|
|
192
|
+
_d.label = 11;
|
|
193
|
+
case 11: return [2];
|
|
200
194
|
}
|
|
201
195
|
});
|
|
202
196
|
}); };
|
|
197
|
+
var map = __map;
|
|
203
198
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
204
199
|
var contents, data, exception;
|
|
205
200
|
return __generator(this, function (_a) {
|
|
206
|
-
contents = {};
|
|
201
|
+
contents = map({});
|
|
207
202
|
data = parsedOutput.body;
|
|
208
|
-
if (data.Details
|
|
203
|
+
if (data.Details != null) {
|
|
209
204
|
contents.Details = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
|
|
210
205
|
}
|
|
211
|
-
if (data.Message
|
|
206
|
+
if (data.Message != null) {
|
|
212
207
|
contents.Message = __expectString(data.Message);
|
|
213
208
|
}
|
|
214
|
-
if (data.Reason
|
|
209
|
+
if (data.Reason != null) {
|
|
215
210
|
contents.Reason = __expectString(data.Reason);
|
|
216
211
|
}
|
|
217
212
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -221,9 +216,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
221
216
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
217
|
var contents, data, exception;
|
|
223
218
|
return __generator(this, function (_a) {
|
|
224
|
-
contents = {};
|
|
219
|
+
contents = map({});
|
|
225
220
|
data = parsedOutput.body;
|
|
226
|
-
if (data.Message
|
|
221
|
+
if (data.Message != null) {
|
|
227
222
|
contents.Message = __expectString(data.Message);
|
|
228
223
|
}
|
|
229
224
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -233,15 +228,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
233
228
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
234
229
|
var contents, data, exception;
|
|
235
230
|
return __generator(this, function (_a) {
|
|
236
|
-
contents = {};
|
|
231
|
+
contents = map({});
|
|
237
232
|
data = parsedOutput.body;
|
|
238
|
-
if (data.Message
|
|
233
|
+
if (data.Message != null) {
|
|
239
234
|
contents.Message = __expectString(data.Message);
|
|
240
235
|
}
|
|
241
|
-
if (data.ReferencedBy
|
|
236
|
+
if (data.ReferencedBy != null) {
|
|
242
237
|
contents.ReferencedBy = deserializeAws_restJson1StringMap(data.ReferencedBy, context);
|
|
243
238
|
}
|
|
244
|
-
if (data.ResourceType
|
|
239
|
+
if (data.ResourceType != null) {
|
|
245
240
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
246
241
|
}
|
|
247
242
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -251,9 +246,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
251
246
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
252
247
|
var contents, data, exception;
|
|
253
248
|
return __generator(this, function (_a) {
|
|
254
|
-
contents = {};
|
|
249
|
+
contents = map({});
|
|
255
250
|
data = parsedOutput.body;
|
|
256
|
-
if (data.Message
|
|
251
|
+
if (data.Message != null) {
|
|
257
252
|
contents.Message = __expectString(data.Message);
|
|
258
253
|
}
|
|
259
254
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -261,7 +256,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
261
256
|
});
|
|
262
257
|
}); };
|
|
263
258
|
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
|
264
|
-
if (output.InvalidParameters
|
|
259
|
+
if (output.InvalidParameters != null) {
|
|
265
260
|
return {
|
|
266
261
|
InvalidParameters: deserializeAws_restJson1InvalidParameterMap(output.InvalidParameters, context),
|
|
267
262
|
};
|
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.142.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|