@aws-sdk/client-account 3.312.0 → 3.316.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 +13 -126
- package/dist-cjs/protocols/Aws_restJson1.js +110 -203
- package/dist-es/Account.js +13 -126
- package/dist-es/protocols/Aws_restJson1.js +96 -189
- package/dist-types/Account.d.ts +16 -53
- package/dist-types/ts3.4/Account.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/Account.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Account = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AccountClient_1 = require("./AccountClient");
|
|
5
6
|
const DeleteAlternateContactCommand_1 = require("./commands/DeleteAlternateContactCommand");
|
|
6
7
|
const DisableRegionCommand_1 = require("./commands/DisableRegionCommand");
|
|
@@ -11,132 +12,18 @@ const GetRegionOptStatusCommand_1 = require("./commands/GetRegionOptStatusComman
|
|
|
11
12
|
const ListRegionsCommand_1 = require("./commands/ListRegionsCommand");
|
|
12
13
|
const PutAlternateContactCommand_1 = require("./commands/PutAlternateContactCommand");
|
|
13
14
|
const PutContactInformationCommand_1 = require("./commands/PutContactInformationCommand");
|
|
15
|
+
const commands = {
|
|
16
|
+
DeleteAlternateContactCommand: DeleteAlternateContactCommand_1.DeleteAlternateContactCommand,
|
|
17
|
+
DisableRegionCommand: DisableRegionCommand_1.DisableRegionCommand,
|
|
18
|
+
EnableRegionCommand: EnableRegionCommand_1.EnableRegionCommand,
|
|
19
|
+
GetAlternateContactCommand: GetAlternateContactCommand_1.GetAlternateContactCommand,
|
|
20
|
+
GetContactInformationCommand: GetContactInformationCommand_1.GetContactInformationCommand,
|
|
21
|
+
GetRegionOptStatusCommand: GetRegionOptStatusCommand_1.GetRegionOptStatusCommand,
|
|
22
|
+
ListRegionsCommand: ListRegionsCommand_1.ListRegionsCommand,
|
|
23
|
+
PutAlternateContactCommand: PutAlternateContactCommand_1.PutAlternateContactCommand,
|
|
24
|
+
PutContactInformationCommand: PutContactInformationCommand_1.PutContactInformationCommand,
|
|
25
|
+
};
|
|
14
26
|
class Account extends AccountClient_1.AccountClient {
|
|
15
|
-
deleteAlternateContact(args, optionsOrCb, cb) {
|
|
16
|
-
const command = new DeleteAlternateContactCommand_1.DeleteAlternateContactCommand(args);
|
|
17
|
-
if (typeof optionsOrCb === "function") {
|
|
18
|
-
this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
else if (typeof cb === "function") {
|
|
21
|
-
if (typeof optionsOrCb !== "object")
|
|
22
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
disableRegion(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new DisableRegionCommand_1.DisableRegionCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
enableRegion(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new EnableRegionCommand_1.EnableRegionCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
getAlternateContact(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new GetAlternateContactCommand_1.GetAlternateContactCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
getContactInformation(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new GetContactInformationCommand_1.GetContactInformationCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
getRegionOptStatus(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new GetRegionOptStatusCommand_1.GetRegionOptStatusCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
listRegions(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new ListRegionsCommand_1.ListRegionsCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
putAlternateContact(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new PutAlternateContactCommand_1.PutAlternateContactCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
putContactInformation(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new PutContactInformationCommand_1.PutContactInformationCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
27
|
}
|
|
142
28
|
exports.Account = Account;
|
|
29
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Account);
|