@aws-sdk/client-account 3.131.0 → 3.141.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/Account.js +30 -0
- package/dist-cjs/commands/DeleteAlternateContactCommand.js +1 -1
- package/dist-cjs/commands/GetAlternateContactCommand.js +2 -2
- package/dist-cjs/commands/GetContactInformationCommand.js +36 -0
- package/dist-cjs/commands/PutAlternateContactCommand.js +1 -1
- package/dist-cjs/commands/PutContactInformationCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +60 -40
- package/dist-cjs/protocols/Aws_restJson1.js +171 -1
- package/dist-es/Account.js +30 -0
- package/dist-es/commands/DeleteAlternateContactCommand.js +2 -2
- package/dist-es/commands/GetAlternateContactCommand.js +3 -3
- package/dist-es/commands/GetContactInformationCommand.js +39 -0
- package/dist-es/commands/PutAlternateContactCommand.js +2 -2
- package/dist-es/commands/PutContactInformationCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +9 -20
- package/dist-es/protocols/Aws_restJson1.js +205 -0
- package/dist-types/Account.d.ts +38 -2
- package/dist-types/AccountClient.d.ts +4 -2
- package/dist-types/commands/DeleteAlternateContactCommand.d.ts +6 -0
- package/dist-types/commands/GetAlternateContactCommand.d.ts +7 -1
- package/dist-types/commands/GetContactInformationCommand.d.ts +37 -0
- package/dist-types/commands/PutAlternateContactCommand.d.ts +7 -1
- package/dist-types/commands/PutContactInformationCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +142 -27
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Account.d.ts +10 -0
- package/dist-types/ts3.4/AccountClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetContactInformationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutContactInformationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -18
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +6 -6
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetContactInformationRequestFilterSensitiveLog, GetContactInformationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetContactInformationCommand, serializeAws_restJson1GetContactInformationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetContactInformationCommand = (function (_super) {
|
|
7
|
+
__extends(GetContactInformationCommand, _super);
|
|
8
|
+
function GetContactInformationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetContactInformationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AccountClient";
|
|
18
|
+
var commandName = "GetContactInformationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetContactInformationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetContactInformationResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetContactInformationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetContactInformationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetContactInformationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetContactInformationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetContactInformationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetContactInformationCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { PutAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1PutAlternateContactCommand, serializeAws_restJson1PutAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var PutAlternateContactCommand = (function (_super) {
|
|
7
7
|
__extends(PutAlternateContactCommand, _super);
|
|
@@ -20,7 +20,7 @@ var PutAlternateContactCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: PutAlternateContactRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutContactInformationRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutContactInformationCommand, serializeAws_restJson1PutContactInformationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var PutContactInformationCommand = (function (_super) {
|
|
7
|
+
__extends(PutContactInformationCommand, _super);
|
|
8
|
+
function PutContactInformationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
PutContactInformationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AccountClient";
|
|
18
|
+
var commandName = "PutContactInformationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: PutContactInformationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutContactInformationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1PutContactInformationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
PutContactInformationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1PutContactInformationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return PutContactInformationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutContactInformationCommand };
|
|
@@ -19,10 +19,6 @@ export var AlternateContactType;
|
|
|
19
19
|
AlternateContactType["OPERATIONS"] = "OPERATIONS";
|
|
20
20
|
AlternateContactType["SECURITY"] = "SECURITY";
|
|
21
21
|
})(AlternateContactType || (AlternateContactType = {}));
|
|
22
|
-
export var DeleteAlternateContactRequest;
|
|
23
|
-
(function (DeleteAlternateContactRequest) {
|
|
24
|
-
DeleteAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
|
-
})(DeleteAlternateContactRequest || (DeleteAlternateContactRequest = {}));
|
|
26
22
|
var InternalServerException = (function (_super) {
|
|
27
23
|
__extends(InternalServerException, _super);
|
|
28
24
|
function InternalServerException(opts) {
|
|
@@ -75,19 +71,12 @@ var ValidationException = (function (_super) {
|
|
|
75
71
|
return ValidationException;
|
|
76
72
|
}(__BaseException));
|
|
77
73
|
export { ValidationException };
|
|
78
|
-
export var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
export var
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
export var
|
|
87
|
-
(function (GetAlternateContactResponse) {
|
|
88
|
-
GetAlternateContactResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AlternateContact && { AlternateContact: AlternateContact.filterSensitiveLog(obj.AlternateContact) }))); };
|
|
89
|
-
})(GetAlternateContactResponse || (GetAlternateContactResponse = {}));
|
|
90
|
-
export var PutAlternateContactRequest;
|
|
91
|
-
(function (PutAlternateContactRequest) {
|
|
92
|
-
PutAlternateContactRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
|
|
93
|
-
})(PutAlternateContactRequest || (PutAlternateContactRequest = {}));
|
|
74
|
+
export var DeleteAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
75
|
+
export var GetAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
76
|
+
export var AlternateContactFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
|
|
77
|
+
export var GetAlternateContactResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AlternateContact && { AlternateContact: AlternateContactFilterSensitiveLog(obj.AlternateContact) }))); };
|
|
78
|
+
export var PutAlternateContactRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Title && { Title: SENSITIVE_STRING })), (obj.EmailAddress && { EmailAddress: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }))); };
|
|
79
|
+
export var GetContactInformationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
|
+
export var ContactInformationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.FullName && { FullName: SENSITIVE_STRING })), (obj.AddressLine1 && { AddressLine1: SENSITIVE_STRING })), (obj.AddressLine2 && { AddressLine2: SENSITIVE_STRING })), (obj.AddressLine3 && { AddressLine3: SENSITIVE_STRING })), (obj.City && { City: SENSITIVE_STRING })), (obj.StateOrRegion && { StateOrRegion: SENSITIVE_STRING })), (obj.DistrictOrCounty && { DistrictOrCounty: SENSITIVE_STRING })), (obj.PostalCode && { PostalCode: SENSITIVE_STRING })), (obj.CountryCode && { CountryCode: SENSITIVE_STRING })), (obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING })), (obj.CompanyName && { CompanyName: SENSITIVE_STRING })), (obj.WebsiteUrl && { WebsiteUrl: SENSITIVE_STRING }))); };
|
|
81
|
+
export var GetContactInformationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }))); };
|
|
82
|
+
export var PutContactInformationRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ContactInformation && { ContactInformation: ContactInformationFilterSensitiveLog(obj.ContactInformation) }))); };
|
|
@@ -51,6 +51,30 @@ export var serializeAws_restJson1GetAlternateContactCommand = function (input, c
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}); };
|
|
54
|
+
export var serializeAws_restJson1GetContactInformationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
56
|
+
return __generator(this, function (_c) {
|
|
57
|
+
switch (_c.label) {
|
|
58
|
+
case 0: return [4, context.endpoint()];
|
|
59
|
+
case 1:
|
|
60
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
61
|
+
headers = {
|
|
62
|
+
"content-type": "application/json",
|
|
63
|
+
};
|
|
64
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getContactInformation";
|
|
65
|
+
body = JSON.stringify(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })));
|
|
66
|
+
return [2, new __HttpRequest({
|
|
67
|
+
protocol: protocol,
|
|
68
|
+
hostname: hostname,
|
|
69
|
+
port: port,
|
|
70
|
+
method: "POST",
|
|
71
|
+
headers: headers,
|
|
72
|
+
path: resolvedPath,
|
|
73
|
+
body: body,
|
|
74
|
+
})];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}); };
|
|
54
78
|
export var serializeAws_restJson1PutAlternateContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
79
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
56
80
|
return __generator(this, function (_c) {
|
|
@@ -75,6 +99,32 @@ export var serializeAws_restJson1PutAlternateContactCommand = function (input, c
|
|
|
75
99
|
}
|
|
76
100
|
});
|
|
77
101
|
}); };
|
|
102
|
+
export var serializeAws_restJson1PutContactInformationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
103
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
104
|
+
return __generator(this, function (_c) {
|
|
105
|
+
switch (_c.label) {
|
|
106
|
+
case 0: return [4, context.endpoint()];
|
|
107
|
+
case 1:
|
|
108
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
109
|
+
headers = {
|
|
110
|
+
"content-type": "application/json",
|
|
111
|
+
};
|
|
112
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/putContactInformation";
|
|
113
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ContactInformation != null && {
|
|
114
|
+
ContactInformation: serializeAws_restJson1ContactInformation(input.ContactInformation, context),
|
|
115
|
+
})));
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
|
+
protocol: protocol,
|
|
118
|
+
hostname: hostname,
|
|
119
|
+
port: port,
|
|
120
|
+
method: "POST",
|
|
121
|
+
headers: headers,
|
|
122
|
+
path: resolvedPath,
|
|
123
|
+
body: body,
|
|
124
|
+
})];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}); };
|
|
78
128
|
export var deserializeAws_restJson1DeleteAlternateContactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
79
129
|
var contents;
|
|
80
130
|
return __generator(this, function (_a) {
|
|
@@ -215,6 +265,79 @@ var deserializeAws_restJson1GetAlternateContactCommandError = function (output,
|
|
|
215
265
|
}
|
|
216
266
|
});
|
|
217
267
|
}); };
|
|
268
|
+
export var deserializeAws_restJson1GetContactInformationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
+
var contents, data, _a, _b;
|
|
270
|
+
return __generator(this, function (_c) {
|
|
271
|
+
switch (_c.label) {
|
|
272
|
+
case 0:
|
|
273
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
274
|
+
return [2, deserializeAws_restJson1GetContactInformationCommandError(output, context)];
|
|
275
|
+
}
|
|
276
|
+
contents = {
|
|
277
|
+
$metadata: deserializeMetadata(output),
|
|
278
|
+
ContactInformation: undefined,
|
|
279
|
+
};
|
|
280
|
+
_a = __expectNonNull;
|
|
281
|
+
_b = __expectObject;
|
|
282
|
+
return [4, parseBody(output.body, context)];
|
|
283
|
+
case 1:
|
|
284
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
285
|
+
if (data.ContactInformation !== undefined && data.ContactInformation !== null) {
|
|
286
|
+
contents.ContactInformation = deserializeAws_restJson1ContactInformation(data.ContactInformation, context);
|
|
287
|
+
}
|
|
288
|
+
return [2, Promise.resolve(contents)];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}); };
|
|
292
|
+
var deserializeAws_restJson1GetContactInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
294
|
+
var _c;
|
|
295
|
+
return __generator(this, function (_d) {
|
|
296
|
+
switch (_d.label) {
|
|
297
|
+
case 0:
|
|
298
|
+
_a = [__assign({}, output)];
|
|
299
|
+
_c = {};
|
|
300
|
+
return [4, parseBody(output.body, context)];
|
|
301
|
+
case 1:
|
|
302
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
303
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
304
|
+
_b = errorCode;
|
|
305
|
+
switch (_b) {
|
|
306
|
+
case "AccessDeniedException": return [3, 2];
|
|
307
|
+
case "com.amazonaws.account#AccessDeniedException": return [3, 2];
|
|
308
|
+
case "InternalServerException": return [3, 4];
|
|
309
|
+
case "com.amazonaws.account#InternalServerException": return [3, 4];
|
|
310
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
311
|
+
case "com.amazonaws.account#ResourceNotFoundException": return [3, 6];
|
|
312
|
+
case "TooManyRequestsException": return [3, 8];
|
|
313
|
+
case "com.amazonaws.account#TooManyRequestsException": return [3, 8];
|
|
314
|
+
case "ValidationException": return [3, 10];
|
|
315
|
+
case "com.amazonaws.account#ValidationException": return [3, 10];
|
|
316
|
+
}
|
|
317
|
+
return [3, 12];
|
|
318
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
319
|
+
case 3: throw _d.sent();
|
|
320
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
321
|
+
case 5: throw _d.sent();
|
|
322
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
323
|
+
case 7: throw _d.sent();
|
|
324
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
325
|
+
case 9: throw _d.sent();
|
|
326
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
327
|
+
case 11: throw _d.sent();
|
|
328
|
+
case 12:
|
|
329
|
+
parsedBody = parsedOutput.body;
|
|
330
|
+
$metadata = deserializeMetadata(output);
|
|
331
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
332
|
+
response = new __BaseException({
|
|
333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
334
|
+
$fault: "client",
|
|
335
|
+
$metadata: $metadata,
|
|
336
|
+
});
|
|
337
|
+
throw __decorateServiceException(response, parsedBody);
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}); };
|
|
218
341
|
export var deserializeAws_restJson1PutAlternateContactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
219
342
|
var contents;
|
|
220
343
|
return __generator(this, function (_a) {
|
|
@@ -278,6 +401,69 @@ var deserializeAws_restJson1PutAlternateContactCommandError = function (output,
|
|
|
278
401
|
}
|
|
279
402
|
});
|
|
280
403
|
}); };
|
|
404
|
+
export var deserializeAws_restJson1PutContactInformationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
405
|
+
var contents;
|
|
406
|
+
return __generator(this, function (_a) {
|
|
407
|
+
switch (_a.label) {
|
|
408
|
+
case 0:
|
|
409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
410
|
+
return [2, deserializeAws_restJson1PutContactInformationCommandError(output, context)];
|
|
411
|
+
}
|
|
412
|
+
contents = {
|
|
413
|
+
$metadata: deserializeMetadata(output),
|
|
414
|
+
};
|
|
415
|
+
return [4, collectBody(output.body, context)];
|
|
416
|
+
case 1:
|
|
417
|
+
_a.sent();
|
|
418
|
+
return [2, Promise.resolve(contents)];
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}); };
|
|
422
|
+
var deserializeAws_restJson1PutContactInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
423
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
424
|
+
var _c;
|
|
425
|
+
return __generator(this, function (_d) {
|
|
426
|
+
switch (_d.label) {
|
|
427
|
+
case 0:
|
|
428
|
+
_a = [__assign({}, output)];
|
|
429
|
+
_c = {};
|
|
430
|
+
return [4, parseBody(output.body, context)];
|
|
431
|
+
case 1:
|
|
432
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
433
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
|
+
_b = errorCode;
|
|
435
|
+
switch (_b) {
|
|
436
|
+
case "AccessDeniedException": return [3, 2];
|
|
437
|
+
case "com.amazonaws.account#AccessDeniedException": return [3, 2];
|
|
438
|
+
case "InternalServerException": return [3, 4];
|
|
439
|
+
case "com.amazonaws.account#InternalServerException": return [3, 4];
|
|
440
|
+
case "TooManyRequestsException": return [3, 6];
|
|
441
|
+
case "com.amazonaws.account#TooManyRequestsException": return [3, 6];
|
|
442
|
+
case "ValidationException": return [3, 8];
|
|
443
|
+
case "com.amazonaws.account#ValidationException": return [3, 8];
|
|
444
|
+
}
|
|
445
|
+
return [3, 10];
|
|
446
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
447
|
+
case 3: throw _d.sent();
|
|
448
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
449
|
+
case 5: throw _d.sent();
|
|
450
|
+
case 6: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
451
|
+
case 7: throw _d.sent();
|
|
452
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
453
|
+
case 9: throw _d.sent();
|
|
454
|
+
case 10:
|
|
455
|
+
parsedBody = parsedOutput.body;
|
|
456
|
+
$metadata = deserializeMetadata(output);
|
|
457
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
458
|
+
response = new __BaseException({
|
|
459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
460
|
+
$fault: "client",
|
|
461
|
+
$metadata: $metadata,
|
|
462
|
+
});
|
|
463
|
+
throw __decorateServiceException(response, parsedBody);
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}); };
|
|
281
467
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
468
|
var contents, data, exception;
|
|
283
469
|
return __generator(this, function (_a) {
|
|
@@ -338,6 +524,9 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
338
524
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
339
525
|
});
|
|
340
526
|
}); };
|
|
527
|
+
var serializeAws_restJson1ContactInformation = function (input, context) {
|
|
528
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressLine1 != null && { AddressLine1: input.AddressLine1 })), (input.AddressLine2 != null && { AddressLine2: input.AddressLine2 })), (input.AddressLine3 != null && { AddressLine3: input.AddressLine3 })), (input.City != null && { City: input.City })), (input.CompanyName != null && { CompanyName: input.CompanyName })), (input.CountryCode != null && { CountryCode: input.CountryCode })), (input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty })), (input.FullName != null && { FullName: input.FullName })), (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber })), (input.PostalCode != null && { PostalCode: input.PostalCode })), (input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion })), (input.WebsiteUrl != null && { WebsiteUrl: input.WebsiteUrl }));
|
|
529
|
+
};
|
|
341
530
|
var deserializeAws_restJson1AlternateContact = function (output, context) {
|
|
342
531
|
return {
|
|
343
532
|
AlternateContactType: __expectString(output.AlternateContactType),
|
|
@@ -347,6 +536,22 @@ var deserializeAws_restJson1AlternateContact = function (output, context) {
|
|
|
347
536
|
Title: __expectString(output.Title),
|
|
348
537
|
};
|
|
349
538
|
};
|
|
539
|
+
var deserializeAws_restJson1ContactInformation = function (output, context) {
|
|
540
|
+
return {
|
|
541
|
+
AddressLine1: __expectString(output.AddressLine1),
|
|
542
|
+
AddressLine2: __expectString(output.AddressLine2),
|
|
543
|
+
AddressLine3: __expectString(output.AddressLine3),
|
|
544
|
+
City: __expectString(output.City),
|
|
545
|
+
CompanyName: __expectString(output.CompanyName),
|
|
546
|
+
CountryCode: __expectString(output.CountryCode),
|
|
547
|
+
DistrictOrCounty: __expectString(output.DistrictOrCounty),
|
|
548
|
+
FullName: __expectString(output.FullName),
|
|
549
|
+
PhoneNumber: __expectString(output.PhoneNumber),
|
|
550
|
+
PostalCode: __expectString(output.PostalCode),
|
|
551
|
+
StateOrRegion: __expectString(output.StateOrRegion),
|
|
552
|
+
WebsiteUrl: __expectString(output.WebsiteUrl),
|
|
553
|
+
};
|
|
554
|
+
};
|
|
350
555
|
var deserializeMetadata = function (output) {
|
|
351
556
|
var _a;
|
|
352
557
|
return ({
|
package/dist-types/Account.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
2
2
|
import { AccountClient } from "./AccountClient";
|
|
3
3
|
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
4
4
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
5
|
+
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
5
6
|
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
7
|
+
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
|
|
6
8
|
/**
|
|
7
9
|
* <p>Operations for Amazon Web Services Account Management</p>
|
|
8
10
|
*/
|
|
@@ -11,6 +13,12 @@ export declare class Account extends AccountClient {
|
|
|
11
13
|
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
|
|
12
14
|
* <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
|
|
13
15
|
* updating the alternate contacts</a>.</p>
|
|
16
|
+
* <note>
|
|
17
|
+
* <p>Before you can update the alternate contact information for an
|
|
18
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
19
|
+
* 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
|
|
20
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
21
|
+
* </note>
|
|
14
22
|
*/
|
|
15
23
|
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlternateContactCommandOutput>;
|
|
16
24
|
deleteAlternateContact(args: DeleteAlternateContactCommandInput, cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void): void;
|
|
@@ -18,17 +26,45 @@ export declare class Account extends AccountClient {
|
|
|
18
26
|
/**
|
|
19
27
|
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
20
28
|
* <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
|
-
*
|
|
29
|
+
* updating the alternate contacts</a>.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>Before you can update the alternate contact information for an
|
|
32
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
33
|
+
* 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
|
|
34
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
35
|
+
* </note>
|
|
22
36
|
*/
|
|
23
37
|
getAlternateContact(args: GetAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<GetAlternateContactCommandOutput>;
|
|
24
38
|
getAlternateContact(args: GetAlternateContactCommandInput, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
25
39
|
getAlternateContact(args: GetAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAlternateContactCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
|
|
42
|
+
* <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
|
|
43
|
+
* the primary and alternate contact information</a>.</p>
|
|
44
|
+
*/
|
|
45
|
+
getContactInformation(args: GetContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<GetContactInformationCommandOutput>;
|
|
46
|
+
getContactInformation(args: GetContactInformationCommandInput, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
47
|
+
getContactInformation(args: GetContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactInformationCommandOutput) => void): void;
|
|
26
48
|
/**
|
|
27
49
|
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
28
50
|
* <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
|
|
29
|
-
*
|
|
51
|
+
* updating the alternate contacts</a>.</p>
|
|
52
|
+
* <note>
|
|
53
|
+
* <p>Before you can update the alternate contact information for an
|
|
54
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
55
|
+
* 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
|
|
56
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
57
|
+
* </note>
|
|
30
58
|
*/
|
|
31
59
|
putAlternateContact(args: PutAlternateContactCommandInput, options?: __HttpHandlerOptions): Promise<PutAlternateContactCommandOutput>;
|
|
32
60
|
putAlternateContact(args: PutAlternateContactCommandInput, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
33
61
|
putAlternateContact(args: PutAlternateContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAlternateContactCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* <p>Updates 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>
|
|
66
|
+
*/
|
|
67
|
+
putContactInformation(args: PutContactInformationCommandInput, options?: __HttpHandlerOptions): Promise<PutContactInformationCommandOutput>;
|
|
68
|
+
putContactInformation(args: PutContactInformationCommandInput, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
69
|
+
putContactInformation(args: PutContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
|
|
34
70
|
}
|
|
@@ -8,9 +8,11 @@ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfig
|
|
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
|
|
10
10
|
import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
|
|
11
|
+
import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
|
|
11
12
|
import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
|
|
12
|
-
|
|
13
|
-
export declare type
|
|
13
|
+
import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
|
|
14
|
+
export declare type ServiceInputTypes = DeleteAlternateContactCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput;
|
|
15
|
+
export declare type ServiceOutputTypes = DeleteAlternateContactCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput;
|
|
14
16
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
17
|
/**
|
|
16
18
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -10,6 +10,12 @@ export interface DeleteAlternateContactCommandOutput extends __MetadataBearer {
|
|
|
10
10
|
* <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
|
|
11
11
|
* <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
|
|
12
12
|
* updating the alternate contacts</a>.</p>
|
|
13
|
+
* <note>
|
|
14
|
+
* <p>Before you can update the alternate contact information for an
|
|
15
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
16
|
+
* 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
|
|
17
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
18
|
+
* </note>
|
|
13
19
|
* @example
|
|
14
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
21
|
* ```javascript
|
|
@@ -9,7 +9,13 @@ export interface GetAlternateContactCommandOutput extends GetAlternateContactRes
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
11
11
|
* <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
|
|
12
|
-
*
|
|
12
|
+
* updating the alternate contacts</a>.</p>
|
|
13
|
+
* <note>
|
|
14
|
+
* <p>Before you can update the alternate contact information for an
|
|
15
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
16
|
+
* 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
|
|
17
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
18
|
+
* </note>
|
|
13
19
|
* @example
|
|
14
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
21
|
* ```javascript
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { GetContactInformationRequest, GetContactInformationResponse } from "../models/models_0";
|
|
5
|
+
export interface GetContactInformationCommandInput extends GetContactInformationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetContactInformationCommandOutput extends GetContactInformationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
|
|
11
|
+
* <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
|
|
12
|
+
* the primary and alternate contact information</a>.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { AccountClient, GetContactInformationCommand } from "@aws-sdk/client-account"; // ES Modules import
|
|
17
|
+
* // const { AccountClient, GetContactInformationCommand } = require("@aws-sdk/client-account"); // CommonJS import
|
|
18
|
+
* const client = new AccountClient(config);
|
|
19
|
+
* const command = new GetContactInformationCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link GetContactInformationCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link GetContactInformationCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetContactInformationCommand extends $Command<GetContactInformationCommandInput, GetContactInformationCommandOutput, AccountClientResolvedConfig> {
|
|
29
|
+
readonly input: GetContactInformationCommandInput;
|
|
30
|
+
constructor(input: GetContactInformationCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetContactInformationCommandInput, GetContactInformationCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -9,7 +9,13 @@ export interface PutAlternateContactCommandOutput extends __MetadataBearer {
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
|
|
11
11
|
* <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
|
|
12
|
-
*
|
|
12
|
+
* updating the alternate contacts</a>.</p>
|
|
13
|
+
* <note>
|
|
14
|
+
* <p>Before you can update the alternate contact information for an
|
|
15
|
+
* Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
|
|
16
|
+
* 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
|
|
17
|
+
* Amazon Web Services Account Management</a>.</p>
|
|
18
|
+
* </note>
|
|
13
19
|
* @example
|
|
14
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
21
|
* ```javascript
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
|
|
4
|
+
import { PutContactInformationRequest } from "../models/models_0";
|
|
5
|
+
export interface PutContactInformationCommandInput extends PutContactInformationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PutContactInformationCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Updates the primary contact information of an Amazon Web Services account.</p>
|
|
11
|
+
* <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
|
|
12
|
+
* the primary and alternate contact information</a>.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { AccountClient, PutContactInformationCommand } from "@aws-sdk/client-account"; // ES Modules import
|
|
17
|
+
* // const { AccountClient, PutContactInformationCommand } = require("@aws-sdk/client-account"); // CommonJS import
|
|
18
|
+
* const client = new AccountClient(config);
|
|
19
|
+
* const command = new PutContactInformationCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link PutContactInformationCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link PutContactInformationCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class PutContactInformationCommand extends $Command<PutContactInformationCommandInput, PutContactInformationCommandOutput, AccountClientResolvedConfig> {
|
|
29
|
+
readonly input: PutContactInformationCommandInput;
|
|
30
|
+
constructor(input: PutContactInformationCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutContactInformationCommandInput, PutContactInformationCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|