@aws-sdk/client-account 3.588.0 → 3.592.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/README.md +24 -0
- package/dist-cjs/index.js +204 -41
- package/dist-es/Account.js +6 -0
- package/dist-es/commands/AcceptPrimaryEmailUpdateCommand.js +25 -0
- package/dist-es/commands/GetPrimaryEmailCommand.js +25 -0
- package/dist-es/commands/StartPrimaryEmailUpdateCommand.js +25 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +34 -17
- package/dist-es/protocols/Aws_restJson1.js +87 -3
- package/dist-types/Account.d.ts +21 -0
- package/dist-types/AccountClient.d.ts +9 -6
- package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +86 -0
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/DisableRegionCommand.d.ts +6 -1
- package/dist-types/commands/EnableRegionCommand.d.ts +2 -1
- package/dist-types/commands/GetAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/GetContactInformationCommand.d.ts +2 -1
- package/dist-types/commands/GetPrimaryEmailCommand.d.ts +78 -0
- package/dist-types/commands/GetRegionOptStatusCommand.d.ts +2 -1
- package/dist-types/commands/ListRegionsCommand.d.ts +2 -1
- package/dist-types/commands/PutAlternateContactCommand.d.ts +2 -1
- package/dist-types/commands/PutContactInformationCommand.d.ts +3 -2
- package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/AccountServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +244 -91
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Account.d.ts +51 -0
- package/dist-types/ts3.4/AccountClient.d.ts +21 -3
- package/dist-types/ts3.4/commands/AcceptPrimaryEmailUpdateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetPrimaryEmailCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutAlternateContactCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/StartPrimaryEmailUpdateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/AccountServiceException.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +50 -14
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { AccountServiceException as __BaseException } from "./AccountServiceException";
|
|
3
|
+
export const PrimaryEmailUpdateStatus = {
|
|
4
|
+
ACCEPTED: "ACCEPTED",
|
|
5
|
+
PENDING: "PENDING",
|
|
6
|
+
};
|
|
3
7
|
export class AccessDeniedException extends __BaseException {
|
|
4
8
|
constructor(opts) {
|
|
5
9
|
super({
|
|
@@ -12,11 +16,18 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
16
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
export class ConflictException extends __BaseException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ConflictException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "ConflictException";
|
|
27
|
+
this.$fault = "client";
|
|
28
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
20
31
|
export class InternalServerException extends __BaseException {
|
|
21
32
|
constructor(opts) {
|
|
22
33
|
super({
|
|
@@ -75,18 +86,11 @@ export class ValidationException extends __BaseException {
|
|
|
75
86
|
this.fieldList = opts.fieldList;
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...opts,
|
|
84
|
-
});
|
|
85
|
-
this.name = "ConflictException";
|
|
86
|
-
this.$fault = "client";
|
|
87
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
89
|
+
export const AlternateContactType = {
|
|
90
|
+
BILLING: "BILLING",
|
|
91
|
+
OPERATIONS: "OPERATIONS",
|
|
92
|
+
SECURITY: "SECURITY",
|
|
93
|
+
};
|
|
90
94
|
export const RegionOptStatus = {
|
|
91
95
|
DISABLED: "DISABLED",
|
|
92
96
|
DISABLING: "DISABLING",
|
|
@@ -94,6 +98,11 @@ export const RegionOptStatus = {
|
|
|
94
98
|
ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT",
|
|
95
99
|
ENABLING: "ENABLING",
|
|
96
100
|
};
|
|
101
|
+
export const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
|
|
102
|
+
...obj,
|
|
103
|
+
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
104
|
+
...(obj.Otp && { Otp: SENSITIVE_STRING }),
|
|
105
|
+
});
|
|
97
106
|
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
98
107
|
...obj,
|
|
99
108
|
...(obj.message && { message: SENSITIVE_STRING }),
|
|
@@ -139,3 +148,11 @@ export const PutContactInformationRequestFilterSensitiveLog = (obj) => ({
|
|
|
139
148
|
...obj,
|
|
140
149
|
...(obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }),
|
|
141
150
|
});
|
|
151
|
+
export const GetPrimaryEmailResponseFilterSensitiveLog = (obj) => ({
|
|
152
|
+
...obj,
|
|
153
|
+
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
154
|
+
});
|
|
155
|
+
export const StartPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
|
|
156
|
+
...obj,
|
|
157
|
+
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
|
|
158
|
+
});
|
|
@@ -3,6 +3,21 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccountServiceException as __BaseException } from "../models/AccountServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
|
+
export const se_AcceptPrimaryEmailUpdateCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
b.bp("/acceptPrimaryEmailUpdate");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
AccountId: [],
|
|
15
|
+
Otp: [],
|
|
16
|
+
PrimaryEmail: [],
|
|
17
|
+
}));
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
20
|
+
};
|
|
6
21
|
export const se_DeleteAlternateContactCommand = async (input, context) => {
|
|
7
22
|
const b = rb(input, context);
|
|
8
23
|
const headers = {
|
|
@@ -72,6 +87,19 @@ export const se_GetContactInformationCommand = async (input, context) => {
|
|
|
72
87
|
b.m("POST").h(headers).b(body);
|
|
73
88
|
return b.build();
|
|
74
89
|
};
|
|
90
|
+
export const se_GetPrimaryEmailCommand = async (input, context) => {
|
|
91
|
+
const b = rb(input, context);
|
|
92
|
+
const headers = {
|
|
93
|
+
"content-type": "application/json",
|
|
94
|
+
};
|
|
95
|
+
b.bp("/getPrimaryEmail");
|
|
96
|
+
let body;
|
|
97
|
+
body = JSON.stringify(take(input, {
|
|
98
|
+
AccountId: [],
|
|
99
|
+
}));
|
|
100
|
+
b.m("POST").h(headers).b(body);
|
|
101
|
+
return b.build();
|
|
102
|
+
};
|
|
75
103
|
export const se_GetRegionOptStatusCommand = async (input, context) => {
|
|
76
104
|
const b = rb(input, context);
|
|
77
105
|
const headers = {
|
|
@@ -134,6 +162,34 @@ export const se_PutContactInformationCommand = async (input, context) => {
|
|
|
134
162
|
b.m("POST").h(headers).b(body);
|
|
135
163
|
return b.build();
|
|
136
164
|
};
|
|
165
|
+
export const se_StartPrimaryEmailUpdateCommand = async (input, context) => {
|
|
166
|
+
const b = rb(input, context);
|
|
167
|
+
const headers = {
|
|
168
|
+
"content-type": "application/json",
|
|
169
|
+
};
|
|
170
|
+
b.bp("/startPrimaryEmailUpdate");
|
|
171
|
+
let body;
|
|
172
|
+
body = JSON.stringify(take(input, {
|
|
173
|
+
AccountId: [],
|
|
174
|
+
PrimaryEmail: [],
|
|
175
|
+
}));
|
|
176
|
+
b.m("POST").h(headers).b(body);
|
|
177
|
+
return b.build();
|
|
178
|
+
};
|
|
179
|
+
export const de_AcceptPrimaryEmailUpdateCommand = async (output, context) => {
|
|
180
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
181
|
+
return de_CommandError(output, context);
|
|
182
|
+
}
|
|
183
|
+
const contents = map({
|
|
184
|
+
$metadata: deserializeMetadata(output),
|
|
185
|
+
});
|
|
186
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
187
|
+
const doc = take(data, {
|
|
188
|
+
Status: __expectString,
|
|
189
|
+
});
|
|
190
|
+
Object.assign(contents, doc);
|
|
191
|
+
return contents;
|
|
192
|
+
};
|
|
137
193
|
export const de_DeleteAlternateContactCommand = async (output, context) => {
|
|
138
194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
139
195
|
return de_CommandError(output, context);
|
|
@@ -192,6 +248,20 @@ export const de_GetContactInformationCommand = async (output, context) => {
|
|
|
192
248
|
Object.assign(contents, doc);
|
|
193
249
|
return contents;
|
|
194
250
|
};
|
|
251
|
+
export const de_GetPrimaryEmailCommand = async (output, context) => {
|
|
252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
253
|
+
return de_CommandError(output, context);
|
|
254
|
+
}
|
|
255
|
+
const contents = map({
|
|
256
|
+
$metadata: deserializeMetadata(output),
|
|
257
|
+
});
|
|
258
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
259
|
+
const doc = take(data, {
|
|
260
|
+
PrimaryEmail: __expectString,
|
|
261
|
+
});
|
|
262
|
+
Object.assign(contents, doc);
|
|
263
|
+
return contents;
|
|
264
|
+
};
|
|
195
265
|
export const de_GetRegionOptStatusCommand = async (output, context) => {
|
|
196
266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
267
|
return de_CommandError(output, context);
|
|
@@ -242,6 +312,20 @@ export const de_PutContactInformationCommand = async (output, context) => {
|
|
|
242
312
|
await collectBody(output.body, context);
|
|
243
313
|
return contents;
|
|
244
314
|
};
|
|
315
|
+
export const de_StartPrimaryEmailUpdateCommand = async (output, context) => {
|
|
316
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
+
return de_CommandError(output, context);
|
|
318
|
+
}
|
|
319
|
+
const contents = map({
|
|
320
|
+
$metadata: deserializeMetadata(output),
|
|
321
|
+
});
|
|
322
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
323
|
+
const doc = take(data, {
|
|
324
|
+
Status: __expectString,
|
|
325
|
+
});
|
|
326
|
+
Object.assign(contents, doc);
|
|
327
|
+
return contents;
|
|
328
|
+
};
|
|
245
329
|
const de_CommandError = async (output, context) => {
|
|
246
330
|
const parsedOutput = {
|
|
247
331
|
...output,
|
|
@@ -252,6 +336,9 @@ const de_CommandError = async (output, context) => {
|
|
|
252
336
|
case "AccessDeniedException":
|
|
253
337
|
case "com.amazonaws.account#AccessDeniedException":
|
|
254
338
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
339
|
+
case "ConflictException":
|
|
340
|
+
case "com.amazonaws.account#ConflictException":
|
|
341
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
255
342
|
case "InternalServerException":
|
|
256
343
|
case "com.amazonaws.account#InternalServerException":
|
|
257
344
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -264,9 +351,6 @@ const de_CommandError = async (output, context) => {
|
|
|
264
351
|
case "ValidationException":
|
|
265
352
|
case "com.amazonaws.account#ValidationException":
|
|
266
353
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ConflictException":
|
|
268
|
-
case "com.amazonaws.account#ConflictException":
|
|
269
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
270
354
|
default:
|
|
271
355
|
const parsedBody = parsedOutput.body;
|
|
272
356
|
return throwDefaultError({
|
package/dist-types/Account.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { AccountClient } from "./AccountClient";
|
|
3
|
+
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "./commands/AcceptPrimaryEmailUpdateCommand";
|
|
3
4
|
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
4
5
|
import { DisableRegionCommandInput, DisableRegionCommandOutput } from "./commands/DisableRegionCommand";
|
|
5
6
|
import { EnableRegionCommandInput, EnableRegionCommandOutput } from "./commands/EnableRegionCommand";
|
|
6
7
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
7
8
|
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
9
|
+
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
|
|
8
10
|
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
|
|
9
11
|
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
10
12
|
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
11
13
|
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
|
|
14
|
+
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
|
|
12
15
|
export interface Account {
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
18
|
+
*/
|
|
19
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: __HttpHandlerOptions): Promise<AcceptPrimaryEmailUpdateCommandOutput>;
|
|
20
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void): void;
|
|
21
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void): void;
|
|
13
22
|
/**
|
|
14
23
|
* @see {@link DeleteAlternateContactCommand}
|
|
15
24
|
*/
|
|
@@ -41,6 +50,12 @@ export interface Account {
|
|
|
41
50
|
getContactInformation(args: GetContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<GetContactInformationCommandOutput>;
|
|
42
51
|
getContactInformation(args: GetContactInformationCommandInput, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
43
52
|
getContactInformation(args: GetContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link GetPrimaryEmailCommand}
|
|
55
|
+
*/
|
|
56
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetPrimaryEmailCommandOutput>;
|
|
57
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
|
|
58
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
|
|
44
59
|
/**
|
|
45
60
|
* @see {@link GetRegionOptStatusCommand}
|
|
46
61
|
*/
|
|
@@ -66,6 +81,12 @@ export interface Account {
|
|
|
66
81
|
putContactInformation(args: PutContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<PutContactInformationCommandOutput>;
|
|
67
82
|
putContactInformation(args: PutContactInformationCommandInput, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
68
83
|
putContactInformation(args: PutContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* @see {@link StartPrimaryEmailUpdateCommand}
|
|
86
|
+
*/
|
|
87
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: __HttpHandlerOptions): Promise<StartPrimaryEmailUpdateCommandOutput>;
|
|
88
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
|
|
89
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
|
|
69
90
|
}
|
|
70
91
|
/**
|
|
71
92
|
* <p>Operations for Amazon Web Services Account Management</p>
|
|
@@ -7,26 +7,29 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "./commands/AcceptPrimaryEmailUpdateCommand";
|
|
10
11
|
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
11
12
|
import { DisableRegionCommandInput, DisableRegionCommandOutput } from "./commands/DisableRegionCommand";
|
|
12
13
|
import { EnableRegionCommandInput, EnableRegionCommandOutput } from "./commands/EnableRegionCommand";
|
|
13
14
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
14
15
|
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
16
|
+
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
|
|
15
17
|
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
|
|
16
18
|
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
17
19
|
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
18
20
|
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
|
|
21
|
+
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
|
|
19
22
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
20
23
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
21
24
|
export { __Client };
|
|
22
25
|
/**
|
|
23
26
|
* @public
|
|
24
27
|
*/
|
|
25
|
-
export type ServiceInputTypes = DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput;
|
|
28
|
+
export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetPrimaryEmailCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
|
|
26
29
|
/**
|
|
27
30
|
* @public
|
|
28
31
|
*/
|
|
29
|
-
export type ServiceOutputTypes = DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput;
|
|
32
|
+
export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetPrimaryEmailCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
|
|
30
33
|
/**
|
|
31
34
|
* @public
|
|
32
35
|
*/
|
|
@@ -99,15 +102,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
99
102
|
* Enables FIPS compatible endpoints.
|
|
100
103
|
*/
|
|
101
104
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* The AWS region to which this client will send requests
|
|
107
|
+
*/
|
|
108
|
+
region?: string | __Provider<string>;
|
|
102
109
|
/**
|
|
103
110
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
104
111
|
* @internal
|
|
105
112
|
*/
|
|
106
113
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
107
|
-
/**
|
|
108
|
-
* The AWS region to which this client will send requests
|
|
109
|
-
*/
|
|
110
|
-
region?: string | __Provider<string>;
|
|
111
114
|
/**
|
|
112
115
|
* Default credentials provider; Not available in browser runtime.
|
|
113
116
|
* @deprecated
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { AcceptPrimaryEmailUpdateRequest, AcceptPrimaryEmailUpdateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AcceptPrimaryEmailUpdateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AcceptPrimaryEmailUpdateCommandInput extends AcceptPrimaryEmailUpdateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AcceptPrimaryEmailUpdateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AcceptPrimaryEmailUpdateCommandOutput extends AcceptPrimaryEmailUpdateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AcceptPrimaryEmailUpdateCommand_base: {
|
|
25
|
+
new (input: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AcceptPrimaryEmailUpdateCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Accepts the request that originated from <a>StartPrimaryEmailUpdate</a> to update the primary email address (also known
|
|
31
|
+
* as the root user email address) for the specified account.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { AccountClient, AcceptPrimaryEmailUpdateCommand } from "@aws-sdk/client-account"; // ES Modules import
|
|
36
|
+
* // const { AccountClient, AcceptPrimaryEmailUpdateCommand } = require("@aws-sdk/client-account"); // CommonJS import
|
|
37
|
+
* const client = new AccountClient(config);
|
|
38
|
+
* const input = { // AcceptPrimaryEmailUpdateRequest
|
|
39
|
+
* AccountId: "STRING_VALUE", // required
|
|
40
|
+
* PrimaryEmail: "STRING_VALUE", // required
|
|
41
|
+
* Otp: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new AcceptPrimaryEmailUpdateCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // AcceptPrimaryEmailUpdateResponse
|
|
46
|
+
* // Status: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param AcceptPrimaryEmailUpdateCommandInput - {@link AcceptPrimaryEmailUpdateCommandInput}
|
|
52
|
+
* @returns {@link AcceptPrimaryEmailUpdateCommandOutput}
|
|
53
|
+
* @see {@link AcceptPrimaryEmailUpdateCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link AcceptPrimaryEmailUpdateCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>The operation failed because the calling identity doesn't have the minimum required
|
|
59
|
+
* permissions.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictException} (client fault)
|
|
62
|
+
* <p>The request could not be processed because of a conflict in the current status of the
|
|
63
|
+
* resource. For example, this happens if you try to enable a Region that is currently being disabled
|
|
64
|
+
* (in a status of DISABLING).</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
|
|
68
|
+
* later.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>The operation failed because it specified a resource that can't be found.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
74
|
+
* <p>The operation failed because it was called too frequently and exceeded a throttle
|
|
75
|
+
* limit.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The operation failed because one of the input parameters was invalid.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link AccountServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Account service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class AcceptPrimaryEmailUpdateCommand extends AcceptPrimaryEmailUpdateCommand_base {
|
|
86
|
+
}
|
|
@@ -5,7 +5,8 @@ import { DisableRegionRequest } from "../models/models_0";
|
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export { __MetadataBearer
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
9
10
|
/**
|
|
10
11
|
* @public
|
|
11
12
|
*
|
|
@@ -27,6 +28,10 @@ declare const DisableRegionCommand_base: {
|
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* <p>Disables (opts-out) a particular Region for an account.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>The act of disabling a Region will remove all IAM access to any resources that
|
|
33
|
+
* reside in that Region.</p>
|
|
34
|
+
* </note>
|
|
30
35
|
* @example
|
|
31
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
37
|
* ```javascript
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { GetPrimaryEmailRequest, GetPrimaryEmailResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPrimaryEmailCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPrimaryEmailCommandInput extends GetPrimaryEmailRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPrimaryEmailCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPrimaryEmailCommandOutput extends GetPrimaryEmailResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPrimaryEmailCommand_base: {
|
|
25
|
+
new (input: GetPrimaryEmailCommandInput): import("@smithy/smithy-client").CommandImpl<GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetPrimaryEmailCommandInput): import("@smithy/smithy-client").CommandImpl<GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the primary email address for the specified account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AccountClient, GetPrimaryEmailCommand } from "@aws-sdk/client-account"; // ES Modules import
|
|
35
|
+
* // const { AccountClient, GetPrimaryEmailCommand } = require("@aws-sdk/client-account"); // CommonJS import
|
|
36
|
+
* const client = new AccountClient(config);
|
|
37
|
+
* const input = { // GetPrimaryEmailRequest
|
|
38
|
+
* AccountId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetPrimaryEmailCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetPrimaryEmailResponse
|
|
43
|
+
* // PrimaryEmail: "STRING_VALUE",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetPrimaryEmailCommandInput - {@link GetPrimaryEmailCommandInput}
|
|
49
|
+
* @returns {@link GetPrimaryEmailCommandOutput}
|
|
50
|
+
* @see {@link GetPrimaryEmailCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetPrimaryEmailCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The operation failed because the calling identity doesn't have the minimum required
|
|
56
|
+
* permissions.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServerException} (server fault)
|
|
59
|
+
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
|
|
60
|
+
* later.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>The operation failed because it specified a resource that can't be found.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
66
|
+
* <p>The operation failed because it was called too frequently and exceeded a throttle
|
|
67
|
+
* limit.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>The operation failed because one of the input parameters was invalid.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccountServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Account service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class GetPrimaryEmailCommand extends GetPrimaryEmailCommand_base {
|
|
78
|
+
}
|
|
@@ -5,7 +5,8 @@ import { PutContactInformationRequest } from "../models/models_0";
|
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export { __MetadataBearer
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
9
10
|
/**
|
|
10
11
|
* @public
|
|
11
12
|
*
|
|
@@ -28,7 +29,7 @@ declare const PutContactInformationCommand_base: {
|
|
|
28
29
|
/**
|
|
29
30
|
* <p>Updates the primary contact information of an Amazon Web Services account.</p>
|
|
30
31
|
* <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
|
|
31
|
-
*
|
|
32
|
+
* the primary and alternate contact information</a>.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|