@aws-sdk/client-account 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +11 -5
- package/dist-es/Account.js +22 -29
- package/dist-es/AccountClient.js +22 -28
- package/dist-es/commands/DeleteAlternateContactCommand.js +22 -29
- package/dist-es/commands/GetAlternateContactCommand.js +21 -28
- package/dist-es/commands/GetContactInformationCommand.js +21 -28
- package/dist-es/commands/PutAlternateContactCommand.js +22 -29
- package/dist-es/commands/PutContactInformationCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AccountServiceException.js +5 -10
- package/dist-es/models/models_0.js +107 -67
- package/dist-es/protocols/Aws_restJson1.js +406 -538
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-account
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-account
|
|
@@ -134,7 +134,7 @@ exports.deserializeAws_restJson1DeleteAlternateContactCommand = deserializeAws_r
|
|
|
134
134
|
const deserializeAws_restJson1DeleteAlternateContactCommandError = async (output, context) => {
|
|
135
135
|
const parsedOutput = {
|
|
136
136
|
...output,
|
|
137
|
-
body: await
|
|
137
|
+
body: await parseErrorBody(output.body, context),
|
|
138
138
|
};
|
|
139
139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
140
140
|
switch (errorCode) {
|
|
@@ -180,7 +180,7 @@ exports.deserializeAws_restJson1GetAlternateContactCommand = deserializeAws_rest
|
|
|
180
180
|
const deserializeAws_restJson1GetAlternateContactCommandError = async (output, context) => {
|
|
181
181
|
const parsedOutput = {
|
|
182
182
|
...output,
|
|
183
|
-
body: await
|
|
183
|
+
body: await parseErrorBody(output.body, context),
|
|
184
184
|
};
|
|
185
185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
186
186
|
switch (errorCode) {
|
|
@@ -226,7 +226,7 @@ exports.deserializeAws_restJson1GetContactInformationCommand = deserializeAws_re
|
|
|
226
226
|
const deserializeAws_restJson1GetContactInformationCommandError = async (output, context) => {
|
|
227
227
|
const parsedOutput = {
|
|
228
228
|
...output,
|
|
229
|
-
body: await
|
|
229
|
+
body: await parseErrorBody(output.body, context),
|
|
230
230
|
};
|
|
231
231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
232
232
|
switch (errorCode) {
|
|
@@ -269,7 +269,7 @@ exports.deserializeAws_restJson1PutAlternateContactCommand = deserializeAws_rest
|
|
|
269
269
|
const deserializeAws_restJson1PutAlternateContactCommandError = async (output, context) => {
|
|
270
270
|
const parsedOutput = {
|
|
271
271
|
...output,
|
|
272
|
-
body: await
|
|
272
|
+
body: await parseErrorBody(output.body, context),
|
|
273
273
|
};
|
|
274
274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
275
275
|
switch (errorCode) {
|
|
@@ -309,7 +309,7 @@ exports.deserializeAws_restJson1PutContactInformationCommand = deserializeAws_re
|
|
|
309
309
|
const deserializeAws_restJson1PutContactInformationCommandError = async (output, context) => {
|
|
310
310
|
const parsedOutput = {
|
|
311
311
|
...output,
|
|
312
|
-
body: await
|
|
312
|
+
body: await parseErrorBody(output.body, context),
|
|
313
313
|
};
|
|
314
314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
315
|
switch (errorCode) {
|
|
@@ -464,6 +464,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
464
464
|
}
|
|
465
465
|
return {};
|
|
466
466
|
});
|
|
467
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
468
|
+
var _a;
|
|
469
|
+
const value = await parseBody(errorBody, context);
|
|
470
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
471
|
+
return value;
|
|
472
|
+
};
|
|
467
473
|
const loadRestJsonErrorCode = (output, data) => {
|
|
468
474
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
469
475
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/Account.js
CHANGED
|
@@ -1,85 +1,78 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AccountClient } from "./AccountClient";
|
|
3
2
|
import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";
|
|
4
3
|
import { GetAlternateContactCommand, } from "./commands/GetAlternateContactCommand";
|
|
5
4
|
import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
|
|
6
5
|
import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
|
|
7
6
|
import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
-
}
|
|
13
|
-
Account.prototype.deleteAlternateContact = function (args, optionsOrCb, cb) {
|
|
14
|
-
var command = new DeleteAlternateContactCommand(args);
|
|
7
|
+
export class Account extends AccountClient {
|
|
8
|
+
deleteAlternateContact(args, optionsOrCb, cb) {
|
|
9
|
+
const command = new DeleteAlternateContactCommand(args);
|
|
15
10
|
if (typeof optionsOrCb === "function") {
|
|
16
11
|
this.send(command, optionsOrCb);
|
|
17
12
|
}
|
|
18
13
|
else if (typeof cb === "function") {
|
|
19
14
|
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error(
|
|
15
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
21
16
|
this.send(command, optionsOrCb || {}, cb);
|
|
22
17
|
}
|
|
23
18
|
else {
|
|
24
19
|
return this.send(command, optionsOrCb);
|
|
25
20
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
}
|
|
22
|
+
getAlternateContact(args, optionsOrCb, cb) {
|
|
23
|
+
const command = new GetAlternateContactCommand(args);
|
|
29
24
|
if (typeof optionsOrCb === "function") {
|
|
30
25
|
this.send(command, optionsOrCb);
|
|
31
26
|
}
|
|
32
27
|
else if (typeof cb === "function") {
|
|
33
28
|
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(
|
|
29
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
30
|
this.send(command, optionsOrCb || {}, cb);
|
|
36
31
|
}
|
|
37
32
|
else {
|
|
38
33
|
return this.send(command, optionsOrCb);
|
|
39
34
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
}
|
|
36
|
+
getContactInformation(args, optionsOrCb, cb) {
|
|
37
|
+
const command = new GetContactInformationCommand(args);
|
|
43
38
|
if (typeof optionsOrCb === "function") {
|
|
44
39
|
this.send(command, optionsOrCb);
|
|
45
40
|
}
|
|
46
41
|
else if (typeof cb === "function") {
|
|
47
42
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(
|
|
43
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
44
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
45
|
}
|
|
51
46
|
else {
|
|
52
47
|
return this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
}
|
|
50
|
+
putAlternateContact(args, optionsOrCb, cb) {
|
|
51
|
+
const command = new PutAlternateContactCommand(args);
|
|
57
52
|
if (typeof optionsOrCb === "function") {
|
|
58
53
|
this.send(command, optionsOrCb);
|
|
59
54
|
}
|
|
60
55
|
else if (typeof cb === "function") {
|
|
61
56
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(
|
|
57
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
58
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
66
61
|
return this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
}
|
|
64
|
+
putContactInformation(args, optionsOrCb, cb) {
|
|
65
|
+
const command = new PutContactInformationCommand(args);
|
|
71
66
|
if (typeof optionsOrCb === "function") {
|
|
72
67
|
this.send(command, optionsOrCb);
|
|
73
68
|
}
|
|
74
69
|
else if (typeof cb === "function") {
|
|
75
70
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(
|
|
71
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
72
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
73
|
}
|
|
79
74
|
else {
|
|
80
75
|
return this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}(AccountClient));
|
|
85
|
-
export { Account };
|
|
77
|
+
}
|
|
78
|
+
}
|
package/dist-es/AccountClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class AccountClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { AccountClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DeleteAlternateContactCommand, serializeAws_restJson1DeleteAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteAlternateContactCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccountClient";
|
|
15
|
+
const commandName = "DeleteAlternateContactCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteAlternateContactRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteAlternateContactCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DeleteAlternateContactCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DeleteAlternateContactCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteAlternateContactCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetAlternateContactRequestFilterSensitiveLog, GetAlternateContactResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetAlternateContactCommand, serializeAws_restJson1GetAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetAlternateContactCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccountClient";
|
|
15
|
+
const commandName = "GetAlternateContactCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetAlternateContactRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetAlternateContactResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetAlternateContactCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetAlternateContactCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetAlternateContactCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetAlternateContactCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetContactInformationRequestFilterSensitiveLog, GetContactInformationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetContactInformationCommand, serializeAws_restJson1GetContactInformationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetContactInformationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccountClient";
|
|
15
|
+
const commandName = "GetContactInformationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetContactInformationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetContactInformationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetContactInformationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetContactInformationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetContactInformationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetContactInformationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { PutAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1PutAlternateContactCommand, serializeAws_restJson1PutAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class PutAlternateContactCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccountClient";
|
|
15
|
+
const commandName = "PutAlternateContactCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: PutAlternateContactRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
PutAlternateContactCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1PutAlternateContactCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1PutAlternateContactCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { PutAlternateContactCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { PutContactInformationRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1PutContactInformationCommand, serializeAws_restJson1PutContactInformationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class PutContactInformationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccountClient";
|
|
15
|
+
const commandName = "PutContactInformationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: PutContactInformationRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
PutContactInformationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1PutContactInformationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1PutContactInformationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { PutContactInformationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
"aws-cn-global": {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -20,7 +19,7 @@ var regionHash = {
|
|
|
20
19
|
signingRegion: "us-east-1",
|
|
21
20
|
},
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
const partitionHash = {
|
|
24
23
|
aws: {
|
|
25
24
|
regions: [
|
|
26
25
|
"af-south-1",
|
|
@@ -143,8 +142,9 @@ var partitionHash = {
|
|
|
143
142
|
],
|
|
144
143
|
},
|
|
145
144
|
};
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
146
|
+
...options,
|
|
147
|
+
signingService: "account",
|
|
148
|
+
regionHash,
|
|
149
|
+
partitionHash,
|
|
150
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, AccountServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class AccountServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, AccountServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { AccountServiceException };
|
|
7
|
+
}
|