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