@aws-sdk/client-service-quotas 3.901.0 → 3.907.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 (36) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/endpoint/ruleset.js +1 -1
  3. package/dist-cjs/index.js +1704 -1740
  4. package/dist-es/ServiceQuotas.js +8 -0
  5. package/dist-es/commands/GetAutoManagementConfigurationCommand.js +22 -0
  6. package/dist-es/commands/StartAutoManagementCommand.js +22 -0
  7. package/dist-es/commands/StopAutoManagementCommand.js +22 -0
  8. package/dist-es/commands/UpdateAutoManagementCommand.js +22 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/endpoint/ruleset.js +1 -1
  11. package/dist-es/models/models_0.js +11 -0
  12. package/dist-es/protocols/Aws_json1_1.js +76 -0
  13. package/dist-types/ServiceQuotas.d.ts +31 -0
  14. package/dist-types/ServiceQuotasClient.d.ts +6 -2
  15. package/dist-types/commands/GetAutoManagementConfigurationCommand.d.ts +100 -0
  16. package/dist-types/commands/GetServiceQuotaCommand.d.ts +3 -3
  17. package/dist-types/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.d.ts +2 -2
  18. package/dist-types/commands/ListRequestedServiceQuotaChangeHistoryCommand.d.ts +3 -2
  19. package/dist-types/commands/ListServiceQuotasCommand.d.ts +2 -2
  20. package/dist-types/commands/RequestServiceQuotaIncreaseCommand.d.ts +2 -1
  21. package/dist-types/commands/StartAutoManagementCommand.d.ts +97 -0
  22. package/dist-types/commands/StopAutoManagementCommand.d.ts +88 -0
  23. package/dist-types/commands/UpdateAutoManagementCommand.d.ts +96 -0
  24. package/dist-types/commands/index.d.ts +4 -0
  25. package/dist-types/models/models_0.d.ts +167 -1
  26. package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  27. package/dist-types/ts3.4/ServiceQuotas.d.ts +71 -0
  28. package/dist-types/ts3.4/ServiceQuotasClient.d.ts +26 -2
  29. package/dist-types/ts3.4/commands/GetAutoManagementConfigurationCommand.d.ts +51 -0
  30. package/dist-types/ts3.4/commands/StartAutoManagementCommand.d.ts +51 -0
  31. package/dist-types/ts3.4/commands/StopAutoManagementCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/UpdateAutoManagementCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +41 -0
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  36. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1816 +1,1780 @@
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 });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AWSServiceAccessNotEnabledException: () => AWSServiceAccessNotEnabledException,
25
- AccessDeniedException: () => AccessDeniedException,
26
- AppliedLevelEnum: () => AppliedLevelEnum,
27
- AssociateServiceQuotaTemplateCommand: () => AssociateServiceQuotaTemplateCommand,
28
- CreateSupportCaseCommand: () => CreateSupportCaseCommand,
29
- DeleteServiceQuotaIncreaseRequestFromTemplateCommand: () => DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
30
- DependencyAccessDeniedException: () => DependencyAccessDeniedException,
31
- DisassociateServiceQuotaTemplateCommand: () => DisassociateServiceQuotaTemplateCommand,
32
- ErrorCode: () => ErrorCode,
33
- GetAWSDefaultServiceQuotaCommand: () => GetAWSDefaultServiceQuotaCommand,
34
- GetAssociationForServiceQuotaTemplateCommand: () => GetAssociationForServiceQuotaTemplateCommand,
35
- GetRequestedServiceQuotaChangeCommand: () => GetRequestedServiceQuotaChangeCommand,
36
- GetServiceQuotaCommand: () => GetServiceQuotaCommand,
37
- GetServiceQuotaIncreaseRequestFromTemplateCommand: () => GetServiceQuotaIncreaseRequestFromTemplateCommand,
38
- IllegalArgumentException: () => IllegalArgumentException,
39
- InvalidPaginationTokenException: () => InvalidPaginationTokenException,
40
- InvalidResourceStateException: () => InvalidResourceStateException,
41
- ListAWSDefaultServiceQuotasCommand: () => ListAWSDefaultServiceQuotasCommand,
42
- ListRequestedServiceQuotaChangeHistoryByQuotaCommand: () => ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
43
- ListRequestedServiceQuotaChangeHistoryCommand: () => ListRequestedServiceQuotaChangeHistoryCommand,
44
- ListServiceQuotaIncreaseRequestsInTemplateCommand: () => ListServiceQuotaIncreaseRequestsInTemplateCommand,
45
- ListServiceQuotasCommand: () => ListServiceQuotasCommand,
46
- ListServicesCommand: () => ListServicesCommand,
47
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
48
- NoAvailableOrganizationException: () => NoAvailableOrganizationException,
49
- NoSuchResourceException: () => NoSuchResourceException,
50
- OrganizationNotInAllFeaturesModeException: () => OrganizationNotInAllFeaturesModeException,
51
- PeriodUnit: () => PeriodUnit,
52
- PutServiceQuotaIncreaseRequestIntoTemplateCommand: () => PutServiceQuotaIncreaseRequestIntoTemplateCommand,
53
- QuotaContextScope: () => QuotaContextScope,
54
- QuotaExceededException: () => QuotaExceededException,
55
- RequestServiceQuotaIncreaseCommand: () => RequestServiceQuotaIncreaseCommand,
56
- RequestStatus: () => RequestStatus,
57
- ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
58
- ServiceException: () => ServiceException,
59
- ServiceQuotaTemplateAssociationStatus: () => ServiceQuotaTemplateAssociationStatus,
60
- ServiceQuotaTemplateNotInUseException: () => ServiceQuotaTemplateNotInUseException,
61
- ServiceQuotas: () => ServiceQuotas,
62
- ServiceQuotasClient: () => ServiceQuotasClient,
63
- ServiceQuotasServiceException: () => ServiceQuotasServiceException,
64
- TagPolicyViolationException: () => TagPolicyViolationException,
65
- TagResourceCommand: () => TagResourceCommand,
66
- TemplatesNotAvailableInRegionException: () => TemplatesNotAvailableInRegionException,
67
- TooManyRequestsException: () => TooManyRequestsException,
68
- TooManyTagsException: () => TooManyTagsException,
69
- UntagResourceCommand: () => UntagResourceCommand,
70
- __Client: () => import_smithy_client.Client,
71
- paginateListAWSDefaultServiceQuotas: () => paginateListAWSDefaultServiceQuotas,
72
- paginateListRequestedServiceQuotaChangeHistory: () => paginateListRequestedServiceQuotaChangeHistory,
73
- paginateListRequestedServiceQuotaChangeHistoryByQuota: () => paginateListRequestedServiceQuotaChangeHistoryByQuota,
74
- paginateListServiceQuotaIncreaseRequestsInTemplate: () => paginateListServiceQuotaIncreaseRequestsInTemplate,
75
- paginateListServiceQuotas: () => paginateListServiceQuotas,
76
- paginateListServices: () => paginateListServices
77
- });
78
- module.exports = __toCommonJS(index_exports);
79
-
80
- // src/ServiceQuotasClient.ts
81
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
82
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
83
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
84
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
85
- var import_config_resolver = require("@smithy/config-resolver");
86
- var import_core = require("@smithy/core");
87
- var import_middleware_content_length = require("@smithy/middleware-content-length");
88
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
89
- var import_middleware_retry = require("@smithy/middleware-retry");
90
-
91
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
92
-
93
- // src/endpoint/EndpointParameters.ts
94
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
95
- return Object.assign(options, {
96
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
97
- useFipsEndpoint: options.useFipsEndpoint ?? false,
98
- defaultSigningName: "servicequotas"
99
- });
100
- }, "resolveClientEndpointParameters");
101
- var commonParams = {
102
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
103
- Endpoint: { type: "builtInParams", name: "endpoint" },
104
- Region: { type: "builtInParams", name: "region" },
105
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
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
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "servicequotas",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
106
32
  };
107
33
 
108
- // src/ServiceQuotasClient.ts
109
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
110
72
 
111
- // src/runtimeExtensions.ts
112
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
113
- var import_protocol_http = require("@smithy/protocol-http");
114
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
115
78
 
116
- // src/auth/httpAuthExtensionConfiguration.ts
117
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
118
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
119
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
120
- let _credentials = runtimeConfig.credentials;
121
- return {
122
- setHttpAuthScheme(httpAuthScheme) {
123
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
124
- if (index === -1) {
125
- _httpAuthSchemes.push(httpAuthScheme);
126
- } else {
127
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
128
- }
129
- },
130
- httpAuthSchemes() {
131
- return _httpAuthSchemes;
132
- },
133
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
134
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
135
- },
136
- httpAuthSchemeProvider() {
137
- return _httpAuthSchemeProvider;
138
- },
139
- setCredentials(credentials) {
140
- _credentials = credentials;
141
- },
142
- credentials() {
143
- return _credentials;
79
+ class ServiceQuotasClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultServiceQuotasHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
144
110
  }
145
- };
146
- }, "getHttpAuthExtensionConfiguration");
147
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
148
- return {
149
- httpAuthSchemes: config.httpAuthSchemes(),
150
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
151
- credentials: config.credentials()
152
- };
153
- }, "resolveHttpAuthRuntimeConfig");
111
+ }
154
112
 
155
- // src/runtimeExtensions.ts
156
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
157
- const extensionConfiguration = Object.assign(
158
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
159
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
160
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
161
- getHttpAuthExtensionConfiguration(runtimeConfig)
162
- );
163
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
164
- return Object.assign(
165
- runtimeConfig,
166
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
167
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
168
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
169
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
170
- );
171
- }, "resolveRuntimeExtensions");
113
+ class ServiceQuotasServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, ServiceQuotasServiceException.prototype);
117
+ }
118
+ }
172
119
 
173
- // src/ServiceQuotasClient.ts
174
- var ServiceQuotasClient = class extends import_smithy_client.Client {
175
- static {
176
- __name(this, "ServiceQuotasClient");
177
- }
178
- /**
179
- * The resolved configuration of ServiceQuotasClient class. This is resolved and normalized from the {@link ServiceQuotasClientConfig | constructor configuration interface}.
180
- */
181
- config;
182
- constructor(...[configuration]) {
183
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
184
- super(_config_0);
185
- this.initConfig = _config_0;
186
- const _config_1 = resolveClientEndpointParameters(_config_0);
187
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
188
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
189
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
190
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
191
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
192
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
193
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
194
- this.config = _config_8;
195
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
196
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
197
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
198
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
199
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
200
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
201
- this.middlewareStack.use(
202
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
203
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultServiceQuotasHttpAuthSchemeParametersProvider,
204
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
205
- "aws.auth#sigv4": config.credentials
206
- }), "identityProviderConfigProvider")
207
- })
208
- );
209
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
210
- }
211
- /**
212
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
213
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
214
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
215
- */
216
- destroy() {
217
- super.destroy();
218
- }
120
+ class AccessDeniedException extends ServiceQuotasServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ const AppliedLevelEnum = {
135
+ ACCOUNT: "ACCOUNT",
136
+ ALL: "ALL",
137
+ RESOURCE: "RESOURCE",
219
138
  };
220
-
221
- // src/ServiceQuotas.ts
222
-
223
-
224
- // src/commands/AssociateServiceQuotaTemplateCommand.ts
225
-
226
- var import_middleware_serde = require("@smithy/middleware-serde");
227
-
228
-
229
- // src/protocols/Aws_json1_1.ts
230
- var import_core2 = require("@aws-sdk/core");
231
-
232
-
233
-
234
- // src/models/ServiceQuotasServiceException.ts
235
-
236
- var ServiceQuotasServiceException = class _ServiceQuotasServiceException extends import_smithy_client.ServiceException {
237
- static {
238
- __name(this, "ServiceQuotasServiceException");
239
- }
240
- /**
241
- * @internal
242
- */
243
- constructor(options) {
244
- super(options);
245
- Object.setPrototypeOf(this, _ServiceQuotasServiceException.prototype);
246
- }
139
+ class AWSServiceAccessNotEnabledException extends ServiceQuotasServiceException {
140
+ name = "AWSServiceAccessNotEnabledException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AWSServiceAccessNotEnabledException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AWSServiceAccessNotEnabledException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class DependencyAccessDeniedException extends ServiceQuotasServiceException {
154
+ name = "DependencyAccessDeniedException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "DependencyAccessDeniedException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, DependencyAccessDeniedException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class NoAvailableOrganizationException extends ServiceQuotasServiceException {
168
+ name = "NoAvailableOrganizationException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "NoAvailableOrganizationException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, NoAvailableOrganizationException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class OrganizationNotInAllFeaturesModeException extends ServiceQuotasServiceException {
182
+ name = "OrganizationNotInAllFeaturesModeException";
183
+ $fault = "client";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "OrganizationNotInAllFeaturesModeException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, OrganizationNotInAllFeaturesModeException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class ServiceException extends ServiceQuotasServiceException {
196
+ name = "ServiceException";
197
+ $fault = "server";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ServiceException",
202
+ $fault: "server",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ServiceException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class TemplatesNotAvailableInRegionException extends ServiceQuotasServiceException {
210
+ name = "TemplatesNotAvailableInRegionException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "TemplatesNotAvailableInRegionException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, TemplatesNotAvailableInRegionException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+ class TooManyRequestsException extends ServiceQuotasServiceException {
224
+ name = "TooManyRequestsException";
225
+ $fault = "client";
226
+ Message;
227
+ constructor(opts) {
228
+ super({
229
+ name: "TooManyRequestsException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
234
+ this.Message = opts.Message;
235
+ }
236
+ }
237
+ class IllegalArgumentException extends ServiceQuotasServiceException {
238
+ name = "IllegalArgumentException";
239
+ $fault = "client";
240
+ Message;
241
+ constructor(opts) {
242
+ super({
243
+ name: "IllegalArgumentException",
244
+ $fault: "client",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, IllegalArgumentException.prototype);
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+ class InvalidResourceStateException extends ServiceQuotasServiceException {
252
+ name = "InvalidResourceStateException";
253
+ $fault = "client";
254
+ Message;
255
+ constructor(opts) {
256
+ super({
257
+ name: "InvalidResourceStateException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
262
+ this.Message = opts.Message;
263
+ }
264
+ }
265
+ class NoSuchResourceException extends ServiceQuotasServiceException {
266
+ name = "NoSuchResourceException";
267
+ $fault = "client";
268
+ Message;
269
+ constructor(opts) {
270
+ super({
271
+ name: "NoSuchResourceException",
272
+ $fault: "client",
273
+ ...opts,
274
+ });
275
+ Object.setPrototypeOf(this, NoSuchResourceException.prototype);
276
+ this.Message = opts.Message;
277
+ }
278
+ }
279
+ class ResourceAlreadyExistsException extends ServiceQuotasServiceException {
280
+ name = "ResourceAlreadyExistsException";
281
+ $fault = "client";
282
+ Message;
283
+ constructor(opts) {
284
+ super({
285
+ name: "ResourceAlreadyExistsException",
286
+ $fault: "client",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
290
+ this.Message = opts.Message;
291
+ }
292
+ }
293
+ class ServiceQuotaTemplateNotInUseException extends ServiceQuotasServiceException {
294
+ name = "ServiceQuotaTemplateNotInUseException";
295
+ $fault = "client";
296
+ Message;
297
+ constructor(opts) {
298
+ super({
299
+ name: "ServiceQuotaTemplateNotInUseException",
300
+ $fault: "client",
301
+ ...opts,
302
+ });
303
+ Object.setPrototypeOf(this, ServiceQuotaTemplateNotInUseException.prototype);
304
+ this.Message = opts.Message;
305
+ }
306
+ }
307
+ const ErrorCode = {
308
+ DEPENDENCY_ACCESS_DENIED_ERROR: "DEPENDENCY_ACCESS_DENIED_ERROR",
309
+ DEPENDENCY_SERVICE_ERROR: "DEPENDENCY_SERVICE_ERROR",
310
+ DEPENDENCY_THROTTLING_ERROR: "DEPENDENCY_THROTTLING_ERROR",
311
+ SERVICE_QUOTA_NOT_AVAILABLE_ERROR: "SERVICE_QUOTA_NOT_AVAILABLE_ERROR",
312
+ };
313
+ const ServiceQuotaTemplateAssociationStatus = {
314
+ ASSOCIATED: "ASSOCIATED",
315
+ DISASSOCIATED: "DISASSOCIATED",
316
+ };
317
+ const OptInLevel = {
318
+ ACCOUNT: "ACCOUNT",
319
+ };
320
+ const OptInStatus = {
321
+ DISABLED: "DISABLED",
322
+ ENABLED: "ENABLED",
247
323
  };
324
+ const OptInType = {
325
+ NotifyAndAdjust: "NotifyAndAdjust",
326
+ NotifyOnly: "NotifyOnly",
327
+ };
328
+ const PeriodUnit = {
329
+ DAY: "DAY",
330
+ HOUR: "HOUR",
331
+ MICROSECOND: "MICROSECOND",
332
+ MILLISECOND: "MILLISECOND",
333
+ MINUTE: "MINUTE",
334
+ SECOND: "SECOND",
335
+ WEEK: "WEEK",
336
+ };
337
+ const QuotaContextScope = {
338
+ ACCOUNT: "ACCOUNT",
339
+ RESOURCE: "RESOURCE",
340
+ };
341
+ const RequestStatus = {
342
+ APPROVED: "APPROVED",
343
+ CASE_CLOSED: "CASE_CLOSED",
344
+ CASE_OPENED: "CASE_OPENED",
345
+ DENIED: "DENIED",
346
+ INVALID_REQUEST: "INVALID_REQUEST",
347
+ NOT_APPROVED: "NOT_APPROVED",
348
+ PENDING: "PENDING",
349
+ };
350
+ class InvalidPaginationTokenException extends ServiceQuotasServiceException {
351
+ name = "InvalidPaginationTokenException";
352
+ $fault = "client";
353
+ Message;
354
+ constructor(opts) {
355
+ super({
356
+ name: "InvalidPaginationTokenException",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
361
+ this.Message = opts.Message;
362
+ }
363
+ }
364
+ class QuotaExceededException extends ServiceQuotasServiceException {
365
+ name = "QuotaExceededException";
366
+ $fault = "client";
367
+ Message;
368
+ constructor(opts) {
369
+ super({
370
+ name: "QuotaExceededException",
371
+ $fault: "client",
372
+ ...opts,
373
+ });
374
+ Object.setPrototypeOf(this, QuotaExceededException.prototype);
375
+ this.Message = opts.Message;
376
+ }
377
+ }
378
+ class TagPolicyViolationException extends ServiceQuotasServiceException {
379
+ name = "TagPolicyViolationException";
380
+ $fault = "client";
381
+ Message;
382
+ constructor(opts) {
383
+ super({
384
+ name: "TagPolicyViolationException",
385
+ $fault: "client",
386
+ ...opts,
387
+ });
388
+ Object.setPrototypeOf(this, TagPolicyViolationException.prototype);
389
+ this.Message = opts.Message;
390
+ }
391
+ }
392
+ class TooManyTagsException extends ServiceQuotasServiceException {
393
+ name = "TooManyTagsException";
394
+ $fault = "client";
395
+ Message;
396
+ constructor(opts) {
397
+ super({
398
+ name: "TooManyTagsException",
399
+ $fault: "client",
400
+ ...opts,
401
+ });
402
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
403
+ this.Message = opts.Message;
404
+ }
405
+ }
248
406
 
249
- // src/models/models_0.ts
250
- var AccessDeniedException = class _AccessDeniedException extends ServiceQuotasServiceException {
251
- static {
252
- __name(this, "AccessDeniedException");
253
- }
254
- name = "AccessDeniedException";
255
- $fault = "client";
256
- Message;
257
- /**
258
- * @internal
259
- */
260
- constructor(opts) {
261
- super({
262
- name: "AccessDeniedException",
263
- $fault: "client",
264
- ...opts
407
+ const se_AssociateServiceQuotaTemplateCommand = async (input, context) => {
408
+ const headers = sharedHeaders("AssociateServiceQuotaTemplate");
409
+ let body;
410
+ body = JSON.stringify(smithyClient._json(input));
411
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
412
+ };
413
+ const se_CreateSupportCaseCommand = async (input, context) => {
414
+ const headers = sharedHeaders("CreateSupportCase");
415
+ let body;
416
+ body = JSON.stringify(smithyClient._json(input));
417
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
+ };
419
+ const se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
420
+ const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
421
+ let body;
422
+ body = JSON.stringify(smithyClient._json(input));
423
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
+ };
425
+ const se_DisassociateServiceQuotaTemplateCommand = async (input, context) => {
426
+ const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
427
+ let body;
428
+ body = JSON.stringify(smithyClient._json(input));
429
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
+ };
431
+ const se_GetAssociationForServiceQuotaTemplateCommand = async (input, context) => {
432
+ const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
433
+ let body;
434
+ body = JSON.stringify(smithyClient._json(input));
435
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
+ };
437
+ const se_GetAutoManagementConfigurationCommand = async (input, context) => {
438
+ const headers = sharedHeaders("GetAutoManagementConfiguration");
439
+ let body;
440
+ body = JSON.stringify(smithyClient._json(input));
441
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
+ };
443
+ const se_GetAWSDefaultServiceQuotaCommand = async (input, context) => {
444
+ const headers = sharedHeaders("GetAWSDefaultServiceQuota");
445
+ let body;
446
+ body = JSON.stringify(smithyClient._json(input));
447
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
+ };
449
+ const se_GetRequestedServiceQuotaChangeCommand = async (input, context) => {
450
+ const headers = sharedHeaders("GetRequestedServiceQuotaChange");
451
+ let body;
452
+ body = JSON.stringify(smithyClient._json(input));
453
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
+ };
455
+ const se_GetServiceQuotaCommand = async (input, context) => {
456
+ const headers = sharedHeaders("GetServiceQuota");
457
+ let body;
458
+ body = JSON.stringify(smithyClient._json(input));
459
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
+ };
461
+ const se_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
462
+ const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
463
+ let body;
464
+ body = JSON.stringify(smithyClient._json(input));
465
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
466
+ };
467
+ const se_ListAWSDefaultServiceQuotasCommand = async (input, context) => {
468
+ const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
469
+ let body;
470
+ body = JSON.stringify(smithyClient._json(input));
471
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
472
+ };
473
+ const se_ListRequestedServiceQuotaChangeHistoryCommand = async (input, context) => {
474
+ const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
475
+ let body;
476
+ body = JSON.stringify(smithyClient._json(input));
477
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
478
+ };
479
+ const se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (input, context) => {
480
+ const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
481
+ let body;
482
+ body = JSON.stringify(smithyClient._json(input));
483
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
484
+ };
485
+ const se_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (input, context) => {
486
+ const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
487
+ let body;
488
+ body = JSON.stringify(smithyClient._json(input));
489
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
+ };
491
+ const se_ListServiceQuotasCommand = async (input, context) => {
492
+ const headers = sharedHeaders("ListServiceQuotas");
493
+ let body;
494
+ body = JSON.stringify(smithyClient._json(input));
495
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
496
+ };
497
+ const se_ListServicesCommand = async (input, context) => {
498
+ const headers = sharedHeaders("ListServices");
499
+ let body;
500
+ body = JSON.stringify(smithyClient._json(input));
501
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
502
+ };
503
+ const se_ListTagsForResourceCommand = async (input, context) => {
504
+ const headers = sharedHeaders("ListTagsForResource");
505
+ let body;
506
+ body = JSON.stringify(smithyClient._json(input));
507
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
+ };
509
+ const se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (input, context) => {
510
+ const headers = sharedHeaders("PutServiceQuotaIncreaseRequestIntoTemplate");
511
+ let body;
512
+ body = JSON.stringify(se_PutServiceQuotaIncreaseRequestIntoTemplateRequest(input));
513
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
514
+ };
515
+ const se_RequestServiceQuotaIncreaseCommand = async (input, context) => {
516
+ const headers = sharedHeaders("RequestServiceQuotaIncrease");
517
+ let body;
518
+ body = JSON.stringify(se_RequestServiceQuotaIncreaseRequest(input));
519
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
520
+ };
521
+ const se_StartAutoManagementCommand = async (input, context) => {
522
+ const headers = sharedHeaders("StartAutoManagement");
523
+ let body;
524
+ body = JSON.stringify(smithyClient._json(input));
525
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
526
+ };
527
+ const se_StopAutoManagementCommand = async (input, context) => {
528
+ const headers = sharedHeaders("StopAutoManagement");
529
+ let body;
530
+ body = JSON.stringify(smithyClient._json(input));
531
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
532
+ };
533
+ const se_TagResourceCommand = async (input, context) => {
534
+ const headers = sharedHeaders("TagResource");
535
+ let body;
536
+ body = JSON.stringify(smithyClient._json(input));
537
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
538
+ };
539
+ const se_UntagResourceCommand = async (input, context) => {
540
+ const headers = sharedHeaders("UntagResource");
541
+ let body;
542
+ body = JSON.stringify(smithyClient._json(input));
543
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
+ };
545
+ const se_UpdateAutoManagementCommand = async (input, context) => {
546
+ const headers = sharedHeaders("UpdateAutoManagement");
547
+ let body;
548
+ body = JSON.stringify(smithyClient._json(input));
549
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
550
+ };
551
+ const de_AssociateServiceQuotaTemplateCommand = async (output, context) => {
552
+ if (output.statusCode >= 300) {
553
+ return de_CommandError(output, context);
554
+ }
555
+ const data = await core$1.parseJsonBody(output.body, context);
556
+ let contents = {};
557
+ contents = smithyClient._json(data);
558
+ const response = {
559
+ $metadata: deserializeMetadata(output),
560
+ ...contents,
561
+ };
562
+ return response;
563
+ };
564
+ const de_CreateSupportCaseCommand = async (output, context) => {
565
+ if (output.statusCode >= 300) {
566
+ return de_CommandError(output, context);
567
+ }
568
+ const data = await core$1.parseJsonBody(output.body, context);
569
+ let contents = {};
570
+ contents = smithyClient._json(data);
571
+ const response = {
572
+ $metadata: deserializeMetadata(output),
573
+ ...contents,
574
+ };
575
+ return response;
576
+ };
577
+ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
578
+ if (output.statusCode >= 300) {
579
+ return de_CommandError(output, context);
580
+ }
581
+ const data = await core$1.parseJsonBody(output.body, context);
582
+ let contents = {};
583
+ contents = smithyClient._json(data);
584
+ const response = {
585
+ $metadata: deserializeMetadata(output),
586
+ ...contents,
587
+ };
588
+ return response;
589
+ };
590
+ const de_DisassociateServiceQuotaTemplateCommand = async (output, context) => {
591
+ if (output.statusCode >= 300) {
592
+ return de_CommandError(output, context);
593
+ }
594
+ const data = await core$1.parseJsonBody(output.body, context);
595
+ let contents = {};
596
+ contents = smithyClient._json(data);
597
+ const response = {
598
+ $metadata: deserializeMetadata(output),
599
+ ...contents,
600
+ };
601
+ return response;
602
+ };
603
+ const de_GetAssociationForServiceQuotaTemplateCommand = async (output, context) => {
604
+ if (output.statusCode >= 300) {
605
+ return de_CommandError(output, context);
606
+ }
607
+ const data = await core$1.parseJsonBody(output.body, context);
608
+ let contents = {};
609
+ contents = smithyClient._json(data);
610
+ const response = {
611
+ $metadata: deserializeMetadata(output),
612
+ ...contents,
613
+ };
614
+ return response;
615
+ };
616
+ const de_GetAutoManagementConfigurationCommand = async (output, context) => {
617
+ if (output.statusCode >= 300) {
618
+ return de_CommandError(output, context);
619
+ }
620
+ const data = await core$1.parseJsonBody(output.body, context);
621
+ let contents = {};
622
+ contents = smithyClient._json(data);
623
+ const response = {
624
+ $metadata: deserializeMetadata(output),
625
+ ...contents,
626
+ };
627
+ return response;
628
+ };
629
+ const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
630
+ if (output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const data = await core$1.parseJsonBody(output.body, context);
634
+ let contents = {};
635
+ contents = de_GetAWSDefaultServiceQuotaResponse(data);
636
+ const response = {
637
+ $metadata: deserializeMetadata(output),
638
+ ...contents,
639
+ };
640
+ return response;
641
+ };
642
+ const de_GetRequestedServiceQuotaChangeCommand = async (output, context) => {
643
+ if (output.statusCode >= 300) {
644
+ return de_CommandError(output, context);
645
+ }
646
+ const data = await core$1.parseJsonBody(output.body, context);
647
+ let contents = {};
648
+ contents = de_GetRequestedServiceQuotaChangeResponse(data);
649
+ const response = {
650
+ $metadata: deserializeMetadata(output),
651
+ ...contents,
652
+ };
653
+ return response;
654
+ };
655
+ const de_GetServiceQuotaCommand = async (output, context) => {
656
+ if (output.statusCode >= 300) {
657
+ return de_CommandError(output, context);
658
+ }
659
+ const data = await core$1.parseJsonBody(output.body, context);
660
+ let contents = {};
661
+ contents = de_GetServiceQuotaResponse(data);
662
+ const response = {
663
+ $metadata: deserializeMetadata(output),
664
+ ...contents,
665
+ };
666
+ return response;
667
+ };
668
+ const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
669
+ if (output.statusCode >= 300) {
670
+ return de_CommandError(output, context);
671
+ }
672
+ const data = await core$1.parseJsonBody(output.body, context);
673
+ let contents = {};
674
+ contents = de_GetServiceQuotaIncreaseRequestFromTemplateResponse(data);
675
+ const response = {
676
+ $metadata: deserializeMetadata(output),
677
+ ...contents,
678
+ };
679
+ return response;
680
+ };
681
+ const de_ListAWSDefaultServiceQuotasCommand = async (output, context) => {
682
+ if (output.statusCode >= 300) {
683
+ return de_CommandError(output, context);
684
+ }
685
+ const data = await core$1.parseJsonBody(output.body, context);
686
+ let contents = {};
687
+ contents = de_ListAWSDefaultServiceQuotasResponse(data);
688
+ const response = {
689
+ $metadata: deserializeMetadata(output),
690
+ ...contents,
691
+ };
692
+ return response;
693
+ };
694
+ const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, context) => {
695
+ if (output.statusCode >= 300) {
696
+ return de_CommandError(output, context);
697
+ }
698
+ const data = await core$1.parseJsonBody(output.body, context);
699
+ let contents = {};
700
+ contents = de_ListRequestedServiceQuotaChangeHistoryResponse(data);
701
+ const response = {
702
+ $metadata: deserializeMetadata(output),
703
+ ...contents,
704
+ };
705
+ return response;
706
+ };
707
+ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, context) => {
708
+ if (output.statusCode >= 300) {
709
+ return de_CommandError(output, context);
710
+ }
711
+ const data = await core$1.parseJsonBody(output.body, context);
712
+ let contents = {};
713
+ contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data);
714
+ const response = {
715
+ $metadata: deserializeMetadata(output),
716
+ ...contents,
717
+ };
718
+ return response;
719
+ };
720
+ const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, context) => {
721
+ if (output.statusCode >= 300) {
722
+ return de_CommandError(output, context);
723
+ }
724
+ const data = await core$1.parseJsonBody(output.body, context);
725
+ let contents = {};
726
+ contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data);
727
+ const response = {
728
+ $metadata: deserializeMetadata(output),
729
+ ...contents,
730
+ };
731
+ return response;
732
+ };
733
+ const de_ListServiceQuotasCommand = async (output, context) => {
734
+ if (output.statusCode >= 300) {
735
+ return de_CommandError(output, context);
736
+ }
737
+ const data = await core$1.parseJsonBody(output.body, context);
738
+ let contents = {};
739
+ contents = de_ListServiceQuotasResponse(data);
740
+ const response = {
741
+ $metadata: deserializeMetadata(output),
742
+ ...contents,
743
+ };
744
+ return response;
745
+ };
746
+ const de_ListServicesCommand = async (output, context) => {
747
+ if (output.statusCode >= 300) {
748
+ return de_CommandError(output, context);
749
+ }
750
+ const data = await core$1.parseJsonBody(output.body, context);
751
+ let contents = {};
752
+ contents = smithyClient._json(data);
753
+ const response = {
754
+ $metadata: deserializeMetadata(output),
755
+ ...contents,
756
+ };
757
+ return response;
758
+ };
759
+ const de_ListTagsForResourceCommand = async (output, context) => {
760
+ if (output.statusCode >= 300) {
761
+ return de_CommandError(output, context);
762
+ }
763
+ const data = await core$1.parseJsonBody(output.body, context);
764
+ let contents = {};
765
+ contents = smithyClient._json(data);
766
+ const response = {
767
+ $metadata: deserializeMetadata(output),
768
+ ...contents,
769
+ };
770
+ return response;
771
+ };
772
+ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, context) => {
773
+ if (output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const data = await core$1.parseJsonBody(output.body, context);
777
+ let contents = {};
778
+ contents = de_PutServiceQuotaIncreaseRequestIntoTemplateResponse(data);
779
+ const response = {
780
+ $metadata: deserializeMetadata(output),
781
+ ...contents,
782
+ };
783
+ return response;
784
+ };
785
+ const de_RequestServiceQuotaIncreaseCommand = async (output, context) => {
786
+ if (output.statusCode >= 300) {
787
+ return de_CommandError(output, context);
788
+ }
789
+ const data = await core$1.parseJsonBody(output.body, context);
790
+ let contents = {};
791
+ contents = de_RequestServiceQuotaIncreaseResponse(data);
792
+ const response = {
793
+ $metadata: deserializeMetadata(output),
794
+ ...contents,
795
+ };
796
+ return response;
797
+ };
798
+ const de_StartAutoManagementCommand = async (output, context) => {
799
+ if (output.statusCode >= 300) {
800
+ return de_CommandError(output, context);
801
+ }
802
+ const data = await core$1.parseJsonBody(output.body, context);
803
+ let contents = {};
804
+ contents = smithyClient._json(data);
805
+ const response = {
806
+ $metadata: deserializeMetadata(output),
807
+ ...contents,
808
+ };
809
+ return response;
810
+ };
811
+ const de_StopAutoManagementCommand = async (output, context) => {
812
+ if (output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const data = await core$1.parseJsonBody(output.body, context);
816
+ let contents = {};
817
+ contents = smithyClient._json(data);
818
+ const response = {
819
+ $metadata: deserializeMetadata(output),
820
+ ...contents,
821
+ };
822
+ return response;
823
+ };
824
+ const de_TagResourceCommand = async (output, context) => {
825
+ if (output.statusCode >= 300) {
826
+ return de_CommandError(output, context);
827
+ }
828
+ const data = await core$1.parseJsonBody(output.body, context);
829
+ let contents = {};
830
+ contents = smithyClient._json(data);
831
+ const response = {
832
+ $metadata: deserializeMetadata(output),
833
+ ...contents,
834
+ };
835
+ return response;
836
+ };
837
+ const de_UntagResourceCommand = async (output, context) => {
838
+ if (output.statusCode >= 300) {
839
+ return de_CommandError(output, context);
840
+ }
841
+ const data = await core$1.parseJsonBody(output.body, context);
842
+ let contents = {};
843
+ contents = smithyClient._json(data);
844
+ const response = {
845
+ $metadata: deserializeMetadata(output),
846
+ ...contents,
847
+ };
848
+ return response;
849
+ };
850
+ const de_UpdateAutoManagementCommand = async (output, context) => {
851
+ if (output.statusCode >= 300) {
852
+ return de_CommandError(output, context);
853
+ }
854
+ const data = await core$1.parseJsonBody(output.body, context);
855
+ let contents = {};
856
+ contents = smithyClient._json(data);
857
+ const response = {
858
+ $metadata: deserializeMetadata(output),
859
+ ...contents,
860
+ };
861
+ return response;
862
+ };
863
+ const de_CommandError = async (output, context) => {
864
+ const parsedOutput = {
865
+ ...output,
866
+ body: await core$1.parseJsonErrorBody(output.body, context),
867
+ };
868
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
869
+ switch (errorCode) {
870
+ case "AWSServiceAccessNotEnabledException":
871
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
872
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput);
873
+ case "AccessDeniedException":
874
+ case "com.amazonaws.servicequotas#AccessDeniedException":
875
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
876
+ case "DependencyAccessDeniedException":
877
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
878
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput);
879
+ case "NoAvailableOrganizationException":
880
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
881
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput);
882
+ case "OrganizationNotInAllFeaturesModeException":
883
+ case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
884
+ throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput);
885
+ case "ServiceException":
886
+ case "com.amazonaws.servicequotas#ServiceException":
887
+ throw await de_ServiceExceptionRes(parsedOutput);
888
+ case "TemplatesNotAvailableInRegionException":
889
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
890
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput);
891
+ case "TooManyRequestsException":
892
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
893
+ throw await de_TooManyRequestsExceptionRes(parsedOutput);
894
+ case "IllegalArgumentException":
895
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
896
+ throw await de_IllegalArgumentExceptionRes(parsedOutput);
897
+ case "InvalidResourceStateException":
898
+ case "com.amazonaws.servicequotas#InvalidResourceStateException":
899
+ throw await de_InvalidResourceStateExceptionRes(parsedOutput);
900
+ case "NoSuchResourceException":
901
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
902
+ throw await de_NoSuchResourceExceptionRes(parsedOutput);
903
+ case "ResourceAlreadyExistsException":
904
+ case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
905
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
906
+ case "ServiceQuotaTemplateNotInUseException":
907
+ case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
908
+ throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput);
909
+ case "InvalidPaginationTokenException":
910
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
911
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput);
912
+ case "QuotaExceededException":
913
+ case "com.amazonaws.servicequotas#QuotaExceededException":
914
+ throw await de_QuotaExceededExceptionRes(parsedOutput);
915
+ case "TagPolicyViolationException":
916
+ case "com.amazonaws.servicequotas#TagPolicyViolationException":
917
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput);
918
+ case "TooManyTagsException":
919
+ case "com.amazonaws.servicequotas#TooManyTagsException":
920
+ throw await de_TooManyTagsExceptionRes(parsedOutput);
921
+ default:
922
+ const parsedBody = parsedOutput.body;
923
+ return throwDefaultError({
924
+ output,
925
+ parsedBody,
926
+ errorCode,
927
+ });
928
+ }
929
+ };
930
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
931
+ const body = parsedOutput.body;
932
+ const deserialized = smithyClient._json(body);
933
+ const exception = new AccessDeniedException({
934
+ $metadata: deserializeMetadata(parsedOutput),
935
+ ...deserialized,
265
936
  });
266
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
267
- this.Message = opts.Message;
268
- }
269
- };
270
- var AppliedLevelEnum = {
271
- ACCOUNT: "ACCOUNT",
272
- ALL: "ALL",
273
- RESOURCE: "RESOURCE"
274
- };
275
- var AWSServiceAccessNotEnabledException = class _AWSServiceAccessNotEnabledException extends ServiceQuotasServiceException {
276
- static {
277
- __name(this, "AWSServiceAccessNotEnabledException");
278
- }
279
- name = "AWSServiceAccessNotEnabledException";
280
- $fault = "client";
281
- Message;
282
- /**
283
- * @internal
284
- */
285
- constructor(opts) {
286
- super({
287
- name: "AWSServiceAccessNotEnabledException",
288
- $fault: "client",
289
- ...opts
937
+ return smithyClient.decorateServiceException(exception, body);
938
+ };
939
+ const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
940
+ const body = parsedOutput.body;
941
+ const deserialized = smithyClient._json(body);
942
+ const exception = new AWSServiceAccessNotEnabledException({
943
+ $metadata: deserializeMetadata(parsedOutput),
944
+ ...deserialized,
290
945
  });
291
- Object.setPrototypeOf(this, _AWSServiceAccessNotEnabledException.prototype);
292
- this.Message = opts.Message;
293
- }
294
- };
295
- var DependencyAccessDeniedException = class _DependencyAccessDeniedException extends ServiceQuotasServiceException {
296
- static {
297
- __name(this, "DependencyAccessDeniedException");
298
- }
299
- name = "DependencyAccessDeniedException";
300
- $fault = "client";
301
- Message;
302
- /**
303
- * @internal
304
- */
305
- constructor(opts) {
306
- super({
307
- name: "DependencyAccessDeniedException",
308
- $fault: "client",
309
- ...opts
946
+ return smithyClient.decorateServiceException(exception, body);
947
+ };
948
+ const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
949
+ const body = parsedOutput.body;
950
+ const deserialized = smithyClient._json(body);
951
+ const exception = new DependencyAccessDeniedException({
952
+ $metadata: deserializeMetadata(parsedOutput),
953
+ ...deserialized,
310
954
  });
311
- Object.setPrototypeOf(this, _DependencyAccessDeniedException.prototype);
312
- this.Message = opts.Message;
313
- }
314
- };
315
- var NoAvailableOrganizationException = class _NoAvailableOrganizationException extends ServiceQuotasServiceException {
316
- static {
317
- __name(this, "NoAvailableOrganizationException");
318
- }
319
- name = "NoAvailableOrganizationException";
320
- $fault = "client";
321
- Message;
322
- /**
323
- * @internal
324
- */
325
- constructor(opts) {
326
- super({
327
- name: "NoAvailableOrganizationException",
328
- $fault: "client",
329
- ...opts
955
+ return smithyClient.decorateServiceException(exception, body);
956
+ };
957
+ const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
958
+ const body = parsedOutput.body;
959
+ const deserialized = smithyClient._json(body);
960
+ const exception = new IllegalArgumentException({
961
+ $metadata: deserializeMetadata(parsedOutput),
962
+ ...deserialized,
330
963
  });
331
- Object.setPrototypeOf(this, _NoAvailableOrganizationException.prototype);
332
- this.Message = opts.Message;
333
- }
334
- };
335
- var OrganizationNotInAllFeaturesModeException = class _OrganizationNotInAllFeaturesModeException extends ServiceQuotasServiceException {
336
- static {
337
- __name(this, "OrganizationNotInAllFeaturesModeException");
338
- }
339
- name = "OrganizationNotInAllFeaturesModeException";
340
- $fault = "client";
341
- Message;
342
- /**
343
- * @internal
344
- */
345
- constructor(opts) {
346
- super({
347
- name: "OrganizationNotInAllFeaturesModeException",
348
- $fault: "client",
349
- ...opts
964
+ return smithyClient.decorateServiceException(exception, body);
965
+ };
966
+ const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
967
+ const body = parsedOutput.body;
968
+ const deserialized = smithyClient._json(body);
969
+ const exception = new InvalidPaginationTokenException({
970
+ $metadata: deserializeMetadata(parsedOutput),
971
+ ...deserialized,
350
972
  });
351
- Object.setPrototypeOf(this, _OrganizationNotInAllFeaturesModeException.prototype);
352
- this.Message = opts.Message;
353
- }
354
- };
355
- var ServiceException = class _ServiceException extends ServiceQuotasServiceException {
356
- static {
357
- __name(this, "ServiceException");
358
- }
359
- name = "ServiceException";
360
- $fault = "server";
361
- Message;
362
- /**
363
- * @internal
364
- */
365
- constructor(opts) {
366
- super({
367
- name: "ServiceException",
368
- $fault: "server",
369
- ...opts
973
+ return smithyClient.decorateServiceException(exception, body);
974
+ };
975
+ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
976
+ const body = parsedOutput.body;
977
+ const deserialized = smithyClient._json(body);
978
+ const exception = new InvalidResourceStateException({
979
+ $metadata: deserializeMetadata(parsedOutput),
980
+ ...deserialized,
370
981
  });
371
- Object.setPrototypeOf(this, _ServiceException.prototype);
372
- this.Message = opts.Message;
373
- }
374
- };
375
- var TemplatesNotAvailableInRegionException = class _TemplatesNotAvailableInRegionException extends ServiceQuotasServiceException {
376
- static {
377
- __name(this, "TemplatesNotAvailableInRegionException");
378
- }
379
- name = "TemplatesNotAvailableInRegionException";
380
- $fault = "client";
381
- Message;
382
- /**
383
- * @internal
384
- */
385
- constructor(opts) {
386
- super({
387
- name: "TemplatesNotAvailableInRegionException",
388
- $fault: "client",
389
- ...opts
982
+ return smithyClient.decorateServiceException(exception, body);
983
+ };
984
+ const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) => {
985
+ const body = parsedOutput.body;
986
+ const deserialized = smithyClient._json(body);
987
+ const exception = new NoAvailableOrganizationException({
988
+ $metadata: deserializeMetadata(parsedOutput),
989
+ ...deserialized,
390
990
  });
391
- Object.setPrototypeOf(this, _TemplatesNotAvailableInRegionException.prototype);
392
- this.Message = opts.Message;
393
- }
394
- };
395
- var TooManyRequestsException = class _TooManyRequestsException extends ServiceQuotasServiceException {
396
- static {
397
- __name(this, "TooManyRequestsException");
398
- }
399
- name = "TooManyRequestsException";
400
- $fault = "client";
401
- Message;
402
- /**
403
- * @internal
404
- */
405
- constructor(opts) {
406
- super({
407
- name: "TooManyRequestsException",
408
- $fault: "client",
409
- ...opts
991
+ return smithyClient.decorateServiceException(exception, body);
992
+ };
993
+ const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
994
+ const body = parsedOutput.body;
995
+ const deserialized = smithyClient._json(body);
996
+ const exception = new NoSuchResourceException({
997
+ $metadata: deserializeMetadata(parsedOutput),
998
+ ...deserialized,
410
999
  });
411
- Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
412
- this.Message = opts.Message;
413
- }
414
- };
415
- var IllegalArgumentException = class _IllegalArgumentException extends ServiceQuotasServiceException {
416
- static {
417
- __name(this, "IllegalArgumentException");
418
- }
419
- name = "IllegalArgumentException";
420
- $fault = "client";
421
- Message;
422
- /**
423
- * @internal
424
- */
425
- constructor(opts) {
426
- super({
427
- name: "IllegalArgumentException",
428
- $fault: "client",
429
- ...opts
1000
+ return smithyClient.decorateServiceException(exception, body);
1001
+ };
1002
+ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
1003
+ const body = parsedOutput.body;
1004
+ const deserialized = smithyClient._json(body);
1005
+ const exception = new OrganizationNotInAllFeaturesModeException({
1006
+ $metadata: deserializeMetadata(parsedOutput),
1007
+ ...deserialized,
430
1008
  });
431
- Object.setPrototypeOf(this, _IllegalArgumentException.prototype);
432
- this.Message = opts.Message;
433
- }
434
- };
435
- var InvalidResourceStateException = class _InvalidResourceStateException extends ServiceQuotasServiceException {
436
- static {
437
- __name(this, "InvalidResourceStateException");
438
- }
439
- name = "InvalidResourceStateException";
440
- $fault = "client";
441
- Message;
442
- /**
443
- * @internal
444
- */
445
- constructor(opts) {
446
- super({
447
- name: "InvalidResourceStateException",
448
- $fault: "client",
449
- ...opts
1009
+ return smithyClient.decorateServiceException(exception, body);
1010
+ };
1011
+ const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
1012
+ const body = parsedOutput.body;
1013
+ const deserialized = smithyClient._json(body);
1014
+ const exception = new QuotaExceededException({
1015
+ $metadata: deserializeMetadata(parsedOutput),
1016
+ ...deserialized,
450
1017
  });
451
- Object.setPrototypeOf(this, _InvalidResourceStateException.prototype);
452
- this.Message = opts.Message;
453
- }
454
- };
455
- var NoSuchResourceException = class _NoSuchResourceException extends ServiceQuotasServiceException {
456
- static {
457
- __name(this, "NoSuchResourceException");
458
- }
459
- name = "NoSuchResourceException";
460
- $fault = "client";
461
- Message;
462
- /**
463
- * @internal
464
- */
465
- constructor(opts) {
466
- super({
467
- name: "NoSuchResourceException",
468
- $fault: "client",
469
- ...opts
1018
+ return smithyClient.decorateServiceException(exception, body);
1019
+ };
1020
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1021
+ const body = parsedOutput.body;
1022
+ const deserialized = smithyClient._json(body);
1023
+ const exception = new ResourceAlreadyExistsException({
1024
+ $metadata: deserializeMetadata(parsedOutput),
1025
+ ...deserialized,
470
1026
  });
471
- Object.setPrototypeOf(this, _NoSuchResourceException.prototype);
472
- this.Message = opts.Message;
473
- }
474
- };
475
- var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ServiceQuotasServiceException {
476
- static {
477
- __name(this, "ResourceAlreadyExistsException");
478
- }
479
- name = "ResourceAlreadyExistsException";
480
- $fault = "client";
481
- Message;
482
- /**
483
- * @internal
484
- */
485
- constructor(opts) {
486
- super({
487
- name: "ResourceAlreadyExistsException",
488
- $fault: "client",
489
- ...opts
1027
+ return smithyClient.decorateServiceException(exception, body);
1028
+ };
1029
+ const de_ServiceExceptionRes = async (parsedOutput, context) => {
1030
+ const body = parsedOutput.body;
1031
+ const deserialized = smithyClient._json(body);
1032
+ const exception = new ServiceException({
1033
+ $metadata: deserializeMetadata(parsedOutput),
1034
+ ...deserialized,
490
1035
  });
491
- Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
492
- this.Message = opts.Message;
493
- }
494
- };
495
- var ServiceQuotaTemplateNotInUseException = class _ServiceQuotaTemplateNotInUseException extends ServiceQuotasServiceException {
496
- static {
497
- __name(this, "ServiceQuotaTemplateNotInUseException");
498
- }
499
- name = "ServiceQuotaTemplateNotInUseException";
500
- $fault = "client";
501
- Message;
502
- /**
503
- * @internal
504
- */
505
- constructor(opts) {
506
- super({
507
- name: "ServiceQuotaTemplateNotInUseException",
508
- $fault: "client",
509
- ...opts
1036
+ return smithyClient.decorateServiceException(exception, body);
1037
+ };
1038
+ const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context) => {
1039
+ const body = parsedOutput.body;
1040
+ const deserialized = smithyClient._json(body);
1041
+ const exception = new ServiceQuotaTemplateNotInUseException({
1042
+ $metadata: deserializeMetadata(parsedOutput),
1043
+ ...deserialized,
510
1044
  });
511
- Object.setPrototypeOf(this, _ServiceQuotaTemplateNotInUseException.prototype);
512
- this.Message = opts.Message;
513
- }
514
- };
515
- var ErrorCode = {
516
- DEPENDENCY_ACCESS_DENIED_ERROR: "DEPENDENCY_ACCESS_DENIED_ERROR",
517
- DEPENDENCY_SERVICE_ERROR: "DEPENDENCY_SERVICE_ERROR",
518
- DEPENDENCY_THROTTLING_ERROR: "DEPENDENCY_THROTTLING_ERROR",
519
- SERVICE_QUOTA_NOT_AVAILABLE_ERROR: "SERVICE_QUOTA_NOT_AVAILABLE_ERROR"
520
- };
521
- var ServiceQuotaTemplateAssociationStatus = {
522
- ASSOCIATED: "ASSOCIATED",
523
- DISASSOCIATED: "DISASSOCIATED"
524
- };
525
- var PeriodUnit = {
526
- DAY: "DAY",
527
- HOUR: "HOUR",
528
- MICROSECOND: "MICROSECOND",
529
- MILLISECOND: "MILLISECOND",
530
- MINUTE: "MINUTE",
531
- SECOND: "SECOND",
532
- WEEK: "WEEK"
533
- };
534
- var QuotaContextScope = {
535
- ACCOUNT: "ACCOUNT",
536
- RESOURCE: "RESOURCE"
537
- };
538
- var RequestStatus = {
539
- APPROVED: "APPROVED",
540
- CASE_CLOSED: "CASE_CLOSED",
541
- CASE_OPENED: "CASE_OPENED",
542
- DENIED: "DENIED",
543
- INVALID_REQUEST: "INVALID_REQUEST",
544
- NOT_APPROVED: "NOT_APPROVED",
545
- PENDING: "PENDING"
546
- };
547
- var InvalidPaginationTokenException = class _InvalidPaginationTokenException extends ServiceQuotasServiceException {
548
- static {
549
- __name(this, "InvalidPaginationTokenException");
550
- }
551
- name = "InvalidPaginationTokenException";
552
- $fault = "client";
553
- Message;
554
- /**
555
- * @internal
556
- */
557
- constructor(opts) {
558
- super({
559
- name: "InvalidPaginationTokenException",
560
- $fault: "client",
561
- ...opts
1045
+ return smithyClient.decorateServiceException(exception, body);
1046
+ };
1047
+ const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
1048
+ const body = parsedOutput.body;
1049
+ const deserialized = smithyClient._json(body);
1050
+ const exception = new TagPolicyViolationException({
1051
+ $metadata: deserializeMetadata(parsedOutput),
1052
+ ...deserialized,
562
1053
  });
563
- Object.setPrototypeOf(this, _InvalidPaginationTokenException.prototype);
564
- this.Message = opts.Message;
565
- }
566
- };
567
- var QuotaExceededException = class _QuotaExceededException extends ServiceQuotasServiceException {
568
- static {
569
- __name(this, "QuotaExceededException");
570
- }
571
- name = "QuotaExceededException";
572
- $fault = "client";
573
- Message;
574
- /**
575
- * @internal
576
- */
577
- constructor(opts) {
578
- super({
579
- name: "QuotaExceededException",
580
- $fault: "client",
581
- ...opts
1054
+ return smithyClient.decorateServiceException(exception, body);
1055
+ };
1056
+ const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, context) => {
1057
+ const body = parsedOutput.body;
1058
+ const deserialized = smithyClient._json(body);
1059
+ const exception = new TemplatesNotAvailableInRegionException({
1060
+ $metadata: deserializeMetadata(parsedOutput),
1061
+ ...deserialized,
582
1062
  });
583
- Object.setPrototypeOf(this, _QuotaExceededException.prototype);
584
- this.Message = opts.Message;
585
- }
586
- };
587
- var TagPolicyViolationException = class _TagPolicyViolationException extends ServiceQuotasServiceException {
588
- static {
589
- __name(this, "TagPolicyViolationException");
590
- }
591
- name = "TagPolicyViolationException";
592
- $fault = "client";
593
- Message;
594
- /**
595
- * @internal
596
- */
597
- constructor(opts) {
598
- super({
599
- name: "TagPolicyViolationException",
600
- $fault: "client",
601
- ...opts
1063
+ return smithyClient.decorateServiceException(exception, body);
1064
+ };
1065
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1066
+ const body = parsedOutput.body;
1067
+ const deserialized = smithyClient._json(body);
1068
+ const exception = new TooManyRequestsException({
1069
+ $metadata: deserializeMetadata(parsedOutput),
1070
+ ...deserialized,
602
1071
  });
603
- Object.setPrototypeOf(this, _TagPolicyViolationException.prototype);
604
- this.Message = opts.Message;
605
- }
606
- };
607
- var TooManyTagsException = class _TooManyTagsException extends ServiceQuotasServiceException {
608
- static {
609
- __name(this, "TooManyTagsException");
610
- }
611
- name = "TooManyTagsException";
612
- $fault = "client";
613
- Message;
614
- /**
615
- * @internal
616
- */
617
- constructor(opts) {
618
- super({
619
- name: "TooManyTagsException",
620
- $fault: "client",
621
- ...opts
1072
+ return smithyClient.decorateServiceException(exception, body);
1073
+ };
1074
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1075
+ const body = parsedOutput.body;
1076
+ const deserialized = smithyClient._json(body);
1077
+ const exception = new TooManyTagsException({
1078
+ $metadata: deserializeMetadata(parsedOutput),
1079
+ ...deserialized,
622
1080
  });
623
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
624
- this.Message = opts.Message;
625
- }
1081
+ return smithyClient.decorateServiceException(exception, body);
626
1082
  };
627
-
628
- // src/protocols/Aws_json1_1.ts
629
- var se_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
630
- const headers = sharedHeaders("AssociateServiceQuotaTemplate");
631
- let body;
632
- body = JSON.stringify((0, import_smithy_client._json)(input));
633
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
634
- }, "se_AssociateServiceQuotaTemplateCommand");
635
- var se_CreateSupportCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
636
- const headers = sharedHeaders("CreateSupportCase");
637
- let body;
638
- body = JSON.stringify((0, import_smithy_client._json)(input));
639
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
640
- }, "se_CreateSupportCaseCommand");
641
- var se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
642
- const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
643
- let body;
644
- body = JSON.stringify((0, import_smithy_client._json)(input));
645
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
646
- }, "se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
647
- var se_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
648
- const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
649
- let body;
650
- body = JSON.stringify((0, import_smithy_client._json)(input));
651
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
652
- }, "se_DisassociateServiceQuotaTemplateCommand");
653
- var se_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
654
- const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
655
- let body;
656
- body = JSON.stringify((0, import_smithy_client._json)(input));
657
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
658
- }, "se_GetAssociationForServiceQuotaTemplateCommand");
659
- var se_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
660
- const headers = sharedHeaders("GetAWSDefaultServiceQuota");
661
- let body;
662
- body = JSON.stringify((0, import_smithy_client._json)(input));
663
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
664
- }, "se_GetAWSDefaultServiceQuotaCommand");
665
- var se_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
666
- const headers = sharedHeaders("GetRequestedServiceQuotaChange");
667
- let body;
668
- body = JSON.stringify((0, import_smithy_client._json)(input));
669
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
670
- }, "se_GetRequestedServiceQuotaChangeCommand");
671
- var se_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
672
- const headers = sharedHeaders("GetServiceQuota");
673
- let body;
674
- body = JSON.stringify((0, import_smithy_client._json)(input));
675
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
676
- }, "se_GetServiceQuotaCommand");
677
- var se_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
678
- const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
679
- let body;
680
- body = JSON.stringify((0, import_smithy_client._json)(input));
681
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
682
- }, "se_GetServiceQuotaIncreaseRequestFromTemplateCommand");
683
- var se_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (input, context) => {
684
- const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
685
- let body;
686
- body = JSON.stringify((0, import_smithy_client._json)(input));
687
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
688
- }, "se_ListAWSDefaultServiceQuotasCommand");
689
- var se_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
690
- const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
691
- let body;
692
- body = JSON.stringify((0, import_smithy_client._json)(input));
693
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
694
- }, "se_ListRequestedServiceQuotaChangeHistoryCommand");
695
- var se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
696
- const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
697
- let body;
698
- body = JSON.stringify((0, import_smithy_client._json)(input));
699
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
700
- }, "se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
701
- var se_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
702
- const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
703
- let body;
704
- body = JSON.stringify((0, import_smithy_client._json)(input));
705
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
706
- }, "se_ListServiceQuotaIncreaseRequestsInTemplateCommand");
707
- var se_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (input, context) => {
708
- const headers = sharedHeaders("ListServiceQuotas");
709
- let body;
710
- body = JSON.stringify((0, import_smithy_client._json)(input));
711
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
712
- }, "se_ListServiceQuotasCommand");
713
- var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
714
- const headers = sharedHeaders("ListServices");
715
- let body;
716
- body = JSON.stringify((0, import_smithy_client._json)(input));
717
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
718
- }, "se_ListServicesCommand");
719
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
720
- const headers = sharedHeaders("ListTagsForResource");
721
- let body;
722
- body = JSON.stringify((0, import_smithy_client._json)(input));
723
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
724
- }, "se_ListTagsForResourceCommand");
725
- var se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
726
- const headers = sharedHeaders("PutServiceQuotaIncreaseRequestIntoTemplate");
727
- let body;
728
- body = JSON.stringify(se_PutServiceQuotaIncreaseRequestIntoTemplateRequest(input, context));
729
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
730
- }, "se_PutServiceQuotaIncreaseRequestIntoTemplateCommand");
731
- var se_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (input, context) => {
732
- const headers = sharedHeaders("RequestServiceQuotaIncrease");
733
- let body;
734
- body = JSON.stringify(se_RequestServiceQuotaIncreaseRequest(input, context));
735
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
736
- }, "se_RequestServiceQuotaIncreaseCommand");
737
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
738
- const headers = sharedHeaders("TagResource");
739
- let body;
740
- body = JSON.stringify((0, import_smithy_client._json)(input));
741
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
742
- }, "se_TagResourceCommand");
743
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
744
- const headers = sharedHeaders("UntagResource");
745
- let body;
746
- body = JSON.stringify((0, import_smithy_client._json)(input));
747
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
748
- }, "se_UntagResourceCommand");
749
- var de_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
750
- if (output.statusCode >= 300) {
751
- return de_CommandError(output, context);
752
- }
753
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
754
- let contents = {};
755
- contents = (0, import_smithy_client._json)(data);
756
- const response = {
757
- $metadata: deserializeMetadata(output),
758
- ...contents
759
- };
760
- return response;
761
- }, "de_AssociateServiceQuotaTemplateCommand");
762
- var de_CreateSupportCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
763
- if (output.statusCode >= 300) {
764
- return de_CommandError(output, context);
765
- }
766
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
767
- let contents = {};
768
- contents = (0, import_smithy_client._json)(data);
769
- const response = {
770
- $metadata: deserializeMetadata(output),
771
- ...contents
772
- };
773
- return response;
774
- }, "de_CreateSupportCaseCommand");
775
- var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
776
- if (output.statusCode >= 300) {
777
- return de_CommandError(output, context);
778
- }
779
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
780
- let contents = {};
781
- contents = (0, import_smithy_client._json)(data);
782
- const response = {
783
- $metadata: deserializeMetadata(output),
784
- ...contents
785
- };
786
- return response;
787
- }, "de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
788
- var de_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
789
- if (output.statusCode >= 300) {
790
- return de_CommandError(output, context);
791
- }
792
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
793
- let contents = {};
794
- contents = (0, import_smithy_client._json)(data);
795
- const response = {
796
- $metadata: deserializeMetadata(output),
797
- ...contents
798
- };
799
- return response;
800
- }, "de_DisassociateServiceQuotaTemplateCommand");
801
- var de_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
802
- if (output.statusCode >= 300) {
803
- return de_CommandError(output, context);
804
- }
805
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
806
- let contents = {};
807
- contents = (0, import_smithy_client._json)(data);
808
- const response = {
809
- $metadata: deserializeMetadata(output),
810
- ...contents
811
- };
812
- return response;
813
- }, "de_GetAssociationForServiceQuotaTemplateCommand");
814
- var de_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
815
- if (output.statusCode >= 300) {
816
- return de_CommandError(output, context);
817
- }
818
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
819
- let contents = {};
820
- contents = de_GetAWSDefaultServiceQuotaResponse(data, context);
821
- const response = {
822
- $metadata: deserializeMetadata(output),
823
- ...contents
824
- };
825
- return response;
826
- }, "de_GetAWSDefaultServiceQuotaCommand");
827
- var de_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
828
- if (output.statusCode >= 300) {
829
- return de_CommandError(output, context);
830
- }
831
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
832
- let contents = {};
833
- contents = de_GetRequestedServiceQuotaChangeResponse(data, context);
834
- const response = {
835
- $metadata: deserializeMetadata(output),
836
- ...contents
837
- };
838
- return response;
839
- }, "de_GetRequestedServiceQuotaChangeCommand");
840
- var de_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
841
- if (output.statusCode >= 300) {
842
- return de_CommandError(output, context);
843
- }
844
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
845
- let contents = {};
846
- contents = de_GetServiceQuotaResponse(data, context);
847
- const response = {
848
- $metadata: deserializeMetadata(output),
849
- ...contents
850
- };
851
- return response;
852
- }, "de_GetServiceQuotaCommand");
853
- var de_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
854
- if (output.statusCode >= 300) {
855
- return de_CommandError(output, context);
856
- }
857
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
858
- let contents = {};
859
- contents = de_GetServiceQuotaIncreaseRequestFromTemplateResponse(data, context);
860
- const response = {
861
- $metadata: deserializeMetadata(output),
862
- ...contents
863
- };
864
- return response;
865
- }, "de_GetServiceQuotaIncreaseRequestFromTemplateCommand");
866
- var de_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
867
- if (output.statusCode >= 300) {
868
- return de_CommandError(output, context);
869
- }
870
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
871
- let contents = {};
872
- contents = de_ListAWSDefaultServiceQuotasResponse(data, context);
873
- const response = {
874
- $metadata: deserializeMetadata(output),
875
- ...contents
876
- };
877
- return response;
878
- }, "de_ListAWSDefaultServiceQuotasCommand");
879
- var de_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
880
- if (output.statusCode >= 300) {
881
- return de_CommandError(output, context);
882
- }
883
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
884
- let contents = {};
885
- contents = de_ListRequestedServiceQuotaChangeHistoryResponse(data, context);
886
- const response = {
887
- $metadata: deserializeMetadata(output),
888
- ...contents
889
- };
890
- return response;
891
- }, "de_ListRequestedServiceQuotaChangeHistoryCommand");
892
- var de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
893
- if (output.statusCode >= 300) {
894
- return de_CommandError(output, context);
895
- }
896
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
897
- let contents = {};
898
- contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
899
- const response = {
900
- $metadata: deserializeMetadata(output),
901
- ...contents
902
- };
903
- return response;
904
- }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
905
- var de_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
906
- if (output.statusCode >= 300) {
907
- return de_CommandError(output, context);
908
- }
909
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
910
- let contents = {};
911
- contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
912
- const response = {
913
- $metadata: deserializeMetadata(output),
914
- ...contents
915
- };
916
- return response;
917
- }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommand");
918
- var de_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
919
- if (output.statusCode >= 300) {
920
- return de_CommandError(output, context);
921
- }
922
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
923
- let contents = {};
924
- contents = de_ListServiceQuotasResponse(data, context);
925
- const response = {
926
- $metadata: deserializeMetadata(output),
927
- ...contents
928
- };
929
- return response;
930
- }, "de_ListServiceQuotasCommand");
931
- var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
932
- if (output.statusCode >= 300) {
933
- return de_CommandError(output, context);
934
- }
935
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
936
- let contents = {};
937
- contents = (0, import_smithy_client._json)(data);
938
- const response = {
939
- $metadata: deserializeMetadata(output),
940
- ...contents
941
- };
942
- return response;
943
- }, "de_ListServicesCommand");
944
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
945
- if (output.statusCode >= 300) {
946
- return de_CommandError(output, context);
947
- }
948
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
949
- let contents = {};
950
- contents = (0, import_smithy_client._json)(data);
951
- const response = {
952
- $metadata: deserializeMetadata(output),
953
- ...contents
954
- };
955
- return response;
956
- }, "de_ListTagsForResourceCommand");
957
- var de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
958
- if (output.statusCode >= 300) {
959
- return de_CommandError(output, context);
960
- }
961
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
962
- let contents = {};
963
- contents = de_PutServiceQuotaIncreaseRequestIntoTemplateResponse(data, context);
964
- const response = {
965
- $metadata: deserializeMetadata(output),
966
- ...contents
967
- };
968
- return response;
969
- }, "de_PutServiceQuotaIncreaseRequestIntoTemplateCommand");
970
- var de_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (output, context) => {
971
- if (output.statusCode >= 300) {
972
- return de_CommandError(output, context);
973
- }
974
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
975
- let contents = {};
976
- contents = de_RequestServiceQuotaIncreaseResponse(data, context);
977
- const response = {
978
- $metadata: deserializeMetadata(output),
979
- ...contents
980
- };
981
- return response;
982
- }, "de_RequestServiceQuotaIncreaseCommand");
983
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
984
- if (output.statusCode >= 300) {
985
- return de_CommandError(output, context);
986
- }
987
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
988
- let contents = {};
989
- contents = (0, import_smithy_client._json)(data);
990
- const response = {
991
- $metadata: deserializeMetadata(output),
992
- ...contents
993
- };
994
- return response;
995
- }, "de_TagResourceCommand");
996
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
997
- if (output.statusCode >= 300) {
998
- return de_CommandError(output, context);
999
- }
1000
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1001
- let contents = {};
1002
- contents = (0, import_smithy_client._json)(data);
1003
- const response = {
1004
- $metadata: deserializeMetadata(output),
1005
- ...contents
1006
- };
1007
- return response;
1008
- }, "de_UntagResourceCommand");
1009
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1013
- };
1014
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "AWSServiceAccessNotEnabledException":
1017
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1018
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1019
- case "AccessDeniedException":
1020
- case "com.amazonaws.servicequotas#AccessDeniedException":
1021
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1022
- case "DependencyAccessDeniedException":
1023
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1024
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1025
- case "NoAvailableOrganizationException":
1026
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1027
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1028
- case "OrganizationNotInAllFeaturesModeException":
1029
- case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
1030
- throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
1031
- case "ServiceException":
1032
- case "com.amazonaws.servicequotas#ServiceException":
1033
- throw await de_ServiceExceptionRes(parsedOutput, context);
1034
- case "TemplatesNotAvailableInRegionException":
1035
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1036
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1037
- case "TooManyRequestsException":
1038
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1039
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1040
- case "IllegalArgumentException":
1041
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1042
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1043
- case "InvalidResourceStateException":
1044
- case "com.amazonaws.servicequotas#InvalidResourceStateException":
1045
- throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
1046
- case "NoSuchResourceException":
1047
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1048
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1049
- case "ResourceAlreadyExistsException":
1050
- case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
1051
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1052
- case "ServiceQuotaTemplateNotInUseException":
1053
- case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
1054
- throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
1055
- case "InvalidPaginationTokenException":
1056
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1057
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1058
- case "QuotaExceededException":
1059
- case "com.amazonaws.servicequotas#QuotaExceededException":
1060
- throw await de_QuotaExceededExceptionRes(parsedOutput, context);
1061
- case "TagPolicyViolationException":
1062
- case "com.amazonaws.servicequotas#TagPolicyViolationException":
1063
- throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
1064
- case "TooManyTagsException":
1065
- case "com.amazonaws.servicequotas#TooManyTagsException":
1066
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1067
- default:
1068
- const parsedBody = parsedOutput.body;
1069
- return throwDefaultError({
1070
- output,
1071
- parsedBody,
1072
- errorCode
1073
- });
1074
- }
1075
- }, "de_CommandError");
1076
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1077
- const body = parsedOutput.body;
1078
- const deserialized = (0, import_smithy_client._json)(body);
1079
- const exception = new AccessDeniedException({
1080
- $metadata: deserializeMetadata(parsedOutput),
1081
- ...deserialized
1082
- });
1083
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1084
- }, "de_AccessDeniedExceptionRes");
1085
- var de_AWSServiceAccessNotEnabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1086
- const body = parsedOutput.body;
1087
- const deserialized = (0, import_smithy_client._json)(body);
1088
- const exception = new AWSServiceAccessNotEnabledException({
1089
- $metadata: deserializeMetadata(parsedOutput),
1090
- ...deserialized
1091
- });
1092
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1093
- }, "de_AWSServiceAccessNotEnabledExceptionRes");
1094
- var de_DependencyAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1095
- const body = parsedOutput.body;
1096
- const deserialized = (0, import_smithy_client._json)(body);
1097
- const exception = new DependencyAccessDeniedException({
1098
- $metadata: deserializeMetadata(parsedOutput),
1099
- ...deserialized
1100
- });
1101
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1102
- }, "de_DependencyAccessDeniedExceptionRes");
1103
- var de_IllegalArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1104
- const body = parsedOutput.body;
1105
- const deserialized = (0, import_smithy_client._json)(body);
1106
- const exception = new IllegalArgumentException({
1107
- $metadata: deserializeMetadata(parsedOutput),
1108
- ...deserialized
1109
- });
1110
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1111
- }, "de_IllegalArgumentExceptionRes");
1112
- var de_InvalidPaginationTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1113
- const body = parsedOutput.body;
1114
- const deserialized = (0, import_smithy_client._json)(body);
1115
- const exception = new InvalidPaginationTokenException({
1116
- $metadata: deserializeMetadata(parsedOutput),
1117
- ...deserialized
1118
- });
1119
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1120
- }, "de_InvalidPaginationTokenExceptionRes");
1121
- var de_InvalidResourceStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1122
- const body = parsedOutput.body;
1123
- const deserialized = (0, import_smithy_client._json)(body);
1124
- const exception = new InvalidResourceStateException({
1125
- $metadata: deserializeMetadata(parsedOutput),
1126
- ...deserialized
1127
- });
1128
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1129
- }, "de_InvalidResourceStateExceptionRes");
1130
- var de_NoAvailableOrganizationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1131
- const body = parsedOutput.body;
1132
- const deserialized = (0, import_smithy_client._json)(body);
1133
- const exception = new NoAvailableOrganizationException({
1134
- $metadata: deserializeMetadata(parsedOutput),
1135
- ...deserialized
1136
- });
1137
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1138
- }, "de_NoAvailableOrganizationExceptionRes");
1139
- var de_NoSuchResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1140
- const body = parsedOutput.body;
1141
- const deserialized = (0, import_smithy_client._json)(body);
1142
- const exception = new NoSuchResourceException({
1143
- $metadata: deserializeMetadata(parsedOutput),
1144
- ...deserialized
1145
- });
1146
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1147
- }, "de_NoSuchResourceExceptionRes");
1148
- var de_OrganizationNotInAllFeaturesModeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1149
- const body = parsedOutput.body;
1150
- const deserialized = (0, import_smithy_client._json)(body);
1151
- const exception = new OrganizationNotInAllFeaturesModeException({
1152
- $metadata: deserializeMetadata(parsedOutput),
1153
- ...deserialized
1154
- });
1155
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1156
- }, "de_OrganizationNotInAllFeaturesModeExceptionRes");
1157
- var de_QuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1158
- const body = parsedOutput.body;
1159
- const deserialized = (0, import_smithy_client._json)(body);
1160
- const exception = new QuotaExceededException({
1161
- $metadata: deserializeMetadata(parsedOutput),
1162
- ...deserialized
1163
- });
1164
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1165
- }, "de_QuotaExceededExceptionRes");
1166
- var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1167
- const body = parsedOutput.body;
1168
- const deserialized = (0, import_smithy_client._json)(body);
1169
- const exception = new ResourceAlreadyExistsException({
1170
- $metadata: deserializeMetadata(parsedOutput),
1171
- ...deserialized
1172
- });
1173
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1174
- }, "de_ResourceAlreadyExistsExceptionRes");
1175
- var de_ServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1176
- const body = parsedOutput.body;
1177
- const deserialized = (0, import_smithy_client._json)(body);
1178
- const exception = new ServiceException({
1179
- $metadata: deserializeMetadata(parsedOutput),
1180
- ...deserialized
1181
- });
1182
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1183
- }, "de_ServiceExceptionRes");
1184
- var de_ServiceQuotaTemplateNotInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1185
- const body = parsedOutput.body;
1186
- const deserialized = (0, import_smithy_client._json)(body);
1187
- const exception = new ServiceQuotaTemplateNotInUseException({
1188
- $metadata: deserializeMetadata(parsedOutput),
1189
- ...deserialized
1190
- });
1191
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1192
- }, "de_ServiceQuotaTemplateNotInUseExceptionRes");
1193
- var de_TagPolicyViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1194
- const body = parsedOutput.body;
1195
- const deserialized = (0, import_smithy_client._json)(body);
1196
- const exception = new TagPolicyViolationException({
1197
- $metadata: deserializeMetadata(parsedOutput),
1198
- ...deserialized
1199
- });
1200
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1201
- }, "de_TagPolicyViolationExceptionRes");
1202
- var de_TemplatesNotAvailableInRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1203
- const body = parsedOutput.body;
1204
- const deserialized = (0, import_smithy_client._json)(body);
1205
- const exception = new TemplatesNotAvailableInRegionException({
1206
- $metadata: deserializeMetadata(parsedOutput),
1207
- ...deserialized
1208
- });
1209
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1210
- }, "de_TemplatesNotAvailableInRegionExceptionRes");
1211
- var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1212
- const body = parsedOutput.body;
1213
- const deserialized = (0, import_smithy_client._json)(body);
1214
- const exception = new TooManyRequestsException({
1215
- $metadata: deserializeMetadata(parsedOutput),
1216
- ...deserialized
1217
- });
1218
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1219
- }, "de_TooManyRequestsExceptionRes");
1220
- var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1221
- const body = parsedOutput.body;
1222
- const deserialized = (0, import_smithy_client._json)(body);
1223
- const exception = new TooManyTagsException({
1224
- $metadata: deserializeMetadata(parsedOutput),
1225
- ...deserialized
1226
- });
1227
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1228
- }, "de_TooManyTagsExceptionRes");
1229
- var se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = /* @__PURE__ */ __name((input, context) => {
1230
- return (0, import_smithy_client.take)(input, {
1231
- AwsRegion: [],
1232
- DesiredValue: import_smithy_client.serializeFloat,
1233
- QuotaCode: [],
1234
- ServiceCode: []
1235
- });
1236
- }, "se_PutServiceQuotaIncreaseRequestIntoTemplateRequest");
1237
- var se_RequestServiceQuotaIncreaseRequest = /* @__PURE__ */ __name((input, context) => {
1238
- return (0, import_smithy_client.take)(input, {
1239
- ContextId: [],
1240
- DesiredValue: import_smithy_client.serializeFloat,
1241
- QuotaCode: [],
1242
- ServiceCode: [],
1243
- SupportCaseAllowed: []
1244
- });
1245
- }, "se_RequestServiceQuotaIncreaseRequest");
1246
- var de_GetAWSDefaultServiceQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1247
- return (0, import_smithy_client.take)(output, {
1248
- Quota: /* @__PURE__ */ __name((_) => de_ServiceQuota(_, context), "Quota")
1249
- });
1250
- }, "de_GetAWSDefaultServiceQuotaResponse");
1251
- var de_GetRequestedServiceQuotaChangeResponse = /* @__PURE__ */ __name((output, context) => {
1252
- return (0, import_smithy_client.take)(output, {
1253
- RequestedQuota: /* @__PURE__ */ __name((_) => de_RequestedServiceQuotaChange(_, context), "RequestedQuota")
1254
- });
1255
- }, "de_GetRequestedServiceQuotaChangeResponse");
1256
- var de_GetServiceQuotaIncreaseRequestFromTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1257
- return (0, import_smithy_client.take)(output, {
1258
- ServiceQuotaIncreaseRequestInTemplate: /* @__PURE__ */ __name((_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context), "ServiceQuotaIncreaseRequestInTemplate")
1259
- });
1260
- }, "de_GetServiceQuotaIncreaseRequestFromTemplateResponse");
1261
- var de_GetServiceQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1262
- return (0, import_smithy_client.take)(output, {
1263
- Quota: /* @__PURE__ */ __name((_) => de_ServiceQuota(_, context), "Quota")
1264
- });
1265
- }, "de_GetServiceQuotaResponse");
1266
- var de_ListAWSDefaultServiceQuotasResponse = /* @__PURE__ */ __name((output, context) => {
1267
- return (0, import_smithy_client.take)(output, {
1268
- NextToken: import_smithy_client.expectString,
1269
- Quotas: /* @__PURE__ */ __name((_) => de_ServiceQuotaListDefinition(_, context), "Quotas")
1270
- });
1271
- }, "de_ListAWSDefaultServiceQuotasResponse");
1272
- var de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1273
- return (0, import_smithy_client.take)(output, {
1274
- NextToken: import_smithy_client.expectString,
1275
- RequestedQuotas: /* @__PURE__ */ __name((_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context), "RequestedQuotas")
1276
- });
1277
- }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse");
1278
- var de_ListRequestedServiceQuotaChangeHistoryResponse = /* @__PURE__ */ __name((output, context) => {
1279
- return (0, import_smithy_client.take)(output, {
1280
- NextToken: import_smithy_client.expectString,
1281
- RequestedQuotas: /* @__PURE__ */ __name((_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context), "RequestedQuotas")
1282
- });
1283
- }, "de_ListRequestedServiceQuotaChangeHistoryResponse");
1284
- var de_ListServiceQuotaIncreaseRequestsInTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1285
- return (0, import_smithy_client.take)(output, {
1286
- NextToken: import_smithy_client.expectString,
1287
- ServiceQuotaIncreaseRequestInTemplateList: /* @__PURE__ */ __name((_) => de_ServiceQuotaIncreaseRequestInTemplateList(_, context), "ServiceQuotaIncreaseRequestInTemplateList")
1288
- });
1289
- }, "de_ListServiceQuotaIncreaseRequestsInTemplateResponse");
1290
- var de_ListServiceQuotasResponse = /* @__PURE__ */ __name((output, context) => {
1291
- return (0, import_smithy_client.take)(output, {
1292
- NextToken: import_smithy_client.expectString,
1293
- Quotas: /* @__PURE__ */ __name((_) => de_ServiceQuotaListDefinition(_, context), "Quotas")
1294
- });
1295
- }, "de_ListServiceQuotasResponse");
1296
- var de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1297
- return (0, import_smithy_client.take)(output, {
1298
- ServiceQuotaIncreaseRequestInTemplate: /* @__PURE__ */ __name((_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context), "ServiceQuotaIncreaseRequestInTemplate")
1299
- });
1300
- }, "de_PutServiceQuotaIncreaseRequestIntoTemplateResponse");
1301
- var de_RequestedServiceQuotaChange = /* @__PURE__ */ __name((output, context) => {
1302
- return (0, import_smithy_client.take)(output, {
1303
- CaseId: import_smithy_client.expectString,
1304
- Created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Created"),
1305
- DesiredValue: import_smithy_client.limitedParseDouble,
1306
- GlobalQuota: import_smithy_client.expectBoolean,
1307
- Id: import_smithy_client.expectString,
1308
- LastUpdated: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdated"),
1309
- QuotaArn: import_smithy_client.expectString,
1310
- QuotaCode: import_smithy_client.expectString,
1311
- QuotaContext: import_smithy_client._json,
1312
- QuotaName: import_smithy_client.expectString,
1313
- QuotaRequestedAtLevel: import_smithy_client.expectString,
1314
- Requester: import_smithy_client.expectString,
1315
- ServiceCode: import_smithy_client.expectString,
1316
- ServiceName: import_smithy_client.expectString,
1317
- Status: import_smithy_client.expectString,
1318
- Unit: import_smithy_client.expectString
1319
- });
1320
- }, "de_RequestedServiceQuotaChange");
1321
- var de_RequestedServiceQuotaChangeHistoryListDefinition = /* @__PURE__ */ __name((output, context) => {
1322
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1323
- return de_RequestedServiceQuotaChange(entry, context);
1324
- });
1325
- return retVal;
1326
- }, "de_RequestedServiceQuotaChangeHistoryListDefinition");
1327
- var de_RequestServiceQuotaIncreaseResponse = /* @__PURE__ */ __name((output, context) => {
1328
- return (0, import_smithy_client.take)(output, {
1329
- RequestedQuota: /* @__PURE__ */ __name((_) => de_RequestedServiceQuotaChange(_, context), "RequestedQuota")
1330
- });
1331
- }, "de_RequestServiceQuotaIncreaseResponse");
1332
- var de_ServiceQuota = /* @__PURE__ */ __name((output, context) => {
1333
- return (0, import_smithy_client.take)(output, {
1334
- Adjustable: import_smithy_client.expectBoolean,
1335
- Description: import_smithy_client.expectString,
1336
- ErrorReason: import_smithy_client._json,
1337
- GlobalQuota: import_smithy_client.expectBoolean,
1338
- Period: import_smithy_client._json,
1339
- QuotaAppliedAtLevel: import_smithy_client.expectString,
1340
- QuotaArn: import_smithy_client.expectString,
1341
- QuotaCode: import_smithy_client.expectString,
1342
- QuotaContext: import_smithy_client._json,
1343
- QuotaName: import_smithy_client.expectString,
1344
- ServiceCode: import_smithy_client.expectString,
1345
- ServiceName: import_smithy_client.expectString,
1346
- Unit: import_smithy_client.expectString,
1347
- UsageMetric: import_smithy_client._json,
1348
- Value: import_smithy_client.limitedParseDouble
1349
- });
1350
- }, "de_ServiceQuota");
1351
- var de_ServiceQuotaIncreaseRequestInTemplate = /* @__PURE__ */ __name((output, context) => {
1352
- return (0, import_smithy_client.take)(output, {
1353
- AwsRegion: import_smithy_client.expectString,
1354
- DesiredValue: import_smithy_client.limitedParseDouble,
1355
- GlobalQuota: import_smithy_client.expectBoolean,
1356
- QuotaCode: import_smithy_client.expectString,
1357
- QuotaName: import_smithy_client.expectString,
1358
- ServiceCode: import_smithy_client.expectString,
1359
- ServiceName: import_smithy_client.expectString,
1360
- Unit: import_smithy_client.expectString
1361
- });
1362
- }, "de_ServiceQuotaIncreaseRequestInTemplate");
1363
- var de_ServiceQuotaIncreaseRequestInTemplateList = /* @__PURE__ */ __name((output, context) => {
1364
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1365
- return de_ServiceQuotaIncreaseRequestInTemplate(entry, context);
1366
- });
1367
- return retVal;
1368
- }, "de_ServiceQuotaIncreaseRequestInTemplateList");
1369
- var de_ServiceQuotaListDefinition = /* @__PURE__ */ __name((output, context) => {
1370
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1371
- return de_ServiceQuota(entry, context);
1372
- });
1373
- return retVal;
1374
- }, "de_ServiceQuotaListDefinition");
1375
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1376
- httpStatusCode: output.statusCode,
1377
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1378
- extendedRequestId: output.headers["x-amz-id-2"],
1379
- cfId: output.headers["x-amz-cf-id"]
1380
- }), "deserializeMetadata");
1381
- var throwDefaultError = (0, import_smithy_client.withBaseException)(ServiceQuotasServiceException);
1382
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1384
- const contents = {
1385
- protocol,
1386
- hostname,
1387
- port,
1388
- method: "POST",
1389
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1390
- headers
1391
- };
1392
- if (resolvedHostname !== void 0) {
1393
- contents.hostname = resolvedHostname;
1394
- }
1395
- if (body !== void 0) {
1396
- contents.body = body;
1397
- }
1398
- return new import_protocol_http.HttpRequest(contents);
1399
- }, "buildHttpRpcRequest");
1400
- function sharedHeaders(operation) {
1401
- return {
1402
- "content-type": "application/x-amz-json-1.1",
1403
- "x-amz-target": `ServiceQuotasV20190624.${operation}`
1404
- };
1405
- }
1406
- __name(sharedHeaders, "sharedHeaders");
1407
-
1408
- // src/commands/AssociateServiceQuotaTemplateCommand.ts
1409
- var AssociateServiceQuotaTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1410
- return [
1411
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1412
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1413
- ];
1414
- }).s("ServiceQuotasV20190624", "AssociateServiceQuotaTemplate", {}).n("ServiceQuotasClient", "AssociateServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_AssociateServiceQuotaTemplateCommand).de(de_AssociateServiceQuotaTemplateCommand).build() {
1415
- static {
1416
- __name(this, "AssociateServiceQuotaTemplateCommand");
1417
- }
1083
+ const se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
1084
+ return smithyClient.take(input, {
1085
+ AwsRegion: [],
1086
+ DesiredValue: smithyClient.serializeFloat,
1087
+ QuotaCode: [],
1088
+ ServiceCode: [],
1089
+ });
1418
1090
  };
1419
-
1420
- // src/commands/CreateSupportCaseCommand.ts
1421
-
1422
-
1423
-
1424
- var CreateSupportCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1425
- return [
1426
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1427
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1428
- ];
1429
- }).s("ServiceQuotasV20190624", "CreateSupportCase", {}).n("ServiceQuotasClient", "CreateSupportCaseCommand").f(void 0, void 0).ser(se_CreateSupportCaseCommand).de(de_CreateSupportCaseCommand).build() {
1430
- static {
1431
- __name(this, "CreateSupportCaseCommand");
1432
- }
1091
+ const se_RequestServiceQuotaIncreaseRequest = (input, context) => {
1092
+ return smithyClient.take(input, {
1093
+ ContextId: [],
1094
+ DesiredValue: smithyClient.serializeFloat,
1095
+ QuotaCode: [],
1096
+ ServiceCode: [],
1097
+ SupportCaseAllowed: [],
1098
+ });
1433
1099
  };
1434
-
1435
- // src/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts
1436
-
1437
-
1438
-
1439
- var DeleteServiceQuotaIncreaseRequestFromTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1440
- return [
1441
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1442
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1443
- ];
1444
- }).s("ServiceQuotasV20190624", "DeleteServiceQuotaIncreaseRequestFromTemplate", {}).n("ServiceQuotasClient", "DeleteServiceQuotaIncreaseRequestFromTemplateCommand").f(void 0, void 0).ser(se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand).de(de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand).build() {
1445
- static {
1446
- __name(this, "DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
1447
- }
1100
+ const de_GetAWSDefaultServiceQuotaResponse = (output, context) => {
1101
+ return smithyClient.take(output, {
1102
+ Quota: (_) => de_ServiceQuota(_),
1103
+ });
1448
1104
  };
1449
-
1450
- // src/commands/DisassociateServiceQuotaTemplateCommand.ts
1451
-
1452
-
1453
-
1454
- var DisassociateServiceQuotaTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1455
- return [
1456
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1457
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1458
- ];
1459
- }).s("ServiceQuotasV20190624", "DisassociateServiceQuotaTemplate", {}).n("ServiceQuotasClient", "DisassociateServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_DisassociateServiceQuotaTemplateCommand).de(de_DisassociateServiceQuotaTemplateCommand).build() {
1460
- static {
1461
- __name(this, "DisassociateServiceQuotaTemplateCommand");
1462
- }
1105
+ const de_GetRequestedServiceQuotaChangeResponse = (output, context) => {
1106
+ return smithyClient.take(output, {
1107
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_),
1108
+ });
1463
1109
  };
1464
-
1465
- // src/commands/GetAssociationForServiceQuotaTemplateCommand.ts
1466
-
1467
-
1468
-
1469
- var GetAssociationForServiceQuotaTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1470
- return [
1471
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1472
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1473
- ];
1474
- }).s("ServiceQuotasV20190624", "GetAssociationForServiceQuotaTemplate", {}).n("ServiceQuotasClient", "GetAssociationForServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_GetAssociationForServiceQuotaTemplateCommand).de(de_GetAssociationForServiceQuotaTemplateCommand).build() {
1475
- static {
1476
- __name(this, "GetAssociationForServiceQuotaTemplateCommand");
1477
- }
1110
+ const de_GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
1111
+ return smithyClient.take(output, {
1112
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_),
1113
+ });
1478
1114
  };
1479
-
1480
- // src/commands/GetAWSDefaultServiceQuotaCommand.ts
1481
-
1482
-
1483
-
1484
- var GetAWSDefaultServiceQuotaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1485
- return [
1486
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1487
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1488
- ];
1489
- }).s("ServiceQuotasV20190624", "GetAWSDefaultServiceQuota", {}).n("ServiceQuotasClient", "GetAWSDefaultServiceQuotaCommand").f(void 0, void 0).ser(se_GetAWSDefaultServiceQuotaCommand).de(de_GetAWSDefaultServiceQuotaCommand).build() {
1490
- static {
1491
- __name(this, "GetAWSDefaultServiceQuotaCommand");
1492
- }
1115
+ const de_GetServiceQuotaResponse = (output, context) => {
1116
+ return smithyClient.take(output, {
1117
+ Quota: (_) => de_ServiceQuota(_),
1118
+ });
1493
1119
  };
1494
-
1495
- // src/commands/GetRequestedServiceQuotaChangeCommand.ts
1496
-
1497
-
1498
-
1499
- var GetRequestedServiceQuotaChangeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1500
- return [
1501
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1502
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1503
- ];
1504
- }).s("ServiceQuotasV20190624", "GetRequestedServiceQuotaChange", {}).n("ServiceQuotasClient", "GetRequestedServiceQuotaChangeCommand").f(void 0, void 0).ser(se_GetRequestedServiceQuotaChangeCommand).de(de_GetRequestedServiceQuotaChangeCommand).build() {
1505
- static {
1506
- __name(this, "GetRequestedServiceQuotaChangeCommand");
1507
- }
1120
+ const de_ListAWSDefaultServiceQuotasResponse = (output, context) => {
1121
+ return smithyClient.take(output, {
1122
+ NextToken: smithyClient.expectString,
1123
+ Quotas: (_) => de_ServiceQuotaListDefinition(_),
1124
+ });
1508
1125
  };
1509
-
1510
- // src/commands/GetServiceQuotaCommand.ts
1511
-
1512
-
1513
-
1514
- var GetServiceQuotaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1515
- return [
1516
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1517
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1518
- ];
1519
- }).s("ServiceQuotasV20190624", "GetServiceQuota", {}).n("ServiceQuotasClient", "GetServiceQuotaCommand").f(void 0, void 0).ser(se_GetServiceQuotaCommand).de(de_GetServiceQuotaCommand).build() {
1520
- static {
1521
- __name(this, "GetServiceQuotaCommand");
1522
- }
1126
+ const de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
1127
+ return smithyClient.take(output, {
1128
+ NextToken: smithyClient.expectString,
1129
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_),
1130
+ });
1523
1131
  };
1524
-
1525
- // src/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts
1526
-
1527
-
1528
-
1529
- var GetServiceQuotaIncreaseRequestFromTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1530
- return [
1531
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1532
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1533
- ];
1534
- }).s("ServiceQuotasV20190624", "GetServiceQuotaIncreaseRequestFromTemplate", {}).n("ServiceQuotasClient", "GetServiceQuotaIncreaseRequestFromTemplateCommand").f(void 0, void 0).ser(se_GetServiceQuotaIncreaseRequestFromTemplateCommand).de(de_GetServiceQuotaIncreaseRequestFromTemplateCommand).build() {
1535
- static {
1536
- __name(this, "GetServiceQuotaIncreaseRequestFromTemplateCommand");
1537
- }
1132
+ const de_ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
1133
+ return smithyClient.take(output, {
1134
+ NextToken: smithyClient.expectString,
1135
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_),
1136
+ });
1538
1137
  };
1539
-
1540
- // src/commands/ListAWSDefaultServiceQuotasCommand.ts
1541
-
1542
-
1543
-
1544
- var ListAWSDefaultServiceQuotasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1545
- return [
1546
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1547
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1548
- ];
1549
- }).s("ServiceQuotasV20190624", "ListAWSDefaultServiceQuotas", {}).n("ServiceQuotasClient", "ListAWSDefaultServiceQuotasCommand").f(void 0, void 0).ser(se_ListAWSDefaultServiceQuotasCommand).de(de_ListAWSDefaultServiceQuotasCommand).build() {
1550
- static {
1551
- __name(this, "ListAWSDefaultServiceQuotasCommand");
1552
- }
1138
+ const de_ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
1139
+ return smithyClient.take(output, {
1140
+ NextToken: smithyClient.expectString,
1141
+ ServiceQuotaIncreaseRequestInTemplateList: (_) => de_ServiceQuotaIncreaseRequestInTemplateList(_),
1142
+ });
1553
1143
  };
1554
-
1555
- // src/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts
1556
-
1557
-
1558
-
1559
- var ListRequestedServiceQuotaChangeHistoryByQuotaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1560
- return [
1561
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1562
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1563
- ];
1564
- }).s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistoryByQuota", {}).n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryByQuotaCommand").f(void 0, void 0).ser(se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand).de(de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand).build() {
1565
- static {
1566
- __name(this, "ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
1567
- }
1144
+ const de_ListServiceQuotasResponse = (output, context) => {
1145
+ return smithyClient.take(output, {
1146
+ NextToken: smithyClient.expectString,
1147
+ Quotas: (_) => de_ServiceQuotaListDefinition(_),
1148
+ });
1568
1149
  };
1569
-
1570
- // src/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts
1571
-
1572
-
1573
-
1574
- var ListRequestedServiceQuotaChangeHistoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1575
- return [
1576
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1577
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1578
- ];
1579
- }).s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistory", {}).n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryCommand").f(void 0, void 0).ser(se_ListRequestedServiceQuotaChangeHistoryCommand).de(de_ListRequestedServiceQuotaChangeHistoryCommand).build() {
1580
- static {
1581
- __name(this, "ListRequestedServiceQuotaChangeHistoryCommand");
1582
- }
1150
+ const de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
1151
+ return smithyClient.take(output, {
1152
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_),
1153
+ });
1583
1154
  };
1584
-
1585
- // src/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts
1586
-
1587
-
1588
-
1589
- var ListServiceQuotaIncreaseRequestsInTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1590
- return [
1591
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1592
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1593
- ];
1594
- }).s("ServiceQuotasV20190624", "ListServiceQuotaIncreaseRequestsInTemplate", {}).n("ServiceQuotasClient", "ListServiceQuotaIncreaseRequestsInTemplateCommand").f(void 0, void 0).ser(se_ListServiceQuotaIncreaseRequestsInTemplateCommand).de(de_ListServiceQuotaIncreaseRequestsInTemplateCommand).build() {
1595
- static {
1596
- __name(this, "ListServiceQuotaIncreaseRequestsInTemplateCommand");
1597
- }
1155
+ const de_RequestedServiceQuotaChange = (output, context) => {
1156
+ return smithyClient.take(output, {
1157
+ CaseId: smithyClient.expectString,
1158
+ Created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1159
+ DesiredValue: smithyClient.limitedParseDouble,
1160
+ GlobalQuota: smithyClient.expectBoolean,
1161
+ Id: smithyClient.expectString,
1162
+ LastUpdated: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1163
+ QuotaArn: smithyClient.expectString,
1164
+ QuotaCode: smithyClient.expectString,
1165
+ QuotaContext: smithyClient._json,
1166
+ QuotaName: smithyClient.expectString,
1167
+ QuotaRequestedAtLevel: smithyClient.expectString,
1168
+ Requester: smithyClient.expectString,
1169
+ ServiceCode: smithyClient.expectString,
1170
+ ServiceName: smithyClient.expectString,
1171
+ Status: smithyClient.expectString,
1172
+ Unit: smithyClient.expectString,
1173
+ });
1598
1174
  };
1599
-
1600
- // src/commands/ListServiceQuotasCommand.ts
1601
-
1602
-
1603
-
1604
- var ListServiceQuotasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1605
- return [
1606
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1607
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1608
- ];
1609
- }).s("ServiceQuotasV20190624", "ListServiceQuotas", {}).n("ServiceQuotasClient", "ListServiceQuotasCommand").f(void 0, void 0).ser(se_ListServiceQuotasCommand).de(de_ListServiceQuotasCommand).build() {
1610
- static {
1611
- __name(this, "ListServiceQuotasCommand");
1612
- }
1175
+ const de_RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
1176
+ const retVal = (output || [])
1177
+ .filter((e) => e != null)
1178
+ .map((entry) => {
1179
+ return de_RequestedServiceQuotaChange(entry);
1180
+ });
1181
+ return retVal;
1613
1182
  };
1614
-
1615
- // src/commands/ListServicesCommand.ts
1616
-
1617
-
1618
-
1619
- var ListServicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1620
- return [
1621
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1622
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1623
- ];
1624
- }).s("ServiceQuotasV20190624", "ListServices", {}).n("ServiceQuotasClient", "ListServicesCommand").f(void 0, void 0).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
1625
- static {
1626
- __name(this, "ListServicesCommand");
1627
- }
1183
+ const de_RequestServiceQuotaIncreaseResponse = (output, context) => {
1184
+ return smithyClient.take(output, {
1185
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_),
1186
+ });
1628
1187
  };
1188
+ const de_ServiceQuota = (output, context) => {
1189
+ return smithyClient.take(output, {
1190
+ Adjustable: smithyClient.expectBoolean,
1191
+ Description: smithyClient.expectString,
1192
+ ErrorReason: smithyClient._json,
1193
+ GlobalQuota: smithyClient.expectBoolean,
1194
+ Period: smithyClient._json,
1195
+ QuotaAppliedAtLevel: smithyClient.expectString,
1196
+ QuotaArn: smithyClient.expectString,
1197
+ QuotaCode: smithyClient.expectString,
1198
+ QuotaContext: smithyClient._json,
1199
+ QuotaName: smithyClient.expectString,
1200
+ ServiceCode: smithyClient.expectString,
1201
+ ServiceName: smithyClient.expectString,
1202
+ Unit: smithyClient.expectString,
1203
+ UsageMetric: smithyClient._json,
1204
+ Value: smithyClient.limitedParseDouble,
1205
+ });
1206
+ };
1207
+ const de_ServiceQuotaIncreaseRequestInTemplate = (output, context) => {
1208
+ return smithyClient.take(output, {
1209
+ AwsRegion: smithyClient.expectString,
1210
+ DesiredValue: smithyClient.limitedParseDouble,
1211
+ GlobalQuota: smithyClient.expectBoolean,
1212
+ QuotaCode: smithyClient.expectString,
1213
+ QuotaName: smithyClient.expectString,
1214
+ ServiceCode: smithyClient.expectString,
1215
+ ServiceName: smithyClient.expectString,
1216
+ Unit: smithyClient.expectString,
1217
+ });
1218
+ };
1219
+ const de_ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
1220
+ const retVal = (output || [])
1221
+ .filter((e) => e != null)
1222
+ .map((entry) => {
1223
+ return de_ServiceQuotaIncreaseRequestInTemplate(entry);
1224
+ });
1225
+ return retVal;
1226
+ };
1227
+ const de_ServiceQuotaListDefinition = (output, context) => {
1228
+ const retVal = (output || [])
1229
+ .filter((e) => e != null)
1230
+ .map((entry) => {
1231
+ return de_ServiceQuota(entry);
1232
+ });
1233
+ return retVal;
1234
+ };
1235
+ const deserializeMetadata = (output) => ({
1236
+ httpStatusCode: output.statusCode,
1237
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1238
+ extendedRequestId: output.headers["x-amz-id-2"],
1239
+ cfId: output.headers["x-amz-cf-id"],
1240
+ });
1241
+ const throwDefaultError = smithyClient.withBaseException(ServiceQuotasServiceException);
1242
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1243
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1244
+ const contents = {
1245
+ protocol,
1246
+ hostname,
1247
+ port,
1248
+ method: "POST",
1249
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1250
+ headers,
1251
+ };
1252
+ if (body !== undefined) {
1253
+ contents.body = body;
1254
+ }
1255
+ return new protocolHttp.HttpRequest(contents);
1256
+ };
1257
+ function sharedHeaders(operation) {
1258
+ return {
1259
+ "content-type": "application/x-amz-json-1.1",
1260
+ "x-amz-target": `ServiceQuotasV20190624.${operation}`,
1261
+ };
1262
+ }
1629
1263
 
1630
- // src/commands/ListTagsForResourceCommand.ts
1631
-
1632
-
1264
+ class AssociateServiceQuotaTemplateCommand extends smithyClient.Command
1265
+ .classBuilder()
1266
+ .ep(commonParams)
1267
+ .m(function (Command, cs, config, o) {
1268
+ return [
1269
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1270
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1271
+ ];
1272
+ })
1273
+ .s("ServiceQuotasV20190624", "AssociateServiceQuotaTemplate", {})
1274
+ .n("ServiceQuotasClient", "AssociateServiceQuotaTemplateCommand")
1275
+ .f(void 0, void 0)
1276
+ .ser(se_AssociateServiceQuotaTemplateCommand)
1277
+ .de(de_AssociateServiceQuotaTemplateCommand)
1278
+ .build() {
1279
+ }
1633
1280
 
1634
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1635
- return [
1636
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1637
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1638
- ];
1639
- }).s("ServiceQuotasV20190624", "ListTagsForResource", {}).n("ServiceQuotasClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1640
- static {
1641
- __name(this, "ListTagsForResourceCommand");
1642
- }
1643
- };
1281
+ class CreateSupportCaseCommand extends smithyClient.Command
1282
+ .classBuilder()
1283
+ .ep(commonParams)
1284
+ .m(function (Command, cs, config, o) {
1285
+ return [
1286
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1287
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1288
+ ];
1289
+ })
1290
+ .s("ServiceQuotasV20190624", "CreateSupportCase", {})
1291
+ .n("ServiceQuotasClient", "CreateSupportCaseCommand")
1292
+ .f(void 0, void 0)
1293
+ .ser(se_CreateSupportCaseCommand)
1294
+ .de(de_CreateSupportCaseCommand)
1295
+ .build() {
1296
+ }
1644
1297
 
1645
- // src/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts
1298
+ class DeleteServiceQuotaIncreaseRequestFromTemplateCommand extends smithyClient.Command
1299
+ .classBuilder()
1300
+ .ep(commonParams)
1301
+ .m(function (Command, cs, config, o) {
1302
+ return [
1303
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1304
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1305
+ ];
1306
+ })
1307
+ .s("ServiceQuotasV20190624", "DeleteServiceQuotaIncreaseRequestFromTemplate", {})
1308
+ .n("ServiceQuotasClient", "DeleteServiceQuotaIncreaseRequestFromTemplateCommand")
1309
+ .f(void 0, void 0)
1310
+ .ser(se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand)
1311
+ .de(de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand)
1312
+ .build() {
1313
+ }
1646
1314
 
1315
+ class DisassociateServiceQuotaTemplateCommand extends smithyClient.Command
1316
+ .classBuilder()
1317
+ .ep(commonParams)
1318
+ .m(function (Command, cs, config, o) {
1319
+ return [
1320
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1321
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1322
+ ];
1323
+ })
1324
+ .s("ServiceQuotasV20190624", "DisassociateServiceQuotaTemplate", {})
1325
+ .n("ServiceQuotasClient", "DisassociateServiceQuotaTemplateCommand")
1326
+ .f(void 0, void 0)
1327
+ .ser(se_DisassociateServiceQuotaTemplateCommand)
1328
+ .de(de_DisassociateServiceQuotaTemplateCommand)
1329
+ .build() {
1330
+ }
1647
1331
 
1332
+ class GetAssociationForServiceQuotaTemplateCommand extends smithyClient.Command
1333
+ .classBuilder()
1334
+ .ep(commonParams)
1335
+ .m(function (Command, cs, config, o) {
1336
+ return [
1337
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1338
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1339
+ ];
1340
+ })
1341
+ .s("ServiceQuotasV20190624", "GetAssociationForServiceQuotaTemplate", {})
1342
+ .n("ServiceQuotasClient", "GetAssociationForServiceQuotaTemplateCommand")
1343
+ .f(void 0, void 0)
1344
+ .ser(se_GetAssociationForServiceQuotaTemplateCommand)
1345
+ .de(de_GetAssociationForServiceQuotaTemplateCommand)
1346
+ .build() {
1347
+ }
1648
1348
 
1649
- var PutServiceQuotaIncreaseRequestIntoTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1650
- return [
1651
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1652
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1653
- ];
1654
- }).s("ServiceQuotasV20190624", "PutServiceQuotaIncreaseRequestIntoTemplate", {}).n("ServiceQuotasClient", "PutServiceQuotaIncreaseRequestIntoTemplateCommand").f(void 0, void 0).ser(se_PutServiceQuotaIncreaseRequestIntoTemplateCommand).de(de_PutServiceQuotaIncreaseRequestIntoTemplateCommand).build() {
1655
- static {
1656
- __name(this, "PutServiceQuotaIncreaseRequestIntoTemplateCommand");
1657
- }
1658
- };
1349
+ class GetAutoManagementConfigurationCommand extends smithyClient.Command
1350
+ .classBuilder()
1351
+ .ep(commonParams)
1352
+ .m(function (Command, cs, config, o) {
1353
+ return [
1354
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1355
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1356
+ ];
1357
+ })
1358
+ .s("ServiceQuotasV20190624", "GetAutoManagementConfiguration", {})
1359
+ .n("ServiceQuotasClient", "GetAutoManagementConfigurationCommand")
1360
+ .f(void 0, void 0)
1361
+ .ser(se_GetAutoManagementConfigurationCommand)
1362
+ .de(de_GetAutoManagementConfigurationCommand)
1363
+ .build() {
1364
+ }
1659
1365
 
1660
- // src/commands/RequestServiceQuotaIncreaseCommand.ts
1366
+ class GetAWSDefaultServiceQuotaCommand extends smithyClient.Command
1367
+ .classBuilder()
1368
+ .ep(commonParams)
1369
+ .m(function (Command, cs, config, o) {
1370
+ return [
1371
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1372
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1373
+ ];
1374
+ })
1375
+ .s("ServiceQuotasV20190624", "GetAWSDefaultServiceQuota", {})
1376
+ .n("ServiceQuotasClient", "GetAWSDefaultServiceQuotaCommand")
1377
+ .f(void 0, void 0)
1378
+ .ser(se_GetAWSDefaultServiceQuotaCommand)
1379
+ .de(de_GetAWSDefaultServiceQuotaCommand)
1380
+ .build() {
1381
+ }
1661
1382
 
1383
+ class GetRequestedServiceQuotaChangeCommand extends smithyClient.Command
1384
+ .classBuilder()
1385
+ .ep(commonParams)
1386
+ .m(function (Command, cs, config, o) {
1387
+ return [
1388
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1389
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1390
+ ];
1391
+ })
1392
+ .s("ServiceQuotasV20190624", "GetRequestedServiceQuotaChange", {})
1393
+ .n("ServiceQuotasClient", "GetRequestedServiceQuotaChangeCommand")
1394
+ .f(void 0, void 0)
1395
+ .ser(se_GetRequestedServiceQuotaChangeCommand)
1396
+ .de(de_GetRequestedServiceQuotaChangeCommand)
1397
+ .build() {
1398
+ }
1662
1399
 
1400
+ class GetServiceQuotaCommand extends smithyClient.Command
1401
+ .classBuilder()
1402
+ .ep(commonParams)
1403
+ .m(function (Command, cs, config, o) {
1404
+ return [
1405
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1406
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1407
+ ];
1408
+ })
1409
+ .s("ServiceQuotasV20190624", "GetServiceQuota", {})
1410
+ .n("ServiceQuotasClient", "GetServiceQuotaCommand")
1411
+ .f(void 0, void 0)
1412
+ .ser(se_GetServiceQuotaCommand)
1413
+ .de(de_GetServiceQuotaCommand)
1414
+ .build() {
1415
+ }
1663
1416
 
1664
- var RequestServiceQuotaIncreaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1665
- return [
1666
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1667
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1668
- ];
1669
- }).s("ServiceQuotasV20190624", "RequestServiceQuotaIncrease", {}).n("ServiceQuotasClient", "RequestServiceQuotaIncreaseCommand").f(void 0, void 0).ser(se_RequestServiceQuotaIncreaseCommand).de(de_RequestServiceQuotaIncreaseCommand).build() {
1670
- static {
1671
- __name(this, "RequestServiceQuotaIncreaseCommand");
1672
- }
1673
- };
1417
+ class GetServiceQuotaIncreaseRequestFromTemplateCommand extends smithyClient.Command
1418
+ .classBuilder()
1419
+ .ep(commonParams)
1420
+ .m(function (Command, cs, config, o) {
1421
+ return [
1422
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1423
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1424
+ ];
1425
+ })
1426
+ .s("ServiceQuotasV20190624", "GetServiceQuotaIncreaseRequestFromTemplate", {})
1427
+ .n("ServiceQuotasClient", "GetServiceQuotaIncreaseRequestFromTemplateCommand")
1428
+ .f(void 0, void 0)
1429
+ .ser(se_GetServiceQuotaIncreaseRequestFromTemplateCommand)
1430
+ .de(de_GetServiceQuotaIncreaseRequestFromTemplateCommand)
1431
+ .build() {
1432
+ }
1674
1433
 
1675
- // src/commands/TagResourceCommand.ts
1434
+ class ListAWSDefaultServiceQuotasCommand extends smithyClient.Command
1435
+ .classBuilder()
1436
+ .ep(commonParams)
1437
+ .m(function (Command, cs, config, o) {
1438
+ return [
1439
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1440
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1441
+ ];
1442
+ })
1443
+ .s("ServiceQuotasV20190624", "ListAWSDefaultServiceQuotas", {})
1444
+ .n("ServiceQuotasClient", "ListAWSDefaultServiceQuotasCommand")
1445
+ .f(void 0, void 0)
1446
+ .ser(se_ListAWSDefaultServiceQuotasCommand)
1447
+ .de(de_ListAWSDefaultServiceQuotasCommand)
1448
+ .build() {
1449
+ }
1676
1450
 
1451
+ class ListRequestedServiceQuotaChangeHistoryByQuotaCommand extends smithyClient.Command
1452
+ .classBuilder()
1453
+ .ep(commonParams)
1454
+ .m(function (Command, cs, config, o) {
1455
+ return [
1456
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1457
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1458
+ ];
1459
+ })
1460
+ .s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistoryByQuota", {})
1461
+ .n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryByQuotaCommand")
1462
+ .f(void 0, void 0)
1463
+ .ser(se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand)
1464
+ .de(de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand)
1465
+ .build() {
1466
+ }
1677
1467
 
1468
+ class ListRequestedServiceQuotaChangeHistoryCommand extends smithyClient.Command
1469
+ .classBuilder()
1470
+ .ep(commonParams)
1471
+ .m(function (Command, cs, config, o) {
1472
+ return [
1473
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1474
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1475
+ ];
1476
+ })
1477
+ .s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistory", {})
1478
+ .n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryCommand")
1479
+ .f(void 0, void 0)
1480
+ .ser(se_ListRequestedServiceQuotaChangeHistoryCommand)
1481
+ .de(de_ListRequestedServiceQuotaChangeHistoryCommand)
1482
+ .build() {
1483
+ }
1678
1484
 
1679
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1680
- return [
1681
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1682
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1683
- ];
1684
- }).s("ServiceQuotasV20190624", "TagResource", {}).n("ServiceQuotasClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1685
- static {
1686
- __name(this, "TagResourceCommand");
1687
- }
1688
- };
1485
+ class ListServiceQuotaIncreaseRequestsInTemplateCommand extends smithyClient.Command
1486
+ .classBuilder()
1487
+ .ep(commonParams)
1488
+ .m(function (Command, cs, config, o) {
1489
+ return [
1490
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1491
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1492
+ ];
1493
+ })
1494
+ .s("ServiceQuotasV20190624", "ListServiceQuotaIncreaseRequestsInTemplate", {})
1495
+ .n("ServiceQuotasClient", "ListServiceQuotaIncreaseRequestsInTemplateCommand")
1496
+ .f(void 0, void 0)
1497
+ .ser(se_ListServiceQuotaIncreaseRequestsInTemplateCommand)
1498
+ .de(de_ListServiceQuotaIncreaseRequestsInTemplateCommand)
1499
+ .build() {
1500
+ }
1689
1501
 
1690
- // src/commands/UntagResourceCommand.ts
1502
+ class ListServiceQuotasCommand extends smithyClient.Command
1503
+ .classBuilder()
1504
+ .ep(commonParams)
1505
+ .m(function (Command, cs, config, o) {
1506
+ return [
1507
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1508
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1509
+ ];
1510
+ })
1511
+ .s("ServiceQuotasV20190624", "ListServiceQuotas", {})
1512
+ .n("ServiceQuotasClient", "ListServiceQuotasCommand")
1513
+ .f(void 0, void 0)
1514
+ .ser(se_ListServiceQuotasCommand)
1515
+ .de(de_ListServiceQuotasCommand)
1516
+ .build() {
1517
+ }
1691
1518
 
1519
+ class ListServicesCommand extends smithyClient.Command
1520
+ .classBuilder()
1521
+ .ep(commonParams)
1522
+ .m(function (Command, cs, config, o) {
1523
+ return [
1524
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1525
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1526
+ ];
1527
+ })
1528
+ .s("ServiceQuotasV20190624", "ListServices", {})
1529
+ .n("ServiceQuotasClient", "ListServicesCommand")
1530
+ .f(void 0, void 0)
1531
+ .ser(se_ListServicesCommand)
1532
+ .de(de_ListServicesCommand)
1533
+ .build() {
1534
+ }
1692
1535
 
1536
+ class ListTagsForResourceCommand extends smithyClient.Command
1537
+ .classBuilder()
1538
+ .ep(commonParams)
1539
+ .m(function (Command, cs, config, o) {
1540
+ return [
1541
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1542
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1543
+ ];
1544
+ })
1545
+ .s("ServiceQuotasV20190624", "ListTagsForResource", {})
1546
+ .n("ServiceQuotasClient", "ListTagsForResourceCommand")
1547
+ .f(void 0, void 0)
1548
+ .ser(se_ListTagsForResourceCommand)
1549
+ .de(de_ListTagsForResourceCommand)
1550
+ .build() {
1551
+ }
1693
1552
 
1694
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1695
- return [
1696
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1697
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1698
- ];
1699
- }).s("ServiceQuotasV20190624", "UntagResource", {}).n("ServiceQuotasClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1700
- static {
1701
- __name(this, "UntagResourceCommand");
1702
- }
1703
- };
1553
+ class PutServiceQuotaIncreaseRequestIntoTemplateCommand extends smithyClient.Command
1554
+ .classBuilder()
1555
+ .ep(commonParams)
1556
+ .m(function (Command, cs, config, o) {
1557
+ return [
1558
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1559
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1560
+ ];
1561
+ })
1562
+ .s("ServiceQuotasV20190624", "PutServiceQuotaIncreaseRequestIntoTemplate", {})
1563
+ .n("ServiceQuotasClient", "PutServiceQuotaIncreaseRequestIntoTemplateCommand")
1564
+ .f(void 0, void 0)
1565
+ .ser(se_PutServiceQuotaIncreaseRequestIntoTemplateCommand)
1566
+ .de(de_PutServiceQuotaIncreaseRequestIntoTemplateCommand)
1567
+ .build() {
1568
+ }
1704
1569
 
1705
- // src/ServiceQuotas.ts
1706
- var commands = {
1707
- AssociateServiceQuotaTemplateCommand,
1708
- CreateSupportCaseCommand,
1709
- DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
1710
- DisassociateServiceQuotaTemplateCommand,
1711
- GetAssociationForServiceQuotaTemplateCommand,
1712
- GetAWSDefaultServiceQuotaCommand,
1713
- GetRequestedServiceQuotaChangeCommand,
1714
- GetServiceQuotaCommand,
1715
- GetServiceQuotaIncreaseRequestFromTemplateCommand,
1716
- ListAWSDefaultServiceQuotasCommand,
1717
- ListRequestedServiceQuotaChangeHistoryCommand,
1718
- ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
1719
- ListServiceQuotaIncreaseRequestsInTemplateCommand,
1720
- ListServiceQuotasCommand,
1721
- ListServicesCommand,
1722
- ListTagsForResourceCommand,
1723
- PutServiceQuotaIncreaseRequestIntoTemplateCommand,
1724
- RequestServiceQuotaIncreaseCommand,
1725
- TagResourceCommand,
1726
- UntagResourceCommand
1727
- };
1728
- var ServiceQuotas = class extends ServiceQuotasClient {
1729
- static {
1730
- __name(this, "ServiceQuotas");
1731
- }
1732
- };
1733
- (0, import_smithy_client.createAggregatedClient)(commands, ServiceQuotas);
1570
+ class RequestServiceQuotaIncreaseCommand extends smithyClient.Command
1571
+ .classBuilder()
1572
+ .ep(commonParams)
1573
+ .m(function (Command, cs, config, o) {
1574
+ return [
1575
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1576
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1577
+ ];
1578
+ })
1579
+ .s("ServiceQuotasV20190624", "RequestServiceQuotaIncrease", {})
1580
+ .n("ServiceQuotasClient", "RequestServiceQuotaIncreaseCommand")
1581
+ .f(void 0, void 0)
1582
+ .ser(se_RequestServiceQuotaIncreaseCommand)
1583
+ .de(de_RequestServiceQuotaIncreaseCommand)
1584
+ .build() {
1585
+ }
1734
1586
 
1735
- // src/pagination/ListAWSDefaultServiceQuotasPaginator.ts
1587
+ class StartAutoManagementCommand extends smithyClient.Command
1588
+ .classBuilder()
1589
+ .ep(commonParams)
1590
+ .m(function (Command, cs, config, o) {
1591
+ return [
1592
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1593
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1594
+ ];
1595
+ })
1596
+ .s("ServiceQuotasV20190624", "StartAutoManagement", {})
1597
+ .n("ServiceQuotasClient", "StartAutoManagementCommand")
1598
+ .f(void 0, void 0)
1599
+ .ser(se_StartAutoManagementCommand)
1600
+ .de(de_StartAutoManagementCommand)
1601
+ .build() {
1602
+ }
1736
1603
 
1737
- var paginateListAWSDefaultServiceQuotas = (0, import_core.createPaginator)(ServiceQuotasClient, ListAWSDefaultServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
1604
+ class StopAutoManagementCommand extends smithyClient.Command
1605
+ .classBuilder()
1606
+ .ep(commonParams)
1607
+ .m(function (Command, cs, config, o) {
1608
+ return [
1609
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1610
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1611
+ ];
1612
+ })
1613
+ .s("ServiceQuotasV20190624", "StopAutoManagement", {})
1614
+ .n("ServiceQuotasClient", "StopAutoManagementCommand")
1615
+ .f(void 0, void 0)
1616
+ .ser(se_StopAutoManagementCommand)
1617
+ .de(de_StopAutoManagementCommand)
1618
+ .build() {
1619
+ }
1738
1620
 
1739
- // src/pagination/ListRequestedServiceQuotaChangeHistoryByQuotaPaginator.ts
1621
+ class TagResourceCommand extends smithyClient.Command
1622
+ .classBuilder()
1623
+ .ep(commonParams)
1624
+ .m(function (Command, cs, config, o) {
1625
+ return [
1626
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1627
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1628
+ ];
1629
+ })
1630
+ .s("ServiceQuotasV20190624", "TagResource", {})
1631
+ .n("ServiceQuotasClient", "TagResourceCommand")
1632
+ .f(void 0, void 0)
1633
+ .ser(se_TagResourceCommand)
1634
+ .de(de_TagResourceCommand)
1635
+ .build() {
1636
+ }
1740
1637
 
1741
- var paginateListRequestedServiceQuotaChangeHistoryByQuota = (0, import_core.createPaginator)(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryByQuotaCommand, "NextToken", "NextToken", "MaxResults");
1638
+ class UntagResourceCommand extends smithyClient.Command
1639
+ .classBuilder()
1640
+ .ep(commonParams)
1641
+ .m(function (Command, cs, config, o) {
1642
+ return [
1643
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1644
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1645
+ ];
1646
+ })
1647
+ .s("ServiceQuotasV20190624", "UntagResource", {})
1648
+ .n("ServiceQuotasClient", "UntagResourceCommand")
1649
+ .f(void 0, void 0)
1650
+ .ser(se_UntagResourceCommand)
1651
+ .de(de_UntagResourceCommand)
1652
+ .build() {
1653
+ }
1742
1654
 
1743
- // src/pagination/ListRequestedServiceQuotaChangeHistoryPaginator.ts
1655
+ class UpdateAutoManagementCommand extends smithyClient.Command
1656
+ .classBuilder()
1657
+ .ep(commonParams)
1658
+ .m(function (Command, cs, config, o) {
1659
+ return [
1660
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1661
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1662
+ ];
1663
+ })
1664
+ .s("ServiceQuotasV20190624", "UpdateAutoManagement", {})
1665
+ .n("ServiceQuotasClient", "UpdateAutoManagementCommand")
1666
+ .f(void 0, void 0)
1667
+ .ser(se_UpdateAutoManagementCommand)
1668
+ .de(de_UpdateAutoManagementCommand)
1669
+ .build() {
1670
+ }
1744
1671
 
1745
- var paginateListRequestedServiceQuotaChangeHistory = (0, import_core.createPaginator)(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryCommand, "NextToken", "NextToken", "MaxResults");
1672
+ const commands = {
1673
+ AssociateServiceQuotaTemplateCommand,
1674
+ CreateSupportCaseCommand,
1675
+ DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
1676
+ DisassociateServiceQuotaTemplateCommand,
1677
+ GetAssociationForServiceQuotaTemplateCommand,
1678
+ GetAutoManagementConfigurationCommand,
1679
+ GetAWSDefaultServiceQuotaCommand,
1680
+ GetRequestedServiceQuotaChangeCommand,
1681
+ GetServiceQuotaCommand,
1682
+ GetServiceQuotaIncreaseRequestFromTemplateCommand,
1683
+ ListAWSDefaultServiceQuotasCommand,
1684
+ ListRequestedServiceQuotaChangeHistoryCommand,
1685
+ ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
1686
+ ListServiceQuotaIncreaseRequestsInTemplateCommand,
1687
+ ListServiceQuotasCommand,
1688
+ ListServicesCommand,
1689
+ ListTagsForResourceCommand,
1690
+ PutServiceQuotaIncreaseRequestIntoTemplateCommand,
1691
+ RequestServiceQuotaIncreaseCommand,
1692
+ StartAutoManagementCommand,
1693
+ StopAutoManagementCommand,
1694
+ TagResourceCommand,
1695
+ UntagResourceCommand,
1696
+ UpdateAutoManagementCommand,
1697
+ };
1698
+ class ServiceQuotas extends ServiceQuotasClient {
1699
+ }
1700
+ smithyClient.createAggregatedClient(commands, ServiceQuotas);
1746
1701
 
1747
- // src/pagination/ListServiceQuotaIncreaseRequestsInTemplatePaginator.ts
1702
+ const paginateListAWSDefaultServiceQuotas = core.createPaginator(ServiceQuotasClient, ListAWSDefaultServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
1748
1703
 
1749
- var paginateListServiceQuotaIncreaseRequestsInTemplate = (0, import_core.createPaginator)(ServiceQuotasClient, ListServiceQuotaIncreaseRequestsInTemplateCommand, "NextToken", "NextToken", "MaxResults");
1704
+ const paginateListRequestedServiceQuotaChangeHistoryByQuota = core.createPaginator(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryByQuotaCommand, "NextToken", "NextToken", "MaxResults");
1750
1705
 
1751
- // src/pagination/ListServiceQuotasPaginator.ts
1706
+ const paginateListRequestedServiceQuotaChangeHistory = core.createPaginator(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryCommand, "NextToken", "NextToken", "MaxResults");
1752
1707
 
1753
- var paginateListServiceQuotas = (0, import_core.createPaginator)(ServiceQuotasClient, ListServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
1708
+ const paginateListServiceQuotaIncreaseRequestsInTemplate = core.createPaginator(ServiceQuotasClient, ListServiceQuotaIncreaseRequestsInTemplateCommand, "NextToken", "NextToken", "MaxResults");
1754
1709
 
1755
- // src/pagination/ListServicesPaginator.ts
1710
+ const paginateListServiceQuotas = core.createPaginator(ServiceQuotasClient, ListServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
1756
1711
 
1757
- var paginateListServices = (0, import_core.createPaginator)(ServiceQuotasClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
1758
- // Annotate the CommonJS export names for ESM import in node:
1712
+ const paginateListServices = core.createPaginator(ServiceQuotasClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
1759
1713
 
1760
- 0 && (module.exports = {
1761
- ServiceQuotasServiceException,
1762
- __Client,
1763
- ServiceQuotasClient,
1764
- ServiceQuotas,
1765
- $Command,
1766
- AssociateServiceQuotaTemplateCommand,
1767
- CreateSupportCaseCommand,
1768
- DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
1769
- DisassociateServiceQuotaTemplateCommand,
1770
- GetAWSDefaultServiceQuotaCommand,
1771
- GetAssociationForServiceQuotaTemplateCommand,
1772
- GetRequestedServiceQuotaChangeCommand,
1773
- GetServiceQuotaCommand,
1774
- GetServiceQuotaIncreaseRequestFromTemplateCommand,
1775
- ListAWSDefaultServiceQuotasCommand,
1776
- ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
1777
- ListRequestedServiceQuotaChangeHistoryCommand,
1778
- ListServiceQuotaIncreaseRequestsInTemplateCommand,
1779
- ListServiceQuotasCommand,
1780
- ListServicesCommand,
1781
- ListTagsForResourceCommand,
1782
- PutServiceQuotaIncreaseRequestIntoTemplateCommand,
1783
- RequestServiceQuotaIncreaseCommand,
1784
- TagResourceCommand,
1785
- UntagResourceCommand,
1786
- paginateListAWSDefaultServiceQuotas,
1787
- paginateListRequestedServiceQuotaChangeHistoryByQuota,
1788
- paginateListRequestedServiceQuotaChangeHistory,
1789
- paginateListServiceQuotaIncreaseRequestsInTemplate,
1790
- paginateListServiceQuotas,
1791
- paginateListServices,
1792
- AccessDeniedException,
1793
- AppliedLevelEnum,
1794
- AWSServiceAccessNotEnabledException,
1795
- DependencyAccessDeniedException,
1796
- NoAvailableOrganizationException,
1797
- OrganizationNotInAllFeaturesModeException,
1798
- ServiceException,
1799
- TemplatesNotAvailableInRegionException,
1800
- TooManyRequestsException,
1801
- IllegalArgumentException,
1802
- InvalidResourceStateException,
1803
- NoSuchResourceException,
1804
- ResourceAlreadyExistsException,
1805
- ServiceQuotaTemplateNotInUseException,
1806
- ErrorCode,
1807
- ServiceQuotaTemplateAssociationStatus,
1808
- PeriodUnit,
1809
- QuotaContextScope,
1810
- RequestStatus,
1811
- InvalidPaginationTokenException,
1812
- QuotaExceededException,
1813
- TagPolicyViolationException,
1814
- TooManyTagsException
1714
+ Object.defineProperty(exports, "$Command", {
1715
+ enumerable: true,
1716
+ get: function () { return smithyClient.Command; }
1815
1717
  });
1816
-
1718
+ Object.defineProperty(exports, "__Client", {
1719
+ enumerable: true,
1720
+ get: function () { return smithyClient.Client; }
1721
+ });
1722
+ exports.AWSServiceAccessNotEnabledException = AWSServiceAccessNotEnabledException;
1723
+ exports.AccessDeniedException = AccessDeniedException;
1724
+ exports.AppliedLevelEnum = AppliedLevelEnum;
1725
+ exports.AssociateServiceQuotaTemplateCommand = AssociateServiceQuotaTemplateCommand;
1726
+ exports.CreateSupportCaseCommand = CreateSupportCaseCommand;
1727
+ exports.DeleteServiceQuotaIncreaseRequestFromTemplateCommand = DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
1728
+ exports.DependencyAccessDeniedException = DependencyAccessDeniedException;
1729
+ exports.DisassociateServiceQuotaTemplateCommand = DisassociateServiceQuotaTemplateCommand;
1730
+ exports.ErrorCode = ErrorCode;
1731
+ exports.GetAWSDefaultServiceQuotaCommand = GetAWSDefaultServiceQuotaCommand;
1732
+ exports.GetAssociationForServiceQuotaTemplateCommand = GetAssociationForServiceQuotaTemplateCommand;
1733
+ exports.GetAutoManagementConfigurationCommand = GetAutoManagementConfigurationCommand;
1734
+ exports.GetRequestedServiceQuotaChangeCommand = GetRequestedServiceQuotaChangeCommand;
1735
+ exports.GetServiceQuotaCommand = GetServiceQuotaCommand;
1736
+ exports.GetServiceQuotaIncreaseRequestFromTemplateCommand = GetServiceQuotaIncreaseRequestFromTemplateCommand;
1737
+ exports.IllegalArgumentException = IllegalArgumentException;
1738
+ exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
1739
+ exports.InvalidResourceStateException = InvalidResourceStateException;
1740
+ exports.ListAWSDefaultServiceQuotasCommand = ListAWSDefaultServiceQuotasCommand;
1741
+ exports.ListRequestedServiceQuotaChangeHistoryByQuotaCommand = ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
1742
+ exports.ListRequestedServiceQuotaChangeHistoryCommand = ListRequestedServiceQuotaChangeHistoryCommand;
1743
+ exports.ListServiceQuotaIncreaseRequestsInTemplateCommand = ListServiceQuotaIncreaseRequestsInTemplateCommand;
1744
+ exports.ListServiceQuotasCommand = ListServiceQuotasCommand;
1745
+ exports.ListServicesCommand = ListServicesCommand;
1746
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1747
+ exports.NoAvailableOrganizationException = NoAvailableOrganizationException;
1748
+ exports.NoSuchResourceException = NoSuchResourceException;
1749
+ exports.OptInLevel = OptInLevel;
1750
+ exports.OptInStatus = OptInStatus;
1751
+ exports.OptInType = OptInType;
1752
+ exports.OrganizationNotInAllFeaturesModeException = OrganizationNotInAllFeaturesModeException;
1753
+ exports.PeriodUnit = PeriodUnit;
1754
+ exports.PutServiceQuotaIncreaseRequestIntoTemplateCommand = PutServiceQuotaIncreaseRequestIntoTemplateCommand;
1755
+ exports.QuotaContextScope = QuotaContextScope;
1756
+ exports.QuotaExceededException = QuotaExceededException;
1757
+ exports.RequestServiceQuotaIncreaseCommand = RequestServiceQuotaIncreaseCommand;
1758
+ exports.RequestStatus = RequestStatus;
1759
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
1760
+ exports.ServiceException = ServiceException;
1761
+ exports.ServiceQuotaTemplateAssociationStatus = ServiceQuotaTemplateAssociationStatus;
1762
+ exports.ServiceQuotaTemplateNotInUseException = ServiceQuotaTemplateNotInUseException;
1763
+ exports.ServiceQuotas = ServiceQuotas;
1764
+ exports.ServiceQuotasClient = ServiceQuotasClient;
1765
+ exports.ServiceQuotasServiceException = ServiceQuotasServiceException;
1766
+ exports.StartAutoManagementCommand = StartAutoManagementCommand;
1767
+ exports.StopAutoManagementCommand = StopAutoManagementCommand;
1768
+ exports.TagPolicyViolationException = TagPolicyViolationException;
1769
+ exports.TagResourceCommand = TagResourceCommand;
1770
+ exports.TemplatesNotAvailableInRegionException = TemplatesNotAvailableInRegionException;
1771
+ exports.TooManyRequestsException = TooManyRequestsException;
1772
+ exports.TooManyTagsException = TooManyTagsException;
1773
+ exports.UntagResourceCommand = UntagResourceCommand;
1774
+ exports.UpdateAutoManagementCommand = UpdateAutoManagementCommand;
1775
+ exports.paginateListAWSDefaultServiceQuotas = paginateListAWSDefaultServiceQuotas;
1776
+ exports.paginateListRequestedServiceQuotaChangeHistory = paginateListRequestedServiceQuotaChangeHistory;
1777
+ exports.paginateListRequestedServiceQuotaChangeHistoryByQuota = paginateListRequestedServiceQuotaChangeHistoryByQuota;
1778
+ exports.paginateListServiceQuotaIncreaseRequestsInTemplate = paginateListServiceQuotaIncreaseRequestsInTemplate;
1779
+ exports.paginateListServiceQuotas = paginateListServiceQuotas;
1780
+ exports.paginateListServices = paginateListServices;