@aws-sdk/client-appconfigdata 3.306.0 → 3.310.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/commands/GetLatestConfigurationCommand.js +2 -2
- package/dist-cjs/commands/StartConfigurationSessionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +33 -33
- package/dist-es/commands/GetLatestConfigurationCommand.js +3 -3
- package/dist-es/commands/StartConfigurationSessionCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +28 -28
- package/dist-types/protocols/Aws_restJson1.d.ts +16 -4
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +4 -4
- package/package.json +35 -35
|
@@ -37,10 +37,10 @@ class GetLatestConfigurationCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_GetLatestConfigurationCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_GetLatestConfigurationCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.GetLatestConfigurationCommand = GetLatestConfigurationCommand;
|
|
@@ -36,10 +36,10 @@ class StartConfigurationSessionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_StartConfigurationSessionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_StartConfigurationSessionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.StartConfigurationSessionCommand = StartConfigurationSessionCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartConfigurationSessionCommand = exports.de_GetLatestConfigurationCommand = exports.se_StartConfigurationSessionCommand = exports.se_GetLatestConfigurationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const AppConfigDataServiceException_1 = require("../models/AppConfigDataServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
@@ -24,8 +24,8 @@ const serializeAws_restJson1GetLatestConfigurationCommand = async (input, contex
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_GetLatestConfigurationCommand = se_GetLatestConfigurationCommand;
|
|
28
|
+
const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/json",
|
|
@@ -52,10 +52,10 @@ const serializeAws_restJson1StartConfigurationSessionCommand = async (input, con
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
exports.
|
|
56
|
-
const
|
|
55
|
+
exports.se_StartConfigurationSessionCommand = se_StartConfigurationSessionCommand;
|
|
56
|
+
const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
57
57
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
58
|
-
return
|
|
58
|
+
return de_GetLatestConfigurationCommandError(output, context);
|
|
59
59
|
}
|
|
60
60
|
const contents = map({
|
|
61
61
|
$metadata: deserializeMetadata(output),
|
|
@@ -71,8 +71,8 @@ const deserializeAws_restJson1GetLatestConfigurationCommand = async (output, con
|
|
|
71
71
|
contents.Configuration = data;
|
|
72
72
|
return contents;
|
|
73
73
|
};
|
|
74
|
-
exports.
|
|
75
|
-
const
|
|
74
|
+
exports.de_GetLatestConfigurationCommand = de_GetLatestConfigurationCommand;
|
|
75
|
+
const de_GetLatestConfigurationCommandError = async (output, context) => {
|
|
76
76
|
const parsedOutput = {
|
|
77
77
|
...output,
|
|
78
78
|
body: await parseErrorBody(output.body, context),
|
|
@@ -81,16 +81,16 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
81
81
|
switch (errorCode) {
|
|
82
82
|
case "BadRequestException":
|
|
83
83
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
84
|
-
throw await
|
|
84
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
85
85
|
case "InternalServerException":
|
|
86
86
|
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
87
|
-
throw await
|
|
87
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
88
88
|
case "ResourceNotFoundException":
|
|
89
89
|
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
90
|
-
throw await
|
|
90
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
91
91
|
case "ThrottlingException":
|
|
92
92
|
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
93
|
-
throw await
|
|
93
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
94
94
|
default:
|
|
95
95
|
const parsedBody = parsedOutput.body;
|
|
96
96
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -101,9 +101,9 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
const
|
|
104
|
+
const de_StartConfigurationSessionCommand = async (output, context) => {
|
|
105
105
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
106
|
-
return
|
|
106
|
+
return de_StartConfigurationSessionCommandError(output, context);
|
|
107
107
|
}
|
|
108
108
|
const contents = map({
|
|
109
109
|
$metadata: deserializeMetadata(output),
|
|
@@ -114,8 +114,8 @@ const deserializeAws_restJson1StartConfigurationSessionCommand = async (output,
|
|
|
114
114
|
}
|
|
115
115
|
return contents;
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.de_StartConfigurationSessionCommand = de_StartConfigurationSessionCommand;
|
|
118
|
+
const de_StartConfigurationSessionCommandError = async (output, context) => {
|
|
119
119
|
const parsedOutput = {
|
|
120
120
|
...output,
|
|
121
121
|
body: await parseErrorBody(output.body, context),
|
|
@@ -124,16 +124,16 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
124
124
|
switch (errorCode) {
|
|
125
125
|
case "BadRequestException":
|
|
126
126
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
127
|
-
throw await
|
|
127
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
128
128
|
case "InternalServerException":
|
|
129
129
|
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
130
|
-
throw await
|
|
130
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
131
131
|
case "ResourceNotFoundException":
|
|
132
132
|
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
133
|
-
throw await
|
|
133
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
134
134
|
case "ThrottlingException":
|
|
135
135
|
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
136
|
-
throw await
|
|
136
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
137
137
|
default:
|
|
138
138
|
const parsedBody = parsedOutput.body;
|
|
139
139
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -145,11 +145,11 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
const map = smithy_client_1.map;
|
|
148
|
-
const
|
|
148
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
149
149
|
const contents = map({});
|
|
150
150
|
const data = parsedOutput.body;
|
|
151
151
|
if (data.Details != null) {
|
|
152
|
-
contents.Details =
|
|
152
|
+
contents.Details = de_BadRequestDetails((0, smithy_client_1.expectUnion)(data.Details), context);
|
|
153
153
|
}
|
|
154
154
|
if (data.Message != null) {
|
|
155
155
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
@@ -163,7 +163,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
163
163
|
});
|
|
164
164
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
165
165
|
};
|
|
166
|
-
const
|
|
166
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
167
167
|
const contents = map({});
|
|
168
168
|
const data = parsedOutput.body;
|
|
169
169
|
if (data.Message != null) {
|
|
@@ -175,14 +175,14 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
175
175
|
});
|
|
176
176
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
179
179
|
const contents = map({});
|
|
180
180
|
const data = parsedOutput.body;
|
|
181
181
|
if (data.Message != null) {
|
|
182
182
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
183
183
|
}
|
|
184
184
|
if (data.ReferencedBy != null) {
|
|
185
|
-
contents.ReferencedBy =
|
|
185
|
+
contents.ReferencedBy = de_StringMap(data.ReferencedBy, context);
|
|
186
186
|
}
|
|
187
187
|
if (data.ResourceType != null) {
|
|
188
188
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
@@ -193,7 +193,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
193
193
|
});
|
|
194
194
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
195
195
|
};
|
|
196
|
-
const
|
|
196
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
197
197
|
const contents = map({});
|
|
198
198
|
const data = parsedOutput.body;
|
|
199
199
|
if (data.Message != null) {
|
|
@@ -205,29 +205,29 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
205
205
|
});
|
|
206
206
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
207
207
|
};
|
|
208
|
-
const
|
|
208
|
+
const de_BadRequestDetails = (output, context) => {
|
|
209
209
|
if (output.InvalidParameters != null) {
|
|
210
210
|
return {
|
|
211
|
-
InvalidParameters:
|
|
211
|
+
InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
return { $unknown: Object.entries(output)[0] };
|
|
215
215
|
};
|
|
216
|
-
const
|
|
216
|
+
const de_InvalidParameterDetail = (output, context) => {
|
|
217
217
|
return {
|
|
218
218
|
Problem: (0, smithy_client_1.expectString)(output.Problem),
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
-
const
|
|
221
|
+
const de_InvalidParameterMap = (output, context) => {
|
|
222
222
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
223
223
|
if (value === null) {
|
|
224
224
|
return acc;
|
|
225
225
|
}
|
|
226
|
-
acc[key] =
|
|
226
|
+
acc[key] = de_InvalidParameterDetail(value, context);
|
|
227
227
|
return acc;
|
|
228
228
|
}, {});
|
|
229
229
|
};
|
|
230
|
-
const
|
|
230
|
+
const de_StringMap = (output, context) => {
|
|
231
231
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
232
232
|
if (value === null) {
|
|
233
233
|
return acc;
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { GetLatestConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_GetLatestConfigurationCommand, se_GetLatestConfigurationCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetLatestConfigurationCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class GetLatestConfigurationCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_GetLatestConfigurationCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_GetLatestConfigurationCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_StartConfigurationSessionCommand, se_StartConfigurationSessionCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class StartConfigurationSessionCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class StartConfigurationSessionCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_StartConfigurationSessionCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_StartConfigurationSessionCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
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";
|
|
3
3
|
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
4
4
|
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
@@ -21,7 +21,7 @@ export const serializeAws_restJson1GetLatestConfigurationCommand = async (input,
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
25
25
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
26
26
|
const headers = {
|
|
27
27
|
"content-type": "application/json",
|
|
@@ -48,9 +48,9 @@ export const serializeAws_restJson1StartConfigurationSessionCommand = async (inp
|
|
|
48
48
|
body,
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
52
52
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
53
|
-
return
|
|
53
|
+
return de_GetLatestConfigurationCommandError(output, context);
|
|
54
54
|
}
|
|
55
55
|
const contents = map({
|
|
56
56
|
$metadata: deserializeMetadata(output),
|
|
@@ -66,7 +66,7 @@ export const deserializeAws_restJson1GetLatestConfigurationCommand = async (outp
|
|
|
66
66
|
contents.Configuration = data;
|
|
67
67
|
return contents;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
69
|
+
const de_GetLatestConfigurationCommandError = async (output, context) => {
|
|
70
70
|
const parsedOutput = {
|
|
71
71
|
...output,
|
|
72
72
|
body: await parseErrorBody(output.body, context),
|
|
@@ -75,16 +75,16 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
75
75
|
switch (errorCode) {
|
|
76
76
|
case "BadRequestException":
|
|
77
77
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
78
|
-
throw await
|
|
78
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
79
79
|
case "InternalServerException":
|
|
80
80
|
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
81
|
-
throw await
|
|
81
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
82
82
|
case "ResourceNotFoundException":
|
|
83
83
|
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
84
|
-
throw await
|
|
84
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
85
85
|
case "ThrottlingException":
|
|
86
86
|
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
87
|
-
throw await
|
|
87
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
88
88
|
default:
|
|
89
89
|
const parsedBody = parsedOutput.body;
|
|
90
90
|
throwDefaultError({
|
|
@@ -95,9 +95,9 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
export const
|
|
98
|
+
export const de_StartConfigurationSessionCommand = async (output, context) => {
|
|
99
99
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
100
|
-
return
|
|
100
|
+
return de_StartConfigurationSessionCommandError(output, context);
|
|
101
101
|
}
|
|
102
102
|
const contents = map({
|
|
103
103
|
$metadata: deserializeMetadata(output),
|
|
@@ -108,7 +108,7 @@ export const deserializeAws_restJson1StartConfigurationSessionCommand = async (o
|
|
|
108
108
|
}
|
|
109
109
|
return contents;
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const de_StartConfigurationSessionCommandError = async (output, context) => {
|
|
112
112
|
const parsedOutput = {
|
|
113
113
|
...output,
|
|
114
114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -117,16 +117,16 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
117
117
|
switch (errorCode) {
|
|
118
118
|
case "BadRequestException":
|
|
119
119
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
121
121
|
case "InternalServerException":
|
|
122
122
|
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
124
124
|
case "ResourceNotFoundException":
|
|
125
125
|
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
127
127
|
case "ThrottlingException":
|
|
128
128
|
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
129
|
-
throw await
|
|
129
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
130
130
|
default:
|
|
131
131
|
const parsedBody = parsedOutput.body;
|
|
132
132
|
throwDefaultError({
|
|
@@ -138,11 +138,11 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
const map = __map;
|
|
141
|
-
const
|
|
141
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
142
142
|
const contents = map({});
|
|
143
143
|
const data = parsedOutput.body;
|
|
144
144
|
if (data.Details != null) {
|
|
145
|
-
contents.Details =
|
|
145
|
+
contents.Details = de_BadRequestDetails(__expectUnion(data.Details), context);
|
|
146
146
|
}
|
|
147
147
|
if (data.Message != null) {
|
|
148
148
|
contents.Message = __expectString(data.Message);
|
|
@@ -156,7 +156,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
156
156
|
});
|
|
157
157
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
158
158
|
};
|
|
159
|
-
const
|
|
159
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
160
160
|
const contents = map({});
|
|
161
161
|
const data = parsedOutput.body;
|
|
162
162
|
if (data.Message != null) {
|
|
@@ -168,14 +168,14 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
168
168
|
});
|
|
169
169
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
170
170
|
};
|
|
171
|
-
const
|
|
171
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
172
172
|
const contents = map({});
|
|
173
173
|
const data = parsedOutput.body;
|
|
174
174
|
if (data.Message != null) {
|
|
175
175
|
contents.Message = __expectString(data.Message);
|
|
176
176
|
}
|
|
177
177
|
if (data.ReferencedBy != null) {
|
|
178
|
-
contents.ReferencedBy =
|
|
178
|
+
contents.ReferencedBy = de_StringMap(data.ReferencedBy, context);
|
|
179
179
|
}
|
|
180
180
|
if (data.ResourceType != null) {
|
|
181
181
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
@@ -186,7 +186,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
186
186
|
});
|
|
187
187
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
188
188
|
};
|
|
189
|
-
const
|
|
189
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
190
190
|
const contents = map({});
|
|
191
191
|
const data = parsedOutput.body;
|
|
192
192
|
if (data.Message != null) {
|
|
@@ -198,29 +198,29 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
198
198
|
});
|
|
199
199
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
200
200
|
};
|
|
201
|
-
const
|
|
201
|
+
const de_BadRequestDetails = (output, context) => {
|
|
202
202
|
if (output.InvalidParameters != null) {
|
|
203
203
|
return {
|
|
204
|
-
InvalidParameters:
|
|
204
|
+
InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
return { $unknown: Object.entries(output)[0] };
|
|
208
208
|
};
|
|
209
|
-
const
|
|
209
|
+
const de_InvalidParameterDetail = (output, context) => {
|
|
210
210
|
return {
|
|
211
211
|
Problem: __expectString(output.Problem),
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
const
|
|
214
|
+
const de_InvalidParameterMap = (output, context) => {
|
|
215
215
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
216
216
|
if (value === null) {
|
|
217
217
|
return acc;
|
|
218
218
|
}
|
|
219
|
-
acc[key] =
|
|
219
|
+
acc[key] = de_InvalidParameterDetail(value, context);
|
|
220
220
|
return acc;
|
|
221
221
|
}, {});
|
|
222
222
|
};
|
|
223
|
-
const
|
|
223
|
+
const de_StringMap = (output, context) => {
|
|
224
224
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
225
225
|
if (value === null) {
|
|
226
226
|
return acc;
|
|
@@ -2,7 +2,19 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "../commands/GetLatestConfigurationCommand";
|
|
4
4
|
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "../commands/StartConfigurationSessionCommand";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
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>;
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
StartConfigurationSessionCommandInput,
|
|
12
12
|
StartConfigurationSessionCommandOutput,
|
|
13
13
|
} from "../commands/StartConfigurationSessionCommand";
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const se_GetLatestConfigurationCommand: (
|
|
15
15
|
input: GetLatestConfigurationCommandInput,
|
|
16
16
|
context: __SerdeContext
|
|
17
17
|
) => Promise<__HttpRequest>;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const se_StartConfigurationSessionCommand: (
|
|
19
19
|
input: StartConfigurationSessionCommandInput,
|
|
20
20
|
context: __SerdeContext
|
|
21
21
|
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const de_GetLatestConfigurationCommand: (
|
|
23
23
|
output: __HttpResponse,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<GetLatestConfigurationCommandOutput>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const de_StartConfigurationSessionCommand: (
|
|
27
27
|
output: __HttpResponse,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<StartConfigurationSessionCommandOutput>;
|
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.310.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.310.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist
|
|
79
|
+
"dist-*/**"
|
|
80
80
|
],
|
|
81
81
|
"author": {
|
|
82
82
|
"name": "AWS SDK for JavaScript Team",
|