@aws-sdk/client-appconfigdata 3.312.0 → 3.316.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.
@@ -1,37 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppConfigData = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AppConfigDataClient_1 = require("./AppConfigDataClient");
5
6
  const GetLatestConfigurationCommand_1 = require("./commands/GetLatestConfigurationCommand");
6
7
  const StartConfigurationSessionCommand_1 = require("./commands/StartConfigurationSessionCommand");
8
+ const commands = {
9
+ GetLatestConfigurationCommand: GetLatestConfigurationCommand_1.GetLatestConfigurationCommand,
10
+ StartConfigurationSessionCommand: StartConfigurationSessionCommand_1.StartConfigurationSessionCommand,
11
+ };
7
12
  class AppConfigData extends AppConfigDataClient_1.AppConfigDataClient {
8
- getLatestConfiguration(args, optionsOrCb, cb) {
9
- const command = new GetLatestConfigurationCommand_1.GetLatestConfigurationCommand(args);
10
- if (typeof optionsOrCb === "function") {
11
- this.send(command, optionsOrCb);
12
- }
13
- else if (typeof cb === "function") {
14
- if (typeof optionsOrCb !== "object")
15
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
16
- this.send(command, optionsOrCb || {}, cb);
17
- }
18
- else {
19
- return this.send(command, optionsOrCb);
20
- }
21
- }
22
- startConfigurationSession(args, optionsOrCb, cb) {
23
- const command = new StartConfigurationSessionCommand_1.StartConfigurationSessionCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
13
  }
37
14
  exports.AppConfigData = AppConfigData;
15
+ (0, smithy_client_1.createAggregatedClient)(commands, AppConfigData);
@@ -9,7 +9,7 @@ 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";
12
- const query = map({
12
+ const query = (0, smithy_client_1.map)({
13
13
  configuration_token: [, (0, smithy_client_1.expectNonNull)(input.ConfigurationToken, `ConfigurationToken`)],
14
14
  });
15
15
  let body;
@@ -32,16 +32,12 @@ const se_StartConfigurationSessionCommand = async (input, context) => {
32
32
  };
33
33
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationsessions";
34
34
  let body;
35
- body = JSON.stringify({
36
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
37
- ...(input.ConfigurationProfileIdentifier != null && {
38
- ConfigurationProfileIdentifier: input.ConfigurationProfileIdentifier,
39
- }),
40
- ...(input.EnvironmentIdentifier != null && { EnvironmentIdentifier: input.EnvironmentIdentifier }),
41
- ...(input.RequiredMinimumPollIntervalInSeconds != null && {
42
- RequiredMinimumPollIntervalInSeconds: input.RequiredMinimumPollIntervalInSeconds,
43
- }),
44
- });
35
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
36
+ ApplicationIdentifier: [],
37
+ ConfigurationProfileIdentifier: [],
38
+ EnvironmentIdentifier: [],
39
+ RequiredMinimumPollIntervalInSeconds: [],
40
+ }));
45
41
  return new protocol_http_1.HttpRequest({
46
42
  protocol,
47
43
  hostname,
@@ -57,7 +53,7 @@ const de_GetLatestConfigurationCommand = async (output, context) => {
57
53
  if (output.statusCode !== 200 && output.statusCode >= 300) {
58
54
  return de_GetLatestConfigurationCommandError(output, context);
59
55
  }
60
- const contents = map({
56
+ const contents = (0, smithy_client_1.map)({
61
57
  $metadata: deserializeMetadata(output),
62
58
  NextPollConfigurationToken: [, output.headers["next-poll-configuration-token"]],
63
59
  NextPollIntervalInSeconds: [
@@ -93,10 +89,9 @@ const de_GetLatestConfigurationCommandError = async (output, context) => {
93
89
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
94
90
  default:
95
91
  const parsedBody = parsedOutput.body;
96
- (0, smithy_client_1.throwDefaultError)({
92
+ return throwDefaultError({
97
93
  output,
98
94
  parsedBody,
99
- exceptionCtor: AppConfigDataServiceException_1.AppConfigDataServiceException,
100
95
  errorCode,
101
96
  });
102
97
  }
@@ -105,13 +100,14 @@ const de_StartConfigurationSessionCommand = async (output, context) => {
105
100
  if (output.statusCode !== 201 && output.statusCode >= 300) {
106
101
  return de_StartConfigurationSessionCommandError(output, context);
107
102
  }
108
- const contents = map({
103
+ const contents = (0, smithy_client_1.map)({
109
104
  $metadata: deserializeMetadata(output),
110
105
  });
111
106
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
112
- if (data.InitialConfigurationToken != null) {
113
- contents.InitialConfigurationToken = (0, smithy_client_1.expectString)(data.InitialConfigurationToken);
114
- }
107
+ const doc = (0, smithy_client_1.take)(data, {
108
+ InitialConfigurationToken: smithy_client_1.expectString,
109
+ });
110
+ Object.assign(contents, doc);
115
111
  return contents;
116
112
  };
117
113
  exports.de_StartConfigurationSessionCommand = de_StartConfigurationSessionCommand;
@@ -136,27 +132,23 @@ const de_StartConfigurationSessionCommandError = async (output, context) => {
136
132
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
137
133
  default:
138
134
  const parsedBody = parsedOutput.body;
139
- (0, smithy_client_1.throwDefaultError)({
135
+ return throwDefaultError({
140
136
  output,
141
137
  parsedBody,
142
- exceptionCtor: AppConfigDataServiceException_1.AppConfigDataServiceException,
143
138
  errorCode,
144
139
  });
145
140
  }
146
141
  };
147
- const map = smithy_client_1.map;
142
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(AppConfigDataServiceException_1.AppConfigDataServiceException);
148
143
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
149
- const contents = map({});
144
+ const contents = (0, smithy_client_1.map)({});
150
145
  const data = parsedOutput.body;
151
- if (data.Details != null) {
152
- contents.Details = de_BadRequestDetails((0, smithy_client_1.expectUnion)(data.Details), context);
153
- }
154
- if (data.Message != null) {
155
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
156
- }
157
- if (data.Reason != null) {
158
- contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
159
- }
146
+ const doc = (0, smithy_client_1.take)(data, {
147
+ Details: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
148
+ Message: smithy_client_1.expectString,
149
+ Reason: smithy_client_1.expectString,
150
+ });
151
+ Object.assign(contents, doc);
160
152
  const exception = new models_0_1.BadRequestException({
161
153
  $metadata: deserializeMetadata(parsedOutput),
162
154
  ...contents,
@@ -164,11 +156,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
164
156
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
165
157
  };
166
158
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
167
- const contents = map({});
159
+ const contents = (0, smithy_client_1.map)({});
168
160
  const data = parsedOutput.body;
169
- if (data.Message != null) {
170
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
171
- }
161
+ const doc = (0, smithy_client_1.take)(data, {
162
+ Message: smithy_client_1.expectString,
163
+ });
164
+ Object.assign(contents, doc);
172
165
  const exception = new models_0_1.InternalServerException({
173
166
  $metadata: deserializeMetadata(parsedOutput),
174
167
  ...contents,
@@ -176,17 +169,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
176
169
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
177
170
  };
178
171
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
179
- const contents = map({});
172
+ const contents = (0, smithy_client_1.map)({});
180
173
  const data = parsedOutput.body;
181
- if (data.Message != null) {
182
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
183
- }
184
- if (data.ReferencedBy != null) {
185
- contents.ReferencedBy = de_StringMap(data.ReferencedBy, context);
186
- }
187
- if (data.ResourceType != null) {
188
- contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
189
- }
174
+ const doc = (0, smithy_client_1.take)(data, {
175
+ Message: smithy_client_1.expectString,
176
+ ReferencedBy: smithy_client_1._json,
177
+ ResourceType: smithy_client_1.expectString,
178
+ });
179
+ Object.assign(contents, doc);
190
180
  const exception = new models_0_1.ResourceNotFoundException({
191
181
  $metadata: deserializeMetadata(parsedOutput),
192
182
  ...contents,
@@ -194,48 +184,18 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
194
184
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
195
185
  };
196
186
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
197
- const contents = map({});
187
+ const contents = (0, smithy_client_1.map)({});
198
188
  const data = parsedOutput.body;
199
- if (data.Message != null) {
200
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
201
- }
189
+ const doc = (0, smithy_client_1.take)(data, {
190
+ Message: smithy_client_1.expectString,
191
+ });
192
+ Object.assign(contents, doc);
202
193
  const exception = new models_0_1.ThrottlingException({
203
194
  $metadata: deserializeMetadata(parsedOutput),
204
195
  ...contents,
205
196
  });
206
197
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
207
198
  };
208
- const de_BadRequestDetails = (output, context) => {
209
- if (output.InvalidParameters != null) {
210
- return {
211
- InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
212
- };
213
- }
214
- return { $unknown: Object.entries(output)[0] };
215
- };
216
- const de_InvalidParameterDetail = (output, context) => {
217
- return {
218
- Problem: (0, smithy_client_1.expectString)(output.Problem),
219
- };
220
- };
221
- const de_InvalidParameterMap = (output, context) => {
222
- return Object.entries(output).reduce((acc, [key, value]) => {
223
- if (value === null) {
224
- return acc;
225
- }
226
- acc[key] = de_InvalidParameterDetail(value, context);
227
- return acc;
228
- }, {});
229
- };
230
- const de_StringMap = (output, context) => {
231
- return Object.entries(output).reduce((acc, [key, value]) => {
232
- if (value === null) {
233
- return acc;
234
- }
235
- acc[key] = (0, smithy_client_1.expectString)(value);
236
- return acc;
237
- }, {});
238
- };
239
199
  const deserializeMetadata = (output) => ({
240
200
  httpStatusCode: output.statusCode,
241
201
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1,33 +1,11 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AppConfigDataClient } from "./AppConfigDataClient";
2
3
  import { GetLatestConfigurationCommand, } from "./commands/GetLatestConfigurationCommand";
3
4
  import { StartConfigurationSessionCommand, } from "./commands/StartConfigurationSessionCommand";
5
+ const commands = {
6
+ GetLatestConfigurationCommand,
7
+ StartConfigurationSessionCommand,
8
+ };
4
9
  export class AppConfigData extends AppConfigDataClient {
5
- getLatestConfiguration(args, optionsOrCb, cb) {
6
- const command = new GetLatestConfigurationCommand(args);
7
- if (typeof optionsOrCb === "function") {
8
- this.send(command, optionsOrCb);
9
- }
10
- else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
13
- this.send(command, optionsOrCb || {}, cb);
14
- }
15
- else {
16
- return this.send(command, optionsOrCb);
17
- }
18
- }
19
- startConfigurationSession(args, optionsOrCb, cb) {
20
- const command = new StartConfigurationSessionCommand(args);
21
- if (typeof optionsOrCb === "function") {
22
- this.send(command, optionsOrCb);
23
- }
24
- else if (typeof cb === "function") {
25
- if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
- this.send(command, optionsOrCb || {}, cb);
28
- }
29
- else {
30
- return this.send(command, optionsOrCb);
31
- }
32
- }
33
10
  }
11
+ createAggregatedClient(commands, AppConfigData);
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
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";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } 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
5
  export const se_GetLatestConfigurationCommand = async (input, context) => {
@@ -28,16 +28,12 @@ export const se_StartConfigurationSessionCommand = async (input, context) => {
28
28
  };
29
29
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationsessions";
30
30
  let body;
31
- body = JSON.stringify({
32
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
33
- ...(input.ConfigurationProfileIdentifier != null && {
34
- ConfigurationProfileIdentifier: input.ConfigurationProfileIdentifier,
35
- }),
36
- ...(input.EnvironmentIdentifier != null && { EnvironmentIdentifier: input.EnvironmentIdentifier }),
37
- ...(input.RequiredMinimumPollIntervalInSeconds != null && {
38
- RequiredMinimumPollIntervalInSeconds: input.RequiredMinimumPollIntervalInSeconds,
39
- }),
40
- });
31
+ body = JSON.stringify(take(input, {
32
+ ApplicationIdentifier: [],
33
+ ConfigurationProfileIdentifier: [],
34
+ EnvironmentIdentifier: [],
35
+ RequiredMinimumPollIntervalInSeconds: [],
36
+ }));
41
37
  return new __HttpRequest({
42
38
  protocol,
43
39
  hostname,
@@ -87,10 +83,9 @@ const de_GetLatestConfigurationCommandError = async (output, context) => {
87
83
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
88
84
  default:
89
85
  const parsedBody = parsedOutput.body;
90
- throwDefaultError({
86
+ return throwDefaultError({
91
87
  output,
92
88
  parsedBody,
93
- exceptionCtor: __BaseException,
94
89
  errorCode,
95
90
  });
96
91
  }
@@ -103,9 +98,10 @@ export const de_StartConfigurationSessionCommand = async (output, context) => {
103
98
  $metadata: deserializeMetadata(output),
104
99
  });
105
100
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
106
- if (data.InitialConfigurationToken != null) {
107
- contents.InitialConfigurationToken = __expectString(data.InitialConfigurationToken);
108
- }
101
+ const doc = take(data, {
102
+ InitialConfigurationToken: __expectString,
103
+ });
104
+ Object.assign(contents, doc);
109
105
  return contents;
110
106
  };
111
107
  const de_StartConfigurationSessionCommandError = async (output, context) => {
@@ -129,27 +125,23 @@ const de_StartConfigurationSessionCommandError = async (output, context) => {
129
125
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
130
126
  default:
131
127
  const parsedBody = parsedOutput.body;
132
- throwDefaultError({
128
+ return throwDefaultError({
133
129
  output,
134
130
  parsedBody,
135
- exceptionCtor: __BaseException,
136
131
  errorCode,
137
132
  });
138
133
  }
139
134
  };
140
- const map = __map;
135
+ const throwDefaultError = withBaseException(__BaseException);
141
136
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
142
137
  const contents = map({});
143
138
  const data = parsedOutput.body;
144
- if (data.Details != null) {
145
- contents.Details = de_BadRequestDetails(__expectUnion(data.Details), context);
146
- }
147
- if (data.Message != null) {
148
- contents.Message = __expectString(data.Message);
149
- }
150
- if (data.Reason != null) {
151
- contents.Reason = __expectString(data.Reason);
152
- }
139
+ const doc = take(data, {
140
+ Details: (_) => _json(__expectUnion(_)),
141
+ Message: __expectString,
142
+ Reason: __expectString,
143
+ });
144
+ Object.assign(contents, doc);
153
145
  const exception = new BadRequestException({
154
146
  $metadata: deserializeMetadata(parsedOutput),
155
147
  ...contents,
@@ -159,9 +151,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
159
151
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
160
152
  const contents = map({});
161
153
  const data = parsedOutput.body;
162
- if (data.Message != null) {
163
- contents.Message = __expectString(data.Message);
164
- }
154
+ const doc = take(data, {
155
+ Message: __expectString,
156
+ });
157
+ Object.assign(contents, doc);
165
158
  const exception = new InternalServerException({
166
159
  $metadata: deserializeMetadata(parsedOutput),
167
160
  ...contents,
@@ -171,15 +164,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
171
164
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
172
165
  const contents = map({});
173
166
  const data = parsedOutput.body;
174
- if (data.Message != null) {
175
- contents.Message = __expectString(data.Message);
176
- }
177
- if (data.ReferencedBy != null) {
178
- contents.ReferencedBy = de_StringMap(data.ReferencedBy, context);
179
- }
180
- if (data.ResourceType != null) {
181
- contents.ResourceType = __expectString(data.ResourceType);
182
- }
167
+ const doc = take(data, {
168
+ Message: __expectString,
169
+ ReferencedBy: _json,
170
+ ResourceType: __expectString,
171
+ });
172
+ Object.assign(contents, doc);
183
173
  const exception = new ResourceNotFoundException({
184
174
  $metadata: deserializeMetadata(parsedOutput),
185
175
  ...contents,
@@ -189,46 +179,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
189
179
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
190
180
  const contents = map({});
191
181
  const data = parsedOutput.body;
192
- if (data.Message != null) {
193
- contents.Message = __expectString(data.Message);
194
- }
182
+ const doc = take(data, {
183
+ Message: __expectString,
184
+ });
185
+ Object.assign(contents, doc);
195
186
  const exception = new ThrottlingException({
196
187
  $metadata: deserializeMetadata(parsedOutput),
197
188
  ...contents,
198
189
  });
199
190
  return __decorateServiceException(exception, parsedOutput.body);
200
191
  };
201
- const de_BadRequestDetails = (output, context) => {
202
- if (output.InvalidParameters != null) {
203
- return {
204
- InvalidParameters: de_InvalidParameterMap(output.InvalidParameters, context),
205
- };
206
- }
207
- return { $unknown: Object.entries(output)[0] };
208
- };
209
- const de_InvalidParameterDetail = (output, context) => {
210
- return {
211
- Problem: __expectString(output.Problem),
212
- };
213
- };
214
- const de_InvalidParameterMap = (output, context) => {
215
- return Object.entries(output).reduce((acc, [key, value]) => {
216
- if (value === null) {
217
- return acc;
218
- }
219
- acc[key] = de_InvalidParameterDetail(value, context);
220
- return acc;
221
- }, {});
222
- };
223
- const de_StringMap = (output, context) => {
224
- return Object.entries(output).reduce((acc, [key, value]) => {
225
- if (value === null) {
226
- return acc;
227
- }
228
- acc[key] = __expectString(value);
229
- return acc;
230
- }, {});
231
- };
232
192
  const deserializeMetadata = (output) => ({
233
193
  httpStatusCode: output.statusCode,
234
194
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2,6 +2,20 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AppConfigDataClient } from "./AppConfigDataClient";
3
3
  import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
4
4
  import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
5
+ export interface AppConfigData {
6
+ /**
7
+ * @see {@link GetLatestConfigurationCommand}
8
+ */
9
+ getLatestConfiguration(args: GetLatestConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetLatestConfigurationCommandOutput>;
10
+ getLatestConfiguration(args: GetLatestConfigurationCommandInput, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
11
+ getLatestConfiguration(args: GetLatestConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
12
+ /**
13
+ * @see {@link StartConfigurationSessionCommand}
14
+ */
15
+ startConfigurationSession(args: StartConfigurationSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartConfigurationSessionCommandOutput>;
16
+ startConfigurationSession(args: StartConfigurationSessionCommandInput, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
17
+ startConfigurationSession(args: StartConfigurationSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
18
+ }
5
19
  /**
6
20
  * @public
7
21
  * <p>AppConfig Data provides the data plane APIs your application uses to retrieve
@@ -64,42 +78,5 @@ import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommand
64
78
  * <code>GetLatestConfiguration</code> API actions, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration">Retrieving the
65
79
  * configuration</a> in the <i>AppConfig User Guide</i>.</p>
66
80
  */
67
- export declare class AppConfigData extends AppConfigDataClient {
68
- /**
69
- * @public
70
- * <p>Retrieves the latest deployed configuration. This API may return empty configuration
71
- * data if the client already has the latest version. For more information about this API
72
- * action and to view example CLI commands that show how to use it with the <a>StartConfigurationSession</a> API action, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration">Retrieving the
73
- * configuration</a> in the <i>AppConfig User Guide</i>. </p>
74
- * <important>
75
- * <p>Note the following important information.</p>
76
- * <ul>
77
- * <li>
78
- * <p>Each configuration token is only valid for one call to
79
- * <code>GetLatestConfiguration</code>. The <code>GetLatestConfiguration</code>
80
- * response includes a <code>NextPollConfigurationToken</code> that should always
81
- * replace the token used for the just-completed call in preparation for the next
82
- * one. </p>
83
- * </li>
84
- * <li>
85
- * <p>
86
- * <code>GetLatestConfiguration</code> is a priced call. For more information, see
87
- * <a href="https://aws.amazon.com/systems-manager/pricing/">Pricing</a>.</p>
88
- * </li>
89
- * </ul>
90
- * </important>
91
- */
92
- getLatestConfiguration(args: GetLatestConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetLatestConfigurationCommandOutput>;
93
- getLatestConfiguration(args: GetLatestConfigurationCommandInput, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
94
- getLatestConfiguration(args: GetLatestConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLatestConfigurationCommandOutput) => void): void;
95
- /**
96
- * @public
97
- * <p>Starts a configuration session used to retrieve a deployed configuration. For more
98
- * information about this API action and to view example CLI commands that show how to use
99
- * it with the <a>GetLatestConfiguration</a> API action, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration">Retrieving the
100
- * configuration</a> in the <i>AppConfig User Guide</i>. </p>
101
- */
102
- startConfigurationSession(args: StartConfigurationSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartConfigurationSessionCommandOutput>;
103
- startConfigurationSession(args: StartConfigurationSessionCommandInput, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
104
- startConfigurationSession(args: StartConfigurationSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void): void;
81
+ export declare class AppConfigData extends AppConfigDataClient implements AppConfigData {
105
82
  }
@@ -8,7 +8,7 @@ import {
8
8
  StartConfigurationSessionCommandInput,
9
9
  StartConfigurationSessionCommandOutput,
10
10
  } from "./commands/StartConfigurationSessionCommand";
11
- export declare class AppConfigData extends AppConfigDataClient {
11
+ export interface AppConfigData {
12
12
  getLatestConfiguration(
13
13
  args: GetLatestConfigurationCommandInput,
14
14
  options?: __HttpHandlerOptions
@@ -36,3 +36,6 @@ export declare class AppConfigData extends AppConfigDataClient {
36
36
  cb: (err: any, data?: StartConfigurationSessionCommandOutput) => void
37
37
  ): void;
38
38
  }
39
+ export declare class AppConfigData
40
+ extends AppConfigDataClient
41
+ implements AppConfigData {}
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.312.0",
4
+ "version": "3.316.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,9 +21,9 @@
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.312.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
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",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",