@aws-sdk/client-route53profiles 3.1075.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, defaultRoute53ProfilesHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateProfile$, AssociateResourceToProfile$, CreateProfile$, DeleteProfile$, DisassociateProfile$, DisassociateResourceFromProfile$, GetProfileAssociation$, GetProfile$, GetProfileResourceAssociation$, ListProfileAssociations$, ListProfileResourceAssociations$, ListProfiles$, ListTagsForResource$, TagResource$, UntagResource$, UpdateProfileResourceAssociation$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { Route53ProfilesServiceException } = require("./models/Route53ProfilesServiceException");
18
- exports.Route53ProfilesServiceException = Route53ProfilesServiceException;
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 defaultRoute53ProfilesHttpAuthSchemeParametersProvider = 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: "route53profiles",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultRoute53ProfilesHttpAuthSchemeProvider = (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,709 @@ 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://route53profiles-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://route53profiles-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://route53profiles.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://route53profiles.{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 Route53ProfilesServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, Route53ProfilesServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends Route53ProfilesServiceException {
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 ConflictException extends Route53ProfilesServiceException {
154
+ name = "ConflictException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class InvalidParameterException extends Route53ProfilesServiceException {
168
+ name = "InvalidParameterException";
169
+ $fault = "client";
170
+ Message;
171
+ FieldName;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InvalidParameterException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
179
+ this.Message = opts.Message;
180
+ this.FieldName = opts.FieldName;
181
+ }
182
+ }
183
+ class LimitExceededException extends Route53ProfilesServiceException {
184
+ name = "LimitExceededException";
185
+ $fault = "client";
186
+ Message;
187
+ ResourceType;
188
+ constructor(opts) {
189
+ super({
190
+ name: "LimitExceededException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
195
+ this.Message = opts.Message;
196
+ this.ResourceType = opts.ResourceType;
197
+ }
198
+ }
199
+ class ResourceExistsException extends Route53ProfilesServiceException {
200
+ name = "ResourceExistsException";
201
+ $fault = "client";
202
+ Message;
203
+ ResourceType;
204
+ constructor(opts) {
205
+ super({
206
+ name: "ResourceExistsException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, ResourceExistsException.prototype);
211
+ this.Message = opts.Message;
212
+ this.ResourceType = opts.ResourceType;
213
+ }
214
+ }
215
+ class ResourceNotFoundException extends Route53ProfilesServiceException {
216
+ name = "ResourceNotFoundException";
217
+ $fault = "client";
218
+ Message;
219
+ ResourceType;
220
+ constructor(opts) {
221
+ super({
222
+ name: "ResourceNotFoundException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
227
+ this.Message = opts.Message;
228
+ this.ResourceType = opts.ResourceType;
229
+ }
230
+ }
231
+ class ThrottlingException extends Route53ProfilesServiceException {
232
+ name = "ThrottlingException";
233
+ $fault = "client";
234
+ Message;
235
+ constructor(opts) {
236
+ super({
237
+ name: "ThrottlingException",
238
+ $fault: "client",
239
+ ...opts,
240
+ });
241
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
242
+ this.Message = opts.Message;
243
+ }
244
+ }
245
+ class ValidationException extends Route53ProfilesServiceException {
246
+ name = "ValidationException";
247
+ $fault = "client";
248
+ Message;
249
+ constructor(opts) {
250
+ super({
251
+ name: "ValidationException",
252
+ $fault: "client",
253
+ ...opts,
254
+ });
255
+ Object.setPrototypeOf(this, ValidationException.prototype);
256
+ this.Message = opts.Message;
257
+ }
258
+ }
259
+ class InternalServiceErrorException extends Route53ProfilesServiceException {
260
+ name = "InternalServiceErrorException";
261
+ $fault = "client";
262
+ Message;
263
+ constructor(opts) {
264
+ super({
265
+ name: "InternalServiceErrorException",
266
+ $fault: "client",
267
+ ...opts,
268
+ });
269
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
270
+ this.Message = opts.Message;
271
+ }
272
+ }
273
+ class InvalidNextTokenException extends Route53ProfilesServiceException {
274
+ name = "InvalidNextTokenException";
275
+ $fault = "client";
276
+ Message;
277
+ constructor(opts) {
278
+ super({
279
+ name: "InvalidNextTokenException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
284
+ this.Message = opts.Message;
285
+ }
286
+ }
287
+
288
+ const _A = "Arn";
289
+ const _ADE = "AccessDeniedException";
290
+ const _AP = "AssociateProfile";
291
+ const _APR = "AssociateProfileRequest";
292
+ const _APRs = "AssociateProfileResponse";
293
+ const _ARTP = "AssociateResourceToProfile";
294
+ const _ARTPR = "AssociateResourceToProfileRequest";
295
+ const _ARTPRs = "AssociateResourceToProfileResponse";
296
+ const _CE = "ConflictException";
297
+ const _CP = "CreateProfile";
298
+ const _CPR = "CreateProfileRequest";
299
+ const _CPRr = "CreateProfileResponse";
300
+ const _CT = "ClientToken";
301
+ const _CTr = "CreationTime";
302
+ const _DP = "DeleteProfile";
303
+ const _DPR = "DeleteProfileRequest";
304
+ const _DPRe = "DeleteProfileResponse";
305
+ const _DPRi = "DisassociateProfileRequest";
306
+ const _DPRis = "DisassociateProfileResponse";
307
+ const _DPi = "DisassociateProfile";
308
+ const _DRFP = "DisassociateResourceFromProfile";
309
+ const _DRFPR = "DisassociateResourceFromProfileRequest";
310
+ const _DRFPRi = "DisassociateResourceFromProfileResponse";
311
+ const _FN = "FieldName";
312
+ const _GP = "GetProfile";
313
+ const _GPA = "GetProfileAssociation";
314
+ const _GPAR = "GetProfileAssociationRequest";
315
+ const _GPARe = "GetProfileAssociationResponse";
316
+ const _GPR = "GetProfileRequest";
317
+ const _GPRA = "GetProfileResourceAssociation";
318
+ const _GPRAR = "GetProfileResourceAssociationRequest";
319
+ const _GPRARe = "GetProfileResourceAssociationResponse";
320
+ const _GPRe = "GetProfileResponse";
321
+ const _I = "Id";
322
+ const _INTE = "InvalidNextTokenException";
323
+ const _IPE = "InvalidParameterException";
324
+ const _ISEE = "InternalServiceErrorException";
325
+ const _K = "Key";
326
+ const _LEE = "LimitExceededException";
327
+ const _LP = "ListProfiles";
328
+ const _LPA = "ListProfileAssociations";
329
+ const _LPAR = "ListProfileAssociationsRequest";
330
+ const _LPARi = "ListProfileAssociationsResponse";
331
+ const _LPR = "ListProfilesRequest";
332
+ const _LPRA = "ListProfileResourceAssociations";
333
+ const _LPRAR = "ListProfileResourceAssociationsRequest";
334
+ const _LPRARi = "ListProfileResourceAssociationsResponse";
335
+ const _LPRi = "ListProfilesResponse";
336
+ const _LTFR = "ListTagsForResource";
337
+ const _LTFRR = "ListTagsForResourceRequest";
338
+ const _LTFRRi = "ListTagsForResourceResponse";
339
+ const _M = "Message";
340
+ const _MR = "MaxResults";
341
+ const _MT = "ModificationTime";
342
+ const _N = "Name";
343
+ const _NT = "NextToken";
344
+ const _OI = "OwnerId";
345
+ const _P = "Profile";
346
+ const _PA = "ProfileAssociation";
347
+ const _PAI = "ProfileAssociationId";
348
+ const _PAr = "ProfileAssociations";
349
+ const _PI = "ProfileId";
350
+ const _PRA = "ProfileResourceAssociation";
351
+ const _PRAI = "ProfileResourceAssociationId";
352
+ const _PRAr = "ProfileResourceAssociations";
353
+ const _PS = "ProfileSummaries";
354
+ const _PSL = "ProfileSummaryList";
355
+ const _PSr = "ProfileSummary";
356
+ const _RA = "ResourceArn";
357
+ const _REE = "ResourceExistsException";
358
+ const _RI = "ResourceId";
359
+ const _RNFE = "ResourceNotFoundException";
360
+ const _RP = "ResourceProperties";
361
+ const _RT = "ResourceType";
362
+ const _S = "Status";
363
+ const _SM = "StatusMessage";
364
+ const _SS = "ShareStatus";
365
+ const _T = "Tags";
366
+ const _TE = "ThrottlingException";
367
+ const _TK = "TagKeys";
368
+ const _TL = "TagList";
369
+ const _TR = "TagResource";
370
+ const _TRR = "TagResourceRequest";
371
+ const _TRRa = "TagResourceResponse";
372
+ const _Ta = "Tag";
373
+ const _UPRA = "UpdateProfileResourceAssociation";
374
+ const _UPRAR = "UpdateProfileResourceAssociationRequest";
375
+ const _UPRARp = "UpdateProfileResourceAssociationResponse";
376
+ const _UR = "UntagResource";
377
+ const _URR = "UntagResourceRequest";
378
+ const _URRn = "UntagResourceResponse";
379
+ const _V = "Value";
380
+ const _VE = "ValidationException";
381
+ const _c = "client";
382
+ const _e = "error";
383
+ const _h = "http";
384
+ const _hQ = "httpQuery";
385
+ const _mR = "maxResults";
386
+ const _nT = "nextToken";
387
+ const _pI = "profileId";
388
+ const _rI = "resourceId";
389
+ const _rT = "resourceType";
390
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.route53profiles";
391
+ const _tK = "tagKeys";
392
+ const n0 = "com.amazonaws.route53profiles";
393
+ const _s_registry = TypeRegistry.for(_s);
394
+ var Route53ProfilesServiceException$ = [-3, _s, "Route53ProfilesServiceException", 0, [], []];
395
+ _s_registry.registerError(Route53ProfilesServiceException$, Route53ProfilesServiceException);
396
+ const n0_registry = TypeRegistry.for(n0);
397
+ var AccessDeniedException$ = [-3, n0, _ADE,
398
+ { [_e]: _c },
399
+ [_M],
400
+ [0]
401
+ ];
402
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
403
+ var ConflictException$ = [-3, n0, _CE,
404
+ { [_e]: _c },
405
+ [_M],
406
+ [0]
407
+ ];
408
+ n0_registry.registerError(ConflictException$, ConflictException);
409
+ var InternalServiceErrorException$ = [-3, n0, _ISEE,
410
+ { [_e]: _c },
411
+ [_M],
412
+ [0]
413
+ ];
414
+ n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
415
+ var InvalidNextTokenException$ = [-3, n0, _INTE,
416
+ { [_e]: _c },
417
+ [_M],
418
+ [0]
419
+ ];
420
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
421
+ var InvalidParameterException$ = [-3, n0, _IPE,
422
+ { [_e]: _c },
423
+ [_M, _FN],
424
+ [0, 0], 1
425
+ ];
426
+ n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
427
+ var LimitExceededException$ = [-3, n0, _LEE,
428
+ { [_e]: _c },
429
+ [_M, _RT],
430
+ [0, 0]
431
+ ];
432
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
433
+ var ResourceExistsException$ = [-3, n0, _REE,
434
+ { [_e]: _c },
435
+ [_M, _RT],
436
+ [0, 0]
437
+ ];
438
+ n0_registry.registerError(ResourceExistsException$, ResourceExistsException);
439
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
440
+ { [_e]: _c },
441
+ [_M, _RT],
442
+ [0, 0]
443
+ ];
444
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
445
+ var ThrottlingException$ = [-3, n0, _TE,
446
+ { [_e]: _c },
447
+ [_M],
448
+ [0]
449
+ ];
450
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
451
+ var ValidationException$ = [-3, n0, _VE,
452
+ { [_e]: _c },
453
+ [_M],
454
+ [0]
455
+ ];
456
+ n0_registry.registerError(ValidationException$, ValidationException);
457
+ const errorTypeRegistries = [
458
+ _s_registry,
459
+ n0_registry,
460
+ ];
461
+ var AssociateProfileRequest$ = [3, n0, _APR,
462
+ 0,
463
+ [_PI, _RI, _N, _T],
464
+ [0, 0, 0, () => TagList], 3
465
+ ];
466
+ var AssociateProfileResponse$ = [3, n0, _APRs,
467
+ 0,
468
+ [_PA],
469
+ [() => ProfileAssociation$]
470
+ ];
471
+ var AssociateResourceToProfileRequest$ = [3, n0, _ARTPR,
472
+ 0,
473
+ [_PI, _RA, _N, _RP],
474
+ [0, 0, 0, 0], 3
475
+ ];
476
+ var AssociateResourceToProfileResponse$ = [3, n0, _ARTPRs,
477
+ 0,
478
+ [_PRA],
479
+ [() => ProfileResourceAssociation$]
480
+ ];
481
+ var CreateProfileRequest$ = [3, n0, _CPR,
482
+ 0,
483
+ [_N, _CT, _T],
484
+ [0, [0, 4], () => TagList], 1
485
+ ];
486
+ var CreateProfileResponse$ = [3, n0, _CPRr,
487
+ 0,
488
+ [_P],
489
+ [() => Profile$]
490
+ ];
491
+ var DeleteProfileRequest$ = [3, n0, _DPR,
492
+ 0,
493
+ [_PI],
494
+ [[0, 1]], 1
495
+ ];
496
+ var DeleteProfileResponse$ = [3, n0, _DPRe,
497
+ 0,
498
+ [_P],
499
+ [() => Profile$]
500
+ ];
501
+ var DisassociateProfileRequest$ = [3, n0, _DPRi,
502
+ 0,
503
+ [_PI, _RI],
504
+ [[0, 1], [0, 1]], 2
505
+ ];
506
+ var DisassociateProfileResponse$ = [3, n0, _DPRis,
507
+ 0,
508
+ [_PA],
509
+ [() => ProfileAssociation$]
510
+ ];
511
+ var DisassociateResourceFromProfileRequest$ = [3, n0, _DRFPR,
512
+ 0,
513
+ [_PI, _RA],
514
+ [[0, 1], [0, 1]], 2
515
+ ];
516
+ var DisassociateResourceFromProfileResponse$ = [3, n0, _DRFPRi,
517
+ 0,
518
+ [_PRA],
519
+ [() => ProfileResourceAssociation$]
520
+ ];
521
+ var GetProfileAssociationRequest$ = [3, n0, _GPAR,
522
+ 0,
523
+ [_PAI],
524
+ [[0, 1]], 1
525
+ ];
526
+ var GetProfileAssociationResponse$ = [3, n0, _GPARe,
527
+ 0,
528
+ [_PA],
529
+ [() => ProfileAssociation$]
530
+ ];
531
+ var GetProfileRequest$ = [3, n0, _GPR,
532
+ 0,
533
+ [_PI],
534
+ [[0, 1]], 1
535
+ ];
536
+ var GetProfileResourceAssociationRequest$ = [3, n0, _GPRAR,
537
+ 0,
538
+ [_PRAI],
539
+ [[0, 1]], 1
540
+ ];
541
+ var GetProfileResourceAssociationResponse$ = [3, n0, _GPRARe,
542
+ 0,
543
+ [_PRA],
544
+ [() => ProfileResourceAssociation$]
545
+ ];
546
+ var GetProfileResponse$ = [3, n0, _GPRe,
547
+ 0,
548
+ [_P],
549
+ [() => Profile$]
550
+ ];
551
+ var ListProfileAssociationsRequest$ = [3, n0, _LPAR,
552
+ 0,
553
+ [_RI, _PI, _MR, _NT],
554
+ [[0, { [_hQ]: _rI }], [0, { [_hQ]: _pI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
555
+ ];
556
+ var ListProfileAssociationsResponse$ = [3, n0, _LPARi,
557
+ 0,
558
+ [_PAr, _NT],
559
+ [() => ProfileAssociations, 0]
560
+ ];
561
+ var ListProfileResourceAssociationsRequest$ = [3, n0, _LPRAR,
562
+ 0,
563
+ [_PI, _RT, _MR, _NT],
564
+ [[0, 1], [0, { [_hQ]: _rT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
565
+ ];
566
+ var ListProfileResourceAssociationsResponse$ = [3, n0, _LPRARi,
567
+ 0,
568
+ [_PRAr, _NT],
569
+ [() => ProfileResourceAssociations, 0]
570
+ ];
571
+ var ListProfilesRequest$ = [3, n0, _LPR,
572
+ 0,
573
+ [_MR, _NT],
574
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
575
+ ];
576
+ var ListProfilesResponse$ = [3, n0, _LPRi,
577
+ 0,
578
+ [_PS, _NT],
579
+ [() => ProfileSummaryList, 0]
580
+ ];
581
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
582
+ 0,
583
+ [_RA],
584
+ [[0, 1]], 1
585
+ ];
586
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
587
+ 0,
588
+ [_T],
589
+ [128 | 0], 1
590
+ ];
591
+ var Profile$ = [3, n0, _P,
592
+ 0,
593
+ [_I, _A, _N, _OI, _S, _SM, _SS, _CTr, _MT, _CT],
594
+ [0, 0, 0, 0, 0, 0, 0, 4, 4, 0]
595
+ ];
596
+ var ProfileAssociation$ = [3, n0, _PA,
597
+ 0,
598
+ [_I, _N, _OI, _PI, _RI, _S, _SM, _CTr, _MT],
599
+ [0, 0, 0, 0, 0, 0, 0, 4, 4]
600
+ ];
601
+ var ProfileResourceAssociation$ = [3, n0, _PRA,
602
+ 0,
603
+ [_I, _N, _OI, _PI, _RA, _RT, _RP, _S, _SM, _CTr, _MT],
604
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4]
605
+ ];
606
+ var ProfileSummary$ = [3, n0, _PSr,
607
+ 0,
608
+ [_I, _A, _N, _SS],
609
+ [0, 0, 0, 0]
610
+ ];
611
+ var Tag$ = [3, n0, _Ta,
612
+ 0,
613
+ [_K, _V],
614
+ [0, 0], 2
615
+ ];
616
+ var TagResourceRequest$ = [3, n0, _TRR,
617
+ 0,
618
+ [_RA, _T],
619
+ [[0, 1], 128 | 0], 2
620
+ ];
621
+ var TagResourceResponse$ = [3, n0, _TRRa,
622
+ 0,
623
+ [],
624
+ []
625
+ ];
626
+ var UntagResourceRequest$ = [3, n0, _URR,
627
+ 0,
628
+ [_RA, _TK],
629
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
630
+ ];
631
+ var UntagResourceResponse$ = [3, n0, _URRn,
632
+ 0,
633
+ [],
634
+ []
635
+ ];
636
+ var UpdateProfileResourceAssociationRequest$ = [3, n0, _UPRAR,
637
+ 0,
638
+ [_PRAI, _N, _RP],
639
+ [[0, 1], 0, 0], 1
640
+ ];
641
+ var UpdateProfileResourceAssociationResponse$ = [3, n0, _UPRARp,
642
+ 0,
643
+ [_PRA],
644
+ [() => ProfileResourceAssociation$]
645
+ ];
646
+ var ProfileAssociations = [1, n0, _PAr,
647
+ 0, () => ProfileAssociation$
648
+ ];
649
+ var ProfileResourceAssociations = [1, n0, _PRAr,
650
+ 0, () => ProfileResourceAssociation$
651
+ ];
652
+ var ProfileSummaryList = [1, n0, _PSL,
653
+ 0, () => ProfileSummary$
654
+ ];
655
+ var TagList = [1, n0, _TL,
656
+ 0, () => Tag$
657
+ ];
658
+ var AssociateProfile$ = [9, n0, _AP,
659
+ { [_h]: ["POST", "/profileassociation", 200] }, () => AssociateProfileRequest$, () => AssociateProfileResponse$
660
+ ];
661
+ var AssociateResourceToProfile$ = [9, n0, _ARTP,
662
+ { [_h]: ["POST", "/profileresourceassociation", 200] }, () => AssociateResourceToProfileRequest$, () => AssociateResourceToProfileResponse$
663
+ ];
664
+ var CreateProfile$ = [9, n0, _CP,
665
+ { [_h]: ["POST", "/profile", 200] }, () => CreateProfileRequest$, () => CreateProfileResponse$
666
+ ];
667
+ var DeleteProfile$ = [9, n0, _DP,
668
+ { [_h]: ["DELETE", "/profile/{ProfileId}", 200] }, () => DeleteProfileRequest$, () => DeleteProfileResponse$
669
+ ];
670
+ var DisassociateProfile$ = [9, n0, _DPi,
671
+ { [_h]: ["DELETE", "/profileassociation/Profileid/{ProfileId}/resourceid/{ResourceId}", 200] }, () => DisassociateProfileRequest$, () => DisassociateProfileResponse$
672
+ ];
673
+ var DisassociateResourceFromProfile$ = [9, n0, _DRFP,
674
+ { [_h]: ["DELETE", "/profileresourceassociation/profileid/{ProfileId}/resourcearn/{ResourceArn}", 200] }, () => DisassociateResourceFromProfileRequest$, () => DisassociateResourceFromProfileResponse$
675
+ ];
676
+ var GetProfile$ = [9, n0, _GP,
677
+ { [_h]: ["GET", "/profile/{ProfileId}", 200] }, () => GetProfileRequest$, () => GetProfileResponse$
678
+ ];
679
+ var GetProfileAssociation$ = [9, n0, _GPA,
680
+ { [_h]: ["GET", "/profileassociation/{ProfileAssociationId}", 200] }, () => GetProfileAssociationRequest$, () => GetProfileAssociationResponse$
681
+ ];
682
+ var GetProfileResourceAssociation$ = [9, n0, _GPRA,
683
+ { [_h]: ["GET", "/profileresourceassociation/{ProfileResourceAssociationId}", 200] }, () => GetProfileResourceAssociationRequest$, () => GetProfileResourceAssociationResponse$
684
+ ];
685
+ var ListProfileAssociations$ = [9, n0, _LPA,
686
+ { [_h]: ["GET", "/profileassociations", 200] }, () => ListProfileAssociationsRequest$, () => ListProfileAssociationsResponse$
687
+ ];
688
+ var ListProfileResourceAssociations$ = [9, n0, _LPRA,
689
+ { [_h]: ["GET", "/profileresourceassociations/profileid/{ProfileId}", 200] }, () => ListProfileResourceAssociationsRequest$, () => ListProfileResourceAssociationsResponse$
690
+ ];
691
+ var ListProfiles$ = [9, n0, _LP,
692
+ { [_h]: ["GET", "/profiles", 200] }, () => ListProfilesRequest$, () => ListProfilesResponse$
693
+ ];
694
+ var ListTagsForResource$ = [9, n0, _LTFR,
695
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
696
+ ];
697
+ var TagResource$ = [9, n0, _TR,
698
+ { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => TagResourceResponse$
699
+ ];
700
+ var UntagResource$ = [9, n0, _UR,
701
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
702
+ ];
703
+ var UpdateProfileResourceAssociation$ = [9, n0, _UPRA,
704
+ { [_h]: ["PATCH", "/profileresourceassociation/{ProfileResourceAssociationId}", 200] }, () => UpdateProfileResourceAssociationRequest$, () => UpdateProfileResourceAssociationResponse$
705
+ ];
706
+
707
+ const getRuntimeConfig$1 = (config) => {
708
+ return {
709
+ apiVersion: "2018-05-10",
710
+ base64Decoder: config?.base64Decoder ?? fromBase64,
711
+ base64Encoder: config?.base64Encoder ?? toBase64,
712
+ disableHostPrefix: config?.disableHostPrefix ?? false,
713
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
714
+ extensions: config?.extensions ?? [],
715
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRoute53ProfilesHttpAuthSchemeProvider,
716
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
717
+ {
718
+ schemeId: "aws.auth#sigv4",
719
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
720
+ signer: new AwsSdkSigV4Signer(),
721
+ },
722
+ ],
723
+ logger: config?.logger ?? new NoOpLogger(),
724
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
725
+ protocolSettings: config?.protocolSettings ?? {
726
+ defaultNamespace: "com.amazonaws.route53profiles",
727
+ errorTypeRegistries,
728
+ version: "2018-05-10",
729
+ serviceTarget: "Route53Profiles",
730
+ },
731
+ serviceId: config?.serviceId ?? "Route53Profiles",
732
+ urlParser: config?.urlParser ?? parseUrl,
733
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
734
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
735
+ };
736
+ };
737
+
738
+ const getRuntimeConfig = (config) => {
739
+ emitWarningIfUnsupportedVersion(process.version);
740
+ const defaultsMode = resolveDefaultsModeConfig(config);
741
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
742
+ const clientSharedValues = getRuntimeConfig$1(config);
743
+ emitWarningIfUnsupportedVersion$1(process.version);
744
+ const loaderConfig = {
745
+ profile: config?.profile,
746
+ logger: clientSharedValues.logger,
747
+ };
748
+ return {
749
+ ...clientSharedValues,
750
+ ...config,
751
+ runtime: "node",
752
+ defaultsMode,
753
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
754
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
755
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
756
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
757
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
758
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
759
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
760
+ retryMode: config?.retryMode ??
761
+ loadConfig({
762
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
763
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
764
+ }, config),
765
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
766
+ streamCollector: config?.streamCollector ?? streamCollector,
767
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
768
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
769
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
770
+ };
771
+ };
772
+
34
773
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
774
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
775
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -350,26 +1089,102 @@ const ShareStatus = {
350
1089
  SHARED_WITH_ME: "SHARED_WITH_ME",
351
1090
  };
352
1091
 
1092
+ exports.AccessDeniedException = AccessDeniedException;
1093
+ exports.AccessDeniedException$ = AccessDeniedException$;
1094
+ exports.AssociateProfile$ = AssociateProfile$;
353
1095
  exports.AssociateProfileCommand = AssociateProfileCommand;
1096
+ exports.AssociateProfileRequest$ = AssociateProfileRequest$;
1097
+ exports.AssociateProfileResponse$ = AssociateProfileResponse$;
1098
+ exports.AssociateResourceToProfile$ = AssociateResourceToProfile$;
354
1099
  exports.AssociateResourceToProfileCommand = AssociateResourceToProfileCommand;
1100
+ exports.AssociateResourceToProfileRequest$ = AssociateResourceToProfileRequest$;
1101
+ exports.AssociateResourceToProfileResponse$ = AssociateResourceToProfileResponse$;
1102
+ exports.ConflictException = ConflictException;
1103
+ exports.ConflictException$ = ConflictException$;
1104
+ exports.CreateProfile$ = CreateProfile$;
355
1105
  exports.CreateProfileCommand = CreateProfileCommand;
1106
+ exports.CreateProfileRequest$ = CreateProfileRequest$;
1107
+ exports.CreateProfileResponse$ = CreateProfileResponse$;
1108
+ exports.DeleteProfile$ = DeleteProfile$;
356
1109
  exports.DeleteProfileCommand = DeleteProfileCommand;
1110
+ exports.DeleteProfileRequest$ = DeleteProfileRequest$;
1111
+ exports.DeleteProfileResponse$ = DeleteProfileResponse$;
1112
+ exports.DisassociateProfile$ = DisassociateProfile$;
357
1113
  exports.DisassociateProfileCommand = DisassociateProfileCommand;
1114
+ exports.DisassociateProfileRequest$ = DisassociateProfileRequest$;
1115
+ exports.DisassociateProfileResponse$ = DisassociateProfileResponse$;
1116
+ exports.DisassociateResourceFromProfile$ = DisassociateResourceFromProfile$;
358
1117
  exports.DisassociateResourceFromProfileCommand = DisassociateResourceFromProfileCommand;
1118
+ exports.DisassociateResourceFromProfileRequest$ = DisassociateResourceFromProfileRequest$;
1119
+ exports.DisassociateResourceFromProfileResponse$ = DisassociateResourceFromProfileResponse$;
1120
+ exports.GetProfile$ = GetProfile$;
1121
+ exports.GetProfileAssociation$ = GetProfileAssociation$;
359
1122
  exports.GetProfileAssociationCommand = GetProfileAssociationCommand;
1123
+ exports.GetProfileAssociationRequest$ = GetProfileAssociationRequest$;
1124
+ exports.GetProfileAssociationResponse$ = GetProfileAssociationResponse$;
360
1125
  exports.GetProfileCommand = GetProfileCommand;
1126
+ exports.GetProfileRequest$ = GetProfileRequest$;
1127
+ exports.GetProfileResourceAssociation$ = GetProfileResourceAssociation$;
361
1128
  exports.GetProfileResourceAssociationCommand = GetProfileResourceAssociationCommand;
1129
+ exports.GetProfileResourceAssociationRequest$ = GetProfileResourceAssociationRequest$;
1130
+ exports.GetProfileResourceAssociationResponse$ = GetProfileResourceAssociationResponse$;
1131
+ exports.GetProfileResponse$ = GetProfileResponse$;
1132
+ exports.InternalServiceErrorException = InternalServiceErrorException;
1133
+ exports.InternalServiceErrorException$ = InternalServiceErrorException$;
1134
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1135
+ exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1136
+ exports.InvalidParameterException = InvalidParameterException;
1137
+ exports.InvalidParameterException$ = InvalidParameterException$;
1138
+ exports.LimitExceededException = LimitExceededException;
1139
+ exports.LimitExceededException$ = LimitExceededException$;
1140
+ exports.ListProfileAssociations$ = ListProfileAssociations$;
362
1141
  exports.ListProfileAssociationsCommand = ListProfileAssociationsCommand;
1142
+ exports.ListProfileAssociationsRequest$ = ListProfileAssociationsRequest$;
1143
+ exports.ListProfileAssociationsResponse$ = ListProfileAssociationsResponse$;
1144
+ exports.ListProfileResourceAssociations$ = ListProfileResourceAssociations$;
363
1145
  exports.ListProfileResourceAssociationsCommand = ListProfileResourceAssociationsCommand;
1146
+ exports.ListProfileResourceAssociationsRequest$ = ListProfileResourceAssociationsRequest$;
1147
+ exports.ListProfileResourceAssociationsResponse$ = ListProfileResourceAssociationsResponse$;
1148
+ exports.ListProfiles$ = ListProfiles$;
364
1149
  exports.ListProfilesCommand = ListProfilesCommand;
1150
+ exports.ListProfilesRequest$ = ListProfilesRequest$;
1151
+ exports.ListProfilesResponse$ = ListProfilesResponse$;
1152
+ exports.ListTagsForResource$ = ListTagsForResource$;
365
1153
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1154
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1155
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1156
+ exports.Profile$ = Profile$;
1157
+ exports.ProfileAssociation$ = ProfileAssociation$;
1158
+ exports.ProfileResourceAssociation$ = ProfileResourceAssociation$;
366
1159
  exports.ProfileStatus = ProfileStatus;
1160
+ exports.ProfileSummary$ = ProfileSummary$;
1161
+ exports.ResourceExistsException = ResourceExistsException;
1162
+ exports.ResourceExistsException$ = ResourceExistsException$;
1163
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1164
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
367
1165
  exports.Route53Profiles = Route53Profiles;
368
1166
  exports.Route53ProfilesClient = Route53ProfilesClient;
1167
+ exports.Route53ProfilesServiceException = Route53ProfilesServiceException;
1168
+ exports.Route53ProfilesServiceException$ = Route53ProfilesServiceException$;
369
1169
  exports.ShareStatus = ShareStatus;
1170
+ exports.Tag$ = Tag$;
1171
+ exports.TagResource$ = TagResource$;
370
1172
  exports.TagResourceCommand = TagResourceCommand;
1173
+ exports.TagResourceRequest$ = TagResourceRequest$;
1174
+ exports.TagResourceResponse$ = TagResourceResponse$;
1175
+ exports.ThrottlingException = ThrottlingException;
1176
+ exports.ThrottlingException$ = ThrottlingException$;
1177
+ exports.UntagResource$ = UntagResource$;
371
1178
  exports.UntagResourceCommand = UntagResourceCommand;
1179
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1180
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1181
+ exports.UpdateProfileResourceAssociation$ = UpdateProfileResourceAssociation$;
372
1182
  exports.UpdateProfileResourceAssociationCommand = UpdateProfileResourceAssociationCommand;
1183
+ exports.UpdateProfileResourceAssociationRequest$ = UpdateProfileResourceAssociationRequest$;
1184
+ exports.UpdateProfileResourceAssociationResponse$ = UpdateProfileResourceAssociationResponse$;
1185
+ exports.ValidationException = ValidationException;
1186
+ exports.ValidationException$ = ValidationException$;
1187
+ exports.errorTypeRegistries = errorTypeRegistries;
373
1188
  exports.paginateListProfileAssociations = paginateListProfileAssociations;
374
1189
  exports.paginateListProfileResourceAssociations = paginateListProfileResourceAssociations;
375
1190
  exports.paginateListProfiles = paginateListProfiles;