You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-account/src/Account.ts
+98-2Lines changed: 98 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,21 @@ import {
12
12
GetAlternateContactCommandInput,
13
13
GetAlternateContactCommandOutput,
14
14
}from"./commands/GetAlternateContactCommand";
15
+
import{
16
+
GetContactInformationCommand,
17
+
GetContactInformationCommandInput,
18
+
GetContactInformationCommandOutput,
19
+
}from"./commands/GetContactInformationCommand";
15
20
import{
16
21
PutAlternateContactCommand,
17
22
PutAlternateContactCommandInput,
18
23
PutAlternateContactCommandOutput,
19
24
}from"./commands/PutAlternateContactCommand";
25
+
import{
26
+
PutContactInformationCommand,
27
+
PutContactInformationCommandInput,
28
+
PutContactInformationCommandOutput,
29
+
}from"./commands/PutContactInformationCommand";
20
30
21
31
/**
22
32
* <p>Operations for Amazon Web Services Account Management</p>
@@ -26,6 +36,12 @@ export class Account extends AccountClient {
26
36
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
27
37
* <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
28
38
* updating the alternate contacts</a>.</p>
39
+
* <note>
40
+
* <p>Before you can update the alternate contact information for an
41
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
42
+
* 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
43
+
* Amazon Web Services Account Management</a>.</p>
44
+
* </note>
29
45
*/
30
46
publicdeleteAlternateContact(
31
47
args: DeleteAlternateContactCommandInput,
@@ -59,7 +75,13 @@ export class Account extends AccountClient {
59
75
/**
60
76
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
61
77
* <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
62
-
* updating the alternate contacts</a>.</p>
78
+
* updating the alternate contacts</a>.</p>
79
+
* <note>
80
+
* <p>Before you can update the alternate contact information for an
81
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
82
+
* 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
83
+
* Amazon Web Services Account Management</a>.</p>
84
+
* </note>
63
85
*/
64
86
publicgetAlternateContact(
65
87
args: GetAlternateContactCommandInput,
@@ -90,10 +112,50 @@ export class Account extends AccountClient {
90
112
}
91
113
}
92
114
115
+
/**
116
+
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
117
+
* <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
118
+
* the primary and alternate contact information</a>.</p>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
143
+
this.send(command,optionsOrCb||{},cb);
144
+
}else{
145
+
returnthis.send(command,optionsOrCb);
146
+
}
147
+
}
148
+
93
149
/**
94
150
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
95
151
* <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
96
-
* updating the alternate contacts</a>.</p>
152
+
* updating the alternate contacts</a>.</p>
153
+
* <note>
154
+
* <p>Before you can update the alternate contact information for an
155
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
156
+
* 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
157
+
* Amazon Web Services Account Management</a>.</p>
158
+
* </note>
97
159
*/
98
160
publicputAlternateContact(
99
161
args: PutAlternateContactCommandInput,
@@ -123,4 +185,38 @@ export class Account extends AccountClient {
123
185
returnthis.send(command,optionsOrCb);
124
186
}
125
187
}
188
+
189
+
/**
190
+
* <p>Updates the primary contact information of an Amazon Web Services account.</p>
191
+
* <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
192
+
* the primary and alternate contact information</a>.</p>
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
27
27
* <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
28
28
* updating the alternate contacts</a>.</p>
29
+
* <note>
30
+
* <p>Before you can update the alternate contact information for an
31
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
32
+
* 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
33
+
* Amazon Web Services Account Management</a>.</p>
34
+
* </note>
29
35
* @example
30
36
* Use a bare-bones client and the command you need to make an API call.
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
27
27
* <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
28
-
* updating the alternate contacts</a>.</p>
28
+
* updating the alternate contacts</a>.</p>
29
+
* <note>
30
+
* <p>Before you can update the alternate contact information for an
31
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
32
+
* 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
33
+
* Amazon Web Services Account Management</a>.</p>
34
+
* </note>
29
35
* @example
30
36
* Use a bare-bones client and the command you need to make an API call.
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
27
+
* <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
28
+
* the primary and alternate contact information</a>.</p>
29
+
* @example
30
+
* Use a bare-bones client and the command you need to make an API call.
31
+
* ```javascript
32
+
* import { AccountClient, GetContactInformationCommand } from "@aws-sdk/client-account"; // ES Modules import
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
27
27
* <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
28
-
* updating the alternate contacts</a>.</p>
28
+
* updating the alternate contacts</a>.</p>
29
+
* <note>
30
+
* <p>Before you can update the alternate contact information for an
31
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
32
+
* 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
33
+
* Amazon Web Services Account Management</a>.</p>
34
+
* </note>
29
35
* @example
30
36
* Use a bare-bones client and the command you need to make an API call.
0 commit comments