@aws-sdk/client-account 3.315.0 → 3.319.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-es/Account.js +13 -126
- package/dist-types/Account.d.ts +16 -53
- package/dist-types/ts3.4/Account.d.ts +2 -1
- package/package.json +8 -8
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);
|
package/dist-es/Account.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AccountClient } from "./AccountClient";
|
|
2
3
|
import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";
|
|
3
4
|
import { DisableRegionCommand, } from "./commands/DisableRegionCommand";
|
|
@@ -8,131 +9,17 @@ import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand
|
|
|
8
9
|
import { ListRegionsCommand } from "./commands/ListRegionsCommand";
|
|
9
10
|
import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
|
|
10
11
|
import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
|
|
12
|
+
const commands = {
|
|
13
|
+
DeleteAlternateContactCommand,
|
|
14
|
+
DisableRegionCommand,
|
|
15
|
+
EnableRegionCommand,
|
|
16
|
+
GetAlternateContactCommand,
|
|
17
|
+
GetContactInformationCommand,
|
|
18
|
+
GetRegionOptStatusCommand,
|
|
19
|
+
ListRegionsCommand,
|
|
20
|
+
PutAlternateContactCommand,
|
|
21
|
+
PutContactInformationCommand,
|
|
22
|
+
};
|
|
11
23
|
export class Account extends AccountClient {
|
|
12
|
-
deleteAlternateContact(args, optionsOrCb, cb) {
|
|
13
|
-
const command = new DeleteAlternateContactCommand(args);
|
|
14
|
-
if (typeof optionsOrCb === "function") {
|
|
15
|
-
this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof cb === "function") {
|
|
18
|
-
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
disableRegion(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new DisableRegionCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
enableRegion(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new EnableRegionCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
getAlternateContact(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new GetAlternateContactCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
getContactInformation(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new GetContactInformationCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
getRegionOptStatus(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new GetRegionOptStatusCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
listRegions(args, optionsOrCb, cb) {
|
|
97
|
-
const command = new ListRegionsCommand(args);
|
|
98
|
-
if (typeof optionsOrCb === "function") {
|
|
99
|
-
this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
putAlternateContact(args, optionsOrCb, cb) {
|
|
111
|
-
const command = new PutAlternateContactCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
else if (typeof cb === "function") {
|
|
116
|
-
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
putContactInformation(args, optionsOrCb, cb) {
|
|
125
|
-
const command = new PutContactInformationCommand(args);
|
|
126
|
-
if (typeof optionsOrCb === "function") {
|
|
127
|
-
this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
else if (typeof cb === "function") {
|
|
130
|
-
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
24
|
}
|
|
25
|
+
createAggregatedClient(commands, Account);
|
package/dist-types/Account.d.ts
CHANGED
|
@@ -9,102 +9,65 @@ import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from
|
|
|
9
9
|
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
10
10
|
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
11
11
|
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
|
|
12
|
-
|
|
13
|
-
* @public
|
|
14
|
-
* <p>Operations for Amazon Web Services Account Management</p>
|
|
15
|
-
*/
|
|
16
|
-
export declare class Account extends AccountClient {
|
|
12
|
+
export interface Account {
|
|
17
13
|
/**
|
|
18
|
-
* @
|
|
19
|
-
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
|
|
20
|
-
* <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access or
|
|
21
|
-
* updating the alternate contacts</a>.</p>
|
|
22
|
-
* <note>
|
|
23
|
-
* <p>Before you can update the alternate contact information for an
|
|
24
|
-
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
25
|
-
* and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling trusted access for
|
|
26
|
-
* Amazon Web Services Account Management</a>.</p>
|
|
27
|
-
* </note>
|
|
14
|
+
* @see {@link DeleteAlternateContactCommand}
|
|
28
15
|
*/
|
|
29
16
|
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlternateContactCommandOutput>;
|
|
30
17
|
deleteAlternateContact(args: DeleteAlternateContactCommandInput, cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void): void;
|
|
31
18
|
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void): void;
|
|
32
19
|
/**
|
|
33
|
-
* @
|
|
34
|
-
* <p>Disables (opts-out) a particular Region for an account.</p>
|
|
20
|
+
* @see {@link DisableRegionCommand}
|
|
35
21
|
*/
|
|
36
22
|
disableRegion(args: DisableRegionCommandInput, options?: __HttpHandlerOptions): Promise<DisableRegionCommandOutput>;
|
|
37
23
|
disableRegion(args: DisableRegionCommandInput, cb: (err: any, data?: DisableRegionCommandOutput) => void): void;
|
|
38
24
|
disableRegion(args: DisableRegionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableRegionCommandOutput) => void): void;
|
|
39
25
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>Enables (opts-in) a particular Region for an account.</p>
|
|
26
|
+
* @see {@link EnableRegionCommand}
|
|
42
27
|
*/
|
|
43
28
|
enableRegion(args: EnableRegionCommandInput, options?: __HttpHandlerOptions): Promise<EnableRegionCommandOutput>;
|
|
44
29
|
enableRegion(args: EnableRegionCommandInput, cb: (err: any, data?: EnableRegionCommandOutput) => void): void;
|
|
45
30
|
enableRegion(args: EnableRegionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableRegionCommandOutput) => void): void;
|
|
46
31
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
49
|
-
* <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access or
|
|
50
|
-
* updating the alternate contacts</a>.</p>
|
|
51
|
-
* <note>
|
|
52
|
-
* <p>Before you can update the alternate contact information for an
|
|
53
|
-
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
54
|
-
* and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling trusted access for
|
|
55
|
-
* Amazon Web Services Account Management</a>.</p>
|
|
56
|
-
* </note>
|
|
32
|
+
* @see {@link GetAlternateContactCommand}
|
|
57
33
|
*/
|
|
58
34
|
getAlternateContact(args: GetAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<GetAlternateContactCommandOutput>;
|
|
59
35
|
getAlternateContact(args: GetAlternateContactCommandInput, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
60
36
|
getAlternateContact(args: GetAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
61
37
|
/**
|
|
62
|
-
* @
|
|
63
|
-
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
|
|
64
|
-
* <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
|
|
65
|
-
* the primary and alternate contact information</a>.</p>
|
|
38
|
+
* @see {@link GetContactInformationCommand}
|
|
66
39
|
*/
|
|
67
40
|
getContactInformation(args: GetContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<GetContactInformationCommandOutput>;
|
|
68
41
|
getContactInformation(args: GetContactInformationCommandInput, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
69
42
|
getContactInformation(args: GetContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
70
43
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <p>Retrieves the opt-in status of a particular Region.</p>
|
|
44
|
+
* @see {@link GetRegionOptStatusCommand}
|
|
73
45
|
*/
|
|
74
46
|
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetRegionOptStatusCommandOutput>;
|
|
75
47
|
getRegionOptStatus(args: GetRegionOptStatusCommandInput, cb: (err: any, data?: GetRegionOptStatusCommandOutput) => void): void;
|
|
76
48
|
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRegionOptStatusCommandOutput) => void): void;
|
|
77
49
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Lists all the Regions for a given account and their respective opt-in statuses.
|
|
80
|
-
* Optionally, this list can be filtered by the <code>region-opt-status-contains</code>
|
|
81
|
-
* parameter. </p>
|
|
50
|
+
* @see {@link ListRegionsCommand}
|
|
82
51
|
*/
|
|
83
52
|
listRegions(args: ListRegionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRegionsCommandOutput>;
|
|
84
53
|
listRegions(args: ListRegionsCommandInput, cb: (err: any, data?: ListRegionsCommandOutput) => void): void;
|
|
85
54
|
listRegions(args: ListRegionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRegionsCommandOutput) => void): void;
|
|
86
55
|
/**
|
|
87
|
-
* @
|
|
88
|
-
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
89
|
-
* <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access or
|
|
90
|
-
* updating the alternate contacts</a>.</p>
|
|
91
|
-
* <note>
|
|
92
|
-
* <p>Before you can update the alternate contact information for an
|
|
93
|
-
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
94
|
-
* and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling trusted access for
|
|
95
|
-
* Amazon Web Services Account Management</a>.</p>
|
|
96
|
-
* </note>
|
|
56
|
+
* @see {@link PutAlternateContactCommand}
|
|
97
57
|
*/
|
|
98
58
|
putAlternateContact(args: PutAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<PutAlternateContactCommandOutput>;
|
|
99
59
|
putAlternateContact(args: PutAlternateContactCommandInput, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
100
60
|
putAlternateContact(args: PutAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
101
61
|
/**
|
|
102
|
-
* @
|
|
103
|
-
* <p>Updates the primary contact information of an Amazon Web Services account.</p>
|
|
104
|
-
* <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
|
|
105
|
-
* the primary and alternate contact information</a>.</p>
|
|
62
|
+
* @see {@link PutContactInformationCommand}
|
|
106
63
|
*/
|
|
107
64
|
putContactInformation(args: PutContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<PutContactInformationCommandOutput>;
|
|
108
65
|
putContactInformation(args: PutContactInformationCommandInput, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
109
66
|
putContactInformation(args: PutContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
110
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* <p>Operations for Amazon Web Services Account Management</p>
|
|
71
|
+
*/
|
|
72
|
+
export declare class Account extends AccountClient implements Account {
|
|
73
|
+
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
PutContactInformationCommandInput,
|
|
37
37
|
PutContactInformationCommandOutput,
|
|
38
38
|
} from "./commands/PutContactInformationCommand";
|
|
39
|
-
export
|
|
39
|
+
export interface Account {
|
|
40
40
|
deleteAlternateContact(
|
|
41
41
|
args: DeleteAlternateContactCommandInput,
|
|
42
42
|
options?: __HttpHandlerOptions
|
|
@@ -155,3 +155,4 @@ export declare class Account extends AccountClient {
|
|
|
155
155
|
cb: (err: any, data?: PutContactInformationCommandOutput) => void
|
|
156
156
|
): void;
|
|
157
157
|
}
|
|
158
|
+
export declare class Account extends AccountClient implements Account {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-account",
|
|
3
3
|
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|