@aws-sdk/client-appconfigdata 3.1074.0 → 3.1076.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/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultAppConfigDataHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetLatestConfiguration$, StartConfigurationSession$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { AppConfigDataServiceException } = require("./models/AppConfigDataServiceException");
18
- exports.AppConfigDataServiceException = AppConfigDataServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultAppConfigDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "appconfig",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultAppConfigDataHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,328 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
85
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://appconfigdata.{Region}.amazonaws.com", i],
95
+ ["https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}", i],
96
+ [a, "FIPS is enabled but this partition does not support FIPS"],
97
+ ["https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
98
+ [a, "DualStack is enabled but this partition does not support DualStack"],
99
+ ["https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}", i],
100
+ [a, "Invalid Configuration: Missing Region"]
101
+ ]
102
+ };
103
+ const root = 2;
104
+ const r = 100_000_000;
105
+ const nodes = new Int32Array([
106
+ -1, 1, -1,
107
+ 0, 13, 3,
108
+ 1, 4, r + 12,
109
+ 2, 5, r + 12,
110
+ 3, 8, 6,
111
+ 4, 7, r + 11,
112
+ 5, r + 9, r + 10,
113
+ 4, 11, 9,
114
+ 6, 10, r + 8,
115
+ 7, r + 6, r + 7,
116
+ 5, 12, r + 5,
117
+ 6, r + 4, r + 5,
118
+ 3, r + 1, 14,
119
+ 4, r + 2, r + 3,
120
+ ]);
121
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
122
+
123
+ const cache = new EndpointCache({
124
+ size: 50,
125
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
126
+ });
127
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
128
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
129
+ endpointParams: endpointParams,
130
+ logger: context.logger,
131
+ }));
132
+ };
133
+ customEndpointFunctions.aws = awsEndpointFunctions;
134
+
135
+ class AppConfigDataServiceException extends ServiceException {
136
+ constructor(options) {
137
+ super(options);
138
+ Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
139
+ }
140
+ }
141
+
142
+ class BadRequestException extends AppConfigDataServiceException {
143
+ name = "BadRequestException";
144
+ $fault = "client";
145
+ Message;
146
+ Reason;
147
+ Details;
148
+ constructor(opts) {
149
+ super({
150
+ name: "BadRequestException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, BadRequestException.prototype);
155
+ this.Message = opts.Message;
156
+ this.Reason = opts.Reason;
157
+ this.Details = opts.Details;
158
+ }
159
+ }
160
+ class InternalServerException extends AppConfigDataServiceException {
161
+ name = "InternalServerException";
162
+ $fault = "server";
163
+ Message;
164
+ constructor(opts) {
165
+ super({
166
+ name: "InternalServerException",
167
+ $fault: "server",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, InternalServerException.prototype);
171
+ this.Message = opts.Message;
172
+ }
173
+ }
174
+ class ResourceNotFoundException extends AppConfigDataServiceException {
175
+ name = "ResourceNotFoundException";
176
+ $fault = "client";
177
+ Message;
178
+ ResourceType;
179
+ ReferencedBy;
180
+ constructor(opts) {
181
+ super({
182
+ name: "ResourceNotFoundException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
187
+ this.Message = opts.Message;
188
+ this.ResourceType = opts.ResourceType;
189
+ this.ReferencedBy = opts.ReferencedBy;
190
+ }
191
+ }
192
+ class ThrottlingException extends AppConfigDataServiceException {
193
+ name = "ThrottlingException";
194
+ $fault = "client";
195
+ Message;
196
+ constructor(opts) {
197
+ super({
198
+ name: "ThrottlingException",
199
+ $fault: "client",
200
+ ...opts,
201
+ });
202
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
203
+ this.Message = opts.Message;
204
+ }
205
+ }
206
+
207
+ const _AI = "ApplicationIdentifier";
208
+ const _BRD = "BadRequestDetails";
209
+ const _BRE = "BadRequestException";
210
+ const _C = "Configuration";
211
+ const _CPI = "ConfigurationProfileIdentifier";
212
+ const _CT = "ConfigurationToken";
213
+ const _CT_ = "Content-Type";
214
+ const _CTo = "ContentType";
215
+ const _D = "Details";
216
+ const _EI = "EnvironmentIdentifier";
217
+ const _GLC = "GetLatestConfiguration";
218
+ const _GLCR = "GetLatestConfigurationRequest";
219
+ const _GLCRe = "GetLatestConfigurationResponse";
220
+ const _ICT = "InitialConfigurationToken";
221
+ const _IP = "InvalidParameters";
222
+ const _IPD = "InvalidParameterDetail";
223
+ const _IPM = "InvalidParameterMap";
224
+ const _ISE = "InternalServerException";
225
+ const _M = "Message";
226
+ const _NPCT = "NextPollConfigurationToken";
227
+ const _NPCT_ = "Next-Poll-Configuration-Token";
228
+ const _NPIIS = "NextPollIntervalInSeconds";
229
+ const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
230
+ const _P = "Problem";
231
+ const _R = "Reason";
232
+ const _RB = "ReferencedBy";
233
+ const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
234
+ const _RNFE = "ResourceNotFoundException";
235
+ const _RT = "ResourceType";
236
+ const _SB = "SensitiveBlob";
237
+ const _SCS = "StartConfigurationSession";
238
+ const _SCSR = "StartConfigurationSessionRequest";
239
+ const _SCSRt = "StartConfigurationSessionResponse";
240
+ const _TE = "ThrottlingException";
241
+ const _VL = "VersionLabel";
242
+ const _VL_ = "Version-Label";
243
+ const _c = "client";
244
+ const _ct = "configuration_token";
245
+ const _e = "error";
246
+ const _h = "http";
247
+ const _hE = "httpError";
248
+ const _hH = "httpHeader";
249
+ const _hQ = "httpQuery";
250
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
251
+ const _se = "server";
252
+ const n0 = "com.amazonaws.appconfigdata";
253
+ const _s_registry = TypeRegistry.for(_s);
254
+ var AppConfigDataServiceException$ = [-3, _s, "AppConfigDataServiceException", 0, [], []];
255
+ _s_registry.registerError(AppConfigDataServiceException$, AppConfigDataServiceException);
256
+ const n0_registry = TypeRegistry.for(n0);
257
+ var BadRequestException$ = [-3, n0, _BRE,
258
+ { [_e]: _c, [_hE]: 400 },
259
+ [_M, _R, _D],
260
+ [0, 0, () => BadRequestDetails$]
261
+ ];
262
+ n0_registry.registerError(BadRequestException$, BadRequestException);
263
+ var InternalServerException$ = [-3, n0, _ISE,
264
+ { [_e]: _se, [_hE]: 500 },
265
+ [_M],
266
+ [0]
267
+ ];
268
+ n0_registry.registerError(InternalServerException$, InternalServerException);
269
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
270
+ { [_e]: _c, [_hE]: 404 },
271
+ [_M, _RT, _RB],
272
+ [0, 0, 128 | 0]
273
+ ];
274
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
275
+ var ThrottlingException$ = [-3, n0, _TE,
276
+ { [_e]: _c, [_hE]: 429 },
277
+ [_M],
278
+ [0]
279
+ ];
280
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
281
+ const errorTypeRegistries = [
282
+ _s_registry,
283
+ n0_registry,
284
+ ];
285
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
286
+ var GetLatestConfigurationRequest$ = [3, n0, _GLCR,
287
+ 0,
288
+ [_CT],
289
+ [[0, { [_hQ]: _ct }]], 1
290
+ ];
291
+ var GetLatestConfigurationResponse$ = [3, n0, _GLCRe,
292
+ 0,
293
+ [_NPCT, _NPIIS, _CTo, _C, _VL],
294
+ [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]]
295
+ ];
296
+ var InvalidParameterDetail$ = [3, n0, _IPD,
297
+ 0,
298
+ [_P],
299
+ [0]
300
+ ];
301
+ var StartConfigurationSessionRequest$ = [3, n0, _SCSR,
302
+ 0,
303
+ [_AI, _EI, _CPI, _RMPIIS],
304
+ [0, 0, 0, 1], 3
305
+ ];
306
+ var StartConfigurationSessionResponse$ = [3, n0, _SCSRt,
307
+ 0,
308
+ [_ICT],
309
+ [0]
310
+ ];
311
+ var InvalidParameterMap = [2, n0, _IPM,
312
+ 0, 0, () => InvalidParameterDetail$
313
+ ];
314
+ var BadRequestDetails$ = [4, n0, _BRD,
315
+ 0,
316
+ [_IP],
317
+ [() => InvalidParameterMap]
318
+ ];
319
+ var GetLatestConfiguration$ = [9, n0, _GLC,
320
+ { [_h]: ["GET", "/configuration", 200] }, () => GetLatestConfigurationRequest$, () => GetLatestConfigurationResponse$
321
+ ];
322
+ var StartConfigurationSession$ = [9, n0, _SCS,
323
+ { [_h]: ["POST", "/configurationsessions", 201] }, () => StartConfigurationSessionRequest$, () => StartConfigurationSessionResponse$
324
+ ];
325
+
326
+ const getRuntimeConfig$1 = (config) => {
327
+ return {
328
+ apiVersion: "2021-11-11",
329
+ base64Decoder: config?.base64Decoder ?? fromBase64,
330
+ base64Encoder: config?.base64Encoder ?? toBase64,
331
+ disableHostPrefix: config?.disableHostPrefix ?? false,
332
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
333
+ extensions: config?.extensions ?? [],
334
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAppConfigDataHttpAuthSchemeProvider,
335
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
336
+ {
337
+ schemeId: "aws.auth#sigv4",
338
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
339
+ signer: new AwsSdkSigV4Signer(),
340
+ },
341
+ ],
342
+ logger: config?.logger ?? new NoOpLogger(),
343
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
344
+ protocolSettings: config?.protocolSettings ?? {
345
+ defaultNamespace: "com.amazonaws.appconfigdata",
346
+ errorTypeRegistries,
347
+ version: "2021-11-11",
348
+ serviceTarget: "AppConfigData",
349
+ },
350
+ serviceId: config?.serviceId ?? "AppConfigData",
351
+ urlParser: config?.urlParser ?? parseUrl,
352
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
353
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
354
+ };
355
+ };
356
+
357
+ const getRuntimeConfig = (config) => {
358
+ emitWarningIfUnsupportedVersion(process.version);
359
+ const defaultsMode = resolveDefaultsModeConfig(config);
360
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
361
+ const clientSharedValues = getRuntimeConfig$1(config);
362
+ emitWarningIfUnsupportedVersion$1(process.version);
363
+ const loaderConfig = {
364
+ profile: config?.profile,
365
+ logger: clientSharedValues.logger,
366
+ };
367
+ return {
368
+ ...clientSharedValues,
369
+ ...config,
370
+ runtime: "node",
371
+ defaultsMode,
372
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
373
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
374
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
375
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
376
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
377
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
378
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
379
+ retryMode: config?.retryMode ??
380
+ loadConfig({
381
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
382
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
383
+ }, config),
384
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
385
+ streamCollector: config?.streamCollector ?? streamCollector,
386
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
387
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
388
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
389
+ };
390
+ };
391
+
34
392
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
393
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
394
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -161,8 +519,27 @@ const ResourceType = {
161
519
 
162
520
  exports.AppConfigData = AppConfigData;
163
521
  exports.AppConfigDataClient = AppConfigDataClient;
522
+ exports.AppConfigDataServiceException = AppConfigDataServiceException;
523
+ exports.AppConfigDataServiceException$ = AppConfigDataServiceException$;
524
+ exports.BadRequestDetails$ = BadRequestDetails$;
525
+ exports.BadRequestException = BadRequestException;
526
+ exports.BadRequestException$ = BadRequestException$;
164
527
  exports.BadRequestReason = BadRequestReason;
528
+ exports.GetLatestConfiguration$ = GetLatestConfiguration$;
165
529
  exports.GetLatestConfigurationCommand = GetLatestConfigurationCommand;
530
+ exports.GetLatestConfigurationRequest$ = GetLatestConfigurationRequest$;
531
+ exports.GetLatestConfigurationResponse$ = GetLatestConfigurationResponse$;
532
+ exports.InternalServerException = InternalServerException;
533
+ exports.InternalServerException$ = InternalServerException$;
534
+ exports.InvalidParameterDetail$ = InvalidParameterDetail$;
166
535
  exports.InvalidParameterProblem = InvalidParameterProblem;
536
+ exports.ResourceNotFoundException = ResourceNotFoundException;
537
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
167
538
  exports.ResourceType = ResourceType;
539
+ exports.StartConfigurationSession$ = StartConfigurationSession$;
168
540
  exports.StartConfigurationSessionCommand = StartConfigurationSessionCommand;
541
+ exports.StartConfigurationSessionRequest$ = StartConfigurationSessionRequest$;
542
+ exports.StartConfigurationSessionResponse$ = StartConfigurationSessionResponse$;
543
+ exports.ThrottlingException = ThrottlingException;
544
+ exports.ThrottlingException$ = ThrottlingException$;
545
+ exports.errorTypeRegistries = errorTypeRegistries;
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
23
  sha256: import("@smithy/types").HashConstructor;
24
- streamCollector: import("@smithy/types").StreamCollector;
24
+ streamCollector: (
25
+ stream:
26
+ | import("stream").Readable
27
+ | import("stream/web").ReadableStream
28
+ | ReadableStream
29
+ | Blob
30
+ ) => Promise<Uint8Array>;
25
31
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
26
32
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
33
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
22
22
  | import("@smithy/core/protocols").HttpHandler<any>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  sha256: import("@smithy/types").HashConstructor;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
34
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
20
20
  apiVersion: string;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
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.1074.0",
4
+ "version": "3.1076.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -25,17 +25,17 @@
25
25
  "dependencies": {
26
26
  "@aws-crypto/sha256-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.23",
29
- "@aws-sdk/credential-provider-node": "^3.972.58",
30
- "@aws-sdk/types": "^3.973.13",
31
- "@smithy/core": "^3.24.6",
32
- "@smithy/fetch-http-handler": "^5.4.6",
33
- "@smithy/node-http-handler": "^4.7.6",
34
- "@smithy/types": "^4.14.3",
28
+ "@aws-sdk/core": "^3.974.24",
29
+ "@aws-sdk/credential-provider-node": "^3.972.59",
30
+ "@aws-sdk/types": "^3.973.14",
31
+ "@smithy/core": "^3.27.0",
32
+ "@smithy/fetch-http-handler": "^5.6.0",
33
+ "@smithy/node-http-handler": "^4.9.0",
34
+ "@smithy/types": "^4.15.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/snapshot-testing": "^2.1.7",
38
+ "@smithy/snapshot-testing": "^2.2.3",
39
39
  "@tsconfig/node20": "20.1.8",
40
40
  "@types/node": "^20.14.8",
41
41
  "concurrently": "7.0.0",
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultAppConfigDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "appconfig",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultAppConfigDataHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,49 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
- ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
14
- ],
15
- results: [
16
- [a],
17
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
- [g, i],
20
- ["https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
- ["https://appconfigdata.{Region}.amazonaws.com", i],
23
- ["https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
- [a, "FIPS is enabled but this partition does not support FIPS"],
25
- ["https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
- [a, "DualStack is enabled but this partition does not support DualStack"],
27
- ["https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}", i],
28
- [a, "Invalid Configuration: Missing Region"]
29
- ]
30
- };
31
- const root = 2;
32
- const r = 100_000_000;
33
- const nodes = new Int32Array([
34
- -1, 1, -1,
35
- 0, 13, 3,
36
- 1, 4, r + 12,
37
- 2, 5, r + 12,
38
- 3, 8, 6,
39
- 4, 7, r + 11,
40
- 5, r + 9, r + 10,
41
- 4, 11, 9,
42
- 6, 10, r + 8,
43
- 7, r + 6, r + 7,
44
- 5, 12, r + 5,
45
- 6, r + 4, r + 5,
46
- 3, r + 1, 14,
47
- 4, r + 2, r + 3,
48
- ]);
49
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.AppConfigDataServiceException = class AppConfigDataServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
7
- }
8
- };
@@ -1,65 +0,0 @@
1
- const { AppConfigDataServiceException: __BaseException } = require("./AppConfigDataServiceException");
2
- exports.BadRequestException = class BadRequestException extends __BaseException {
3
- name = "BadRequestException";
4
- $fault = "client";
5
- Message;
6
- Reason;
7
- Details;
8
- constructor(opts) {
9
- super({
10
- name: "BadRequestException",
11
- $fault: "client",
12
- ...opts,
13
- });
14
- Object.setPrototypeOf(this, BadRequestException.prototype);
15
- this.Message = opts.Message;
16
- this.Reason = opts.Reason;
17
- this.Details = opts.Details;
18
- }
19
- };
20
- exports.InternalServerException = class InternalServerException extends __BaseException {
21
- name = "InternalServerException";
22
- $fault = "server";
23
- Message;
24
- constructor(opts) {
25
- super({
26
- name: "InternalServerException",
27
- $fault: "server",
28
- ...opts,
29
- });
30
- Object.setPrototypeOf(this, InternalServerException.prototype);
31
- this.Message = opts.Message;
32
- }
33
- };
34
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
35
- name = "ResourceNotFoundException";
36
- $fault = "client";
37
- Message;
38
- ResourceType;
39
- ReferencedBy;
40
- constructor(opts) {
41
- super({
42
- name: "ResourceNotFoundException",
43
- $fault: "client",
44
- ...opts,
45
- });
46
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
47
- this.Message = opts.Message;
48
- this.ResourceType = opts.ResourceType;
49
- this.ReferencedBy = opts.ReferencedBy;
50
- }
51
- };
52
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
53
- name = "ThrottlingException";
54
- $fault = "client";
55
- Message;
56
- constructor(opts) {
57
- super({
58
- name: "ThrottlingException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- Object.setPrototypeOf(this, ThrottlingException.prototype);
63
- this.Message = opts.Message;
64
- }
65
- };
@@ -1,32 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
- const { calculateBodyLength } = require("@smithy/core/serde");
8
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
21
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
- region: config?.region ?? invalidProvider("Region is missing"),
24
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
- streamCollector: config?.streamCollector ?? streamCollector,
28
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,45 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
- const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
26
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
- streamCollector: config?.streamCollector ?? streamCollector,
40
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,38 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultAppConfigDataHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2021-11-11",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAppConfigDataHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.appconfigdata",
29
- errorTypeRegistries,
30
- version: "2021-11-11",
31
- serviceTarget: "AppConfigData",
32
- },
33
- serviceId: config?.serviceId ?? "AppConfigData",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };
@@ -1,133 +0,0 @@
1
- const _AI = "ApplicationIdentifier";
2
- const _BRD = "BadRequestDetails";
3
- const _BRE = "BadRequestException";
4
- const _C = "Configuration";
5
- const _CPI = "ConfigurationProfileIdentifier";
6
- const _CT = "ConfigurationToken";
7
- const _CT_ = "Content-Type";
8
- const _CTo = "ContentType";
9
- const _D = "Details";
10
- const _EI = "EnvironmentIdentifier";
11
- const _GLC = "GetLatestConfiguration";
12
- const _GLCR = "GetLatestConfigurationRequest";
13
- const _GLCRe = "GetLatestConfigurationResponse";
14
- const _ICT = "InitialConfigurationToken";
15
- const _IP = "InvalidParameters";
16
- const _IPD = "InvalidParameterDetail";
17
- const _IPM = "InvalidParameterMap";
18
- const _ISE = "InternalServerException";
19
- const _M = "Message";
20
- const _NPCT = "NextPollConfigurationToken";
21
- const _NPCT_ = "Next-Poll-Configuration-Token";
22
- const _NPIIS = "NextPollIntervalInSeconds";
23
- const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
24
- const _P = "Problem";
25
- const _R = "Reason";
26
- const _RB = "ReferencedBy";
27
- const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
28
- const _RNFE = "ResourceNotFoundException";
29
- const _RT = "ResourceType";
30
- const _SB = "SensitiveBlob";
31
- const _SCS = "StartConfigurationSession";
32
- const _SCSR = "StartConfigurationSessionRequest";
33
- const _SCSRt = "StartConfigurationSessionResponse";
34
- const _TE = "ThrottlingException";
35
- const _VL = "VersionLabel";
36
- const _VL_ = "Version-Label";
37
- const _c = "client";
38
- const _ct = "configuration_token";
39
- const _e = "error";
40
- const _h = "http";
41
- const _hE = "httpError";
42
- const _hH = "httpHeader";
43
- const _hQ = "httpQuery";
44
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
45
- const _se = "server";
46
- const n0 = "com.amazonaws.appconfigdata";
47
- const { TypeRegistry } = require("@smithy/core/schema");
48
- const { AppConfigDataServiceException } = require("../models/AppConfigDataServiceException");
49
- const { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException } = require("../models/errors");
50
- const _s_registry = TypeRegistry.for(_s);
51
- const AppConfigDataServiceException$ = [-3, _s, "AppConfigDataServiceException", 0, [], []];
52
- exports.AppConfigDataServiceException$ = AppConfigDataServiceException$;
53
- _s_registry.registerError(AppConfigDataServiceException$, AppConfigDataServiceException);
54
- const n0_registry = TypeRegistry.for(n0);
55
- const BadRequestException$ = [-3, n0, _BRE,
56
- { [_e]: _c, [_hE]: 400 },
57
- [_M, _R, _D],
58
- [0, 0, () => BadRequestDetails$]
59
- ];
60
- exports.BadRequestException$ = BadRequestException$;
61
- n0_registry.registerError(BadRequestException$, BadRequestException);
62
- const InternalServerException$ = [-3, n0, _ISE,
63
- { [_e]: _se, [_hE]: 500 },
64
- [_M],
65
- [0]
66
- ];
67
- exports.InternalServerException$ = InternalServerException$;
68
- n0_registry.registerError(InternalServerException$, InternalServerException);
69
- const ResourceNotFoundException$ = [-3, n0, _RNFE,
70
- { [_e]: _c, [_hE]: 404 },
71
- [_M, _RT, _RB],
72
- [0, 0, 128 | 0]
73
- ];
74
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
75
- n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
76
- const ThrottlingException$ = [-3, n0, _TE,
77
- { [_e]: _c, [_hE]: 429 },
78
- [_M],
79
- [0]
80
- ];
81
- exports.ThrottlingException$ = ThrottlingException$;
82
- n0_registry.registerError(ThrottlingException$, ThrottlingException);
83
- exports.errorTypeRegistries = [
84
- _s_registry,
85
- n0_registry,
86
- ];
87
- var SensitiveBlob = [0, n0, _SB, 8, 21];
88
- const GetLatestConfigurationRequest$ = [3, n0, _GLCR,
89
- 0,
90
- [_CT],
91
- [[0, { [_hQ]: _ct }]], 1
92
- ];
93
- exports.GetLatestConfigurationRequest$ = GetLatestConfigurationRequest$;
94
- const GetLatestConfigurationResponse$ = [3, n0, _GLCRe,
95
- 0,
96
- [_NPCT, _NPIIS, _CTo, _C, _VL],
97
- [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]]
98
- ];
99
- exports.GetLatestConfigurationResponse$ = GetLatestConfigurationResponse$;
100
- const InvalidParameterDetail$ = [3, n0, _IPD,
101
- 0,
102
- [_P],
103
- [0]
104
- ];
105
- exports.InvalidParameterDetail$ = InvalidParameterDetail$;
106
- const StartConfigurationSessionRequest$ = [3, n0, _SCSR,
107
- 0,
108
- [_AI, _EI, _CPI, _RMPIIS],
109
- [0, 0, 0, 1], 3
110
- ];
111
- exports.StartConfigurationSessionRequest$ = StartConfigurationSessionRequest$;
112
- const StartConfigurationSessionResponse$ = [3, n0, _SCSRt,
113
- 0,
114
- [_ICT],
115
- [0]
116
- ];
117
- exports.StartConfigurationSessionResponse$ = StartConfigurationSessionResponse$;
118
- var InvalidParameterMap = [2, n0, _IPM,
119
- 0, 0, () => InvalidParameterDetail$
120
- ];
121
- var StringMap = 128 | 0;
122
- const BadRequestDetails$ = [4, n0, _BRD,
123
- 0,
124
- [_IP],
125
- [() => InvalidParameterMap]
126
- ];
127
- exports.BadRequestDetails$ = BadRequestDetails$;
128
- exports.GetLatestConfiguration$ = [9, n0, _GLC,
129
- { [_h]: ["GET", "/configuration", 200] }, () => GetLatestConfigurationRequest$, () => GetLatestConfigurationResponse$
130
- ];
131
- exports.StartConfigurationSession$ = [9, n0, _SCS,
132
- { [_h]: ["POST", "/configurationsessions", 201] }, () => StartConfigurationSessionRequest$, () => StartConfigurationSessionResponse$
133
- ];