@aws-sdk/client-controlcatalog 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, createPaginator } = 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, defaultControlCatalogHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetControl$, ListCommonControls$, ListControlMappings$, ListControls$, ListDomains$, ListObjectives$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ControlCatalogServiceException } = require("./models/ControlCatalogServiceException");
18
- exports.ControlCatalogServiceException = ControlCatalogServiceException;
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 defaultControlCatalogHttpAuthSchemeParametersProvider = 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: "controlcatalog",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultControlCatalogHttpAuthSchemeProvider = (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,571 @@ 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
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://controlcatalog-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://controlcatalog-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://controlcatalog.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://controlcatalog.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class ControlCatalogServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, ControlCatalogServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends ControlCatalogServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class InternalServerException extends ControlCatalogServiceException {
154
+ name = "InternalServerException";
155
+ $fault = "server";
156
+ $retryable = {};
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "InternalServerException",
161
+ $fault: "server",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, InternalServerException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class ThrottlingException extends ControlCatalogServiceException {
169
+ name = "ThrottlingException";
170
+ $fault = "client";
171
+ $retryable = {
172
+ throttling: true,
173
+ };
174
+ Message;
175
+ constructor(opts) {
176
+ super({
177
+ name: "ThrottlingException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
182
+ this.Message = opts.Message;
183
+ }
184
+ }
185
+ class ValidationException extends ControlCatalogServiceException {
186
+ name = "ValidationException";
187
+ $fault = "client";
188
+ Message;
189
+ constructor(opts) {
190
+ super({
191
+ name: "ValidationException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, ValidationException.prototype);
196
+ this.Message = opts.Message;
197
+ }
198
+ }
199
+ class ResourceNotFoundException extends ControlCatalogServiceException {
200
+ name = "ResourceNotFoundException";
201
+ $fault = "client";
202
+ Message;
203
+ constructor(opts) {
204
+ super({
205
+ name: "ResourceNotFoundException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ }
213
+
214
+ const _A = "Arn";
215
+ const _ADE = "AccessDeniedException";
216
+ const _ADS = "AssociatedDomainSummary";
217
+ const _AOS = "AssociatedObjectiveSummary";
218
+ const _Al = "Aliases";
219
+ const _B = "Behavior";
220
+ const _C = "Controls";
221
+ const _CA = "ControlArn";
222
+ const _CAo = "ControlArns";
223
+ const _CC = "CommonControls";
224
+ const _CCA = "CommonControlArn";
225
+ const _CCAo = "CommonControlArns";
226
+ const _CCF = "CommonControlFilter";
227
+ const _CCMD = "CommonControlMappingDetails";
228
+ const _CCS = "CommonControlSummary";
229
+ const _CCSL = "CommonControlSummaryList";
230
+ const _CCo = "CommonControl";
231
+ const _CF = "ControlFilter";
232
+ const _CM = "ControlMapping";
233
+ const _CMF = "ControlMappingFilter";
234
+ const _CMo = "ControlMappings";
235
+ const _CP = "ControlParameter";
236
+ const _CPo = "ControlParameters";
237
+ const _CS = "ControlSummary";
238
+ const _CT = "CreateTime";
239
+ const _D = "Description";
240
+ const _DR = "DeployableRegions";
241
+ const _DRF = "DomainResourceFilter";
242
+ const _DRFL = "DomainResourceFilterList";
243
+ const _DS = "DomainSummary";
244
+ const _DSL = "DomainSummaryList";
245
+ const _Do = "Domain";
246
+ const _Dom = "Domains";
247
+ const _F = "Filter";
248
+ const _FMD = "FrameworkMappingDetails";
249
+ const _Fr = "Framework";
250
+ const _GC = "GetControl";
251
+ const _GCR = "GetControlRequest";
252
+ const _GCRe = "GetControlResponse";
253
+ const _GP = "GovernedProviders";
254
+ const _GR = "GovernedResources";
255
+ const _I = "Implementations";
256
+ const _ID = "ImplementationDetails";
257
+ const _IF = "ImplementationFilter";
258
+ const _IS = "ImplementationSummary";
259
+ const _ISE = "InternalServerException";
260
+ const _Id = "Identifier";
261
+ const _Ide = "Identifiers";
262
+ const _Im = "Implementation";
263
+ const _It = "Item";
264
+ const _LC = "ListControls";
265
+ const _LCC = "ListCommonControls";
266
+ const _LCCR = "ListCommonControlsRequest";
267
+ const _LCCRi = "ListCommonControlsResponse";
268
+ const _LCM = "ListControlMappings";
269
+ const _LCMR = "ListControlMappingsRequest";
270
+ const _LCMRi = "ListControlMappingsResponse";
271
+ const _LCR = "ListControlsRequest";
272
+ const _LCRi = "ListControlsResponse";
273
+ const _LD = "ListDomains";
274
+ const _LDR = "ListDomainsRequest";
275
+ const _LDRi = "ListDomainsResponse";
276
+ const _LO = "ListObjectives";
277
+ const _LOR = "ListObjectivesRequest";
278
+ const _LORi = "ListObjectivesResponse";
279
+ const _LUT = "LastUpdateTime";
280
+ const _M = "Message";
281
+ const _MR = "MaxResults";
282
+ const _MT = "MappingType";
283
+ const _MTa = "MappingTypes";
284
+ const _Ma = "Mapping";
285
+ const _N = "Name";
286
+ const _NT = "NextToken";
287
+ const _O = "Objectives";
288
+ const _OF = "ObjectiveFilter";
289
+ const _ORF = "ObjectiveResourceFilter";
290
+ const _ORFL = "ObjectiveResourceFilterList";
291
+ const _OS = "ObjectiveSummary";
292
+ const _OSL = "ObjectiveSummaryList";
293
+ const _Ob = "Objective";
294
+ const _P = "Parameters";
295
+ const _PRS = "ParameterRequirementSummary";
296
+ const _R = "Requirement";
297
+ const _RC = "RegionConfiguration";
298
+ const _RCMD = "RelatedControlMappingDetails";
299
+ const _RCe = "RelatedControl";
300
+ const _RNFE = "ResourceNotFoundException";
301
+ const _RT = "RelationType";
302
+ const _S = "Severity";
303
+ const _Sc = "Scope";
304
+ const _T = "Type";
305
+ const _TE = "ThrottlingException";
306
+ const _Ty = "Types";
307
+ const _VE = "ValidationException";
308
+ const _c = "client";
309
+ const _e = "error";
310
+ const _h = "http";
311
+ const _hE = "httpError";
312
+ const _hQ = "httpQuery";
313
+ const _mR = "maxResults";
314
+ const _nT = "nextToken";
315
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.controlcatalog";
316
+ const _se = "server";
317
+ const n0 = "com.amazonaws.controlcatalog";
318
+ const _s_registry = TypeRegistry.for(_s);
319
+ var ControlCatalogServiceException$ = [-3, _s, "ControlCatalogServiceException", 0, [], []];
320
+ _s_registry.registerError(ControlCatalogServiceException$, ControlCatalogServiceException);
321
+ const n0_registry = TypeRegistry.for(n0);
322
+ var AccessDeniedException$ = [-3, n0, _ADE,
323
+ { [_e]: _c, [_hE]: 403 },
324
+ [_M],
325
+ [0]
326
+ ];
327
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
328
+ var InternalServerException$ = [-3, n0, _ISE,
329
+ { [_e]: _se, [_hE]: 500 },
330
+ [_M],
331
+ [0]
332
+ ];
333
+ n0_registry.registerError(InternalServerException$, InternalServerException);
334
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
335
+ { [_e]: _c, [_hE]: 404 },
336
+ [_M],
337
+ [0]
338
+ ];
339
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
340
+ var ThrottlingException$ = [-3, n0, _TE,
341
+ { [_e]: _c, [_hE]: 429 },
342
+ [_M],
343
+ [0]
344
+ ];
345
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
346
+ var ValidationException$ = [-3, n0, _VE,
347
+ { [_e]: _c, [_hE]: 400 },
348
+ [_M],
349
+ [0]
350
+ ];
351
+ n0_registry.registerError(ValidationException$, ValidationException);
352
+ const errorTypeRegistries = [
353
+ _s_registry,
354
+ n0_registry,
355
+ ];
356
+ var AssociatedDomainSummary$ = [3, n0, _ADS,
357
+ 0,
358
+ [_A, _N],
359
+ [0, 0]
360
+ ];
361
+ var AssociatedObjectiveSummary$ = [3, n0, _AOS,
362
+ 0,
363
+ [_A, _N],
364
+ [0, 0]
365
+ ];
366
+ var CommonControlFilter$ = [3, n0, _CCF,
367
+ 0,
368
+ [_O],
369
+ [() => ObjectiveResourceFilterList]
370
+ ];
371
+ var CommonControlMappingDetails$ = [3, n0, _CCMD,
372
+ 0,
373
+ [_CCA],
374
+ [0], 1
375
+ ];
376
+ var CommonControlSummary$ = [3, n0, _CCS,
377
+ 0,
378
+ [_A, _N, _D, _Do, _Ob, _CT, _LUT],
379
+ [0, 0, 0, () => AssociatedDomainSummary$, () => AssociatedObjectiveSummary$, 4, 4], 7
380
+ ];
381
+ var ControlFilter$ = [3, n0, _CF,
382
+ 0,
383
+ [_I, _GP],
384
+ [() => ImplementationFilter$, 64 | 0]
385
+ ];
386
+ var ControlMapping$ = [3, n0, _CM,
387
+ 0,
388
+ [_CA, _MT, _Ma],
389
+ [0, 0, () => Mapping$], 3
390
+ ];
391
+ var ControlMappingFilter$ = [3, n0, _CMF,
392
+ 0,
393
+ [_CAo, _CCAo, _MTa],
394
+ [64 | 0, 64 | 0, 64 | 0]
395
+ ];
396
+ var ControlParameter$ = [3, n0, _CP,
397
+ 0,
398
+ [_N, _R],
399
+ [0, 0], 1
400
+ ];
401
+ var ControlSummary$ = [3, n0, _CS,
402
+ 0,
403
+ [_A, _N, _D, _Al, _B, _S, _PRS, _Im, _CT, _GR, _GP],
404
+ [0, 0, 0, 64 | 0, 0, 0, 0, () => ImplementationSummary$, 4, 64 | 0, 64 | 0], 3
405
+ ];
406
+ var DomainResourceFilter$ = [3, n0, _DRF,
407
+ 0,
408
+ [_A],
409
+ [0]
410
+ ];
411
+ var DomainSummary$ = [3, n0, _DS,
412
+ 0,
413
+ [_A, _N, _D, _CT, _LUT],
414
+ [0, 0, 0, 4, 4], 5
415
+ ];
416
+ var FrameworkMappingDetails$ = [3, n0, _FMD,
417
+ 0,
418
+ [_N, _It],
419
+ [0, 0], 2
420
+ ];
421
+ var GetControlRequest$ = [3, n0, _GCR,
422
+ 0,
423
+ [_CA],
424
+ [0], 1
425
+ ];
426
+ var GetControlResponse$ = [3, n0, _GCRe,
427
+ 0,
428
+ [_A, _N, _D, _B, _RC, _Al, _S, _Im, _PRS, _P, _CT, _GR, _GP],
429
+ [0, 0, 0, 0, () => RegionConfiguration$, 64 | 0, 0, () => ImplementationDetails$, 0, () => ControlParameters, 4, 64 | 0, 64 | 0], 5
430
+ ];
431
+ var ImplementationDetails$ = [3, n0, _ID,
432
+ 0,
433
+ [_T, _Id],
434
+ [0, 0], 1
435
+ ];
436
+ var ImplementationFilter$ = [3, n0, _IF,
437
+ 0,
438
+ [_Ty, _Ide],
439
+ [64 | 0, 64 | 0]
440
+ ];
441
+ var ImplementationSummary$ = [3, n0, _IS,
442
+ 0,
443
+ [_T, _Id],
444
+ [0, 0], 1
445
+ ];
446
+ var ListCommonControlsRequest$ = [3, n0, _LCCR,
447
+ 0,
448
+ [_MR, _NT, _CCF],
449
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], () => CommonControlFilter$]
450
+ ];
451
+ var ListCommonControlsResponse$ = [3, n0, _LCCRi,
452
+ 0,
453
+ [_CC, _NT],
454
+ [() => CommonControlSummaryList, 0], 1
455
+ ];
456
+ var ListControlMappingsRequest$ = [3, n0, _LCMR,
457
+ 0,
458
+ [_NT, _MR, _F],
459
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], () => ControlMappingFilter$]
460
+ ];
461
+ var ListControlMappingsResponse$ = [3, n0, _LCMRi,
462
+ 0,
463
+ [_CMo, _NT],
464
+ [() => ControlMappings, 0], 1
465
+ ];
466
+ var ListControlsRequest$ = [3, n0, _LCR,
467
+ 0,
468
+ [_NT, _MR, _F],
469
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], () => ControlFilter$]
470
+ ];
471
+ var ListControlsResponse$ = [3, n0, _LCRi,
472
+ 0,
473
+ [_C, _NT],
474
+ [() => Controls, 0], 1
475
+ ];
476
+ var ListDomainsRequest$ = [3, n0, _LDR,
477
+ 0,
478
+ [_MR, _NT],
479
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
480
+ ];
481
+ var ListDomainsResponse$ = [3, n0, _LDRi,
482
+ 0,
483
+ [_Dom, _NT],
484
+ [() => DomainSummaryList, 0], 1
485
+ ];
486
+ var ListObjectivesRequest$ = [3, n0, _LOR,
487
+ 0,
488
+ [_MR, _NT, _OF],
489
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], () => ObjectiveFilter$]
490
+ ];
491
+ var ListObjectivesResponse$ = [3, n0, _LORi,
492
+ 0,
493
+ [_O, _NT],
494
+ [() => ObjectiveSummaryList, 0], 1
495
+ ];
496
+ var ObjectiveFilter$ = [3, n0, _OF,
497
+ 0,
498
+ [_Dom],
499
+ [() => DomainResourceFilterList]
500
+ ];
501
+ var ObjectiveResourceFilter$ = [3, n0, _ORF,
502
+ 0,
503
+ [_A],
504
+ [0]
505
+ ];
506
+ var ObjectiveSummary$ = [3, n0, _OS,
507
+ 0,
508
+ [_A, _N, _D, _Do, _CT, _LUT],
509
+ [0, 0, 0, () => AssociatedDomainSummary$, 4, 4], 6
510
+ ];
511
+ var RegionConfiguration$ = [3, n0, _RC,
512
+ 0,
513
+ [_Sc, _DR],
514
+ [0, 64 | 0], 1
515
+ ];
516
+ var RelatedControlMappingDetails$ = [3, n0, _RCMD,
517
+ 0,
518
+ [_RT, _CA],
519
+ [0, 0], 1
520
+ ];
521
+ var CommonControlSummaryList = [1, n0, _CCSL,
522
+ 0, () => CommonControlSummary$
523
+ ];
524
+ var ControlMappings = [1, n0, _CMo,
525
+ 0, () => ControlMapping$
526
+ ];
527
+ var ControlParameters = [1, n0, _CPo,
528
+ 0, () => ControlParameter$
529
+ ];
530
+ var Controls = [1, n0, _C,
531
+ 0, () => ControlSummary$
532
+ ];
533
+ var DomainResourceFilterList = [1, n0, _DRFL,
534
+ 0, () => DomainResourceFilter$
535
+ ];
536
+ var DomainSummaryList = [1, n0, _DSL,
537
+ 0, () => DomainSummary$
538
+ ];
539
+ var ObjectiveResourceFilterList = [1, n0, _ORFL,
540
+ 0, () => ObjectiveResourceFilter$
541
+ ];
542
+ var ObjectiveSummaryList = [1, n0, _OSL,
543
+ 0, () => ObjectiveSummary$
544
+ ];
545
+ var Mapping$ = [4, n0, _Ma,
546
+ 0,
547
+ [_Fr, _CCo, _RCe],
548
+ [() => FrameworkMappingDetails$, () => CommonControlMappingDetails$, () => RelatedControlMappingDetails$]
549
+ ];
550
+ var GetControl$ = [9, n0, _GC,
551
+ { [_h]: ["POST", "/get-control", 200] }, () => GetControlRequest$, () => GetControlResponse$
552
+ ];
553
+ var ListCommonControls$ = [9, n0, _LCC,
554
+ { [_h]: ["POST", "/common-controls", 200] }, () => ListCommonControlsRequest$, () => ListCommonControlsResponse$
555
+ ];
556
+ var ListControlMappings$ = [9, n0, _LCM,
557
+ { [_h]: ["POST", "/list-control-mappings", 200] }, () => ListControlMappingsRequest$, () => ListControlMappingsResponse$
558
+ ];
559
+ var ListControls$ = [9, n0, _LC,
560
+ { [_h]: ["POST", "/list-controls", 200] }, () => ListControlsRequest$, () => ListControlsResponse$
561
+ ];
562
+ var ListDomains$ = [9, n0, _LD,
563
+ { [_h]: ["POST", "/domains", 200] }, () => ListDomainsRequest$, () => ListDomainsResponse$
564
+ ];
565
+ var ListObjectives$ = [9, n0, _LO,
566
+ { [_h]: ["POST", "/objectives", 200] }, () => ListObjectivesRequest$, () => ListObjectivesResponse$
567
+ ];
568
+
569
+ const getRuntimeConfig$1 = (config) => {
570
+ return {
571
+ apiVersion: "2018-05-10",
572
+ base64Decoder: config?.base64Decoder ?? fromBase64,
573
+ base64Encoder: config?.base64Encoder ?? toBase64,
574
+ disableHostPrefix: config?.disableHostPrefix ?? false,
575
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
576
+ extensions: config?.extensions ?? [],
577
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultControlCatalogHttpAuthSchemeProvider,
578
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
579
+ {
580
+ schemeId: "aws.auth#sigv4",
581
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
582
+ signer: new AwsSdkSigV4Signer(),
583
+ },
584
+ ],
585
+ logger: config?.logger ?? new NoOpLogger(),
586
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
587
+ protocolSettings: config?.protocolSettings ?? {
588
+ defaultNamespace: "com.amazonaws.controlcatalog",
589
+ errorTypeRegistries,
590
+ version: "2018-05-10",
591
+ serviceTarget: "ControlCatalog",
592
+ },
593
+ serviceId: config?.serviceId ?? "ControlCatalog",
594
+ urlParser: config?.urlParser ?? parseUrl,
595
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
596
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
597
+ };
598
+ };
599
+
600
+ const getRuntimeConfig = (config) => {
601
+ emitWarningIfUnsupportedVersion(process.version);
602
+ const defaultsMode = resolveDefaultsModeConfig(config);
603
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
604
+ const clientSharedValues = getRuntimeConfig$1(config);
605
+ emitWarningIfUnsupportedVersion$1(process.version);
606
+ const loaderConfig = {
607
+ profile: config?.profile,
608
+ logger: clientSharedValues.logger,
609
+ };
610
+ return {
611
+ ...clientSharedValues,
612
+ ...config,
613
+ runtime: "node",
614
+ defaultsMode,
615
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
616
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
617
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
618
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
619
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
620
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
621
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
622
+ retryMode: config?.retryMode ??
623
+ loadConfig({
624
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
625
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
626
+ }, config),
627
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
628
+ streamCollector: config?.streamCollector ?? streamCollector,
629
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
630
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
631
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
632
+ };
633
+ };
634
+
34
635
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
636
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
637
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -247,21 +848,74 @@ const ControlRelationType = {
247
848
  MUTUALLY_EXCLUSIVE: "MUTUALLY_EXCLUSIVE",
248
849
  };
249
850
 
851
+ exports.AccessDeniedException = AccessDeniedException;
852
+ exports.AccessDeniedException$ = AccessDeniedException$;
853
+ exports.AssociatedDomainSummary$ = AssociatedDomainSummary$;
854
+ exports.AssociatedObjectiveSummary$ = AssociatedObjectiveSummary$;
855
+ exports.CommonControlFilter$ = CommonControlFilter$;
856
+ exports.CommonControlMappingDetails$ = CommonControlMappingDetails$;
857
+ exports.CommonControlSummary$ = CommonControlSummary$;
250
858
  exports.ControlBehavior = ControlBehavior;
251
859
  exports.ControlCatalog = ControlCatalog;
252
860
  exports.ControlCatalogClient = ControlCatalogClient;
861
+ exports.ControlCatalogServiceException = ControlCatalogServiceException;
862
+ exports.ControlCatalogServiceException$ = ControlCatalogServiceException$;
863
+ exports.ControlFilter$ = ControlFilter$;
864
+ exports.ControlMapping$ = ControlMapping$;
865
+ exports.ControlMappingFilter$ = ControlMappingFilter$;
866
+ exports.ControlParameter$ = ControlParameter$;
253
867
  exports.ControlParameterRequirement = ControlParameterRequirement;
254
868
  exports.ControlRelationType = ControlRelationType;
255
869
  exports.ControlScope = ControlScope;
256
870
  exports.ControlSeverity = ControlSeverity;
871
+ exports.ControlSummary$ = ControlSummary$;
872
+ exports.DomainResourceFilter$ = DomainResourceFilter$;
873
+ exports.DomainSummary$ = DomainSummary$;
874
+ exports.FrameworkMappingDetails$ = FrameworkMappingDetails$;
875
+ exports.GetControl$ = GetControl$;
257
876
  exports.GetControlCommand = GetControlCommand;
877
+ exports.GetControlRequest$ = GetControlRequest$;
878
+ exports.GetControlResponse$ = GetControlResponse$;
879
+ exports.ImplementationDetails$ = ImplementationDetails$;
880
+ exports.ImplementationFilter$ = ImplementationFilter$;
881
+ exports.ImplementationSummary$ = ImplementationSummary$;
882
+ exports.InternalServerException = InternalServerException;
883
+ exports.InternalServerException$ = InternalServerException$;
884
+ exports.ListCommonControls$ = ListCommonControls$;
258
885
  exports.ListCommonControlsCommand = ListCommonControlsCommand;
886
+ exports.ListCommonControlsRequest$ = ListCommonControlsRequest$;
887
+ exports.ListCommonControlsResponse$ = ListCommonControlsResponse$;
888
+ exports.ListControlMappings$ = ListControlMappings$;
259
889
  exports.ListControlMappingsCommand = ListControlMappingsCommand;
890
+ exports.ListControlMappingsRequest$ = ListControlMappingsRequest$;
891
+ exports.ListControlMappingsResponse$ = ListControlMappingsResponse$;
892
+ exports.ListControls$ = ListControls$;
260
893
  exports.ListControlsCommand = ListControlsCommand;
894
+ exports.ListControlsRequest$ = ListControlsRequest$;
895
+ exports.ListControlsResponse$ = ListControlsResponse$;
896
+ exports.ListDomains$ = ListDomains$;
261
897
  exports.ListDomainsCommand = ListDomainsCommand;
898
+ exports.ListDomainsRequest$ = ListDomainsRequest$;
899
+ exports.ListDomainsResponse$ = ListDomainsResponse$;
900
+ exports.ListObjectives$ = ListObjectives$;
262
901
  exports.ListObjectivesCommand = ListObjectivesCommand;
902
+ exports.ListObjectivesRequest$ = ListObjectivesRequest$;
903
+ exports.ListObjectivesResponse$ = ListObjectivesResponse$;
904
+ exports.Mapping$ = Mapping$;
263
905
  exports.MappingType = MappingType;
906
+ exports.ObjectiveFilter$ = ObjectiveFilter$;
907
+ exports.ObjectiveResourceFilter$ = ObjectiveResourceFilter$;
908
+ exports.ObjectiveSummary$ = ObjectiveSummary$;
264
909
  exports.ParameterRequirementSummary = ParameterRequirementSummary;
910
+ exports.RegionConfiguration$ = RegionConfiguration$;
911
+ exports.RelatedControlMappingDetails$ = RelatedControlMappingDetails$;
912
+ exports.ResourceNotFoundException = ResourceNotFoundException;
913
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
914
+ exports.ThrottlingException = ThrottlingException;
915
+ exports.ThrottlingException$ = ThrottlingException$;
916
+ exports.ValidationException = ValidationException;
917
+ exports.ValidationException$ = ValidationException$;
918
+ exports.errorTypeRegistries = errorTypeRegistries;
265
919
  exports.paginateListCommonControls = paginateListCommonControls;
266
920
  exports.paginateListControlMappings = paginateListControlMappings;
267
921
  exports.paginateListControls = paginateListControls;