@aws-sdk/client-account 3.136.0 → 3.142.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/commands/DeleteAlternateContactCommand.js +1 -1
- package/dist-cjs/commands/GetAlternateContactCommand.js +2 -2
- package/dist-cjs/commands/GetContactInformationCommand.js +2 -2
- package/dist-cjs/commands/PutAlternateContactCommand.js +1 -1
- package/dist-cjs/commands/PutContactInformationCommand.js +1 -1
- package/dist-cjs/models/models_0.js +60 -82
- package/dist-cjs/protocols/Aws_restJson1.js +53 -69
- package/dist-es/commands/DeleteAlternateContactCommand.js +2 -2
- package/dist-es/commands/GetAlternateContactCommand.js +3 -3
- package/dist-es/commands/GetContactInformationCommand.js +3 -3
- package/dist-es/commands/PutAlternateContactCommand.js +2 -2
- package/dist-es/commands/PutContactInformationCommand.js +2 -2
- package/dist-es/models/models_0.js +9 -40
- package/dist-es/protocols/Aws_restJson1.js +69 -70
- package/dist-types/models/models_0.d.ts +36 -54
- package/dist-types/ts3.4/models/models_0.d.ts +18 -36
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
# [3.136.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.135.0...v3.136.0) (2022-07-22)
|
|
7
40
|
|
|
8
41
|
|
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ try {
|
|
|
165
165
|
const data = await client.send(command);
|
|
166
166
|
// process data.
|
|
167
167
|
} catch (error) {
|
|
168
|
-
const { requestId, cfId, extendedRequestId } = error
|
|
168
|
+
const { requestId, cfId, extendedRequestId } = error.$$metadata;
|
|
169
169
|
console.log({ requestId, cfId, extendedRequestId });
|
|
170
170
|
/**
|
|
171
171
|
* The keys within exceptions are also parsed.
|
|
@@ -20,7 +20,7 @@ class DeleteAlternateContactCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteAlternateContactRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -20,8 +20,8 @@ class GetAlternateContactCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetAlternateContactRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetAlternateContactResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,8 +20,8 @@ class GetContactInformationCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetContactInformationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetContactInformationResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,7 +20,7 @@ class PutAlternateContactCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutAlternateContactRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -20,7 +20,7 @@ class PutContactInformationCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutContactInformationRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PutContactInformationRequestFilterSensitiveLog = exports.GetContactInformationResponseFilterSensitiveLog = exports.ContactInformationFilterSensitiveLog = exports.GetContactInformationRequestFilterSensitiveLog = exports.PutAlternateContactRequestFilterSensitiveLog = exports.GetAlternateContactResponseFilterSensitiveLog = exports.AlternateContactFilterSensitiveLog = exports.GetAlternateContactRequestFilterSensitiveLog = exports.DeleteAlternateContactRequestFilterSensitiveLog = exports.ValidationException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AlternateContactType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const AccountServiceException_1 = require("./AccountServiceException");
|
|
6
6
|
class AccessDeniedException extends AccountServiceException_1.AccountServiceException {
|
|
@@ -22,12 +22,6 @@ var AlternateContactType;
|
|
|
22
22
|
AlternateContactType["OPERATIONS"] = "OPERATIONS";
|
|
23
23
|
AlternateContactType["SECURITY"] = "SECURITY";
|
|
24
24
|
})(AlternateContactType = exports.AlternateContactType || (exports.AlternateContactType = {}));
|
|
25
|
-
var DeleteAlternateContactRequest;
|
|
26
|
-
(function (DeleteAlternateContactRequest) {
|
|
27
|
-
DeleteAlternateContactRequest.filterSensitiveLog = (obj) => ({
|
|
28
|
-
...obj,
|
|
29
|
-
});
|
|
30
|
-
})(DeleteAlternateContactRequest = exports.DeleteAlternateContactRequest || (exports.DeleteAlternateContactRequest = {}));
|
|
31
25
|
class InternalServerException extends AccountServiceException_1.AccountServiceException {
|
|
32
26
|
constructor(opts) {
|
|
33
27
|
super({
|
|
@@ -84,78 +78,62 @@ class ValidationException extends AccountServiceException_1.AccountServiceExcept
|
|
|
84
78
|
}
|
|
85
79
|
}
|
|
86
80
|
exports.ValidationException = ValidationException;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
GetContactInformationResponse.filterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
...(obj.ContactInformation && {
|
|
149
|
-
ContactInformation: ContactInformation.filterSensitiveLog(obj.ContactInformation),
|
|
150
|
-
}),
|
|
151
|
-
});
|
|
152
|
-
})(GetContactInformationResponse = exports.GetContactInformationResponse || (exports.GetContactInformationResponse = {}));
|
|
153
|
-
var PutContactInformationRequest;
|
|
154
|
-
(function (PutContactInformationRequest) {
|
|
155
|
-
PutContactInformationRequest.filterSensitiveLog = (obj) => ({
|
|
156
|
-
...obj,
|
|
157
|
-
...(obj.ContactInformation && {
|
|
158
|
-
ContactInformation: ContactInformation.filterSensitiveLog(obj.ContactInformation),
|
|
159
|
-
}),
|
|
160
|
-
});
|
|
161
|
-
})(PutContactInformationRequest = exports.PutContactInformationRequest || (exports.PutContactInformationRequest = {}));
|
|
81
|
+
const DeleteAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
82
|
+
...obj,
|
|
83
|
+
});
|
|
84
|
+
exports.DeleteAlternateContactRequestFilterSensitiveLog = DeleteAlternateContactRequestFilterSensitiveLog;
|
|
85
|
+
const GetAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
86
|
+
...obj,
|
|
87
|
+
});
|
|
88
|
+
exports.GetAlternateContactRequestFilterSensitiveLog = GetAlternateContactRequestFilterSensitiveLog;
|
|
89
|
+
const AlternateContactFilterSensitiveLog = (obj) => ({
|
|
90
|
+
...obj,
|
|
91
|
+
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
92
|
+
...(obj.Title && { Title: smithy_client_1.SENSITIVE_STRING }),
|
|
93
|
+
...(obj.EmailAddress && { EmailAddress: smithy_client_1.SENSITIVE_STRING }),
|
|
94
|
+
...(obj.PhoneNumber && { PhoneNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
95
|
+
});
|
|
96
|
+
exports.AlternateContactFilterSensitiveLog = AlternateContactFilterSensitiveLog;
|
|
97
|
+
const GetAlternateContactResponseFilterSensitiveLog = (obj) => ({
|
|
98
|
+
...obj,
|
|
99
|
+
...(obj.AlternateContact && { AlternateContact: (0, exports.AlternateContactFilterSensitiveLog)(obj.AlternateContact) }),
|
|
100
|
+
});
|
|
101
|
+
exports.GetAlternateContactResponseFilterSensitiveLog = GetAlternateContactResponseFilterSensitiveLog;
|
|
102
|
+
const PutAlternateContactRequestFilterSensitiveLog = (obj) => ({
|
|
103
|
+
...obj,
|
|
104
|
+
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
105
|
+
...(obj.Title && { Title: smithy_client_1.SENSITIVE_STRING }),
|
|
106
|
+
...(obj.EmailAddress && { EmailAddress: smithy_client_1.SENSITIVE_STRING }),
|
|
107
|
+
...(obj.PhoneNumber && { PhoneNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
108
|
+
});
|
|
109
|
+
exports.PutAlternateContactRequestFilterSensitiveLog = PutAlternateContactRequestFilterSensitiveLog;
|
|
110
|
+
const GetContactInformationRequestFilterSensitiveLog = (obj) => ({
|
|
111
|
+
...obj,
|
|
112
|
+
});
|
|
113
|
+
exports.GetContactInformationRequestFilterSensitiveLog = GetContactInformationRequestFilterSensitiveLog;
|
|
114
|
+
const ContactInformationFilterSensitiveLog = (obj) => ({
|
|
115
|
+
...obj,
|
|
116
|
+
...(obj.FullName && { FullName: smithy_client_1.SENSITIVE_STRING }),
|
|
117
|
+
...(obj.AddressLine1 && { AddressLine1: smithy_client_1.SENSITIVE_STRING }),
|
|
118
|
+
...(obj.AddressLine2 && { AddressLine2: smithy_client_1.SENSITIVE_STRING }),
|
|
119
|
+
...(obj.AddressLine3 && { AddressLine3: smithy_client_1.SENSITIVE_STRING }),
|
|
120
|
+
...(obj.City && { City: smithy_client_1.SENSITIVE_STRING }),
|
|
121
|
+
...(obj.StateOrRegion && { StateOrRegion: smithy_client_1.SENSITIVE_STRING }),
|
|
122
|
+
...(obj.DistrictOrCounty && { DistrictOrCounty: smithy_client_1.SENSITIVE_STRING }),
|
|
123
|
+
...(obj.PostalCode && { PostalCode: smithy_client_1.SENSITIVE_STRING }),
|
|
124
|
+
...(obj.CountryCode && { CountryCode: smithy_client_1.SENSITIVE_STRING }),
|
|
125
|
+
...(obj.PhoneNumber && { PhoneNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
126
|
+
...(obj.CompanyName && { CompanyName: smithy_client_1.SENSITIVE_STRING }),
|
|
127
|
+
...(obj.WebsiteUrl && { WebsiteUrl: smithy_client_1.SENSITIVE_STRING }),
|
|
128
|
+
});
|
|
129
|
+
exports.ContactInformationFilterSensitiveLog = ContactInformationFilterSensitiveLog;
|
|
130
|
+
const GetContactInformationResponseFilterSensitiveLog = (obj) => ({
|
|
131
|
+
...obj,
|
|
132
|
+
...(obj.ContactInformation && { ContactInformation: (0, exports.ContactInformationFilterSensitiveLog)(obj.ContactInformation) }),
|
|
133
|
+
});
|
|
134
|
+
exports.GetContactInformationResponseFilterSensitiveLog = GetContactInformationResponseFilterSensitiveLog;
|
|
135
|
+
const PutContactInformationRequestFilterSensitiveLog = (obj) => ({
|
|
136
|
+
...obj,
|
|
137
|
+
...(obj.ContactInformation && { ContactInformation: (0, exports.ContactInformationFilterSensitiveLog)(obj.ContactInformation) }),
|
|
138
|
+
});
|
|
139
|
+
exports.PutContactInformationRequestFilterSensitiveLog = PutContactInformationRequestFilterSensitiveLog;
|
|
@@ -124,11 +124,11 @@ const deserializeAws_restJson1DeleteAlternateContactCommand = async (output, con
|
|
|
124
124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
125
125
|
return deserializeAws_restJson1DeleteAlternateContactCommandError(output, context);
|
|
126
126
|
}
|
|
127
|
-
const contents = {
|
|
127
|
+
const contents = map({
|
|
128
128
|
$metadata: deserializeMetadata(output),
|
|
129
|
-
};
|
|
129
|
+
});
|
|
130
130
|
await collectBody(output.body, context);
|
|
131
|
-
return
|
|
131
|
+
return contents;
|
|
132
132
|
};
|
|
133
133
|
exports.deserializeAws_restJson1DeleteAlternateContactCommand = deserializeAws_restJson1DeleteAlternateContactCommand;
|
|
134
134
|
const deserializeAws_restJson1DeleteAlternateContactCommandError = async (output, context) => {
|
|
@@ -136,7 +136,6 @@ const deserializeAws_restJson1DeleteAlternateContactCommandError = async (output
|
|
|
136
136
|
...output,
|
|
137
137
|
body: await parseBody(output.body, context),
|
|
138
138
|
};
|
|
139
|
-
let response;
|
|
140
139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
141
140
|
switch (errorCode) {
|
|
142
141
|
case "AccessDeniedException":
|
|
@@ -156,29 +155,26 @@ const deserializeAws_restJson1DeleteAlternateContactCommandError = async (output
|
|
|
156
155
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
157
156
|
default:
|
|
158
157
|
const parsedBody = parsedOutput.body;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
$metadata,
|
|
158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
159
|
+
output,
|
|
160
|
+
parsedBody,
|
|
161
|
+
exceptionCtor: AccountServiceException_1.AccountServiceException,
|
|
162
|
+
errorCode,
|
|
165
163
|
});
|
|
166
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
167
164
|
}
|
|
168
165
|
};
|
|
169
166
|
const deserializeAws_restJson1GetAlternateContactCommand = async (output, context) => {
|
|
170
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
171
168
|
return deserializeAws_restJson1GetAlternateContactCommandError(output, context);
|
|
172
169
|
}
|
|
173
|
-
const contents = {
|
|
170
|
+
const contents = map({
|
|
174
171
|
$metadata: deserializeMetadata(output),
|
|
175
|
-
|
|
176
|
-
};
|
|
172
|
+
});
|
|
177
173
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
178
|
-
if (data.AlternateContact
|
|
174
|
+
if (data.AlternateContact != null) {
|
|
179
175
|
contents.AlternateContact = deserializeAws_restJson1AlternateContact(data.AlternateContact, context);
|
|
180
176
|
}
|
|
181
|
-
return
|
|
177
|
+
return contents;
|
|
182
178
|
};
|
|
183
179
|
exports.deserializeAws_restJson1GetAlternateContactCommand = deserializeAws_restJson1GetAlternateContactCommand;
|
|
184
180
|
const deserializeAws_restJson1GetAlternateContactCommandError = async (output, context) => {
|
|
@@ -186,7 +182,6 @@ const deserializeAws_restJson1GetAlternateContactCommandError = async (output, c
|
|
|
186
182
|
...output,
|
|
187
183
|
body: await parseBody(output.body, context),
|
|
188
184
|
};
|
|
189
|
-
let response;
|
|
190
185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
186
|
switch (errorCode) {
|
|
192
187
|
case "AccessDeniedException":
|
|
@@ -206,29 +201,26 @@ const deserializeAws_restJson1GetAlternateContactCommandError = async (output, c
|
|
|
206
201
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
207
202
|
default:
|
|
208
203
|
const parsedBody = parsedOutput.body;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
$metadata,
|
|
204
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
205
|
+
output,
|
|
206
|
+
parsedBody,
|
|
207
|
+
exceptionCtor: AccountServiceException_1.AccountServiceException,
|
|
208
|
+
errorCode,
|
|
215
209
|
});
|
|
216
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
217
210
|
}
|
|
218
211
|
};
|
|
219
212
|
const deserializeAws_restJson1GetContactInformationCommand = async (output, context) => {
|
|
220
213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
221
214
|
return deserializeAws_restJson1GetContactInformationCommandError(output, context);
|
|
222
215
|
}
|
|
223
|
-
const contents = {
|
|
216
|
+
const contents = map({
|
|
224
217
|
$metadata: deserializeMetadata(output),
|
|
225
|
-
|
|
226
|
-
};
|
|
218
|
+
});
|
|
227
219
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
228
|
-
if (data.ContactInformation
|
|
220
|
+
if (data.ContactInformation != null) {
|
|
229
221
|
contents.ContactInformation = deserializeAws_restJson1ContactInformation(data.ContactInformation, context);
|
|
230
222
|
}
|
|
231
|
-
return
|
|
223
|
+
return contents;
|
|
232
224
|
};
|
|
233
225
|
exports.deserializeAws_restJson1GetContactInformationCommand = deserializeAws_restJson1GetContactInformationCommand;
|
|
234
226
|
const deserializeAws_restJson1GetContactInformationCommandError = async (output, context) => {
|
|
@@ -236,7 +228,6 @@ const deserializeAws_restJson1GetContactInformationCommandError = async (output,
|
|
|
236
228
|
...output,
|
|
237
229
|
body: await parseBody(output.body, context),
|
|
238
230
|
};
|
|
239
|
-
let response;
|
|
240
231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
241
232
|
switch (errorCode) {
|
|
242
233
|
case "AccessDeniedException":
|
|
@@ -256,25 +247,23 @@ const deserializeAws_restJson1GetContactInformationCommandError = async (output,
|
|
|
256
247
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
257
248
|
default:
|
|
258
249
|
const parsedBody = parsedOutput.body;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
$metadata,
|
|
250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
251
|
+
output,
|
|
252
|
+
parsedBody,
|
|
253
|
+
exceptionCtor: AccountServiceException_1.AccountServiceException,
|
|
254
|
+
errorCode,
|
|
265
255
|
});
|
|
266
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
267
256
|
}
|
|
268
257
|
};
|
|
269
258
|
const deserializeAws_restJson1PutAlternateContactCommand = async (output, context) => {
|
|
270
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
271
260
|
return deserializeAws_restJson1PutAlternateContactCommandError(output, context);
|
|
272
261
|
}
|
|
273
|
-
const contents = {
|
|
262
|
+
const contents = map({
|
|
274
263
|
$metadata: deserializeMetadata(output),
|
|
275
|
-
};
|
|
264
|
+
});
|
|
276
265
|
await collectBody(output.body, context);
|
|
277
|
-
return
|
|
266
|
+
return contents;
|
|
278
267
|
};
|
|
279
268
|
exports.deserializeAws_restJson1PutAlternateContactCommand = deserializeAws_restJson1PutAlternateContactCommand;
|
|
280
269
|
const deserializeAws_restJson1PutAlternateContactCommandError = async (output, context) => {
|
|
@@ -282,7 +271,6 @@ const deserializeAws_restJson1PutAlternateContactCommandError = async (output, c
|
|
|
282
271
|
...output,
|
|
283
272
|
body: await parseBody(output.body, context),
|
|
284
273
|
};
|
|
285
|
-
let response;
|
|
286
274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
275
|
switch (errorCode) {
|
|
288
276
|
case "AccessDeniedException":
|
|
@@ -299,25 +287,23 @@ const deserializeAws_restJson1PutAlternateContactCommandError = async (output, c
|
|
|
299
287
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
300
288
|
default:
|
|
301
289
|
const parsedBody = parsedOutput.body;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
$metadata,
|
|
290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
291
|
+
output,
|
|
292
|
+
parsedBody,
|
|
293
|
+
exceptionCtor: AccountServiceException_1.AccountServiceException,
|
|
294
|
+
errorCode,
|
|
308
295
|
});
|
|
309
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
310
296
|
}
|
|
311
297
|
};
|
|
312
298
|
const deserializeAws_restJson1PutContactInformationCommand = async (output, context) => {
|
|
313
299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
314
300
|
return deserializeAws_restJson1PutContactInformationCommandError(output, context);
|
|
315
301
|
}
|
|
316
|
-
const contents = {
|
|
302
|
+
const contents = map({
|
|
317
303
|
$metadata: deserializeMetadata(output),
|
|
318
|
-
};
|
|
304
|
+
});
|
|
319
305
|
await collectBody(output.body, context);
|
|
320
|
-
return
|
|
306
|
+
return contents;
|
|
321
307
|
};
|
|
322
308
|
exports.deserializeAws_restJson1PutContactInformationCommand = deserializeAws_restJson1PutContactInformationCommand;
|
|
323
309
|
const deserializeAws_restJson1PutContactInformationCommandError = async (output, context) => {
|
|
@@ -325,7 +311,6 @@ const deserializeAws_restJson1PutContactInformationCommandError = async (output,
|
|
|
325
311
|
...output,
|
|
326
312
|
body: await parseBody(output.body, context),
|
|
327
313
|
};
|
|
328
|
-
let response;
|
|
329
314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
315
|
switch (errorCode) {
|
|
331
316
|
case "AccessDeniedException":
|
|
@@ -342,20 +327,19 @@ const deserializeAws_restJson1PutContactInformationCommandError = async (output,
|
|
|
342
327
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
343
328
|
default:
|
|
344
329
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$metadata,
|
|
330
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
331
|
+
output,
|
|
332
|
+
parsedBody,
|
|
333
|
+
exceptionCtor: AccountServiceException_1.AccountServiceException,
|
|
334
|
+
errorCode,
|
|
351
335
|
});
|
|
352
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
353
336
|
}
|
|
354
337
|
};
|
|
338
|
+
const map = smithy_client_1.map;
|
|
355
339
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
356
|
-
const contents = {};
|
|
340
|
+
const contents = map({});
|
|
357
341
|
const data = parsedOutput.body;
|
|
358
|
-
if (data.message
|
|
342
|
+
if (data.message != null) {
|
|
359
343
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
360
344
|
}
|
|
361
345
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -365,9 +349,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
365
349
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
366
350
|
};
|
|
367
351
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
368
|
-
const contents = {};
|
|
352
|
+
const contents = map({});
|
|
369
353
|
const data = parsedOutput.body;
|
|
370
|
-
if (data.message
|
|
354
|
+
if (data.message != null) {
|
|
371
355
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
372
356
|
}
|
|
373
357
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -377,9 +361,9 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
377
361
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
378
362
|
};
|
|
379
363
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
380
|
-
const contents = {};
|
|
364
|
+
const contents = map({});
|
|
381
365
|
const data = parsedOutput.body;
|
|
382
|
-
if (data.message
|
|
366
|
+
if (data.message != null) {
|
|
383
367
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
384
368
|
}
|
|
385
369
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -389,9 +373,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
389
373
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
390
374
|
};
|
|
391
375
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
392
|
-
const contents = {};
|
|
376
|
+
const contents = map({});
|
|
393
377
|
const data = parsedOutput.body;
|
|
394
|
-
if (data.message
|
|
378
|
+
if (data.message != null) {
|
|
395
379
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
396
380
|
}
|
|
397
381
|
const exception = new models_0_1.TooManyRequestsException({
|
|
@@ -401,9 +385,9 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
401
385
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
402
386
|
};
|
|
403
387
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
404
|
-
const contents = {};
|
|
388
|
+
const contents = map({});
|
|
405
389
|
const data = parsedOutput.body;
|
|
406
|
-
if (data.message
|
|
390
|
+
if (data.message != null) {
|
|
407
391
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
408
392
|
}
|
|
409
393
|
const exception = new models_0_1.ValidationException({
|
|
@@ -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 { DeleteAlternateContactRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteAlternateContactCommand, serializeAws_restJson1DeleteAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteAlternateContactCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteAlternateContactCommand, _super);
|
|
@@ -20,7 +20,7 @@ var DeleteAlternateContactCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteAlternateContactRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
@@ -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 { GetAlternateContactRequestFilterSensitiveLog, GetAlternateContactResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetAlternateContactCommand, serializeAws_restJson1GetAlternateContactCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetAlternateContactCommand = (function (_super) {
|
|
7
7
|
__extends(GetAlternateContactCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetAlternateContactCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetAlternateContactRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetAlternateContactResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -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 { GetContactInformationRequestFilterSensitiveLog, GetContactInformationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetContactInformationCommand, serializeAws_restJson1GetContactInformationCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetContactInformationCommand = (function (_super) {
|
|
7
7
|
__extends(GetContactInformationCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetContactInformationCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetContactInformationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetContactInformationResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -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;
|