@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.
@@ -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.serializeAws_restJson1GetLatestConfigurationCommand)(input, context);
40
+ return (0, Aws_restJson1_1.se_GetLatestConfigurationCommand)(input, context);
41
41
  }
42
42
  deserialize(output, context) {
43
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetLatestConfigurationCommand)(output, context);
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.serializeAws_restJson1StartConfigurationSessionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_StartConfigurationSessionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1StartConfigurationSessionCommand)(output, context);
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.deserializeAws_restJson1StartConfigurationSessionCommand = exports.deserializeAws_restJson1GetLatestConfigurationCommand = exports.serializeAws_restJson1StartConfigurationSessionCommand = exports.serializeAws_restJson1GetLatestConfigurationCommand = void 0;
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 serializeAws_restJson1GetLatestConfigurationCommand = async (input, context) => {
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.serializeAws_restJson1GetLatestConfigurationCommand = serializeAws_restJson1GetLatestConfigurationCommand;
28
- const serializeAws_restJson1StartConfigurationSessionCommand = async (input, context) => {
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.serializeAws_restJson1StartConfigurationSessionCommand = serializeAws_restJson1StartConfigurationSessionCommand;
56
- const deserializeAws_restJson1GetLatestConfigurationCommand = async (output, context) => {
55
+ exports.se_StartConfigurationSessionCommand = se_StartConfigurationSessionCommand;
56
+ const de_GetLatestConfigurationCommand = async (output, context) => {
57
57
  if (output.statusCode !== 200 && output.statusCode >= 300) {
58
- return deserializeAws_restJson1GetLatestConfigurationCommandError(output, context);
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.deserializeAws_restJson1GetLatestConfigurationCommand = deserializeAws_restJson1GetLatestConfigurationCommand;
75
- const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output, context) => {
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 deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
84
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
85
85
  case "InternalServerException":
86
86
  case "com.amazonaws.appconfigdata#InternalServerException":
87
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
87
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
88
88
  case "ResourceNotFoundException":
89
89
  case "com.amazonaws.appconfigdata#ResourceNotFoundException":
90
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
90
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
91
91
  case "ThrottlingException":
92
92
  case "com.amazonaws.appconfigdata#ThrottlingException":
93
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1StartConfigurationSessionCommand = async (output, context) => {
104
+ const de_StartConfigurationSessionCommand = async (output, context) => {
105
105
  if (output.statusCode !== 201 && output.statusCode >= 300) {
106
- return deserializeAws_restJson1StartConfigurationSessionCommandError(output, context);
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.deserializeAws_restJson1StartConfigurationSessionCommand = deserializeAws_restJson1StartConfigurationSessionCommand;
118
- const deserializeAws_restJson1StartConfigurationSessionCommandError = async (output, context) => {
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 deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
127
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
128
128
  case "InternalServerException":
129
129
  case "com.amazonaws.appconfigdata#InternalServerException":
130
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
130
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
131
131
  case "ResourceNotFoundException":
132
132
  case "com.amazonaws.appconfigdata#ResourceNotFoundException":
133
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
133
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
134
134
  case "ThrottlingException":
135
135
  case "com.amazonaws.appconfigdata#ThrottlingException":
136
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
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 = deserializeAws_restJson1BadRequestDetails((0, smithy_client_1.expectUnion)(data.Details), context);
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 deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
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 = deserializeAws_restJson1StringMap(data.ReferencedBy, context);
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 deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1BadRequestDetails = (output, context) => {
208
+ const de_BadRequestDetails = (output, context) => {
209
209
  if (output.InvalidParameters != null) {
210
210
  return {
211
- InvalidParameters: deserializeAws_restJson1InvalidParameterMap(output.InvalidParameters, context),
211
+ InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
212
212
  };
213
213
  }
214
214
  return { $unknown: Object.entries(output)[0] };
215
215
  };
216
- const deserializeAws_restJson1InvalidParameterDetail = (output, context) => {
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 deserializeAws_restJson1InvalidParameterMap = (output, context) => {
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] = deserializeAws_restJson1InvalidParameterDetail(value, context);
226
+ acc[key] = de_InvalidParameterDetail(value, context);
227
227
  return acc;
228
228
  }, {});
229
229
  };
230
- const deserializeAws_restJson1StringMap = (output, context) => {
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 { deserializeAws_restJson1GetLatestConfigurationCommand, serializeAws_restJson1GetLatestConfigurationCommand, } from "../protocols/Aws_restJson1";
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 serializeAws_restJson1GetLatestConfigurationCommand(input, context);
37
+ return se_GetLatestConfigurationCommand(input, context);
38
38
  }
39
39
  deserialize(output, context) {
40
- return deserializeAws_restJson1GetLatestConfigurationCommand(output, context);
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 { deserializeAws_restJson1StartConfigurationSessionCommand, serializeAws_restJson1StartConfigurationSessionCommand, } from "../protocols/Aws_restJson1";
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 serializeAws_restJson1StartConfigurationSessionCommand(input, context);
36
+ return se_StartConfigurationSessionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1StartConfigurationSessionCommand(output, context);
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 serializeAws_restJson1GetLatestConfigurationCommand = async (input, context) => {
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 serializeAws_restJson1StartConfigurationSessionCommand = async (input, context) => {
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 deserializeAws_restJson1GetLatestConfigurationCommand = async (output, context) => {
51
+ export const de_GetLatestConfigurationCommand = async (output, context) => {
52
52
  if (output.statusCode !== 200 && output.statusCode >= 300) {
53
- return deserializeAws_restJson1GetLatestConfigurationCommandError(output, context);
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 deserializeAws_restJson1GetLatestConfigurationCommandError = async (output, context) => {
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 deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
78
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
79
79
  case "InternalServerException":
80
80
  case "com.amazonaws.appconfigdata#InternalServerException":
81
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
81
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
82
82
  case "ResourceNotFoundException":
83
83
  case "com.amazonaws.appconfigdata#ResourceNotFoundException":
84
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
84
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
85
85
  case "ThrottlingException":
86
86
  case "com.amazonaws.appconfigdata#ThrottlingException":
87
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1StartConfigurationSessionCommand = async (output, context) => {
98
+ export const de_StartConfigurationSessionCommand = async (output, context) => {
99
99
  if (output.statusCode !== 201 && output.statusCode >= 300) {
100
- return deserializeAws_restJson1StartConfigurationSessionCommandError(output, context);
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 deserializeAws_restJson1StartConfigurationSessionCommandError = async (output, context) => {
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 deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
120
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
121
121
  case "InternalServerException":
122
122
  case "com.amazonaws.appconfigdata#InternalServerException":
123
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
123
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
124
124
  case "ResourceNotFoundException":
125
125
  case "com.amazonaws.appconfigdata#ResourceNotFoundException":
126
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
126
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
127
127
  case "ThrottlingException":
128
128
  case "com.amazonaws.appconfigdata#ThrottlingException":
129
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
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 = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
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 deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
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 = deserializeAws_restJson1StringMap(data.ReferencedBy, context);
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 deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1BadRequestDetails = (output, context) => {
201
+ const de_BadRequestDetails = (output, context) => {
202
202
  if (output.InvalidParameters != null) {
203
203
  return {
204
- InvalidParameters: deserializeAws_restJson1InvalidParameterMap(output.InvalidParameters, context),
204
+ InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
205
205
  };
206
206
  }
207
207
  return { $unknown: Object.entries(output)[0] };
208
208
  };
209
- const deserializeAws_restJson1InvalidParameterDetail = (output, context) => {
209
+ const de_InvalidParameterDetail = (output, context) => {
210
210
  return {
211
211
  Problem: __expectString(output.Problem),
212
212
  };
213
213
  };
214
- const deserializeAws_restJson1InvalidParameterMap = (output, context) => {
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] = deserializeAws_restJson1InvalidParameterDetail(value, context);
219
+ acc[key] = de_InvalidParameterDetail(value, context);
220
220
  return acc;
221
221
  }, {});
222
222
  };
223
- const deserializeAws_restJson1StringMap = (output, context) => {
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
- export declare const serializeAws_restJson1GetLatestConfigurationCommand: (input: GetLatestConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
- export declare const serializeAws_restJson1StartConfigurationSessionCommand: (input: StartConfigurationSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
- export declare const deserializeAws_restJson1GetLatestConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLatestConfigurationCommandOutput>;
8
- export declare const deserializeAws_restJson1StartConfigurationSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartConfigurationSessionCommandOutput>;
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 serializeAws_restJson1GetLatestConfigurationCommand: (
14
+ export declare const se_GetLatestConfigurationCommand: (
15
15
  input: GetLatestConfigurationCommandInput,
16
16
  context: __SerdeContext
17
17
  ) => Promise<__HttpRequest>;
18
- export declare const serializeAws_restJson1StartConfigurationSessionCommand: (
18
+ export declare const se_StartConfigurationSessionCommand: (
19
19
  input: StartConfigurationSessionCommandInput,
20
20
  context: __SerdeContext
21
21
  ) => Promise<__HttpRequest>;
22
- export declare const deserializeAws_restJson1GetLatestConfigurationCommand: (
22
+ export declare const de_GetLatestConfigurationCommand: (
23
23
  output: __HttpResponse,
24
24
  context: __SerdeContext
25
25
  ) => Promise<GetLatestConfigurationCommandOutput>;
26
- export declare const deserializeAws_restJson1StartConfigurationSessionCommand: (
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.306.0",
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.306.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.306.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.306.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
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.303.0",
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",