@aws-sdk/client-route53profiles 3.893.0 → 3.894.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.
Files changed (34) hide show
  1. package/dist-cjs/index.js +1479 -10
  2. package/package.json +6 -6
  3. package/dist-cjs/Route53Profiles.js +0 -43
  4. package/dist-cjs/Route53ProfilesClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/AssociateProfileCommand.js +0 -26
  7. package/dist-cjs/commands/AssociateResourceToProfileCommand.js +0 -26
  8. package/dist-cjs/commands/CreateProfileCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteProfileCommand.js +0 -26
  10. package/dist-cjs/commands/DisassociateProfileCommand.js +0 -26
  11. package/dist-cjs/commands/DisassociateResourceFromProfileCommand.js +0 -26
  12. package/dist-cjs/commands/GetProfileAssociationCommand.js +0 -26
  13. package/dist-cjs/commands/GetProfileCommand.js +0 -26
  14. package/dist-cjs/commands/GetProfileResourceAssociationCommand.js +0 -26
  15. package/dist-cjs/commands/ListProfileAssociationsCommand.js +0 -26
  16. package/dist-cjs/commands/ListProfileResourceAssociationsCommand.js +0 -26
  17. package/dist-cjs/commands/ListProfilesCommand.js +0 -26
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  19. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  20. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  21. package/dist-cjs/commands/UpdateProfileResourceAssociationCommand.js +0 -26
  22. package/dist-cjs/commands/index.js +0 -19
  23. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  24. package/dist-cjs/extensionConfiguration.js +0 -2
  25. package/dist-cjs/models/Route53ProfilesServiceException.js +0 -12
  26. package/dist-cjs/models/index.js +0 -4
  27. package/dist-cjs/models/models_0.js +0 -175
  28. package/dist-cjs/pagination/Interfaces.js +0 -2
  29. package/dist-cjs/pagination/ListProfileAssociationsPaginator.js +0 -7
  30. package/dist-cjs/pagination/ListProfileResourceAssociationsPaginator.js +0 -7
  31. package/dist-cjs/pagination/ListProfilesPaginator.js +0 -7
  32. package/dist-cjs/pagination/index.js +0 -7
  33. package/dist-cjs/protocols/Aws_restJson1.js +0 -711
  34. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1480 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Route53ProfilesServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./Route53ProfilesClient"), exports);
6
- tslib_1.__exportStar(require("./Route53Profiles"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var Route53ProfilesServiceException_1 = require("./models/Route53ProfilesServiceException");
11
- Object.defineProperty(exports, "Route53ProfilesServiceException", { enumerable: true, get: function () { return Route53ProfilesServiceException_1.Route53ProfilesServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AssociateProfileCommand: () => AssociateProfileCommand,
26
+ AssociateResourceToProfileCommand: () => AssociateResourceToProfileCommand,
27
+ ConflictException: () => ConflictException,
28
+ CreateProfileCommand: () => CreateProfileCommand,
29
+ DeleteProfileCommand: () => DeleteProfileCommand,
30
+ DisassociateProfileCommand: () => DisassociateProfileCommand,
31
+ DisassociateResourceFromProfileCommand: () => DisassociateResourceFromProfileCommand,
32
+ GetProfileAssociationCommand: () => GetProfileAssociationCommand,
33
+ GetProfileCommand: () => GetProfileCommand,
34
+ GetProfileResourceAssociationCommand: () => GetProfileResourceAssociationCommand,
35
+ InternalServiceErrorException: () => InternalServiceErrorException,
36
+ InvalidNextTokenException: () => InvalidNextTokenException,
37
+ InvalidParameterException: () => InvalidParameterException,
38
+ LimitExceededException: () => LimitExceededException,
39
+ ListProfileAssociationsCommand: () => ListProfileAssociationsCommand,
40
+ ListProfileResourceAssociationsCommand: () => ListProfileResourceAssociationsCommand,
41
+ ListProfilesCommand: () => ListProfilesCommand,
42
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
43
+ ProfileStatus: () => ProfileStatus,
44
+ ResourceExistsException: () => ResourceExistsException,
45
+ ResourceNotFoundException: () => ResourceNotFoundException,
46
+ Route53Profiles: () => Route53Profiles,
47
+ Route53ProfilesClient: () => Route53ProfilesClient,
48
+ Route53ProfilesServiceException: () => Route53ProfilesServiceException,
49
+ ShareStatus: () => ShareStatus,
50
+ TagResourceCommand: () => TagResourceCommand,
51
+ ThrottlingException: () => ThrottlingException,
52
+ UntagResourceCommand: () => UntagResourceCommand,
53
+ UpdateProfileResourceAssociationCommand: () => UpdateProfileResourceAssociationCommand,
54
+ ValidationException: () => ValidationException,
55
+ __Client: () => import_smithy_client.Client,
56
+ paginateListProfileAssociations: () => paginateListProfileAssociations,
57
+ paginateListProfileResourceAssociations: () => paginateListProfileResourceAssociations,
58
+ paginateListProfiles: () => paginateListProfiles
59
+ });
60
+ module.exports = __toCommonJS(index_exports);
61
+
62
+ // src/Route53ProfilesClient.ts
63
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
64
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
65
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
66
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
67
+ var import_config_resolver = require("@smithy/config-resolver");
68
+ var import_core = require("@smithy/core");
69
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
70
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
71
+ var import_middleware_retry = require("@smithy/middleware-retry");
72
+
73
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
74
+
75
+ // src/endpoint/EndpointParameters.ts
76
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
77
+ return Object.assign(options, {
78
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
79
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
80
+ defaultSigningName: "route53profiles"
81
+ });
82
+ }, "resolveClientEndpointParameters");
83
+ var commonParams = {
84
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
85
+ Endpoint: { type: "builtInParams", name: "endpoint" },
86
+ Region: { type: "builtInParams", name: "region" },
87
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
88
+ };
89
+
90
+ // src/Route53ProfilesClient.ts
91
+ var import_runtimeConfig = require("././runtimeConfig");
92
+
93
+ // src/runtimeExtensions.ts
94
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
95
+ var import_protocol_http = require("@smithy/protocol-http");
96
+ var import_smithy_client = require("@smithy/smithy-client");
97
+
98
+ // src/auth/httpAuthExtensionConfiguration.ts
99
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
100
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
101
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
102
+ let _credentials = runtimeConfig.credentials;
103
+ return {
104
+ setHttpAuthScheme(httpAuthScheme) {
105
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
106
+ if (index === -1) {
107
+ _httpAuthSchemes.push(httpAuthScheme);
108
+ } else {
109
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
110
+ }
111
+ },
112
+ httpAuthSchemes() {
113
+ return _httpAuthSchemes;
114
+ },
115
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
116
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
117
+ },
118
+ httpAuthSchemeProvider() {
119
+ return _httpAuthSchemeProvider;
120
+ },
121
+ setCredentials(credentials) {
122
+ _credentials = credentials;
123
+ },
124
+ credentials() {
125
+ return _credentials;
126
+ }
127
+ };
128
+ }, "getHttpAuthExtensionConfiguration");
129
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
130
+ return {
131
+ httpAuthSchemes: config.httpAuthSchemes(),
132
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
133
+ credentials: config.credentials()
134
+ };
135
+ }, "resolveHttpAuthRuntimeConfig");
136
+
137
+ // src/runtimeExtensions.ts
138
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
139
+ const extensionConfiguration = Object.assign(
140
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
141
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
142
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
143
+ getHttpAuthExtensionConfiguration(runtimeConfig)
144
+ );
145
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
146
+ return Object.assign(
147
+ runtimeConfig,
148
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
149
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
150
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
151
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
152
+ );
153
+ }, "resolveRuntimeExtensions");
154
+
155
+ // src/Route53ProfilesClient.ts
156
+ var Route53ProfilesClient = class extends import_smithy_client.Client {
157
+ static {
158
+ __name(this, "Route53ProfilesClient");
159
+ }
160
+ /**
161
+ * The resolved configuration of Route53ProfilesClient class. This is resolved and normalized from the {@link Route53ProfilesClientConfig | constructor configuration interface}.
162
+ */
163
+ config;
164
+ constructor(...[configuration]) {
165
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
166
+ super(_config_0);
167
+ this.initConfig = _config_0;
168
+ const _config_1 = resolveClientEndpointParameters(_config_0);
169
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
170
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
171
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
172
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
173
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
174
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
175
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
176
+ this.config = _config_8;
177
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
178
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
179
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
180
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
181
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
182
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
183
+ this.middlewareStack.use(
184
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
185
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRoute53ProfilesHttpAuthSchemeParametersProvider,
186
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
187
+ "aws.auth#sigv4": config.credentials
188
+ }), "identityProviderConfigProvider")
189
+ })
190
+ );
191
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
192
+ }
193
+ /**
194
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
195
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
196
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
197
+ */
198
+ destroy() {
199
+ super.destroy();
200
+ }
201
+ };
202
+
203
+ // src/Route53Profiles.ts
204
+
205
+
206
+ // src/commands/AssociateProfileCommand.ts
207
+
208
+ var import_middleware_serde = require("@smithy/middleware-serde");
209
+
210
+
211
+ // src/protocols/Aws_restJson1.ts
212
+ var import_core2 = require("@aws-sdk/core");
213
+
214
+
215
+ var import_uuid = require("uuid");
216
+
217
+ // src/models/Route53ProfilesServiceException.ts
218
+
219
+ var Route53ProfilesServiceException = class _Route53ProfilesServiceException extends import_smithy_client.ServiceException {
220
+ static {
221
+ __name(this, "Route53ProfilesServiceException");
222
+ }
223
+ /**
224
+ * @internal
225
+ */
226
+ constructor(options) {
227
+ super(options);
228
+ Object.setPrototypeOf(this, _Route53ProfilesServiceException.prototype);
229
+ }
230
+ };
231
+
232
+ // src/models/models_0.ts
233
+ var AccessDeniedException = class _AccessDeniedException extends Route53ProfilesServiceException {
234
+ static {
235
+ __name(this, "AccessDeniedException");
236
+ }
237
+ name = "AccessDeniedException";
238
+ $fault = "client";
239
+ Message;
240
+ /**
241
+ * @internal
242
+ */
243
+ constructor(opts) {
244
+ super({
245
+ name: "AccessDeniedException",
246
+ $fault: "client",
247
+ ...opts
248
+ });
249
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
250
+ this.Message = opts.Message;
251
+ }
252
+ };
253
+ var ProfileStatus = {
254
+ COMPLETE: "COMPLETE",
255
+ CREATING: "CREATING",
256
+ DELETED: "DELETED",
257
+ DELETING: "DELETING",
258
+ FAILED: "FAILED",
259
+ UPDATING: "UPDATING"
260
+ };
261
+ var ConflictException = class _ConflictException extends Route53ProfilesServiceException {
262
+ static {
263
+ __name(this, "ConflictException");
264
+ }
265
+ name = "ConflictException";
266
+ $fault = "client";
267
+ Message;
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts) {
272
+ super({
273
+ name: "ConflictException",
274
+ $fault: "client",
275
+ ...opts
276
+ });
277
+ Object.setPrototypeOf(this, _ConflictException.prototype);
278
+ this.Message = opts.Message;
279
+ }
280
+ };
281
+ var InvalidParameterException = class _InvalidParameterException extends Route53ProfilesServiceException {
282
+ static {
283
+ __name(this, "InvalidParameterException");
284
+ }
285
+ name = "InvalidParameterException";
286
+ $fault = "client";
287
+ Message;
288
+ /**
289
+ * <p>
290
+ * The parameter field name for the invalid parameter exception.
291
+ * </p>
292
+ * @public
293
+ */
294
+ FieldName;
295
+ /**
296
+ * @internal
297
+ */
298
+ constructor(opts) {
299
+ super({
300
+ name: "InvalidParameterException",
301
+ $fault: "client",
302
+ ...opts
303
+ });
304
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
305
+ this.Message = opts.Message;
306
+ this.FieldName = opts.FieldName;
307
+ }
308
+ };
309
+ var LimitExceededException = class _LimitExceededException extends Route53ProfilesServiceException {
310
+ static {
311
+ __name(this, "LimitExceededException");
312
+ }
313
+ name = "LimitExceededException";
314
+ $fault = "client";
315
+ Message;
316
+ /**
317
+ * <p>
318
+ * The resource type that caused the limits to be exceeded.
319
+ * </p>
320
+ * @public
321
+ */
322
+ ResourceType;
323
+ /**
324
+ * @internal
325
+ */
326
+ constructor(opts) {
327
+ super({
328
+ name: "LimitExceededException",
329
+ $fault: "client",
330
+ ...opts
331
+ });
332
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
333
+ this.Message = opts.Message;
334
+ this.ResourceType = opts.ResourceType;
335
+ }
336
+ };
337
+ var ResourceExistsException = class _ResourceExistsException extends Route53ProfilesServiceException {
338
+ static {
339
+ __name(this, "ResourceExistsException");
340
+ }
341
+ name = "ResourceExistsException";
342
+ $fault = "client";
343
+ Message;
344
+ /**
345
+ * <p>
346
+ * The resource type that caused the resource exists exception.
347
+ * </p>
348
+ * @public
349
+ */
350
+ ResourceType;
351
+ /**
352
+ * @internal
353
+ */
354
+ constructor(opts) {
355
+ super({
356
+ name: "ResourceExistsException",
357
+ $fault: "client",
358
+ ...opts
359
+ });
360
+ Object.setPrototypeOf(this, _ResourceExistsException.prototype);
361
+ this.Message = opts.Message;
362
+ this.ResourceType = opts.ResourceType;
363
+ }
364
+ };
365
+ var ResourceNotFoundException = class _ResourceNotFoundException extends Route53ProfilesServiceException {
366
+ static {
367
+ __name(this, "ResourceNotFoundException");
368
+ }
369
+ name = "ResourceNotFoundException";
370
+ $fault = "client";
371
+ Message;
372
+ /**
373
+ * <p>
374
+ * The resource type that caused the resource not found exception.
375
+ * </p>
376
+ * @public
377
+ */
378
+ ResourceType;
379
+ /**
380
+ * @internal
381
+ */
382
+ constructor(opts) {
383
+ super({
384
+ name: "ResourceNotFoundException",
385
+ $fault: "client",
386
+ ...opts
387
+ });
388
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
389
+ this.Message = opts.Message;
390
+ this.ResourceType = opts.ResourceType;
391
+ }
392
+ };
393
+ var ThrottlingException = class _ThrottlingException extends Route53ProfilesServiceException {
394
+ static {
395
+ __name(this, "ThrottlingException");
396
+ }
397
+ name = "ThrottlingException";
398
+ $fault = "client";
399
+ Message;
400
+ /**
401
+ * @internal
402
+ */
403
+ constructor(opts) {
404
+ super({
405
+ name: "ThrottlingException",
406
+ $fault: "client",
407
+ ...opts
408
+ });
409
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
410
+ this.Message = opts.Message;
411
+ }
412
+ };
413
+ var ValidationException = class _ValidationException extends Route53ProfilesServiceException {
414
+ static {
415
+ __name(this, "ValidationException");
416
+ }
417
+ name = "ValidationException";
418
+ $fault = "client";
419
+ Message;
420
+ /**
421
+ * @internal
422
+ */
423
+ constructor(opts) {
424
+ super({
425
+ name: "ValidationException",
426
+ $fault: "client",
427
+ ...opts
428
+ });
429
+ Object.setPrototypeOf(this, _ValidationException.prototype);
430
+ this.Message = opts.Message;
431
+ }
432
+ };
433
+ var InternalServiceErrorException = class _InternalServiceErrorException extends Route53ProfilesServiceException {
434
+ static {
435
+ __name(this, "InternalServiceErrorException");
436
+ }
437
+ name = "InternalServiceErrorException";
438
+ $fault = "client";
439
+ Message;
440
+ /**
441
+ * @internal
442
+ */
443
+ constructor(opts) {
444
+ super({
445
+ name: "InternalServiceErrorException",
446
+ $fault: "client",
447
+ ...opts
448
+ });
449
+ Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
450
+ this.Message = opts.Message;
451
+ }
452
+ };
453
+ var ShareStatus = {
454
+ NOT_SHARED: "NOT_SHARED",
455
+ SHARED_BY_ME: "SHARED_BY_ME",
456
+ SHARED_WITH_ME: "SHARED_WITH_ME"
457
+ };
458
+ var InvalidNextTokenException = class _InvalidNextTokenException extends Route53ProfilesServiceException {
459
+ static {
460
+ __name(this, "InvalidNextTokenException");
461
+ }
462
+ name = "InvalidNextTokenException";
463
+ $fault = "client";
464
+ Message;
465
+ /**
466
+ * @internal
467
+ */
468
+ constructor(opts) {
469
+ super({
470
+ name: "InvalidNextTokenException",
471
+ $fault: "client",
472
+ ...opts
473
+ });
474
+ Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
475
+ this.Message = opts.Message;
476
+ }
477
+ };
478
+
479
+ // src/protocols/Aws_restJson1.ts
480
+ var se_AssociateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
481
+ const b = (0, import_core.requestBuilder)(input, context);
482
+ const headers = {
483
+ "content-type": "application/json"
484
+ };
485
+ b.bp("/profileassociation");
486
+ let body;
487
+ body = JSON.stringify(
488
+ (0, import_smithy_client.take)(input, {
489
+ Name: [],
490
+ ProfileId: [],
491
+ ResourceId: [],
492
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
493
+ })
494
+ );
495
+ b.m("POST").h(headers).b(body);
496
+ return b.build();
497
+ }, "se_AssociateProfileCommand");
498
+ var se_AssociateResourceToProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
499
+ const b = (0, import_core.requestBuilder)(input, context);
500
+ const headers = {
501
+ "content-type": "application/json"
502
+ };
503
+ b.bp("/profileresourceassociation");
504
+ let body;
505
+ body = JSON.stringify(
506
+ (0, import_smithy_client.take)(input, {
507
+ Name: [],
508
+ ProfileId: [],
509
+ ResourceArn: [],
510
+ ResourceProperties: []
511
+ })
512
+ );
513
+ b.m("POST").h(headers).b(body);
514
+ return b.build();
515
+ }, "se_AssociateResourceToProfileCommand");
516
+ var se_CreateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
517
+ const b = (0, import_core.requestBuilder)(input, context);
518
+ const headers = {
519
+ "content-type": "application/json"
520
+ };
521
+ b.bp("/profile");
522
+ let body;
523
+ body = JSON.stringify(
524
+ (0, import_smithy_client.take)(input, {
525
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
526
+ Name: [],
527
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
528
+ })
529
+ );
530
+ b.m("POST").h(headers).b(body);
531
+ return b.build();
532
+ }, "se_CreateProfileCommand");
533
+ var se_DeleteProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
534
+ const b = (0, import_core.requestBuilder)(input, context);
535
+ const headers = {};
536
+ b.bp("/profile/{ProfileId}");
537
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
538
+ let body;
539
+ b.m("DELETE").h(headers).b(body);
540
+ return b.build();
541
+ }, "se_DeleteProfileCommand");
542
+ var se_DisassociateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
543
+ const b = (0, import_core.requestBuilder)(input, context);
544
+ const headers = {};
545
+ b.bp("/profileassociation/Profileid/{ProfileId}/resourceid/{ResourceId}");
546
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
547
+ b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
548
+ let body;
549
+ b.m("DELETE").h(headers).b(body);
550
+ return b.build();
551
+ }, "se_DisassociateProfileCommand");
552
+ var se_DisassociateResourceFromProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
553
+ const b = (0, import_core.requestBuilder)(input, context);
554
+ const headers = {};
555
+ b.bp("/profileresourceassociation/profileid/{ProfileId}/resourcearn/{ResourceArn}");
556
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
557
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
558
+ let body;
559
+ b.m("DELETE").h(headers).b(body);
560
+ return b.build();
561
+ }, "se_DisassociateResourceFromProfileCommand");
562
+ var se_GetProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
563
+ const b = (0, import_core.requestBuilder)(input, context);
564
+ const headers = {};
565
+ b.bp("/profile/{ProfileId}");
566
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
567
+ let body;
568
+ b.m("GET").h(headers).b(body);
569
+ return b.build();
570
+ }, "se_GetProfileCommand");
571
+ var se_GetProfileAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
572
+ const b = (0, import_core.requestBuilder)(input, context);
573
+ const headers = {};
574
+ b.bp("/profileassociation/{ProfileAssociationId}");
575
+ b.p("ProfileAssociationId", () => input.ProfileAssociationId, "{ProfileAssociationId}", false);
576
+ let body;
577
+ b.m("GET").h(headers).b(body);
578
+ return b.build();
579
+ }, "se_GetProfileAssociationCommand");
580
+ var se_GetProfileResourceAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
581
+ const b = (0, import_core.requestBuilder)(input, context);
582
+ const headers = {};
583
+ b.bp("/profileresourceassociation/{ProfileResourceAssociationId}");
584
+ b.p(
585
+ "ProfileResourceAssociationId",
586
+ () => input.ProfileResourceAssociationId,
587
+ "{ProfileResourceAssociationId}",
588
+ false
589
+ );
590
+ let body;
591
+ b.m("GET").h(headers).b(body);
592
+ return b.build();
593
+ }, "se_GetProfileResourceAssociationCommand");
594
+ var se_ListProfileAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
595
+ const b = (0, import_core.requestBuilder)(input, context);
596
+ const headers = {};
597
+ b.bp("/profileassociations");
598
+ const query = (0, import_smithy_client.map)({
599
+ [_rI]: [, input[_RI]],
600
+ [_pI]: [, input[_PI]],
601
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
602
+ [_nT]: [, input[_NT]]
603
+ });
604
+ let body;
605
+ b.m("GET").h(headers).q(query).b(body);
606
+ return b.build();
607
+ }, "se_ListProfileAssociationsCommand");
608
+ var se_ListProfileResourceAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const b = (0, import_core.requestBuilder)(input, context);
610
+ const headers = {};
611
+ b.bp("/profileresourceassociations/profileid/{ProfileId}");
612
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
613
+ const query = (0, import_smithy_client.map)({
614
+ [_rT]: [, input[_RT]],
615
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
616
+ [_nT]: [, input[_NT]]
617
+ });
618
+ let body;
619
+ b.m("GET").h(headers).q(query).b(body);
620
+ return b.build();
621
+ }, "se_ListProfileResourceAssociationsCommand");
622
+ var se_ListProfilesCommand = /* @__PURE__ */ __name(async (input, context) => {
623
+ const b = (0, import_core.requestBuilder)(input, context);
624
+ const headers = {};
625
+ b.bp("/profiles");
626
+ const query = (0, import_smithy_client.map)({
627
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
628
+ [_nT]: [, input[_NT]]
629
+ });
630
+ let body;
631
+ b.m("GET").h(headers).q(query).b(body);
632
+ return b.build();
633
+ }, "se_ListProfilesCommand");
634
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
635
+ const b = (0, import_core.requestBuilder)(input, context);
636
+ const headers = {};
637
+ b.bp("/tags/{ResourceArn}");
638
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
639
+ let body;
640
+ b.m("GET").h(headers).b(body);
641
+ return b.build();
642
+ }, "se_ListTagsForResourceCommand");
643
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
644
+ const b = (0, import_core.requestBuilder)(input, context);
645
+ const headers = {
646
+ "content-type": "application/json"
647
+ };
648
+ b.bp("/tags/{ResourceArn}");
649
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
650
+ let body;
651
+ body = JSON.stringify(
652
+ (0, import_smithy_client.take)(input, {
653
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
654
+ })
655
+ );
656
+ b.m("POST").h(headers).b(body);
657
+ return b.build();
658
+ }, "se_TagResourceCommand");
659
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
660
+ const b = (0, import_core.requestBuilder)(input, context);
661
+ const headers = {};
662
+ b.bp("/tags/{ResourceArn}");
663
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
664
+ const query = (0, import_smithy_client.map)({
665
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
666
+ });
667
+ let body;
668
+ b.m("DELETE").h(headers).q(query).b(body);
669
+ return b.build();
670
+ }, "se_UntagResourceCommand");
671
+ var se_UpdateProfileResourceAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
672
+ const b = (0, import_core.requestBuilder)(input, context);
673
+ const headers = {
674
+ "content-type": "application/json"
675
+ };
676
+ b.bp("/profileresourceassociation/{ProfileResourceAssociationId}");
677
+ b.p(
678
+ "ProfileResourceAssociationId",
679
+ () => input.ProfileResourceAssociationId,
680
+ "{ProfileResourceAssociationId}",
681
+ false
682
+ );
683
+ let body;
684
+ body = JSON.stringify(
685
+ (0, import_smithy_client.take)(input, {
686
+ Name: [],
687
+ ResourceProperties: []
688
+ })
689
+ );
690
+ b.m("PATCH").h(headers).b(body);
691
+ return b.build();
692
+ }, "se_UpdateProfileResourceAssociationCommand");
693
+ var de_AssociateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
694
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
695
+ return de_CommandError(output, context);
696
+ }
697
+ const contents = (0, import_smithy_client.map)({
698
+ $metadata: deserializeMetadata(output)
699
+ });
700
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
701
+ const doc = (0, import_smithy_client.take)(data, {
702
+ ProfileAssociation: /* @__PURE__ */ __name((_) => de_ProfileAssociation(_, context), "ProfileAssociation")
703
+ });
704
+ Object.assign(contents, doc);
705
+ return contents;
706
+ }, "de_AssociateProfileCommand");
707
+ var de_AssociateResourceToProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
708
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
709
+ return de_CommandError(output, context);
710
+ }
711
+ const contents = (0, import_smithy_client.map)({
712
+ $metadata: deserializeMetadata(output)
713
+ });
714
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
715
+ const doc = (0, import_smithy_client.take)(data, {
716
+ ProfileResourceAssociation: /* @__PURE__ */ __name((_) => de_ProfileResourceAssociation(_, context), "ProfileResourceAssociation")
717
+ });
718
+ Object.assign(contents, doc);
719
+ return contents;
720
+ }, "de_AssociateResourceToProfileCommand");
721
+ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
722
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
723
+ return de_CommandError(output, context);
724
+ }
725
+ const contents = (0, import_smithy_client.map)({
726
+ $metadata: deserializeMetadata(output)
727
+ });
728
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
729
+ const doc = (0, import_smithy_client.take)(data, {
730
+ Profile: /* @__PURE__ */ __name((_) => de_Profile(_, context), "Profile")
731
+ });
732
+ Object.assign(contents, doc);
733
+ return contents;
734
+ }, "de_CreateProfileCommand");
735
+ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
737
+ return de_CommandError(output, context);
738
+ }
739
+ const contents = (0, import_smithy_client.map)({
740
+ $metadata: deserializeMetadata(output)
741
+ });
742
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
743
+ const doc = (0, import_smithy_client.take)(data, {
744
+ Profile: /* @__PURE__ */ __name((_) => de_Profile(_, context), "Profile")
745
+ });
746
+ Object.assign(contents, doc);
747
+ return contents;
748
+ }, "de_DeleteProfileCommand");
749
+ var de_DisassociateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
750
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const contents = (0, import_smithy_client.map)({
754
+ $metadata: deserializeMetadata(output)
755
+ });
756
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
757
+ const doc = (0, import_smithy_client.take)(data, {
758
+ ProfileAssociation: /* @__PURE__ */ __name((_) => de_ProfileAssociation(_, context), "ProfileAssociation")
759
+ });
760
+ Object.assign(contents, doc);
761
+ return contents;
762
+ }, "de_DisassociateProfileCommand");
763
+ var de_DisassociateResourceFromProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
764
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
765
+ return de_CommandError(output, context);
766
+ }
767
+ const contents = (0, import_smithy_client.map)({
768
+ $metadata: deserializeMetadata(output)
769
+ });
770
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
771
+ const doc = (0, import_smithy_client.take)(data, {
772
+ ProfileResourceAssociation: /* @__PURE__ */ __name((_) => de_ProfileResourceAssociation(_, context), "ProfileResourceAssociation")
773
+ });
774
+ Object.assign(contents, doc);
775
+ return contents;
776
+ }, "de_DisassociateResourceFromProfileCommand");
777
+ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
778
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
779
+ return de_CommandError(output, context);
780
+ }
781
+ const contents = (0, import_smithy_client.map)({
782
+ $metadata: deserializeMetadata(output)
783
+ });
784
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
785
+ const doc = (0, import_smithy_client.take)(data, {
786
+ Profile: /* @__PURE__ */ __name((_) => de_Profile(_, context), "Profile")
787
+ });
788
+ Object.assign(contents, doc);
789
+ return contents;
790
+ }, "de_GetProfileCommand");
791
+ var de_GetProfileAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
792
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
793
+ return de_CommandError(output, context);
794
+ }
795
+ const contents = (0, import_smithy_client.map)({
796
+ $metadata: deserializeMetadata(output)
797
+ });
798
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
799
+ const doc = (0, import_smithy_client.take)(data, {
800
+ ProfileAssociation: /* @__PURE__ */ __name((_) => de_ProfileAssociation(_, context), "ProfileAssociation")
801
+ });
802
+ Object.assign(contents, doc);
803
+ return contents;
804
+ }, "de_GetProfileAssociationCommand");
805
+ var de_GetProfileResourceAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
806
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ const contents = (0, import_smithy_client.map)({
810
+ $metadata: deserializeMetadata(output)
811
+ });
812
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
813
+ const doc = (0, import_smithy_client.take)(data, {
814
+ ProfileResourceAssociation: /* @__PURE__ */ __name((_) => de_ProfileResourceAssociation(_, context), "ProfileResourceAssociation")
815
+ });
816
+ Object.assign(contents, doc);
817
+ return contents;
818
+ }, "de_GetProfileResourceAssociationCommand");
819
+ var de_ListProfileAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
821
+ return de_CommandError(output, context);
822
+ }
823
+ const contents = (0, import_smithy_client.map)({
824
+ $metadata: deserializeMetadata(output)
825
+ });
826
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
827
+ const doc = (0, import_smithy_client.take)(data, {
828
+ NextToken: import_smithy_client.expectString,
829
+ ProfileAssociations: /* @__PURE__ */ __name((_) => de_ProfileAssociations(_, context), "ProfileAssociations")
830
+ });
831
+ Object.assign(contents, doc);
832
+ return contents;
833
+ }, "de_ListProfileAssociationsCommand");
834
+ var de_ListProfileResourceAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
835
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
836
+ return de_CommandError(output, context);
837
+ }
838
+ const contents = (0, import_smithy_client.map)({
839
+ $metadata: deserializeMetadata(output)
840
+ });
841
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
842
+ const doc = (0, import_smithy_client.take)(data, {
843
+ NextToken: import_smithy_client.expectString,
844
+ ProfileResourceAssociations: /* @__PURE__ */ __name((_) => de_ProfileResourceAssociations(_, context), "ProfileResourceAssociations")
845
+ });
846
+ Object.assign(contents, doc);
847
+ return contents;
848
+ }, "de_ListProfileResourceAssociationsCommand");
849
+ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
851
+ return de_CommandError(output, context);
852
+ }
853
+ const contents = (0, import_smithy_client.map)({
854
+ $metadata: deserializeMetadata(output)
855
+ });
856
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
857
+ const doc = (0, import_smithy_client.take)(data, {
858
+ NextToken: import_smithy_client.expectString,
859
+ ProfileSummaries: import_smithy_client._json
860
+ });
861
+ Object.assign(contents, doc);
862
+ return contents;
863
+ }, "de_ListProfilesCommand");
864
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
865
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
866
+ return de_CommandError(output, context);
867
+ }
868
+ const contents = (0, import_smithy_client.map)({
869
+ $metadata: deserializeMetadata(output)
870
+ });
871
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
872
+ const doc = (0, import_smithy_client.take)(data, {
873
+ Tags: import_smithy_client._json
874
+ });
875
+ Object.assign(contents, doc);
876
+ return contents;
877
+ }, "de_ListTagsForResourceCommand");
878
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
879
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
880
+ return de_CommandError(output, context);
881
+ }
882
+ const contents = (0, import_smithy_client.map)({
883
+ $metadata: deserializeMetadata(output)
884
+ });
885
+ await (0, import_smithy_client.collectBody)(output.body, context);
886
+ return contents;
887
+ }, "de_TagResourceCommand");
888
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
889
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
890
+ return de_CommandError(output, context);
891
+ }
892
+ const contents = (0, import_smithy_client.map)({
893
+ $metadata: deserializeMetadata(output)
894
+ });
895
+ await (0, import_smithy_client.collectBody)(output.body, context);
896
+ return contents;
897
+ }, "de_UntagResourceCommand");
898
+ var de_UpdateProfileResourceAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
899
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
900
+ return de_CommandError(output, context);
901
+ }
902
+ const contents = (0, import_smithy_client.map)({
903
+ $metadata: deserializeMetadata(output)
904
+ });
905
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
906
+ const doc = (0, import_smithy_client.take)(data, {
907
+ ProfileResourceAssociation: /* @__PURE__ */ __name((_) => de_ProfileResourceAssociation(_, context), "ProfileResourceAssociation")
908
+ });
909
+ Object.assign(contents, doc);
910
+ return contents;
911
+ }, "de_UpdateProfileResourceAssociationCommand");
912
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
913
+ const parsedOutput = {
914
+ ...output,
915
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
916
+ };
917
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
918
+ switch (errorCode) {
919
+ case "AccessDeniedException":
920
+ case "com.amazonaws.route53profiles#AccessDeniedException":
921
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
922
+ case "ConflictException":
923
+ case "com.amazonaws.route53profiles#ConflictException":
924
+ throw await de_ConflictExceptionRes(parsedOutput, context);
925
+ case "InvalidParameterException":
926
+ case "com.amazonaws.route53profiles#InvalidParameterException":
927
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
928
+ case "LimitExceededException":
929
+ case "com.amazonaws.route53profiles#LimitExceededException":
930
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
931
+ case "ResourceExistsException":
932
+ case "com.amazonaws.route53profiles#ResourceExistsException":
933
+ throw await de_ResourceExistsExceptionRes(parsedOutput, context);
934
+ case "ResourceNotFoundException":
935
+ case "com.amazonaws.route53profiles#ResourceNotFoundException":
936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
937
+ case "ThrottlingException":
938
+ case "com.amazonaws.route53profiles#ThrottlingException":
939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
940
+ case "ValidationException":
941
+ case "com.amazonaws.route53profiles#ValidationException":
942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
943
+ case "InternalServiceErrorException":
944
+ case "com.amazonaws.route53profiles#InternalServiceErrorException":
945
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
946
+ case "InvalidNextTokenException":
947
+ case "com.amazonaws.route53profiles#InvalidNextTokenException":
948
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
949
+ default:
950
+ const parsedBody = parsedOutput.body;
951
+ return throwDefaultError({
952
+ output,
953
+ parsedBody,
954
+ errorCode
955
+ });
956
+ }
957
+ }, "de_CommandError");
958
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(Route53ProfilesServiceException);
959
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
960
+ const contents = (0, import_smithy_client.map)({});
961
+ const data = parsedOutput.body;
962
+ const doc = (0, import_smithy_client.take)(data, {
963
+ Message: import_smithy_client.expectString
964
+ });
965
+ Object.assign(contents, doc);
966
+ const exception = new AccessDeniedException({
967
+ $metadata: deserializeMetadata(parsedOutput),
968
+ ...contents
969
+ });
970
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
971
+ }, "de_AccessDeniedExceptionRes");
972
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
973
+ const contents = (0, import_smithy_client.map)({});
974
+ const data = parsedOutput.body;
975
+ const doc = (0, import_smithy_client.take)(data, {
976
+ Message: import_smithy_client.expectString
977
+ });
978
+ Object.assign(contents, doc);
979
+ const exception = new ConflictException({
980
+ $metadata: deserializeMetadata(parsedOutput),
981
+ ...contents
982
+ });
983
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
984
+ }, "de_ConflictExceptionRes");
985
+ var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
986
+ const contents = (0, import_smithy_client.map)({});
987
+ const data = parsedOutput.body;
988
+ const doc = (0, import_smithy_client.take)(data, {
989
+ Message: import_smithy_client.expectString
990
+ });
991
+ Object.assign(contents, doc);
992
+ const exception = new InternalServiceErrorException({
993
+ $metadata: deserializeMetadata(parsedOutput),
994
+ ...contents
995
+ });
996
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
997
+ }, "de_InternalServiceErrorExceptionRes");
998
+ var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
999
+ const contents = (0, import_smithy_client.map)({});
1000
+ const data = parsedOutput.body;
1001
+ const doc = (0, import_smithy_client.take)(data, {
1002
+ Message: import_smithy_client.expectString
1003
+ });
1004
+ Object.assign(contents, doc);
1005
+ const exception = new InvalidNextTokenException({
1006
+ $metadata: deserializeMetadata(parsedOutput),
1007
+ ...contents
1008
+ });
1009
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1010
+ }, "de_InvalidNextTokenExceptionRes");
1011
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1012
+ const contents = (0, import_smithy_client.map)({});
1013
+ const data = parsedOutput.body;
1014
+ const doc = (0, import_smithy_client.take)(data, {
1015
+ FieldName: import_smithy_client.expectString,
1016
+ Message: import_smithy_client.expectString
1017
+ });
1018
+ Object.assign(contents, doc);
1019
+ const exception = new InvalidParameterException({
1020
+ $metadata: deserializeMetadata(parsedOutput),
1021
+ ...contents
1022
+ });
1023
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1024
+ }, "de_InvalidParameterExceptionRes");
1025
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1026
+ const contents = (0, import_smithy_client.map)({});
1027
+ const data = parsedOutput.body;
1028
+ const doc = (0, import_smithy_client.take)(data, {
1029
+ Message: import_smithy_client.expectString,
1030
+ ResourceType: import_smithy_client.expectString
1031
+ });
1032
+ Object.assign(contents, doc);
1033
+ const exception = new LimitExceededException({
1034
+ $metadata: deserializeMetadata(parsedOutput),
1035
+ ...contents
1036
+ });
1037
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1038
+ }, "de_LimitExceededExceptionRes");
1039
+ var de_ResourceExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1040
+ const contents = (0, import_smithy_client.map)({});
1041
+ const data = parsedOutput.body;
1042
+ const doc = (0, import_smithy_client.take)(data, {
1043
+ Message: import_smithy_client.expectString,
1044
+ ResourceType: import_smithy_client.expectString
1045
+ });
1046
+ Object.assign(contents, doc);
1047
+ const exception = new ResourceExistsException({
1048
+ $metadata: deserializeMetadata(parsedOutput),
1049
+ ...contents
1050
+ });
1051
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1052
+ }, "de_ResourceExistsExceptionRes");
1053
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1054
+ const contents = (0, import_smithy_client.map)({});
1055
+ const data = parsedOutput.body;
1056
+ const doc = (0, import_smithy_client.take)(data, {
1057
+ Message: import_smithy_client.expectString,
1058
+ ResourceType: import_smithy_client.expectString
1059
+ });
1060
+ Object.assign(contents, doc);
1061
+ const exception = new ResourceNotFoundException({
1062
+ $metadata: deserializeMetadata(parsedOutput),
1063
+ ...contents
1064
+ });
1065
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1066
+ }, "de_ResourceNotFoundExceptionRes");
1067
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1068
+ const contents = (0, import_smithy_client.map)({});
1069
+ const data = parsedOutput.body;
1070
+ const doc = (0, import_smithy_client.take)(data, {
1071
+ Message: import_smithy_client.expectString
1072
+ });
1073
+ Object.assign(contents, doc);
1074
+ const exception = new ThrottlingException({
1075
+ $metadata: deserializeMetadata(parsedOutput),
1076
+ ...contents
1077
+ });
1078
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1079
+ }, "de_ThrottlingExceptionRes");
1080
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1081
+ const contents = (0, import_smithy_client.map)({});
1082
+ const data = parsedOutput.body;
1083
+ const doc = (0, import_smithy_client.take)(data, {
1084
+ Message: import_smithy_client.expectString
1085
+ });
1086
+ Object.assign(contents, doc);
1087
+ const exception = new ValidationException({
1088
+ $metadata: deserializeMetadata(parsedOutput),
1089
+ ...contents
1090
+ });
1091
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1092
+ }, "de_ValidationExceptionRes");
1093
+ var de_Profile = /* @__PURE__ */ __name((output, context) => {
1094
+ return (0, import_smithy_client.take)(output, {
1095
+ Arn: import_smithy_client.expectString,
1096
+ ClientToken: import_smithy_client.expectString,
1097
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1098
+ Id: import_smithy_client.expectString,
1099
+ ModificationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ModificationTime"),
1100
+ Name: import_smithy_client.expectString,
1101
+ OwnerId: import_smithy_client.expectString,
1102
+ ShareStatus: import_smithy_client.expectString,
1103
+ Status: import_smithy_client.expectString,
1104
+ StatusMessage: import_smithy_client.expectString
1105
+ });
1106
+ }, "de_Profile");
1107
+ var de_ProfileAssociation = /* @__PURE__ */ __name((output, context) => {
1108
+ return (0, import_smithy_client.take)(output, {
1109
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1110
+ Id: import_smithy_client.expectString,
1111
+ ModificationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ModificationTime"),
1112
+ Name: import_smithy_client.expectString,
1113
+ OwnerId: import_smithy_client.expectString,
1114
+ ProfileId: import_smithy_client.expectString,
1115
+ ResourceId: import_smithy_client.expectString,
1116
+ Status: import_smithy_client.expectString,
1117
+ StatusMessage: import_smithy_client.expectString
1118
+ });
1119
+ }, "de_ProfileAssociation");
1120
+ var de_ProfileAssociations = /* @__PURE__ */ __name((output, context) => {
1121
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1122
+ return de_ProfileAssociation(entry, context);
1123
+ });
1124
+ return retVal;
1125
+ }, "de_ProfileAssociations");
1126
+ var de_ProfileResourceAssociation = /* @__PURE__ */ __name((output, context) => {
1127
+ return (0, import_smithy_client.take)(output, {
1128
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1129
+ Id: import_smithy_client.expectString,
1130
+ ModificationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ModificationTime"),
1131
+ Name: import_smithy_client.expectString,
1132
+ OwnerId: import_smithy_client.expectString,
1133
+ ProfileId: import_smithy_client.expectString,
1134
+ ResourceArn: import_smithy_client.expectString,
1135
+ ResourceProperties: import_smithy_client.expectString,
1136
+ ResourceType: import_smithy_client.expectString,
1137
+ Status: import_smithy_client.expectString,
1138
+ StatusMessage: import_smithy_client.expectString
1139
+ });
1140
+ }, "de_ProfileResourceAssociation");
1141
+ var de_ProfileResourceAssociations = /* @__PURE__ */ __name((output, context) => {
1142
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1143
+ return de_ProfileResourceAssociation(entry, context);
1144
+ });
1145
+ return retVal;
1146
+ }, "de_ProfileResourceAssociations");
1147
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1148
+ httpStatusCode: output.statusCode,
1149
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1150
+ extendedRequestId: output.headers["x-amz-id-2"],
1151
+ cfId: output.headers["x-amz-cf-id"]
1152
+ }), "deserializeMetadata");
1153
+ var _MR = "MaxResults";
1154
+ var _NT = "NextToken";
1155
+ var _PI = "ProfileId";
1156
+ var _RI = "ResourceId";
1157
+ var _RT = "ResourceType";
1158
+ var _TK = "TagKeys";
1159
+ var _mR = "maxResults";
1160
+ var _nT = "nextToken";
1161
+ var _pI = "profileId";
1162
+ var _rI = "resourceId";
1163
+ var _rT = "resourceType";
1164
+ var _tK = "tagKeys";
1165
+
1166
+ // src/commands/AssociateProfileCommand.ts
1167
+ var AssociateProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1168
+ return [
1169
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1170
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1171
+ ];
1172
+ }).s("Route53Profiles", "AssociateProfile", {}).n("Route53ProfilesClient", "AssociateProfileCommand").f(void 0, void 0).ser(se_AssociateProfileCommand).de(de_AssociateProfileCommand).build() {
1173
+ static {
1174
+ __name(this, "AssociateProfileCommand");
1175
+ }
1176
+ };
1177
+
1178
+ // src/commands/AssociateResourceToProfileCommand.ts
1179
+
1180
+
1181
+
1182
+ var AssociateResourceToProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1183
+ return [
1184
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1185
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1186
+ ];
1187
+ }).s("Route53Profiles", "AssociateResourceToProfile", {}).n("Route53ProfilesClient", "AssociateResourceToProfileCommand").f(void 0, void 0).ser(se_AssociateResourceToProfileCommand).de(de_AssociateResourceToProfileCommand).build() {
1188
+ static {
1189
+ __name(this, "AssociateResourceToProfileCommand");
1190
+ }
1191
+ };
1192
+
1193
+ // src/commands/CreateProfileCommand.ts
1194
+
1195
+
1196
+
1197
+ var CreateProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1198
+ return [
1199
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1200
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1201
+ ];
1202
+ }).s("Route53Profiles", "CreateProfile", {}).n("Route53ProfilesClient", "CreateProfileCommand").f(void 0, void 0).ser(se_CreateProfileCommand).de(de_CreateProfileCommand).build() {
1203
+ static {
1204
+ __name(this, "CreateProfileCommand");
1205
+ }
1206
+ };
1207
+
1208
+ // src/commands/DeleteProfileCommand.ts
1209
+
1210
+
1211
+
1212
+ var DeleteProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1213
+ return [
1214
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1215
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1216
+ ];
1217
+ }).s("Route53Profiles", "DeleteProfile", {}).n("Route53ProfilesClient", "DeleteProfileCommand").f(void 0, void 0).ser(se_DeleteProfileCommand).de(de_DeleteProfileCommand).build() {
1218
+ static {
1219
+ __name(this, "DeleteProfileCommand");
1220
+ }
1221
+ };
1222
+
1223
+ // src/commands/DisassociateProfileCommand.ts
1224
+
1225
+
1226
+
1227
+ var DisassociateProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1228
+ return [
1229
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1230
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1231
+ ];
1232
+ }).s("Route53Profiles", "DisassociateProfile", {}).n("Route53ProfilesClient", "DisassociateProfileCommand").f(void 0, void 0).ser(se_DisassociateProfileCommand).de(de_DisassociateProfileCommand).build() {
1233
+ static {
1234
+ __name(this, "DisassociateProfileCommand");
1235
+ }
1236
+ };
1237
+
1238
+ // src/commands/DisassociateResourceFromProfileCommand.ts
1239
+
1240
+
1241
+
1242
+ var DisassociateResourceFromProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1243
+ return [
1244
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1245
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1246
+ ];
1247
+ }).s("Route53Profiles", "DisassociateResourceFromProfile", {}).n("Route53ProfilesClient", "DisassociateResourceFromProfileCommand").f(void 0, void 0).ser(se_DisassociateResourceFromProfileCommand).de(de_DisassociateResourceFromProfileCommand).build() {
1248
+ static {
1249
+ __name(this, "DisassociateResourceFromProfileCommand");
1250
+ }
1251
+ };
1252
+
1253
+ // src/commands/GetProfileAssociationCommand.ts
1254
+
1255
+
1256
+
1257
+ var GetProfileAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1258
+ return [
1259
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1260
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1261
+ ];
1262
+ }).s("Route53Profiles", "GetProfileAssociation", {}).n("Route53ProfilesClient", "GetProfileAssociationCommand").f(void 0, void 0).ser(se_GetProfileAssociationCommand).de(de_GetProfileAssociationCommand).build() {
1263
+ static {
1264
+ __name(this, "GetProfileAssociationCommand");
1265
+ }
1266
+ };
1267
+
1268
+ // src/commands/GetProfileCommand.ts
1269
+
1270
+
1271
+
1272
+ var GetProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1273
+ return [
1274
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1275
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1276
+ ];
1277
+ }).s("Route53Profiles", "GetProfile", {}).n("Route53ProfilesClient", "GetProfileCommand").f(void 0, void 0).ser(se_GetProfileCommand).de(de_GetProfileCommand).build() {
1278
+ static {
1279
+ __name(this, "GetProfileCommand");
1280
+ }
1281
+ };
1282
+
1283
+ // src/commands/GetProfileResourceAssociationCommand.ts
1284
+
1285
+
1286
+
1287
+ var GetProfileResourceAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1288
+ return [
1289
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1290
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1291
+ ];
1292
+ }).s("Route53Profiles", "GetProfileResourceAssociation", {}).n("Route53ProfilesClient", "GetProfileResourceAssociationCommand").f(void 0, void 0).ser(se_GetProfileResourceAssociationCommand).de(de_GetProfileResourceAssociationCommand).build() {
1293
+ static {
1294
+ __name(this, "GetProfileResourceAssociationCommand");
1295
+ }
1296
+ };
1297
+
1298
+ // src/commands/ListProfileAssociationsCommand.ts
1299
+
1300
+
1301
+
1302
+ var ListProfileAssociationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1303
+ return [
1304
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1305
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1306
+ ];
1307
+ }).s("Route53Profiles", "ListProfileAssociations", {}).n("Route53ProfilesClient", "ListProfileAssociationsCommand").f(void 0, void 0).ser(se_ListProfileAssociationsCommand).de(de_ListProfileAssociationsCommand).build() {
1308
+ static {
1309
+ __name(this, "ListProfileAssociationsCommand");
1310
+ }
1311
+ };
1312
+
1313
+ // src/commands/ListProfileResourceAssociationsCommand.ts
1314
+
1315
+
1316
+
1317
+ var ListProfileResourceAssociationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1318
+ return [
1319
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1320
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1321
+ ];
1322
+ }).s("Route53Profiles", "ListProfileResourceAssociations", {}).n("Route53ProfilesClient", "ListProfileResourceAssociationsCommand").f(void 0, void 0).ser(se_ListProfileResourceAssociationsCommand).de(de_ListProfileResourceAssociationsCommand).build() {
1323
+ static {
1324
+ __name(this, "ListProfileResourceAssociationsCommand");
1325
+ }
1326
+ };
1327
+
1328
+ // src/commands/ListProfilesCommand.ts
1329
+
1330
+
1331
+
1332
+ var ListProfilesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1333
+ return [
1334
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1335
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1336
+ ];
1337
+ }).s("Route53Profiles", "ListProfiles", {}).n("Route53ProfilesClient", "ListProfilesCommand").f(void 0, void 0).ser(se_ListProfilesCommand).de(de_ListProfilesCommand).build() {
1338
+ static {
1339
+ __name(this, "ListProfilesCommand");
1340
+ }
1341
+ };
1342
+
1343
+ // src/commands/ListTagsForResourceCommand.ts
1344
+
1345
+
1346
+
1347
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1348
+ return [
1349
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1350
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1351
+ ];
1352
+ }).s("Route53Profiles", "ListTagsForResource", {}).n("Route53ProfilesClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1353
+ static {
1354
+ __name(this, "ListTagsForResourceCommand");
1355
+ }
1356
+ };
1357
+
1358
+ // src/commands/TagResourceCommand.ts
1359
+
1360
+
1361
+
1362
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1363
+ return [
1364
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1365
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1366
+ ];
1367
+ }).s("Route53Profiles", "TagResource", {}).n("Route53ProfilesClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1368
+ static {
1369
+ __name(this, "TagResourceCommand");
1370
+ }
1371
+ };
1372
+
1373
+ // src/commands/UntagResourceCommand.ts
1374
+
1375
+
1376
+
1377
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1378
+ return [
1379
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1380
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1381
+ ];
1382
+ }).s("Route53Profiles", "UntagResource", {}).n("Route53ProfilesClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1383
+ static {
1384
+ __name(this, "UntagResourceCommand");
1385
+ }
1386
+ };
1387
+
1388
+ // src/commands/UpdateProfileResourceAssociationCommand.ts
1389
+
1390
+
1391
+
1392
+ var UpdateProfileResourceAssociationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1393
+ return [
1394
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1395
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1396
+ ];
1397
+ }).s("Route53Profiles", "UpdateProfileResourceAssociation", {}).n("Route53ProfilesClient", "UpdateProfileResourceAssociationCommand").f(void 0, void 0).ser(se_UpdateProfileResourceAssociationCommand).de(de_UpdateProfileResourceAssociationCommand).build() {
1398
+ static {
1399
+ __name(this, "UpdateProfileResourceAssociationCommand");
1400
+ }
1401
+ };
1402
+
1403
+ // src/Route53Profiles.ts
1404
+ var commands = {
1405
+ AssociateProfileCommand,
1406
+ AssociateResourceToProfileCommand,
1407
+ CreateProfileCommand,
1408
+ DeleteProfileCommand,
1409
+ DisassociateProfileCommand,
1410
+ DisassociateResourceFromProfileCommand,
1411
+ GetProfileCommand,
1412
+ GetProfileAssociationCommand,
1413
+ GetProfileResourceAssociationCommand,
1414
+ ListProfileAssociationsCommand,
1415
+ ListProfileResourceAssociationsCommand,
1416
+ ListProfilesCommand,
1417
+ ListTagsForResourceCommand,
1418
+ TagResourceCommand,
1419
+ UntagResourceCommand,
1420
+ UpdateProfileResourceAssociationCommand
1421
+ };
1422
+ var Route53Profiles = class extends Route53ProfilesClient {
1423
+ static {
1424
+ __name(this, "Route53Profiles");
1425
+ }
1426
+ };
1427
+ (0, import_smithy_client.createAggregatedClient)(commands, Route53Profiles);
1428
+
1429
+ // src/pagination/ListProfileAssociationsPaginator.ts
1430
+
1431
+ var paginateListProfileAssociations = (0, import_core.createPaginator)(Route53ProfilesClient, ListProfileAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1432
+
1433
+ // src/pagination/ListProfileResourceAssociationsPaginator.ts
1434
+
1435
+ var paginateListProfileResourceAssociations = (0, import_core.createPaginator)(Route53ProfilesClient, ListProfileResourceAssociationsCommand, "NextToken", "NextToken", "MaxResults");
1436
+
1437
+ // src/pagination/ListProfilesPaginator.ts
1438
+
1439
+ var paginateListProfiles = (0, import_core.createPaginator)(Route53ProfilesClient, ListProfilesCommand, "NextToken", "NextToken", "MaxResults");
1440
+ // Annotate the CommonJS export names for ESM import in node:
1441
+
1442
+ 0 && (module.exports = {
1443
+ Route53ProfilesServiceException,
1444
+ __Client,
1445
+ Route53ProfilesClient,
1446
+ Route53Profiles,
1447
+ $Command,
1448
+ AssociateProfileCommand,
1449
+ AssociateResourceToProfileCommand,
1450
+ CreateProfileCommand,
1451
+ DeleteProfileCommand,
1452
+ DisassociateProfileCommand,
1453
+ DisassociateResourceFromProfileCommand,
1454
+ GetProfileAssociationCommand,
1455
+ GetProfileCommand,
1456
+ GetProfileResourceAssociationCommand,
1457
+ ListProfileAssociationsCommand,
1458
+ ListProfileResourceAssociationsCommand,
1459
+ ListProfilesCommand,
1460
+ ListTagsForResourceCommand,
1461
+ TagResourceCommand,
1462
+ UntagResourceCommand,
1463
+ UpdateProfileResourceAssociationCommand,
1464
+ paginateListProfileAssociations,
1465
+ paginateListProfileResourceAssociations,
1466
+ paginateListProfiles,
1467
+ AccessDeniedException,
1468
+ ProfileStatus,
1469
+ ConflictException,
1470
+ InvalidParameterException,
1471
+ LimitExceededException,
1472
+ ResourceExistsException,
1473
+ ResourceNotFoundException,
1474
+ ThrottlingException,
1475
+ ValidationException,
1476
+ InternalServiceErrorException,
1477
+ ShareStatus,
1478
+ InvalidNextTokenException
1479
+ });
1480
+