@aws-sdk/client-account 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Account.js +1 -29
- package/dist-cjs/AccountClient.js +1 -43
- package/dist-cjs/commands/DeleteAlternateContactCommand.js +1 -28
- package/dist-cjs/commands/DisableRegionCommand.js +1 -28
- package/dist-cjs/commands/EnableRegionCommand.js +1 -28
- package/dist-cjs/commands/GetAlternateContactCommand.js +1 -29
- package/dist-cjs/commands/GetContactInformationCommand.js +1 -29
- package/dist-cjs/commands/GetRegionOptStatusCommand.js +1 -28
- package/dist-cjs/commands/ListRegionsCommand.js +1 -28
- package/dist-cjs/commands/PutAlternateContactCommand.js +1 -29
- package/dist-cjs/commands/PutContactInformationCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -12
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1199 -11
- package/dist-cjs/models/AccountServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -157
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListRegionsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -664
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1200 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
Account: () => Account,
|
|
26
|
+
AccountClient: () => AccountClient,
|
|
27
|
+
AccountServiceException: () => AccountServiceException,
|
|
28
|
+
AlternateContactFilterSensitiveLog: () => AlternateContactFilterSensitiveLog,
|
|
29
|
+
AlternateContactType: () => AlternateContactType,
|
|
30
|
+
ConflictException: () => ConflictException,
|
|
31
|
+
ContactInformationFilterSensitiveLog: () => ContactInformationFilterSensitiveLog,
|
|
32
|
+
DeleteAlternateContactCommand: () => DeleteAlternateContactCommand,
|
|
33
|
+
DisableRegionCommand: () => DisableRegionCommand,
|
|
34
|
+
EnableRegionCommand: () => EnableRegionCommand,
|
|
35
|
+
GetAlternateContactCommand: () => GetAlternateContactCommand,
|
|
36
|
+
GetAlternateContactResponseFilterSensitiveLog: () => GetAlternateContactResponseFilterSensitiveLog,
|
|
37
|
+
GetContactInformationCommand: () => GetContactInformationCommand,
|
|
38
|
+
GetContactInformationResponseFilterSensitiveLog: () => GetContactInformationResponseFilterSensitiveLog,
|
|
39
|
+
GetRegionOptStatusCommand: () => GetRegionOptStatusCommand,
|
|
40
|
+
InternalServerException: () => InternalServerException,
|
|
41
|
+
ListRegionsCommand: () => ListRegionsCommand,
|
|
42
|
+
PutAlternateContactCommand: () => PutAlternateContactCommand,
|
|
43
|
+
PutAlternateContactRequestFilterSensitiveLog: () => PutAlternateContactRequestFilterSensitiveLog,
|
|
44
|
+
PutContactInformationCommand: () => PutContactInformationCommand,
|
|
45
|
+
PutContactInformationRequestFilterSensitiveLog: () => PutContactInformationRequestFilterSensitiveLog,
|
|
46
|
+
RegionOptStatus: () => RegionOptStatus,
|
|
47
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
48
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
49
|
+
ValidationException: () => ValidationException,
|
|
50
|
+
ValidationExceptionFieldFilterSensitiveLog: () => ValidationExceptionFieldFilterSensitiveLog,
|
|
51
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
52
|
+
__Client: () => import_smithy_client.Client,
|
|
53
|
+
paginateListRegions: () => paginateListRegions
|
|
54
|
+
});
|
|
55
|
+
module.exports = __toCommonJS(src_exports);
|
|
56
|
+
|
|
57
|
+
// src/AccountClient.ts
|
|
58
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
59
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
60
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
61
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
62
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
63
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
64
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
65
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
66
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// src/endpoint/EndpointParameters.ts
|
|
70
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
71
|
+
return {
|
|
72
|
+
...options,
|
|
73
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
74
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
75
|
+
defaultSigningName: "account"
|
|
76
|
+
};
|
|
77
|
+
}, "resolveClientEndpointParameters");
|
|
78
|
+
var commonParams = {
|
|
79
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
80
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
81
|
+
Region: { type: "builtInParams", name: "region" },
|
|
82
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/AccountClient.ts
|
|
86
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
87
|
+
|
|
88
|
+
// src/runtimeExtensions.ts
|
|
89
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
90
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
91
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
92
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
93
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
94
|
+
const extensionConfiguration = {
|
|
95
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
96
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
97
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
98
|
+
};
|
|
99
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
100
|
+
return {
|
|
101
|
+
...runtimeConfig,
|
|
102
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
103
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
104
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
105
|
+
};
|
|
106
|
+
}, "resolveRuntimeExtensions");
|
|
107
|
+
|
|
108
|
+
// src/AccountClient.ts
|
|
109
|
+
var _AccountClient = class _AccountClient extends import_smithy_client.Client {
|
|
110
|
+
constructor(...[configuration]) {
|
|
111
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
112
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
113
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
114
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
115
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
116
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
117
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
118
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
119
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
120
|
+
super(_config_8);
|
|
121
|
+
this.config = _config_8;
|
|
122
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
123
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
124
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
132
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
133
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
134
|
+
*/
|
|
135
|
+
destroy() {
|
|
136
|
+
super.destroy();
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
__name(_AccountClient, "AccountClient");
|
|
140
|
+
var AccountClient = _AccountClient;
|
|
141
|
+
|
|
142
|
+
// src/Account.ts
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
// src/commands/DeleteAlternateContactCommand.ts
|
|
146
|
+
|
|
147
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
148
|
+
|
|
149
|
+
var import_types = require("@smithy/types");
|
|
150
|
+
|
|
151
|
+
// src/protocols/Aws_restJson1.ts
|
|
152
|
+
var import_core = require("@smithy/core");
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// src/models/AccountServiceException.ts
|
|
156
|
+
|
|
157
|
+
var _AccountServiceException = class _AccountServiceException extends import_smithy_client.ServiceException {
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
constructor(options) {
|
|
162
|
+
super(options);
|
|
163
|
+
Object.setPrototypeOf(this, _AccountServiceException.prototype);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
__name(_AccountServiceException, "AccountServiceException");
|
|
167
|
+
var AccountServiceException = _AccountServiceException;
|
|
168
|
+
|
|
169
|
+
// src/models/models_0.ts
|
|
170
|
+
|
|
171
|
+
var _AccessDeniedException = class _AccessDeniedException extends AccountServiceException {
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "AccessDeniedException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts
|
|
180
|
+
});
|
|
181
|
+
this.name = "AccessDeniedException";
|
|
182
|
+
this.$fault = "client";
|
|
183
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
187
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
188
|
+
var AlternateContactType = {
|
|
189
|
+
BILLING: "BILLING",
|
|
190
|
+
OPERATIONS: "OPERATIONS",
|
|
191
|
+
SECURITY: "SECURITY"
|
|
192
|
+
};
|
|
193
|
+
var _InternalServerException = class _InternalServerException extends AccountServiceException {
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "InternalServerException",
|
|
200
|
+
$fault: "server",
|
|
201
|
+
...opts
|
|
202
|
+
});
|
|
203
|
+
this.name = "InternalServerException";
|
|
204
|
+
this.$fault = "server";
|
|
205
|
+
this.$retryable = {};
|
|
206
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
__name(_InternalServerException, "InternalServerException");
|
|
210
|
+
var InternalServerException = _InternalServerException;
|
|
211
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends AccountServiceException {
|
|
212
|
+
/**
|
|
213
|
+
* @internal
|
|
214
|
+
*/
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "ResourceNotFoundException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts
|
|
220
|
+
});
|
|
221
|
+
this.name = "ResourceNotFoundException";
|
|
222
|
+
this.$fault = "client";
|
|
223
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
227
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
228
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends AccountServiceException {
|
|
229
|
+
/**
|
|
230
|
+
* @internal
|
|
231
|
+
*/
|
|
232
|
+
constructor(opts) {
|
|
233
|
+
super({
|
|
234
|
+
name: "TooManyRequestsException",
|
|
235
|
+
$fault: "client",
|
|
236
|
+
...opts
|
|
237
|
+
});
|
|
238
|
+
this.name = "TooManyRequestsException";
|
|
239
|
+
this.$fault = "client";
|
|
240
|
+
this.$retryable = {
|
|
241
|
+
throttling: true
|
|
242
|
+
};
|
|
243
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
247
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
248
|
+
var ValidationExceptionReason = {
|
|
249
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
250
|
+
INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget"
|
|
251
|
+
};
|
|
252
|
+
var _ValidationException = class _ValidationException extends AccountServiceException {
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "ValidationException",
|
|
259
|
+
$fault: "client",
|
|
260
|
+
...opts
|
|
261
|
+
});
|
|
262
|
+
this.name = "ValidationException";
|
|
263
|
+
this.$fault = "client";
|
|
264
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
265
|
+
this.reason = opts.reason;
|
|
266
|
+
this.fieldList = opts.fieldList;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
__name(_ValidationException, "ValidationException");
|
|
270
|
+
var ValidationException = _ValidationException;
|
|
271
|
+
var _ConflictException = class _ConflictException extends AccountServiceException {
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "ConflictException",
|
|
278
|
+
$fault: "client",
|
|
279
|
+
...opts
|
|
280
|
+
});
|
|
281
|
+
this.name = "ConflictException";
|
|
282
|
+
this.$fault = "client";
|
|
283
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
__name(_ConflictException, "ConflictException");
|
|
287
|
+
var ConflictException = _ConflictException;
|
|
288
|
+
var RegionOptStatus = {
|
|
289
|
+
DISABLED: "DISABLED",
|
|
290
|
+
DISABLING: "DISABLING",
|
|
291
|
+
ENABLED: "ENABLED",
|
|
292
|
+
ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
|
|
293
|
+
ENABLING: "ENABLING"
|
|
294
|
+
};
|
|
295
|
+
var ValidationExceptionFieldFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
296
|
+
...obj,
|
|
297
|
+
...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
|
|
298
|
+
}), "ValidationExceptionFieldFilterSensitiveLog");
|
|
299
|
+
var AlternateContactFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
300
|
+
...obj,
|
|
301
|
+
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
302
|
+
...obj.Title && { Title: import_smithy_client.SENSITIVE_STRING },
|
|
303
|
+
...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING },
|
|
304
|
+
...obj.PhoneNumber && { PhoneNumber: import_smithy_client.SENSITIVE_STRING }
|
|
305
|
+
}), "AlternateContactFilterSensitiveLog");
|
|
306
|
+
var GetAlternateContactResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
307
|
+
...obj,
|
|
308
|
+
...obj.AlternateContact && { AlternateContact: AlternateContactFilterSensitiveLog(obj.AlternateContact) }
|
|
309
|
+
}), "GetAlternateContactResponseFilterSensitiveLog");
|
|
310
|
+
var PutAlternateContactRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
311
|
+
...obj,
|
|
312
|
+
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
313
|
+
...obj.Title && { Title: import_smithy_client.SENSITIVE_STRING },
|
|
314
|
+
...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING },
|
|
315
|
+
...obj.PhoneNumber && { PhoneNumber: import_smithy_client.SENSITIVE_STRING }
|
|
316
|
+
}), "PutAlternateContactRequestFilterSensitiveLog");
|
|
317
|
+
var ContactInformationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
...obj.FullName && { FullName: import_smithy_client.SENSITIVE_STRING },
|
|
320
|
+
...obj.AddressLine1 && { AddressLine1: import_smithy_client.SENSITIVE_STRING },
|
|
321
|
+
...obj.AddressLine2 && { AddressLine2: import_smithy_client.SENSITIVE_STRING },
|
|
322
|
+
...obj.AddressLine3 && { AddressLine3: import_smithy_client.SENSITIVE_STRING },
|
|
323
|
+
...obj.City && { City: import_smithy_client.SENSITIVE_STRING },
|
|
324
|
+
...obj.StateOrRegion && { StateOrRegion: import_smithy_client.SENSITIVE_STRING },
|
|
325
|
+
...obj.DistrictOrCounty && { DistrictOrCounty: import_smithy_client.SENSITIVE_STRING },
|
|
326
|
+
...obj.PostalCode && { PostalCode: import_smithy_client.SENSITIVE_STRING },
|
|
327
|
+
...obj.CountryCode && { CountryCode: import_smithy_client.SENSITIVE_STRING },
|
|
328
|
+
...obj.PhoneNumber && { PhoneNumber: import_smithy_client.SENSITIVE_STRING },
|
|
329
|
+
...obj.CompanyName && { CompanyName: import_smithy_client.SENSITIVE_STRING },
|
|
330
|
+
...obj.WebsiteUrl && { WebsiteUrl: import_smithy_client.SENSITIVE_STRING }
|
|
331
|
+
}), "ContactInformationFilterSensitiveLog");
|
|
332
|
+
var GetContactInformationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
333
|
+
...obj,
|
|
334
|
+
...obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }
|
|
335
|
+
}), "GetContactInformationResponseFilterSensitiveLog");
|
|
336
|
+
var PutContactInformationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
337
|
+
...obj,
|
|
338
|
+
...obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }
|
|
339
|
+
}), "PutContactInformationRequestFilterSensitiveLog");
|
|
340
|
+
|
|
341
|
+
// src/protocols/Aws_restJson1.ts
|
|
342
|
+
var se_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
343
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
344
|
+
const headers = {
|
|
345
|
+
"content-type": "application/json"
|
|
346
|
+
};
|
|
347
|
+
b.bp("/deleteAlternateContact");
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify(
|
|
350
|
+
(0, import_smithy_client.take)(input, {
|
|
351
|
+
AccountId: [],
|
|
352
|
+
AlternateContactType: []
|
|
353
|
+
})
|
|
354
|
+
);
|
|
355
|
+
b.m("POST").h(headers).b(body);
|
|
356
|
+
return b.build();
|
|
357
|
+
}, "se_DeleteAlternateContactCommand");
|
|
358
|
+
var se_DisableRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/json"
|
|
362
|
+
};
|
|
363
|
+
b.bp("/disableRegion");
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(
|
|
366
|
+
(0, import_smithy_client.take)(input, {
|
|
367
|
+
AccountId: [],
|
|
368
|
+
RegionName: []
|
|
369
|
+
})
|
|
370
|
+
);
|
|
371
|
+
b.m("POST").h(headers).b(body);
|
|
372
|
+
return b.build();
|
|
373
|
+
}, "se_DisableRegionCommand");
|
|
374
|
+
var se_EnableRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
375
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
376
|
+
const headers = {
|
|
377
|
+
"content-type": "application/json"
|
|
378
|
+
};
|
|
379
|
+
b.bp("/enableRegion");
|
|
380
|
+
let body;
|
|
381
|
+
body = JSON.stringify(
|
|
382
|
+
(0, import_smithy_client.take)(input, {
|
|
383
|
+
AccountId: [],
|
|
384
|
+
RegionName: []
|
|
385
|
+
})
|
|
386
|
+
);
|
|
387
|
+
b.m("POST").h(headers).b(body);
|
|
388
|
+
return b.build();
|
|
389
|
+
}, "se_EnableRegionCommand");
|
|
390
|
+
var se_GetAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
391
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
392
|
+
const headers = {
|
|
393
|
+
"content-type": "application/json"
|
|
394
|
+
};
|
|
395
|
+
b.bp("/getAlternateContact");
|
|
396
|
+
let body;
|
|
397
|
+
body = JSON.stringify(
|
|
398
|
+
(0, import_smithy_client.take)(input, {
|
|
399
|
+
AccountId: [],
|
|
400
|
+
AlternateContactType: []
|
|
401
|
+
})
|
|
402
|
+
);
|
|
403
|
+
b.m("POST").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
405
|
+
}, "se_GetAlternateContactCommand");
|
|
406
|
+
var se_GetContactInformationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
407
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
408
|
+
const headers = {
|
|
409
|
+
"content-type": "application/json"
|
|
410
|
+
};
|
|
411
|
+
b.bp("/getContactInformation");
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify(
|
|
414
|
+
(0, import_smithy_client.take)(input, {
|
|
415
|
+
AccountId: []
|
|
416
|
+
})
|
|
417
|
+
);
|
|
418
|
+
b.m("POST").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
420
|
+
}, "se_GetContactInformationCommand");
|
|
421
|
+
var se_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
422
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
423
|
+
const headers = {
|
|
424
|
+
"content-type": "application/json"
|
|
425
|
+
};
|
|
426
|
+
b.bp("/getRegionOptStatus");
|
|
427
|
+
let body;
|
|
428
|
+
body = JSON.stringify(
|
|
429
|
+
(0, import_smithy_client.take)(input, {
|
|
430
|
+
AccountId: [],
|
|
431
|
+
RegionName: []
|
|
432
|
+
})
|
|
433
|
+
);
|
|
434
|
+
b.m("POST").h(headers).b(body);
|
|
435
|
+
return b.build();
|
|
436
|
+
}, "se_GetRegionOptStatusCommand");
|
|
437
|
+
var se_ListRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
+
const headers = {
|
|
440
|
+
"content-type": "application/json"
|
|
441
|
+
};
|
|
442
|
+
b.bp("/listRegions");
|
|
443
|
+
let body;
|
|
444
|
+
body = JSON.stringify(
|
|
445
|
+
(0, import_smithy_client.take)(input, {
|
|
446
|
+
AccountId: [],
|
|
447
|
+
MaxResults: [],
|
|
448
|
+
NextToken: [],
|
|
449
|
+
RegionOptStatusContains: (_) => (0, import_smithy_client._json)(_)
|
|
450
|
+
})
|
|
451
|
+
);
|
|
452
|
+
b.m("POST").h(headers).b(body);
|
|
453
|
+
return b.build();
|
|
454
|
+
}, "se_ListRegionsCommand");
|
|
455
|
+
var se_PutAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
457
|
+
const headers = {
|
|
458
|
+
"content-type": "application/json"
|
|
459
|
+
};
|
|
460
|
+
b.bp("/putAlternateContact");
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify(
|
|
463
|
+
(0, import_smithy_client.take)(input, {
|
|
464
|
+
AccountId: [],
|
|
465
|
+
AlternateContactType: [],
|
|
466
|
+
EmailAddress: [],
|
|
467
|
+
Name: [],
|
|
468
|
+
PhoneNumber: [],
|
|
469
|
+
Title: []
|
|
470
|
+
})
|
|
471
|
+
);
|
|
472
|
+
b.m("POST").h(headers).b(body);
|
|
473
|
+
return b.build();
|
|
474
|
+
}, "se_PutAlternateContactCommand");
|
|
475
|
+
var se_PutContactInformationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
476
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
477
|
+
const headers = {
|
|
478
|
+
"content-type": "application/json"
|
|
479
|
+
};
|
|
480
|
+
b.bp("/putContactInformation");
|
|
481
|
+
let body;
|
|
482
|
+
body = JSON.stringify(
|
|
483
|
+
(0, import_smithy_client.take)(input, {
|
|
484
|
+
AccountId: [],
|
|
485
|
+
ContactInformation: (_) => (0, import_smithy_client._json)(_)
|
|
486
|
+
})
|
|
487
|
+
);
|
|
488
|
+
b.m("POST").h(headers).b(body);
|
|
489
|
+
return b.build();
|
|
490
|
+
}, "se_PutContactInformationCommand");
|
|
491
|
+
var de_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
+
return de_DeleteAlternateContactCommandError(output, context);
|
|
494
|
+
}
|
|
495
|
+
const contents = (0, import_smithy_client.map)({
|
|
496
|
+
$metadata: deserializeMetadata(output)
|
|
497
|
+
});
|
|
498
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
499
|
+
return contents;
|
|
500
|
+
}, "de_DeleteAlternateContactCommand");
|
|
501
|
+
var de_DeleteAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
|
+
const parsedOutput = {
|
|
503
|
+
...output,
|
|
504
|
+
body: await parseErrorBody(output.body, context)
|
|
505
|
+
};
|
|
506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
+
switch (errorCode) {
|
|
508
|
+
case "AccessDeniedException":
|
|
509
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
510
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
511
|
+
case "InternalServerException":
|
|
512
|
+
case "com.amazonaws.account#InternalServerException":
|
|
513
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
514
|
+
case "ResourceNotFoundException":
|
|
515
|
+
case "com.amazonaws.account#ResourceNotFoundException":
|
|
516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
517
|
+
case "TooManyRequestsException":
|
|
518
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
519
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
520
|
+
case "ValidationException":
|
|
521
|
+
case "com.amazonaws.account#ValidationException":
|
|
522
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
|
+
default:
|
|
524
|
+
const parsedBody = parsedOutput.body;
|
|
525
|
+
return throwDefaultError({
|
|
526
|
+
output,
|
|
527
|
+
parsedBody,
|
|
528
|
+
errorCode
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
}, "de_DeleteAlternateContactCommandError");
|
|
532
|
+
var de_DisableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
+
return de_DisableRegionCommandError(output, context);
|
|
535
|
+
}
|
|
536
|
+
const contents = (0, import_smithy_client.map)({
|
|
537
|
+
$metadata: deserializeMetadata(output)
|
|
538
|
+
});
|
|
539
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
540
|
+
return contents;
|
|
541
|
+
}, "de_DisableRegionCommand");
|
|
542
|
+
var de_DisableRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
543
|
+
const parsedOutput = {
|
|
544
|
+
...output,
|
|
545
|
+
body: await parseErrorBody(output.body, context)
|
|
546
|
+
};
|
|
547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
+
switch (errorCode) {
|
|
549
|
+
case "AccessDeniedException":
|
|
550
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
551
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
|
+
case "ConflictException":
|
|
553
|
+
case "com.amazonaws.account#ConflictException":
|
|
554
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
555
|
+
case "InternalServerException":
|
|
556
|
+
case "com.amazonaws.account#InternalServerException":
|
|
557
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
+
case "TooManyRequestsException":
|
|
559
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
560
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
561
|
+
case "ValidationException":
|
|
562
|
+
case "com.amazonaws.account#ValidationException":
|
|
563
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
|
+
default:
|
|
565
|
+
const parsedBody = parsedOutput.body;
|
|
566
|
+
return throwDefaultError({
|
|
567
|
+
output,
|
|
568
|
+
parsedBody,
|
|
569
|
+
errorCode
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
}, "de_DisableRegionCommandError");
|
|
573
|
+
var de_EnableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
+
return de_EnableRegionCommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const contents = (0, import_smithy_client.map)({
|
|
578
|
+
$metadata: deserializeMetadata(output)
|
|
579
|
+
});
|
|
580
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
581
|
+
return contents;
|
|
582
|
+
}, "de_EnableRegionCommand");
|
|
583
|
+
var de_EnableRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
584
|
+
const parsedOutput = {
|
|
585
|
+
...output,
|
|
586
|
+
body: await parseErrorBody(output.body, context)
|
|
587
|
+
};
|
|
588
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
+
switch (errorCode) {
|
|
590
|
+
case "AccessDeniedException":
|
|
591
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
592
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
593
|
+
case "ConflictException":
|
|
594
|
+
case "com.amazonaws.account#ConflictException":
|
|
595
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
596
|
+
case "InternalServerException":
|
|
597
|
+
case "com.amazonaws.account#InternalServerException":
|
|
598
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
599
|
+
case "TooManyRequestsException":
|
|
600
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
601
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
602
|
+
case "ValidationException":
|
|
603
|
+
case "com.amazonaws.account#ValidationException":
|
|
604
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
605
|
+
default:
|
|
606
|
+
const parsedBody = parsedOutput.body;
|
|
607
|
+
return throwDefaultError({
|
|
608
|
+
output,
|
|
609
|
+
parsedBody,
|
|
610
|
+
errorCode
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}, "de_EnableRegionCommandError");
|
|
614
|
+
var de_GetAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
+
return de_GetAlternateContactCommandError(output, context);
|
|
617
|
+
}
|
|
618
|
+
const contents = (0, import_smithy_client.map)({
|
|
619
|
+
$metadata: deserializeMetadata(output)
|
|
620
|
+
});
|
|
621
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
622
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
623
|
+
AlternateContact: import_smithy_client._json
|
|
624
|
+
});
|
|
625
|
+
Object.assign(contents, doc);
|
|
626
|
+
return contents;
|
|
627
|
+
}, "de_GetAlternateContactCommand");
|
|
628
|
+
var de_GetAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
|
+
const parsedOutput = {
|
|
630
|
+
...output,
|
|
631
|
+
body: await parseErrorBody(output.body, context)
|
|
632
|
+
};
|
|
633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
+
switch (errorCode) {
|
|
635
|
+
case "AccessDeniedException":
|
|
636
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
637
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
638
|
+
case "InternalServerException":
|
|
639
|
+
case "com.amazonaws.account#InternalServerException":
|
|
640
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
|
+
case "ResourceNotFoundException":
|
|
642
|
+
case "com.amazonaws.account#ResourceNotFoundException":
|
|
643
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
|
+
case "TooManyRequestsException":
|
|
645
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
646
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
647
|
+
case "ValidationException":
|
|
648
|
+
case "com.amazonaws.account#ValidationException":
|
|
649
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
650
|
+
default:
|
|
651
|
+
const parsedBody = parsedOutput.body;
|
|
652
|
+
return throwDefaultError({
|
|
653
|
+
output,
|
|
654
|
+
parsedBody,
|
|
655
|
+
errorCode
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
}, "de_GetAlternateContactCommandError");
|
|
659
|
+
var de_GetContactInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
660
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
|
+
return de_GetContactInformationCommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const contents = (0, import_smithy_client.map)({
|
|
664
|
+
$metadata: deserializeMetadata(output)
|
|
665
|
+
});
|
|
666
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
667
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
668
|
+
ContactInformation: import_smithy_client._json
|
|
669
|
+
});
|
|
670
|
+
Object.assign(contents, doc);
|
|
671
|
+
return contents;
|
|
672
|
+
}, "de_GetContactInformationCommand");
|
|
673
|
+
var de_GetContactInformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
674
|
+
const parsedOutput = {
|
|
675
|
+
...output,
|
|
676
|
+
body: await parseErrorBody(output.body, context)
|
|
677
|
+
};
|
|
678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
+
switch (errorCode) {
|
|
680
|
+
case "AccessDeniedException":
|
|
681
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
682
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
+
case "InternalServerException":
|
|
684
|
+
case "com.amazonaws.account#InternalServerException":
|
|
685
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
+
case "ResourceNotFoundException":
|
|
687
|
+
case "com.amazonaws.account#ResourceNotFoundException":
|
|
688
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
|
+
case "TooManyRequestsException":
|
|
690
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
691
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
692
|
+
case "ValidationException":
|
|
693
|
+
case "com.amazonaws.account#ValidationException":
|
|
694
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
+
default:
|
|
696
|
+
const parsedBody = parsedOutput.body;
|
|
697
|
+
return throwDefaultError({
|
|
698
|
+
output,
|
|
699
|
+
parsedBody,
|
|
700
|
+
errorCode
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}, "de_GetContactInformationCommandError");
|
|
704
|
+
var de_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
+
return de_GetRegionOptStatusCommandError(output, context);
|
|
707
|
+
}
|
|
708
|
+
const contents = (0, import_smithy_client.map)({
|
|
709
|
+
$metadata: deserializeMetadata(output)
|
|
710
|
+
});
|
|
711
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
712
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
713
|
+
RegionName: import_smithy_client.expectString,
|
|
714
|
+
RegionOptStatus: import_smithy_client.expectString
|
|
715
|
+
});
|
|
716
|
+
Object.assign(contents, doc);
|
|
717
|
+
return contents;
|
|
718
|
+
}, "de_GetRegionOptStatusCommand");
|
|
719
|
+
var de_GetRegionOptStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
+
const parsedOutput = {
|
|
721
|
+
...output,
|
|
722
|
+
body: await parseErrorBody(output.body, context)
|
|
723
|
+
};
|
|
724
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
+
switch (errorCode) {
|
|
726
|
+
case "AccessDeniedException":
|
|
727
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
728
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
729
|
+
case "InternalServerException":
|
|
730
|
+
case "com.amazonaws.account#InternalServerException":
|
|
731
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
732
|
+
case "TooManyRequestsException":
|
|
733
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
734
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
735
|
+
case "ValidationException":
|
|
736
|
+
case "com.amazonaws.account#ValidationException":
|
|
737
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
|
+
default:
|
|
739
|
+
const parsedBody = parsedOutput.body;
|
|
740
|
+
return throwDefaultError({
|
|
741
|
+
output,
|
|
742
|
+
parsedBody,
|
|
743
|
+
errorCode
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
}, "de_GetRegionOptStatusCommandError");
|
|
747
|
+
var de_ListRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
+
return de_ListRegionsCommandError(output, context);
|
|
750
|
+
}
|
|
751
|
+
const contents = (0, import_smithy_client.map)({
|
|
752
|
+
$metadata: deserializeMetadata(output)
|
|
753
|
+
});
|
|
754
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
755
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
756
|
+
NextToken: import_smithy_client.expectString,
|
|
757
|
+
Regions: import_smithy_client._json
|
|
758
|
+
});
|
|
759
|
+
Object.assign(contents, doc);
|
|
760
|
+
return contents;
|
|
761
|
+
}, "de_ListRegionsCommand");
|
|
762
|
+
var de_ListRegionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
|
+
const parsedOutput = {
|
|
764
|
+
...output,
|
|
765
|
+
body: await parseErrorBody(output.body, context)
|
|
766
|
+
};
|
|
767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
switch (errorCode) {
|
|
769
|
+
case "AccessDeniedException":
|
|
770
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
772
|
+
case "InternalServerException":
|
|
773
|
+
case "com.amazonaws.account#InternalServerException":
|
|
774
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
775
|
+
case "TooManyRequestsException":
|
|
776
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
777
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
778
|
+
case "ValidationException":
|
|
779
|
+
case "com.amazonaws.account#ValidationException":
|
|
780
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
+
default:
|
|
782
|
+
const parsedBody = parsedOutput.body;
|
|
783
|
+
return throwDefaultError({
|
|
784
|
+
output,
|
|
785
|
+
parsedBody,
|
|
786
|
+
errorCode
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}, "de_ListRegionsCommandError");
|
|
790
|
+
var de_PutAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
+
return de_PutAlternateContactCommandError(output, context);
|
|
793
|
+
}
|
|
794
|
+
const contents = (0, import_smithy_client.map)({
|
|
795
|
+
$metadata: deserializeMetadata(output)
|
|
796
|
+
});
|
|
797
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
798
|
+
return contents;
|
|
799
|
+
}, "de_PutAlternateContactCommand");
|
|
800
|
+
var de_PutAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
+
const parsedOutput = {
|
|
802
|
+
...output,
|
|
803
|
+
body: await parseErrorBody(output.body, context)
|
|
804
|
+
};
|
|
805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
+
switch (errorCode) {
|
|
807
|
+
case "AccessDeniedException":
|
|
808
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
809
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
810
|
+
case "InternalServerException":
|
|
811
|
+
case "com.amazonaws.account#InternalServerException":
|
|
812
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
|
+
case "TooManyRequestsException":
|
|
814
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
815
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
816
|
+
case "ValidationException":
|
|
817
|
+
case "com.amazonaws.account#ValidationException":
|
|
818
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
+
default:
|
|
820
|
+
const parsedBody = parsedOutput.body;
|
|
821
|
+
return throwDefaultError({
|
|
822
|
+
output,
|
|
823
|
+
parsedBody,
|
|
824
|
+
errorCode
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
}, "de_PutAlternateContactCommandError");
|
|
828
|
+
var de_PutContactInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
+
return de_PutContactInformationCommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const contents = (0, import_smithy_client.map)({
|
|
833
|
+
$metadata: deserializeMetadata(output)
|
|
834
|
+
});
|
|
835
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
836
|
+
return contents;
|
|
837
|
+
}, "de_PutContactInformationCommand");
|
|
838
|
+
var de_PutContactInformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
839
|
+
const parsedOutput = {
|
|
840
|
+
...output,
|
|
841
|
+
body: await parseErrorBody(output.body, context)
|
|
842
|
+
};
|
|
843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
+
switch (errorCode) {
|
|
845
|
+
case "AccessDeniedException":
|
|
846
|
+
case "com.amazonaws.account#AccessDeniedException":
|
|
847
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
848
|
+
case "InternalServerException":
|
|
849
|
+
case "com.amazonaws.account#InternalServerException":
|
|
850
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
851
|
+
case "TooManyRequestsException":
|
|
852
|
+
case "com.amazonaws.account#TooManyRequestsException":
|
|
853
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
854
|
+
case "ValidationException":
|
|
855
|
+
case "com.amazonaws.account#ValidationException":
|
|
856
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
857
|
+
default:
|
|
858
|
+
const parsedBody = parsedOutput.body;
|
|
859
|
+
return throwDefaultError({
|
|
860
|
+
output,
|
|
861
|
+
parsedBody,
|
|
862
|
+
errorCode
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
}, "de_PutContactInformationCommandError");
|
|
866
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(AccountServiceException);
|
|
867
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
868
|
+
const contents = (0, import_smithy_client.map)({});
|
|
869
|
+
const data = parsedOutput.body;
|
|
870
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
871
|
+
message: import_smithy_client.expectString
|
|
872
|
+
});
|
|
873
|
+
Object.assign(contents, doc);
|
|
874
|
+
const exception = new AccessDeniedException({
|
|
875
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
876
|
+
...contents
|
|
877
|
+
});
|
|
878
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
879
|
+
}, "de_AccessDeniedExceptionRes");
|
|
880
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
881
|
+
const contents = (0, import_smithy_client.map)({});
|
|
882
|
+
const data = parsedOutput.body;
|
|
883
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
884
|
+
message: import_smithy_client.expectString
|
|
885
|
+
});
|
|
886
|
+
Object.assign(contents, doc);
|
|
887
|
+
const exception = new ConflictException({
|
|
888
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
889
|
+
...contents
|
|
890
|
+
});
|
|
891
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
892
|
+
}, "de_ConflictExceptionRes");
|
|
893
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
894
|
+
const contents = (0, import_smithy_client.map)({});
|
|
895
|
+
const data = parsedOutput.body;
|
|
896
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
897
|
+
message: import_smithy_client.expectString
|
|
898
|
+
});
|
|
899
|
+
Object.assign(contents, doc);
|
|
900
|
+
const exception = new InternalServerException({
|
|
901
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
902
|
+
...contents
|
|
903
|
+
});
|
|
904
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
905
|
+
}, "de_InternalServerExceptionRes");
|
|
906
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
907
|
+
const contents = (0, import_smithy_client.map)({});
|
|
908
|
+
const data = parsedOutput.body;
|
|
909
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
910
|
+
message: import_smithy_client.expectString
|
|
911
|
+
});
|
|
912
|
+
Object.assign(contents, doc);
|
|
913
|
+
const exception = new ResourceNotFoundException({
|
|
914
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
915
|
+
...contents
|
|
916
|
+
});
|
|
917
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
918
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
919
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
920
|
+
const contents = (0, import_smithy_client.map)({});
|
|
921
|
+
const data = parsedOutput.body;
|
|
922
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
923
|
+
message: import_smithy_client.expectString
|
|
924
|
+
});
|
|
925
|
+
Object.assign(contents, doc);
|
|
926
|
+
const exception = new TooManyRequestsException({
|
|
927
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
928
|
+
...contents
|
|
929
|
+
});
|
|
930
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
931
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
932
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
933
|
+
const contents = (0, import_smithy_client.map)({});
|
|
934
|
+
const data = parsedOutput.body;
|
|
935
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
936
|
+
fieldList: import_smithy_client._json,
|
|
937
|
+
message: import_smithy_client.expectString,
|
|
938
|
+
reason: import_smithy_client.expectString
|
|
939
|
+
});
|
|
940
|
+
Object.assign(contents, doc);
|
|
941
|
+
const exception = new ValidationException({
|
|
942
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
943
|
+
...contents
|
|
944
|
+
});
|
|
945
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
946
|
+
}, "de_ValidationExceptionRes");
|
|
947
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
948
|
+
httpStatusCode: output.statusCode,
|
|
949
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
950
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
951
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
952
|
+
}), "deserializeMetadata");
|
|
953
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
954
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
955
|
+
if (encoded.length) {
|
|
956
|
+
return JSON.parse(encoded);
|
|
957
|
+
}
|
|
958
|
+
return {};
|
|
959
|
+
}), "parseBody");
|
|
960
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
961
|
+
const value = await parseBody(errorBody, context);
|
|
962
|
+
value.message = value.message ?? value.Message;
|
|
963
|
+
return value;
|
|
964
|
+
}, "parseErrorBody");
|
|
965
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
966
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
967
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
968
|
+
let cleanValue = rawValue;
|
|
969
|
+
if (typeof cleanValue === "number") {
|
|
970
|
+
cleanValue = cleanValue.toString();
|
|
971
|
+
}
|
|
972
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
973
|
+
cleanValue = cleanValue.split(",")[0];
|
|
974
|
+
}
|
|
975
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
976
|
+
cleanValue = cleanValue.split(":")[0];
|
|
977
|
+
}
|
|
978
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
979
|
+
cleanValue = cleanValue.split("#")[1];
|
|
980
|
+
}
|
|
981
|
+
return cleanValue;
|
|
982
|
+
}, "sanitizeErrorCode");
|
|
983
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
984
|
+
if (headerKey !== void 0) {
|
|
985
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
986
|
+
}
|
|
987
|
+
if (data.code !== void 0) {
|
|
988
|
+
return sanitizeErrorCode(data.code);
|
|
989
|
+
}
|
|
990
|
+
if (data["__type"] !== void 0) {
|
|
991
|
+
return sanitizeErrorCode(data["__type"]);
|
|
992
|
+
}
|
|
993
|
+
}, "loadRestJsonErrorCode");
|
|
994
|
+
|
|
995
|
+
// src/commands/DeleteAlternateContactCommand.ts
|
|
996
|
+
var _DeleteAlternateContactCommand = class _DeleteAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
997
|
+
...commonParams
|
|
998
|
+
}).m(function(Command, cs, config, o) {
|
|
999
|
+
return [
|
|
1000
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1001
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1002
|
+
];
|
|
1003
|
+
}).s("Account", "DeleteAlternateContact", {}).n("AccountClient", "DeleteAlternateContactCommand").f(void 0, void 0).ser(se_DeleteAlternateContactCommand).de(de_DeleteAlternateContactCommand).build() {
|
|
1004
|
+
};
|
|
1005
|
+
__name(_DeleteAlternateContactCommand, "DeleteAlternateContactCommand");
|
|
1006
|
+
var DeleteAlternateContactCommand = _DeleteAlternateContactCommand;
|
|
1007
|
+
|
|
1008
|
+
// src/commands/DisableRegionCommand.ts
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
var _DisableRegionCommand = class _DisableRegionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1014
|
+
...commonParams
|
|
1015
|
+
}).m(function(Command, cs, config, o) {
|
|
1016
|
+
return [
|
|
1017
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1018
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1019
|
+
];
|
|
1020
|
+
}).s("Account", "DisableRegion", {}).n("AccountClient", "DisableRegionCommand").f(void 0, void 0).ser(se_DisableRegionCommand).de(de_DisableRegionCommand).build() {
|
|
1021
|
+
};
|
|
1022
|
+
__name(_DisableRegionCommand, "DisableRegionCommand");
|
|
1023
|
+
var DisableRegionCommand = _DisableRegionCommand;
|
|
1024
|
+
|
|
1025
|
+
// src/commands/EnableRegionCommand.ts
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
var _EnableRegionCommand = class _EnableRegionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1031
|
+
...commonParams
|
|
1032
|
+
}).m(function(Command, cs, config, o) {
|
|
1033
|
+
return [
|
|
1034
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1035
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1036
|
+
];
|
|
1037
|
+
}).s("Account", "EnableRegion", {}).n("AccountClient", "EnableRegionCommand").f(void 0, void 0).ser(se_EnableRegionCommand).de(de_EnableRegionCommand).build() {
|
|
1038
|
+
};
|
|
1039
|
+
__name(_EnableRegionCommand, "EnableRegionCommand");
|
|
1040
|
+
var EnableRegionCommand = _EnableRegionCommand;
|
|
1041
|
+
|
|
1042
|
+
// src/commands/GetAlternateContactCommand.ts
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
var _GetAlternateContactCommand = class _GetAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1048
|
+
...commonParams
|
|
1049
|
+
}).m(function(Command, cs, config, o) {
|
|
1050
|
+
return [
|
|
1051
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1052
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1053
|
+
];
|
|
1054
|
+
}).s("Account", "GetAlternateContact", {}).n("AccountClient", "GetAlternateContactCommand").f(void 0, GetAlternateContactResponseFilterSensitiveLog).ser(se_GetAlternateContactCommand).de(de_GetAlternateContactCommand).build() {
|
|
1055
|
+
};
|
|
1056
|
+
__name(_GetAlternateContactCommand, "GetAlternateContactCommand");
|
|
1057
|
+
var GetAlternateContactCommand = _GetAlternateContactCommand;
|
|
1058
|
+
|
|
1059
|
+
// src/commands/GetContactInformationCommand.ts
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
var _GetContactInformationCommand = class _GetContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1065
|
+
...commonParams
|
|
1066
|
+
}).m(function(Command, cs, config, o) {
|
|
1067
|
+
return [
|
|
1068
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1069
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1070
|
+
];
|
|
1071
|
+
}).s("Account", "GetContactInformation", {}).n("AccountClient", "GetContactInformationCommand").f(void 0, GetContactInformationResponseFilterSensitiveLog).ser(se_GetContactInformationCommand).de(de_GetContactInformationCommand).build() {
|
|
1072
|
+
};
|
|
1073
|
+
__name(_GetContactInformationCommand, "GetContactInformationCommand");
|
|
1074
|
+
var GetContactInformationCommand = _GetContactInformationCommand;
|
|
1075
|
+
|
|
1076
|
+
// src/commands/GetRegionOptStatusCommand.ts
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
var _GetRegionOptStatusCommand = class _GetRegionOptStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1082
|
+
...commonParams
|
|
1083
|
+
}).m(function(Command, cs, config, o) {
|
|
1084
|
+
return [
|
|
1085
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1086
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1087
|
+
];
|
|
1088
|
+
}).s("Account", "GetRegionOptStatus", {}).n("AccountClient", "GetRegionOptStatusCommand").f(void 0, void 0).ser(se_GetRegionOptStatusCommand).de(de_GetRegionOptStatusCommand).build() {
|
|
1089
|
+
};
|
|
1090
|
+
__name(_GetRegionOptStatusCommand, "GetRegionOptStatusCommand");
|
|
1091
|
+
var GetRegionOptStatusCommand = _GetRegionOptStatusCommand;
|
|
1092
|
+
|
|
1093
|
+
// src/commands/ListRegionsCommand.ts
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
var _ListRegionsCommand = class _ListRegionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1099
|
+
...commonParams
|
|
1100
|
+
}).m(function(Command, cs, config, o) {
|
|
1101
|
+
return [
|
|
1102
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1103
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1104
|
+
];
|
|
1105
|
+
}).s("Account", "ListRegions", {}).n("AccountClient", "ListRegionsCommand").f(void 0, void 0).ser(se_ListRegionsCommand).de(de_ListRegionsCommand).build() {
|
|
1106
|
+
};
|
|
1107
|
+
__name(_ListRegionsCommand, "ListRegionsCommand");
|
|
1108
|
+
var ListRegionsCommand = _ListRegionsCommand;
|
|
1109
|
+
|
|
1110
|
+
// src/commands/PutAlternateContactCommand.ts
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
var _PutAlternateContactCommand = class _PutAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1116
|
+
...commonParams
|
|
1117
|
+
}).m(function(Command, cs, config, o) {
|
|
1118
|
+
return [
|
|
1119
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1120
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1121
|
+
];
|
|
1122
|
+
}).s("Account", "PutAlternateContact", {}).n("AccountClient", "PutAlternateContactCommand").f(PutAlternateContactRequestFilterSensitiveLog, void 0).ser(se_PutAlternateContactCommand).de(de_PutAlternateContactCommand).build() {
|
|
1123
|
+
};
|
|
1124
|
+
__name(_PutAlternateContactCommand, "PutAlternateContactCommand");
|
|
1125
|
+
var PutAlternateContactCommand = _PutAlternateContactCommand;
|
|
1126
|
+
|
|
1127
|
+
// src/commands/PutContactInformationCommand.ts
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
var _PutContactInformationCommand = class _PutContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1133
|
+
...commonParams
|
|
1134
|
+
}).m(function(Command, cs, config, o) {
|
|
1135
|
+
return [
|
|
1136
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1137
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1138
|
+
];
|
|
1139
|
+
}).s("Account", "PutContactInformation", {}).n("AccountClient", "PutContactInformationCommand").f(PutContactInformationRequestFilterSensitiveLog, void 0).ser(se_PutContactInformationCommand).de(de_PutContactInformationCommand).build() {
|
|
1140
|
+
};
|
|
1141
|
+
__name(_PutContactInformationCommand, "PutContactInformationCommand");
|
|
1142
|
+
var PutContactInformationCommand = _PutContactInformationCommand;
|
|
1143
|
+
|
|
1144
|
+
// src/Account.ts
|
|
1145
|
+
var commands = {
|
|
1146
|
+
DeleteAlternateContactCommand,
|
|
1147
|
+
DisableRegionCommand,
|
|
1148
|
+
EnableRegionCommand,
|
|
1149
|
+
GetAlternateContactCommand,
|
|
1150
|
+
GetContactInformationCommand,
|
|
1151
|
+
GetRegionOptStatusCommand,
|
|
1152
|
+
ListRegionsCommand,
|
|
1153
|
+
PutAlternateContactCommand,
|
|
1154
|
+
PutContactInformationCommand
|
|
1155
|
+
};
|
|
1156
|
+
var _Account = class _Account extends AccountClient {
|
|
1157
|
+
};
|
|
1158
|
+
__name(_Account, "Account");
|
|
1159
|
+
var Account = _Account;
|
|
1160
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Account);
|
|
1161
|
+
|
|
1162
|
+
// src/pagination/ListRegionsPaginator.ts
|
|
1163
|
+
|
|
1164
|
+
var paginateListRegions = (0, import_core.createPaginator)(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1165
|
+
|
|
1166
|
+
// src/index.ts
|
|
1167
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1168
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1169
|
+
0 && (module.exports = {
|
|
1170
|
+
AccessDeniedException,
|
|
1171
|
+
Account,
|
|
1172
|
+
AccountClient,
|
|
1173
|
+
AccountServiceException,
|
|
1174
|
+
AlternateContactFilterSensitiveLog,
|
|
1175
|
+
AlternateContactType,
|
|
1176
|
+
ConflictException,
|
|
1177
|
+
ContactInformationFilterSensitiveLog,
|
|
1178
|
+
DeleteAlternateContactCommand,
|
|
1179
|
+
DisableRegionCommand,
|
|
1180
|
+
EnableRegionCommand,
|
|
1181
|
+
GetAlternateContactCommand,
|
|
1182
|
+
GetAlternateContactResponseFilterSensitiveLog,
|
|
1183
|
+
GetContactInformationCommand,
|
|
1184
|
+
GetContactInformationResponseFilterSensitiveLog,
|
|
1185
|
+
GetRegionOptStatusCommand,
|
|
1186
|
+
InternalServerException,
|
|
1187
|
+
ListRegionsCommand,
|
|
1188
|
+
PutAlternateContactCommand,
|
|
1189
|
+
PutAlternateContactRequestFilterSensitiveLog,
|
|
1190
|
+
PutContactInformationCommand,
|
|
1191
|
+
PutContactInformationRequestFilterSensitiveLog,
|
|
1192
|
+
RegionOptStatus,
|
|
1193
|
+
ResourceNotFoundException,
|
|
1194
|
+
TooManyRequestsException,
|
|
1195
|
+
ValidationException,
|
|
1196
|
+
ValidationExceptionFieldFilterSensitiveLog,
|
|
1197
|
+
ValidationExceptionReason,
|
|
1198
|
+
__Client,
|
|
1199
|
+
paginateListRegions
|
|
1200
|
+
});
|