@aws-sdk/client-iam 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.
- package/dist-cjs/index.js +4522 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +9 -11
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -82
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/IAMServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -431
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -3676
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
const { IAMServiceException: __BaseException } = require("./IAMServiceException");
|
|
2
|
-
exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException {
|
|
3
|
-
name = "ConcurrentModificationException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ConcurrentModificationException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.NoSuchEntityException = class NoSuchEntityException extends __BaseException {
|
|
15
|
-
name = "NoSuchEntityException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "NoSuchEntityException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, NoSuchEntityException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.ServiceFailureException = class ServiceFailureException extends __BaseException {
|
|
27
|
-
name = "ServiceFailureException";
|
|
28
|
-
$fault = "server";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ServiceFailureException",
|
|
32
|
-
$fault: "server",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ServiceFailureException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.AccountNotManagementOrDelegatedAdministratorException = class AccountNotManagementOrDelegatedAdministratorException extends __BaseException {
|
|
39
|
-
name = "AccountNotManagementOrDelegatedAdministratorException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
Message;
|
|
42
|
-
constructor(opts) {
|
|
43
|
-
super({
|
|
44
|
-
name: "AccountNotManagementOrDelegatedAdministratorException",
|
|
45
|
-
$fault: "client",
|
|
46
|
-
...opts,
|
|
47
|
-
});
|
|
48
|
-
Object.setPrototypeOf(this, AccountNotManagementOrDelegatedAdministratorException.prototype);
|
|
49
|
-
this.Message = opts.Message;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
exports.InvalidInputException = class InvalidInputException extends __BaseException {
|
|
53
|
-
name = "InvalidInputException";
|
|
54
|
-
$fault = "client";
|
|
55
|
-
constructor(opts) {
|
|
56
|
-
super({
|
|
57
|
-
name: "InvalidInputException",
|
|
58
|
-
$fault: "client",
|
|
59
|
-
...opts,
|
|
60
|
-
});
|
|
61
|
-
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
65
|
-
name = "LimitExceededException";
|
|
66
|
-
$fault = "client";
|
|
67
|
-
constructor(opts) {
|
|
68
|
-
super({
|
|
69
|
-
name: "LimitExceededException",
|
|
70
|
-
$fault: "client",
|
|
71
|
-
...opts,
|
|
72
|
-
});
|
|
73
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
exports.EntityAlreadyExistsException = class EntityAlreadyExistsException extends __BaseException {
|
|
77
|
-
name = "EntityAlreadyExistsException";
|
|
78
|
-
$fault = "client";
|
|
79
|
-
constructor(opts) {
|
|
80
|
-
super({
|
|
81
|
-
name: "EntityAlreadyExistsException",
|
|
82
|
-
$fault: "client",
|
|
83
|
-
...opts,
|
|
84
|
-
});
|
|
85
|
-
Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
exports.UnmodifiableEntityException = class UnmodifiableEntityException extends __BaseException {
|
|
89
|
-
name = "UnmodifiableEntityException";
|
|
90
|
-
$fault = "client";
|
|
91
|
-
constructor(opts) {
|
|
92
|
-
super({
|
|
93
|
-
name: "UnmodifiableEntityException",
|
|
94
|
-
$fault: "client",
|
|
95
|
-
...opts,
|
|
96
|
-
});
|
|
97
|
-
Object.setPrototypeOf(this, UnmodifiableEntityException.prototype);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
exports.PolicyNotAttachableException = class PolicyNotAttachableException extends __BaseException {
|
|
101
|
-
name = "PolicyNotAttachableException";
|
|
102
|
-
$fault = "client";
|
|
103
|
-
constructor(opts) {
|
|
104
|
-
super({
|
|
105
|
-
name: "PolicyNotAttachableException",
|
|
106
|
-
$fault: "client",
|
|
107
|
-
...opts,
|
|
108
|
-
});
|
|
109
|
-
Object.setPrototypeOf(this, PolicyNotAttachableException.prototype);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
exports.EntityTemporarilyUnmodifiableException = class EntityTemporarilyUnmodifiableException extends __BaseException {
|
|
113
|
-
name = "EntityTemporarilyUnmodifiableException";
|
|
114
|
-
$fault = "client";
|
|
115
|
-
constructor(opts) {
|
|
116
|
-
super({
|
|
117
|
-
name: "EntityTemporarilyUnmodifiableException",
|
|
118
|
-
$fault: "client",
|
|
119
|
-
...opts,
|
|
120
|
-
});
|
|
121
|
-
Object.setPrototypeOf(this, EntityTemporarilyUnmodifiableException.prototype);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
exports.InvalidUserTypeException = class InvalidUserTypeException extends __BaseException {
|
|
125
|
-
name = "InvalidUserTypeException";
|
|
126
|
-
$fault = "client";
|
|
127
|
-
constructor(opts) {
|
|
128
|
-
super({
|
|
129
|
-
name: "InvalidUserTypeException",
|
|
130
|
-
$fault: "client",
|
|
131
|
-
...opts,
|
|
132
|
-
});
|
|
133
|
-
Object.setPrototypeOf(this, InvalidUserTypeException.prototype);
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
exports.PasswordPolicyViolationException = class PasswordPolicyViolationException extends __BaseException {
|
|
137
|
-
name = "PasswordPolicyViolationException";
|
|
138
|
-
$fault = "client";
|
|
139
|
-
constructor(opts) {
|
|
140
|
-
super({
|
|
141
|
-
name: "PasswordPolicyViolationException",
|
|
142
|
-
$fault: "client",
|
|
143
|
-
...opts,
|
|
144
|
-
});
|
|
145
|
-
Object.setPrototypeOf(this, PasswordPolicyViolationException.prototype);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
exports.OpenIdIdpCommunicationErrorException = class OpenIdIdpCommunicationErrorException extends __BaseException {
|
|
149
|
-
name = "OpenIdIdpCommunicationErrorException";
|
|
150
|
-
$fault = "client";
|
|
151
|
-
constructor(opts) {
|
|
152
|
-
super({
|
|
153
|
-
name: "OpenIdIdpCommunicationErrorException",
|
|
154
|
-
$fault: "client",
|
|
155
|
-
...opts,
|
|
156
|
-
});
|
|
157
|
-
Object.setPrototypeOf(this, OpenIdIdpCommunicationErrorException.prototype);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
exports.MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends __BaseException {
|
|
161
|
-
name = "MalformedPolicyDocumentException";
|
|
162
|
-
$fault = "client";
|
|
163
|
-
constructor(opts) {
|
|
164
|
-
super({
|
|
165
|
-
name: "MalformedPolicyDocumentException",
|
|
166
|
-
$fault: "client",
|
|
167
|
-
...opts,
|
|
168
|
-
});
|
|
169
|
-
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
exports.ServiceNotSupportedException = class ServiceNotSupportedException extends __BaseException {
|
|
173
|
-
name = "ServiceNotSupportedException";
|
|
174
|
-
$fault = "client";
|
|
175
|
-
constructor(opts) {
|
|
176
|
-
super({
|
|
177
|
-
name: "ServiceNotSupportedException",
|
|
178
|
-
$fault: "client",
|
|
179
|
-
...opts,
|
|
180
|
-
});
|
|
181
|
-
Object.setPrototypeOf(this, ServiceNotSupportedException.prototype);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
exports.DeleteConflictException = class DeleteConflictException extends __BaseException {
|
|
185
|
-
name = "DeleteConflictException";
|
|
186
|
-
$fault = "client";
|
|
187
|
-
constructor(opts) {
|
|
188
|
-
super({
|
|
189
|
-
name: "DeleteConflictException",
|
|
190
|
-
$fault: "client",
|
|
191
|
-
...opts,
|
|
192
|
-
});
|
|
193
|
-
Object.setPrototypeOf(this, DeleteConflictException.prototype);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
exports.OrganizationNotFoundException = class OrganizationNotFoundException extends __BaseException {
|
|
197
|
-
name = "OrganizationNotFoundException";
|
|
198
|
-
$fault = "client";
|
|
199
|
-
Message;
|
|
200
|
-
constructor(opts) {
|
|
201
|
-
super({
|
|
202
|
-
name: "OrganizationNotFoundException",
|
|
203
|
-
$fault: "client",
|
|
204
|
-
...opts,
|
|
205
|
-
});
|
|
206
|
-
Object.setPrototypeOf(this, OrganizationNotFoundException.prototype);
|
|
207
|
-
this.Message = opts.Message;
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
exports.OrganizationNotInAllFeaturesModeException = class OrganizationNotInAllFeaturesModeException extends __BaseException {
|
|
211
|
-
name = "OrganizationNotInAllFeaturesModeException";
|
|
212
|
-
$fault = "client";
|
|
213
|
-
Message;
|
|
214
|
-
constructor(opts) {
|
|
215
|
-
super({
|
|
216
|
-
name: "OrganizationNotInAllFeaturesModeException",
|
|
217
|
-
$fault: "client",
|
|
218
|
-
...opts,
|
|
219
|
-
});
|
|
220
|
-
Object.setPrototypeOf(this, OrganizationNotInAllFeaturesModeException.prototype);
|
|
221
|
-
this.Message = opts.Message;
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
exports.ServiceAccessNotEnabledException = class ServiceAccessNotEnabledException extends __BaseException {
|
|
225
|
-
name = "ServiceAccessNotEnabledException";
|
|
226
|
-
$fault = "client";
|
|
227
|
-
Message;
|
|
228
|
-
constructor(opts) {
|
|
229
|
-
super({
|
|
230
|
-
name: "ServiceAccessNotEnabledException",
|
|
231
|
-
$fault: "client",
|
|
232
|
-
...opts,
|
|
233
|
-
});
|
|
234
|
-
Object.setPrototypeOf(this, ServiceAccessNotEnabledException.prototype);
|
|
235
|
-
this.Message = opts.Message;
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
exports.FeatureDisabledException = class FeatureDisabledException extends __BaseException {
|
|
239
|
-
name = "FeatureDisabledException";
|
|
240
|
-
$fault = "client";
|
|
241
|
-
constructor(opts) {
|
|
242
|
-
super({
|
|
243
|
-
name: "FeatureDisabledException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
...opts,
|
|
246
|
-
});
|
|
247
|
-
Object.setPrototypeOf(this, FeatureDisabledException.prototype);
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
exports.InvalidAuthenticationCodeException = class InvalidAuthenticationCodeException extends __BaseException {
|
|
251
|
-
name = "InvalidAuthenticationCodeException";
|
|
252
|
-
$fault = "client";
|
|
253
|
-
constructor(opts) {
|
|
254
|
-
super({
|
|
255
|
-
name: "InvalidAuthenticationCodeException",
|
|
256
|
-
$fault: "client",
|
|
257
|
-
...opts,
|
|
258
|
-
});
|
|
259
|
-
Object.setPrototypeOf(this, InvalidAuthenticationCodeException.prototype);
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
exports.CallerIsNotManagementAccountException = class CallerIsNotManagementAccountException extends __BaseException {
|
|
263
|
-
name = "CallerIsNotManagementAccountException";
|
|
264
|
-
$fault = "client";
|
|
265
|
-
Message;
|
|
266
|
-
constructor(opts) {
|
|
267
|
-
super({
|
|
268
|
-
name: "CallerIsNotManagementAccountException",
|
|
269
|
-
$fault: "client",
|
|
270
|
-
...opts,
|
|
271
|
-
});
|
|
272
|
-
Object.setPrototypeOf(this, CallerIsNotManagementAccountException.prototype);
|
|
273
|
-
this.Message = opts.Message;
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
exports.FeatureEnabledException = class FeatureEnabledException extends __BaseException {
|
|
277
|
-
name = "FeatureEnabledException";
|
|
278
|
-
$fault = "client";
|
|
279
|
-
constructor(opts) {
|
|
280
|
-
super({
|
|
281
|
-
name: "FeatureEnabledException",
|
|
282
|
-
$fault: "client",
|
|
283
|
-
...opts,
|
|
284
|
-
});
|
|
285
|
-
Object.setPrototypeOf(this, FeatureEnabledException.prototype);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
exports.ReportGenerationLimitExceededException = class ReportGenerationLimitExceededException extends __BaseException {
|
|
289
|
-
name = "ReportGenerationLimitExceededException";
|
|
290
|
-
$fault = "client";
|
|
291
|
-
constructor(opts) {
|
|
292
|
-
super({
|
|
293
|
-
name: "ReportGenerationLimitExceededException",
|
|
294
|
-
$fault: "client",
|
|
295
|
-
...opts,
|
|
296
|
-
});
|
|
297
|
-
Object.setPrototypeOf(this, ReportGenerationLimitExceededException.prototype);
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
exports.CredentialReportExpiredException = class CredentialReportExpiredException extends __BaseException {
|
|
301
|
-
name = "CredentialReportExpiredException";
|
|
302
|
-
$fault = "client";
|
|
303
|
-
constructor(opts) {
|
|
304
|
-
super({
|
|
305
|
-
name: "CredentialReportExpiredException",
|
|
306
|
-
$fault: "client",
|
|
307
|
-
...opts,
|
|
308
|
-
});
|
|
309
|
-
Object.setPrototypeOf(this, CredentialReportExpiredException.prototype);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
exports.CredentialReportNotPresentException = class CredentialReportNotPresentException extends __BaseException {
|
|
313
|
-
name = "CredentialReportNotPresentException";
|
|
314
|
-
$fault = "client";
|
|
315
|
-
constructor(opts) {
|
|
316
|
-
super({
|
|
317
|
-
name: "CredentialReportNotPresentException",
|
|
318
|
-
$fault: "client",
|
|
319
|
-
...opts,
|
|
320
|
-
});
|
|
321
|
-
Object.setPrototypeOf(this, CredentialReportNotPresentException.prototype);
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
exports.CredentialReportNotReadyException = class CredentialReportNotReadyException extends __BaseException {
|
|
325
|
-
name = "CredentialReportNotReadyException";
|
|
326
|
-
$fault = "client";
|
|
327
|
-
constructor(opts) {
|
|
328
|
-
super({
|
|
329
|
-
name: "CredentialReportNotReadyException",
|
|
330
|
-
$fault: "client",
|
|
331
|
-
...opts,
|
|
332
|
-
});
|
|
333
|
-
Object.setPrototypeOf(this, CredentialReportNotReadyException.prototype);
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
exports.UnrecognizedPublicKeyEncodingException = class UnrecognizedPublicKeyEncodingException extends __BaseException {
|
|
337
|
-
name = "UnrecognizedPublicKeyEncodingException";
|
|
338
|
-
$fault = "client";
|
|
339
|
-
constructor(opts) {
|
|
340
|
-
super({
|
|
341
|
-
name: "UnrecognizedPublicKeyEncodingException",
|
|
342
|
-
$fault: "client",
|
|
343
|
-
...opts,
|
|
344
|
-
});
|
|
345
|
-
Object.setPrototypeOf(this, UnrecognizedPublicKeyEncodingException.prototype);
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
exports.PolicyEvaluationException = class PolicyEvaluationException extends __BaseException {
|
|
349
|
-
name = "PolicyEvaluationException";
|
|
350
|
-
$fault = "server";
|
|
351
|
-
constructor(opts) {
|
|
352
|
-
super({
|
|
353
|
-
name: "PolicyEvaluationException",
|
|
354
|
-
$fault: "server",
|
|
355
|
-
...opts,
|
|
356
|
-
});
|
|
357
|
-
Object.setPrototypeOf(this, PolicyEvaluationException.prototype);
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
exports.KeyPairMismatchException = class KeyPairMismatchException extends __BaseException {
|
|
361
|
-
name = "KeyPairMismatchException";
|
|
362
|
-
$fault = "client";
|
|
363
|
-
constructor(opts) {
|
|
364
|
-
super({
|
|
365
|
-
name: "KeyPairMismatchException",
|
|
366
|
-
$fault: "client",
|
|
367
|
-
...opts,
|
|
368
|
-
});
|
|
369
|
-
Object.setPrototypeOf(this, KeyPairMismatchException.prototype);
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
exports.MalformedCertificateException = class MalformedCertificateException extends __BaseException {
|
|
373
|
-
name = "MalformedCertificateException";
|
|
374
|
-
$fault = "client";
|
|
375
|
-
constructor(opts) {
|
|
376
|
-
super({
|
|
377
|
-
name: "MalformedCertificateException",
|
|
378
|
-
$fault: "client",
|
|
379
|
-
...opts,
|
|
380
|
-
});
|
|
381
|
-
Object.setPrototypeOf(this, MalformedCertificateException.prototype);
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
exports.DuplicateCertificateException = class DuplicateCertificateException extends __BaseException {
|
|
385
|
-
name = "DuplicateCertificateException";
|
|
386
|
-
$fault = "client";
|
|
387
|
-
constructor(opts) {
|
|
388
|
-
super({
|
|
389
|
-
name: "DuplicateCertificateException",
|
|
390
|
-
$fault: "client",
|
|
391
|
-
...opts,
|
|
392
|
-
});
|
|
393
|
-
Object.setPrototypeOf(this, DuplicateCertificateException.prototype);
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
exports.InvalidCertificateException = class InvalidCertificateException extends __BaseException {
|
|
397
|
-
name = "InvalidCertificateException";
|
|
398
|
-
$fault = "client";
|
|
399
|
-
constructor(opts) {
|
|
400
|
-
super({
|
|
401
|
-
name: "InvalidCertificateException",
|
|
402
|
-
$fault: "client",
|
|
403
|
-
...opts,
|
|
404
|
-
});
|
|
405
|
-
Object.setPrototypeOf(this, InvalidCertificateException.prototype);
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
exports.DuplicateSSHPublicKeyException = class DuplicateSSHPublicKeyException extends __BaseException {
|
|
409
|
-
name = "DuplicateSSHPublicKeyException";
|
|
410
|
-
$fault = "client";
|
|
411
|
-
constructor(opts) {
|
|
412
|
-
super({
|
|
413
|
-
name: "DuplicateSSHPublicKeyException",
|
|
414
|
-
$fault: "client",
|
|
415
|
-
...opts,
|
|
416
|
-
});
|
|
417
|
-
Object.setPrototypeOf(this, DuplicateSSHPublicKeyException.prototype);
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
exports.InvalidPublicKeyException = class InvalidPublicKeyException extends __BaseException {
|
|
421
|
-
name = "InvalidPublicKeyException";
|
|
422
|
-
$fault = "client";
|
|
423
|
-
constructor(opts) {
|
|
424
|
-
super({
|
|
425
|
-
name: "InvalidPublicKeyException",
|
|
426
|
-
$fault: "client",
|
|
427
|
-
...opts,
|
|
428
|
-
});
|
|
429
|
-
Object.setPrototypeOf(this, InvalidPublicKeyException.prototype);
|
|
430
|
-
}
|
|
431
|
-
};
|
|
@@ -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,39 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsQueryProtocol } = 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 { defaultIAMHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2010-05-08",
|
|
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 ?? defaultIAMHttpAuthSchemeProvider,
|
|
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 ?? AwsQueryProtocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.iam",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
xmlNamespace: "https://iam.amazonaws.com/doc/2010-05-08/",
|
|
31
|
-
version: "2010-05-08",
|
|
32
|
-
serviceTarget: "AWSIdentityManagementV20100508",
|
|
33
|
-
},
|
|
34
|
-
serviceId: config?.serviceId ?? "IAM",
|
|
35
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
38
|
-
};
|
|
39
|
-
};
|