@aws-sdk/client-quicksight 3.1075.0 → 3.1077.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,375 +0,0 @@
1
- const { QuickSightServiceException: __BaseException } = require("./QuickSightServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- RequestId;
7
- constructor(opts) {
8
- super({
9
- name: "AccessDeniedException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
- this.Message = opts.Message;
15
- this.RequestId = opts.RequestId;
16
- }
17
- };
18
- exports.InternalFailureException = class InternalFailureException extends __BaseException {
19
- name = "InternalFailureException";
20
- $fault = "server";
21
- Message;
22
- RequestId;
23
- constructor(opts) {
24
- super({
25
- name: "InternalFailureException",
26
- $fault: "server",
27
- ...opts,
28
- });
29
- Object.setPrototypeOf(this, InternalFailureException.prototype);
30
- this.Message = opts.Message;
31
- this.RequestId = opts.RequestId;
32
- }
33
- };
34
- exports.InvalidParameterValueException = class InvalidParameterValueException extends __BaseException {
35
- name = "InvalidParameterValueException";
36
- $fault = "client";
37
- Message;
38
- RequestId;
39
- constructor(opts) {
40
- super({
41
- name: "InvalidParameterValueException",
42
- $fault: "client",
43
- ...opts,
44
- });
45
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
46
- this.Message = opts.Message;
47
- this.RequestId = opts.RequestId;
48
- }
49
- };
50
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
51
- name = "ResourceNotFoundException";
52
- $fault = "client";
53
- Message;
54
- ResourceType;
55
- RequestId;
56
- constructor(opts) {
57
- super({
58
- name: "ResourceNotFoundException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
63
- this.Message = opts.Message;
64
- this.ResourceType = opts.ResourceType;
65
- this.RequestId = opts.RequestId;
66
- }
67
- };
68
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
69
- name = "ThrottlingException";
70
- $fault = "client";
71
- Message;
72
- RequestId;
73
- constructor(opts) {
74
- super({
75
- name: "ThrottlingException",
76
- $fault: "client",
77
- ...opts,
78
- });
79
- Object.setPrototypeOf(this, ThrottlingException.prototype);
80
- this.Message = opts.Message;
81
- this.RequestId = opts.RequestId;
82
- }
83
- };
84
- exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
85
- name = "InvalidRequestException";
86
- $fault = "client";
87
- Message;
88
- RequestId;
89
- constructor(opts) {
90
- super({
91
- name: "InvalidRequestException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
96
- this.Message = opts.Message;
97
- this.RequestId = opts.RequestId;
98
- }
99
- };
100
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
101
- name = "LimitExceededException";
102
- $fault = "client";
103
- Message;
104
- ResourceType;
105
- RequestId;
106
- constructor(opts) {
107
- super({
108
- name: "LimitExceededException",
109
- $fault: "client",
110
- ...opts,
111
- });
112
- Object.setPrototypeOf(this, LimitExceededException.prototype);
113
- this.Message = opts.Message;
114
- this.ResourceType = opts.ResourceType;
115
- this.RequestId = opts.RequestId;
116
- }
117
- };
118
- exports.PreconditionNotMetException = class PreconditionNotMetException extends __BaseException {
119
- name = "PreconditionNotMetException";
120
- $fault = "client";
121
- Message;
122
- RequestId;
123
- constructor(opts) {
124
- super({
125
- name: "PreconditionNotMetException",
126
- $fault: "client",
127
- ...opts,
128
- });
129
- Object.setPrototypeOf(this, PreconditionNotMetException.prototype);
130
- this.Message = opts.Message;
131
- this.RequestId = opts.RequestId;
132
- }
133
- };
134
- exports.ConflictException = class ConflictException extends __BaseException {
135
- name = "ConflictException";
136
- $fault = "client";
137
- Message;
138
- RequestId;
139
- constructor(opts) {
140
- super({
141
- name: "ConflictException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- Object.setPrototypeOf(this, ConflictException.prototype);
146
- this.Message = opts.Message;
147
- this.RequestId = opts.RequestId;
148
- }
149
- };
150
- exports.ResourceExistsException = class ResourceExistsException extends __BaseException {
151
- name = "ResourceExistsException";
152
- $fault = "client";
153
- Message;
154
- ResourceType;
155
- RequestId;
156
- constructor(opts) {
157
- super({
158
- name: "ResourceExistsException",
159
- $fault: "client",
160
- ...opts,
161
- });
162
- Object.setPrototypeOf(this, ResourceExistsException.prototype);
163
- this.Message = opts.Message;
164
- this.ResourceType = opts.ResourceType;
165
- this.RequestId = opts.RequestId;
166
- }
167
- };
168
- exports.ConcurrentUpdatingException = class ConcurrentUpdatingException extends __BaseException {
169
- name = "ConcurrentUpdatingException";
170
- $fault = "server";
171
- Message;
172
- RequestId;
173
- constructor(opts) {
174
- super({
175
- name: "ConcurrentUpdatingException",
176
- $fault: "server",
177
- ...opts,
178
- });
179
- Object.setPrototypeOf(this, ConcurrentUpdatingException.prototype);
180
- this.Message = opts.Message;
181
- this.RequestId = opts.RequestId;
182
- }
183
- };
184
- exports.ResourceUnavailableException = class ResourceUnavailableException extends __BaseException {
185
- name = "ResourceUnavailableException";
186
- $fault = "server";
187
- Message;
188
- ResourceType;
189
- RequestId;
190
- constructor(opts) {
191
- super({
192
- name: "ResourceUnavailableException",
193
- $fault: "server",
194
- ...opts,
195
- });
196
- Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
197
- this.Message = opts.Message;
198
- this.ResourceType = opts.ResourceType;
199
- this.RequestId = opts.RequestId;
200
- }
201
- };
202
- exports.UnsupportedUserEditionException = class UnsupportedUserEditionException extends __BaseException {
203
- name = "UnsupportedUserEditionException";
204
- $fault = "client";
205
- Message;
206
- RequestId;
207
- constructor(opts) {
208
- super({
209
- name: "UnsupportedUserEditionException",
210
- $fault: "client",
211
- ...opts,
212
- });
213
- Object.setPrototypeOf(this, UnsupportedUserEditionException.prototype);
214
- this.Message = opts.Message;
215
- this.RequestId = opts.RequestId;
216
- }
217
- };
218
- exports.InternalServerException = class InternalServerException extends __BaseException {
219
- name = "InternalServerException";
220
- $fault = "server";
221
- Message;
222
- constructor(opts) {
223
- super({
224
- name: "InternalServerException",
225
- $fault: "server",
226
- ...opts,
227
- });
228
- Object.setPrototypeOf(this, InternalServerException.prototype);
229
- this.Message = opts.Message;
230
- }
231
- };
232
- exports.InvalidDataSetParameterValueException = class InvalidDataSetParameterValueException extends __BaseException {
233
- name = "InvalidDataSetParameterValueException";
234
- $fault = "client";
235
- Message;
236
- RequestId;
237
- constructor(opts) {
238
- super({
239
- name: "InvalidDataSetParameterValueException",
240
- $fault: "client",
241
- ...opts,
242
- });
243
- Object.setPrototypeOf(this, InvalidDataSetParameterValueException.prototype);
244
- this.Message = opts.Message;
245
- this.RequestId = opts.RequestId;
246
- }
247
- };
248
- exports.CustomerManagedKeyUnavailableException = class CustomerManagedKeyUnavailableException extends __BaseException {
249
- name = "CustomerManagedKeyUnavailableException";
250
- $fault = "client";
251
- Message;
252
- RequestId;
253
- constructor(opts) {
254
- super({
255
- name: "CustomerManagedKeyUnavailableException",
256
- $fault: "client",
257
- ...opts,
258
- });
259
- Object.setPrototypeOf(this, CustomerManagedKeyUnavailableException.prototype);
260
- this.Message = opts.Message;
261
- this.RequestId = opts.RequestId;
262
- }
263
- };
264
- exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
265
- name = "InvalidNextTokenException";
266
- $fault = "client";
267
- Message;
268
- RequestId;
269
- constructor(opts) {
270
- super({
271
- name: "InvalidNextTokenException",
272
- $fault: "client",
273
- ...opts,
274
- });
275
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
276
- this.Message = opts.Message;
277
- this.RequestId = opts.RequestId;
278
- }
279
- };
280
- exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
281
- name = "InvalidParameterException";
282
- $fault = "client";
283
- Message;
284
- RequestId;
285
- constructor(opts) {
286
- super({
287
- name: "InvalidParameterException",
288
- $fault: "client",
289
- ...opts,
290
- });
291
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
292
- this.Message = opts.Message;
293
- this.RequestId = opts.RequestId;
294
- }
295
- };
296
- exports.DomainNotWhitelistedException = class DomainNotWhitelistedException extends __BaseException {
297
- name = "DomainNotWhitelistedException";
298
- $fault = "client";
299
- Message;
300
- RequestId;
301
- constructor(opts) {
302
- super({
303
- name: "DomainNotWhitelistedException",
304
- $fault: "client",
305
- ...opts,
306
- });
307
- Object.setPrototypeOf(this, DomainNotWhitelistedException.prototype);
308
- this.Message = opts.Message;
309
- this.RequestId = opts.RequestId;
310
- }
311
- };
312
- exports.SessionLifetimeInMinutesInvalidException = class SessionLifetimeInMinutesInvalidException extends __BaseException {
313
- name = "SessionLifetimeInMinutesInvalidException";
314
- $fault = "client";
315
- Message;
316
- RequestId;
317
- constructor(opts) {
318
- super({
319
- name: "SessionLifetimeInMinutesInvalidException",
320
- $fault: "client",
321
- ...opts,
322
- });
323
- Object.setPrototypeOf(this, SessionLifetimeInMinutesInvalidException.prototype);
324
- this.Message = opts.Message;
325
- this.RequestId = opts.RequestId;
326
- }
327
- };
328
- exports.UnsupportedPricingPlanException = class UnsupportedPricingPlanException extends __BaseException {
329
- name = "UnsupportedPricingPlanException";
330
- $fault = "client";
331
- Message;
332
- RequestId;
333
- constructor(opts) {
334
- super({
335
- name: "UnsupportedPricingPlanException",
336
- $fault: "client",
337
- ...opts,
338
- });
339
- Object.setPrototypeOf(this, UnsupportedPricingPlanException.prototype);
340
- this.Message = opts.Message;
341
- this.RequestId = opts.RequestId;
342
- }
343
- };
344
- exports.QuickSightUserNotFoundException = class QuickSightUserNotFoundException extends __BaseException {
345
- name = "QuickSightUserNotFoundException";
346
- $fault = "client";
347
- Message;
348
- RequestId;
349
- constructor(opts) {
350
- super({
351
- name: "QuickSightUserNotFoundException",
352
- $fault: "client",
353
- ...opts,
354
- });
355
- Object.setPrototypeOf(this, QuickSightUserNotFoundException.prototype);
356
- this.Message = opts.Message;
357
- this.RequestId = opts.RequestId;
358
- }
359
- };
360
- exports.IdentityTypeNotSupportedException = class IdentityTypeNotSupportedException extends __BaseException {
361
- name = "IdentityTypeNotSupportedException";
362
- $fault = "client";
363
- Message;
364
- RequestId;
365
- constructor(opts) {
366
- super({
367
- name: "IdentityTypeNotSupportedException",
368
- $fault: "client",
369
- ...opts,
370
- });
371
- Object.setPrototypeOf(this, IdentityTypeNotSupportedException.prototype);
372
- this.Message = opts.Message;
373
- this.RequestId = opts.RequestId;
374
- }
375
- };
@@ -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 { defaultQuickSightHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2018-04-01",
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 ?? defaultQuickSightHttpAuthSchemeProvider,
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.quicksight",
29
- errorTypeRegistries,
30
- version: "2018-04-01",
31
- serviceTarget: "QuickSight_20180401",
32
- },
33
- serviceId: config?.serviceId ?? "QuickSight",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };