@aws-sdk/client-fms 3.39.0 → 3.43.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/CHANGELOG.md +38 -0
- package/dist-cjs/endpoints.js +305 -68
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/endpoints.js +305 -68
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/FMSClient.d.ts +8 -0
- package/dist-types/commands/AssociateAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAppsListCommand.d.ts +1 -1
- package/dist-types/commands/DeleteNotificationChannelCommand.d.ts +1 -1
- package/dist-types/commands/DeletePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProtocolsListCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetAppsListCommand.d.ts +1 -1
- package/dist-types/commands/GetComplianceDetailCommand.d.ts +1 -1
- package/dist-types/commands/GetNotificationChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetProtectionStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetProtocolsListCommand.d.ts +1 -1
- package/dist-types/commands/GetViolationDetailsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppsListsCommand.d.ts +1 -1
- package/dist-types/commands/ListComplianceStatusCommand.d.ts +1 -1
- package/dist-types/commands/ListMemberAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListProtocolsListsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutAppsListCommand.d.ts +1 -1
- package/dist-types/commands/PutNotificationChannelCommand.d.ts +1 -1
- package/dist-types/commands/PutPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutProtocolsListCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/FMSClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
package/dist-es/endpoints.js
CHANGED
|
@@ -1,89 +1,257 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"af-south-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "fms.af-south-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
hostname: "fms-fips.af-south-1.amazonaws.com",
|
|
12
|
+
tags: ["fips"],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
7
15
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
"ap-east-1": {
|
|
17
|
+
variants: [
|
|
18
|
+
{
|
|
19
|
+
hostname: "fms.ap-east-1.amazonaws.com",
|
|
20
|
+
tags: [],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
hostname: "fms-fips.ap-east-1.amazonaws.com",
|
|
24
|
+
tags: ["fips"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
11
27
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
"ap-northeast-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "fms.ap-northeast-1.amazonaws.com",
|
|
32
|
+
tags: [],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
hostname: "fms-fips.ap-northeast-1.amazonaws.com",
|
|
36
|
+
tags: ["fips"],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
15
39
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
"ap-northeast-2": {
|
|
41
|
+
variants: [
|
|
42
|
+
{
|
|
43
|
+
hostname: "fms.ap-northeast-2.amazonaws.com",
|
|
44
|
+
tags: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
hostname: "fms-fips.ap-northeast-2.amazonaws.com",
|
|
48
|
+
tags: ["fips"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
19
51
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
52
|
+
"ap-south-1": {
|
|
53
|
+
variants: [
|
|
54
|
+
{
|
|
55
|
+
hostname: "fms.ap-south-1.amazonaws.com",
|
|
56
|
+
tags: [],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
hostname: "fms-fips.ap-south-1.amazonaws.com",
|
|
60
|
+
tags: ["fips"],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
23
63
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
64
|
+
"ap-southeast-1": {
|
|
65
|
+
variants: [
|
|
66
|
+
{
|
|
67
|
+
hostname: "fms.ap-southeast-1.amazonaws.com",
|
|
68
|
+
tags: [],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
hostname: "fms-fips.ap-southeast-1.amazonaws.com",
|
|
72
|
+
tags: ["fips"],
|
|
73
|
+
},
|
|
74
|
+
],
|
|
27
75
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
76
|
+
"ap-southeast-2": {
|
|
77
|
+
variants: [
|
|
78
|
+
{
|
|
79
|
+
hostname: "fms.ap-southeast-2.amazonaws.com",
|
|
80
|
+
tags: [],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "fms-fips.ap-southeast-2.amazonaws.com",
|
|
84
|
+
tags: ["fips"],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
31
87
|
},
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
88
|
+
"ca-central-1": {
|
|
89
|
+
variants: [
|
|
90
|
+
{
|
|
91
|
+
hostname: "fms.ca-central-1.amazonaws.com",
|
|
92
|
+
tags: [],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
hostname: "fms-fips.ca-central-1.amazonaws.com",
|
|
96
|
+
tags: ["fips"],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
35
99
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
100
|
+
"eu-central-1": {
|
|
101
|
+
variants: [
|
|
102
|
+
{
|
|
103
|
+
hostname: "fms.eu-central-1.amazonaws.com",
|
|
104
|
+
tags: [],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
hostname: "fms-fips.eu-central-1.amazonaws.com",
|
|
108
|
+
tags: ["fips"],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
39
111
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
112
|
+
"eu-south-1": {
|
|
113
|
+
variants: [
|
|
114
|
+
{
|
|
115
|
+
hostname: "fms.eu-south-1.amazonaws.com",
|
|
116
|
+
tags: [],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
hostname: "fms-fips.eu-south-1.amazonaws.com",
|
|
120
|
+
tags: ["fips"],
|
|
121
|
+
},
|
|
122
|
+
],
|
|
43
123
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
124
|
+
"eu-west-1": {
|
|
125
|
+
variants: [
|
|
126
|
+
{
|
|
127
|
+
hostname: "fms.eu-west-1.amazonaws.com",
|
|
128
|
+
tags: [],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
hostname: "fms-fips.eu-west-1.amazonaws.com",
|
|
132
|
+
tags: ["fips"],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
47
135
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
136
|
+
"eu-west-2": {
|
|
137
|
+
variants: [
|
|
138
|
+
{
|
|
139
|
+
hostname: "fms.eu-west-2.amazonaws.com",
|
|
140
|
+
tags: [],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
hostname: "fms-fips.eu-west-2.amazonaws.com",
|
|
144
|
+
tags: ["fips"],
|
|
145
|
+
},
|
|
146
|
+
],
|
|
51
147
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
148
|
+
"eu-west-3": {
|
|
149
|
+
variants: [
|
|
150
|
+
{
|
|
151
|
+
hostname: "fms.eu-west-3.amazonaws.com",
|
|
152
|
+
tags: [],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
hostname: "fms-fips.eu-west-3.amazonaws.com",
|
|
156
|
+
tags: ["fips"],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
55
159
|
},
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
160
|
+
"me-south-1": {
|
|
161
|
+
variants: [
|
|
162
|
+
{
|
|
163
|
+
hostname: "fms.me-south-1.amazonaws.com",
|
|
164
|
+
tags: [],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
hostname: "fms-fips.me-south-1.amazonaws.com",
|
|
168
|
+
tags: ["fips"],
|
|
169
|
+
},
|
|
170
|
+
],
|
|
59
171
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
172
|
+
"sa-east-1": {
|
|
173
|
+
variants: [
|
|
174
|
+
{
|
|
175
|
+
hostname: "fms.sa-east-1.amazonaws.com",
|
|
176
|
+
tags: [],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
hostname: "fms-fips.sa-east-1.amazonaws.com",
|
|
180
|
+
tags: ["fips"],
|
|
181
|
+
},
|
|
182
|
+
],
|
|
63
183
|
},
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
184
|
+
"us-east-1": {
|
|
185
|
+
variants: [
|
|
186
|
+
{
|
|
187
|
+
hostname: "fms.us-east-1.amazonaws.com",
|
|
188
|
+
tags: [],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
hostname: "fms-fips.us-east-1.amazonaws.com",
|
|
192
|
+
tags: ["fips"],
|
|
193
|
+
},
|
|
194
|
+
],
|
|
67
195
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
196
|
+
"us-east-2": {
|
|
197
|
+
variants: [
|
|
198
|
+
{
|
|
199
|
+
hostname: "fms.us-east-2.amazonaws.com",
|
|
200
|
+
tags: [],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
hostname: "fms-fips.us-east-2.amazonaws.com",
|
|
204
|
+
tags: ["fips"],
|
|
205
|
+
},
|
|
206
|
+
],
|
|
71
207
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
208
|
+
"us-gov-east-1": {
|
|
209
|
+
variants: [
|
|
210
|
+
{
|
|
211
|
+
hostname: "fms.us-gov-east-1.amazonaws.com",
|
|
212
|
+
tags: [],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
hostname: "fms-fips.us-gov-east-1.amazonaws.com",
|
|
216
|
+
tags: ["fips"],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
75
219
|
},
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
220
|
+
"us-gov-west-1": {
|
|
221
|
+
variants: [
|
|
222
|
+
{
|
|
223
|
+
hostname: "fms.us-gov-west-1.amazonaws.com",
|
|
224
|
+
tags: [],
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
hostname: "fms-fips.us-gov-west-1.amazonaws.com",
|
|
228
|
+
tags: ["fips"],
|
|
229
|
+
},
|
|
230
|
+
],
|
|
79
231
|
},
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
232
|
+
"us-west-1": {
|
|
233
|
+
variants: [
|
|
234
|
+
{
|
|
235
|
+
hostname: "fms.us-west-1.amazonaws.com",
|
|
236
|
+
tags: [],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
hostname: "fms-fips.us-west-1.amazonaws.com",
|
|
240
|
+
tags: ["fips"],
|
|
241
|
+
},
|
|
242
|
+
],
|
|
83
243
|
},
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
244
|
+
"us-west-2": {
|
|
245
|
+
variants: [
|
|
246
|
+
{
|
|
247
|
+
hostname: "fms.us-west-2.amazonaws.com",
|
|
248
|
+
tags: [],
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
hostname: "fms-fips.us-west-2.amazonaws.com",
|
|
252
|
+
tags: ["fips"],
|
|
253
|
+
},
|
|
254
|
+
],
|
|
87
255
|
},
|
|
88
256
|
};
|
|
89
257
|
var partitionHash = {
|
|
@@ -131,27 +299,96 @@ var partitionHash = {
|
|
|
131
299
|
"us-west-2",
|
|
132
300
|
],
|
|
133
301
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
134
|
-
|
|
302
|
+
variants: [
|
|
303
|
+
{
|
|
304
|
+
hostname: "fms.{region}.amazonaws.com",
|
|
305
|
+
tags: [],
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
hostname: "fms-fips.{region}.amazonaws.com",
|
|
309
|
+
tags: ["fips"],
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
hostname: "fms-fips.{region}.api.aws",
|
|
313
|
+
tags: ["dualstack", "fips"],
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
hostname: "fms.{region}.api.aws",
|
|
317
|
+
tags: ["dualstack"],
|
|
318
|
+
},
|
|
319
|
+
],
|
|
135
320
|
},
|
|
136
321
|
"aws-cn": {
|
|
137
322
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
138
323
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
139
|
-
|
|
324
|
+
variants: [
|
|
325
|
+
{
|
|
326
|
+
hostname: "fms.{region}.amazonaws.com.cn",
|
|
327
|
+
tags: [],
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
hostname: "fms-fips.{region}.amazonaws.com.cn",
|
|
331
|
+
tags: ["fips"],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
hostname: "fms-fips.{region}.api.amazonwebservices.com.cn",
|
|
335
|
+
tags: ["dualstack", "fips"],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
hostname: "fms.{region}.api.amazonwebservices.com.cn",
|
|
339
|
+
tags: ["dualstack"],
|
|
340
|
+
},
|
|
341
|
+
],
|
|
140
342
|
},
|
|
141
343
|
"aws-iso": {
|
|
142
344
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
143
345
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
144
|
-
|
|
346
|
+
variants: [
|
|
347
|
+
{
|
|
348
|
+
hostname: "fms.{region}.c2s.ic.gov",
|
|
349
|
+
tags: [],
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
hostname: "fms-fips.{region}.c2s.ic.gov",
|
|
353
|
+
tags: ["fips"],
|
|
354
|
+
},
|
|
355
|
+
],
|
|
145
356
|
},
|
|
146
357
|
"aws-iso-b": {
|
|
147
358
|
regions: ["us-isob-east-1"],
|
|
148
359
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
149
|
-
|
|
360
|
+
variants: [
|
|
361
|
+
{
|
|
362
|
+
hostname: "fms.{region}.sc2s.sgov.gov",
|
|
363
|
+
tags: [],
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
hostname: "fms-fips.{region}.sc2s.sgov.gov",
|
|
367
|
+
tags: ["fips"],
|
|
368
|
+
},
|
|
369
|
+
],
|
|
150
370
|
},
|
|
151
371
|
"aws-us-gov": {
|
|
152
372
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
153
373
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
154
|
-
|
|
374
|
+
variants: [
|
|
375
|
+
{
|
|
376
|
+
hostname: "fms.{region}.amazonaws.com",
|
|
377
|
+
tags: [],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
hostname: "fms-fips.{region}.amazonaws.com",
|
|
381
|
+
tags: ["fips"],
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
hostname: "fms-fips.{region}.api.aws",
|
|
385
|
+
tags: ["dualstack", "fips"],
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
hostname: "fms.{region}.api.aws",
|
|
389
|
+
tags: ["dualstack"],
|
|
390
|
+
},
|
|
391
|
+
],
|
|
155
392
|
},
|
|
156
393
|
};
|
|
157
394
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
|
@@ -102,6 +102,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
102
102
|
* Optional logger for logging debug/info/warn/error.
|
|
103
103
|
*/
|
|
104
104
|
logger?: __Logger;
|
|
105
|
+
/**
|
|
106
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
107
|
+
*/
|
|
108
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Enables FIPS compatible endpoints.
|
|
111
|
+
*/
|
|
112
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
105
113
|
/**
|
|
106
114
|
* Unique service identifier.
|
|
107
115
|
* @internal
|
|
@@ -23,7 +23,7 @@ export interface AssociateAdminAccountCommandOutput extends __MetadataBearer {
|
|
|
23
23
|
*
|
|
24
24
|
* @see {@link AssociateAdminAccountCommandInput} for command's `input` shape.
|
|
25
25
|
* @see {@link AssociateAdminAccountCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
export declare class AssociateAdminAccountCommand extends $Command<AssociateAdminAccountCommandInput, AssociateAdminAccountCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteAppsListCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteAppsListCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteAppsListCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteAppsListCommand extends $Command<DeleteAppsListCommandInput, DeleteAppsListCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface DeleteNotificationChannelCommandOutput extends __MetadataBearer
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link DeleteNotificationChannelCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link DeleteNotificationChannelCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class DeleteNotificationChannelCommand extends $Command<DeleteNotificationChannelCommandInput, DeleteNotificationChannelCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeletePolicyCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeletePolicyCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeletePolicyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeletePolicyCommand extends $Command<DeletePolicyCommandInput, DeletePolicyCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteProtocolsListCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteProtocolsListCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteProtocolsListCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteProtocolsListCommand extends $Command<DeleteProtocolsListCommandInput, DeleteProtocolsListCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface DisassociateAdminAccountCommandOutput extends __MetadataBearer
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link DisassociateAdminAccountCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link DisassociateAdminAccountCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class DisassociateAdminAccountCommand extends $Command<DisassociateAdminAccountCommandInput, DisassociateAdminAccountCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface GetAdminAccountCommandOutput extends GetAdminAccountResponse, _
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link GetAdminAccountCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link GetAdminAccountCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class GetAdminAccountCommand extends $Command<GetAdminAccountCommandInput, GetAdminAccountCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetAppsListCommandOutput extends GetAppsListResponse, __Metadat
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetAppsListCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetAppsListCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetAppsListCommand extends $Command<GetAppsListCommandInput, GetAppsListCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -43,7 +43,7 @@ export interface GetComplianceDetailCommandOutput extends GetComplianceDetailRes
|
|
|
43
43
|
*
|
|
44
44
|
* @see {@link GetComplianceDetailCommandInput} for command's `input` shape.
|
|
45
45
|
* @see {@link GetComplianceDetailCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
46
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
export declare class GetComplianceDetailCommand extends $Command<GetComplianceDetailCommandInput, GetComplianceDetailCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface GetNotificationChannelCommandOutput extends GetNotificationChan
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link GetNotificationChannelCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link GetNotificationChannelCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class GetNotificationChannelCommand extends $Command<GetNotificationChannelCommandInput, GetNotificationChannelCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBea
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetPolicyCommand extends $Command<GetPolicyCommandInput, GetPolicyCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface GetProtectionStatusCommandOutput extends GetProtectionStatusRes
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link GetProtectionStatusCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link GetProtectionStatusCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class GetProtectionStatusCommand extends $Command<GetProtectionStatusCommandInput, GetProtectionStatusCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetProtocolsListCommandOutput extends GetProtocolsListResponse,
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetProtocolsListCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetProtocolsListCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetProtocolsListCommand extends $Command<GetProtocolsListCommandInput, GetProtocolsListCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetViolationDetailsCommandOutput extends GetViolationDetailsRes
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetViolationDetailsCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetViolationDetailsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetViolationDetailsCommand extends $Command<GetViolationDetailsCommandInput, GetViolationDetailsCommandOutput, FMSClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface ListAppsListsCommandOutput extends ListAppsListsResponse, __Met
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link ListAppsListsCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link ListAppsListsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link FMSClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ListAppsListsCommand extends $Command<ListAppsListsCommandInput, ListAppsListsCommandOutput, FMSClientResolvedConfig> {
|