@aws-sdk/client-identitystore 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/IdentitystoreServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +79 -1
- package/dist-cjs/protocols/Aws_json1_1.js +57 -187
- package/dist-es/index.js +1 -0
- package/dist-es/models/IdentitystoreServiceException.js +12 -0
- package/dist-es/models/models_0.js +74 -1
- package/dist-es/protocols/Aws_json1_1.js +110 -194
- package/dist-types/IdentitystoreClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/IdentitystoreServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/IdentitystoreClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/IdentitystoreServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-identitystore
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-identitystore
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-identitystore
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentitystoreServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Identitystore"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./IdentitystoreClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var IdentitystoreServiceException_1 = require("./models/IdentitystoreServiceException");
|
|
11
|
+
Object.defineProperty(exports, "IdentitystoreServiceException", { enumerable: true, get: function () { return IdentitystoreServiceException_1.IdentitystoreServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentitystoreServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class IdentitystoreServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, IdentitystoreServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.IdentitystoreServiceException = IdentitystoreServiceException;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListUsersResponse = exports.User = exports.ListUsersRequest = exports.ListGroupsResponse = exports.Group = exports.ListGroupsRequest = exports.Filter = exports.DescribeUserResponse = exports.DescribeUserRequest = exports.ResourceType = exports.DescribeGroupResponse = exports.DescribeGroupRequest = void 0;
|
|
3
|
+
exports.ListUsersResponse = exports.User = exports.ListUsersRequest = exports.ListGroupsResponse = exports.Group = exports.ListGroupsRequest = exports.Filter = exports.DescribeUserResponse = exports.DescribeUserRequest = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.DescribeGroupResponse = exports.DescribeGroupRequest = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const IdentitystoreServiceException_1 = require("./IdentitystoreServiceException");
|
|
6
|
+
class AccessDeniedException extends IdentitystoreServiceException_1.IdentitystoreServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
this.RequestId = opts.RequestId;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
5
21
|
var DescribeGroupRequest;
|
|
6
22
|
(function (DescribeGroupRequest) {
|
|
7
23
|
DescribeGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -14,12 +30,74 @@ var DescribeGroupResponse;
|
|
|
14
30
|
...obj,
|
|
15
31
|
});
|
|
16
32
|
})(DescribeGroupResponse = exports.DescribeGroupResponse || (exports.DescribeGroupResponse = {}));
|
|
33
|
+
class InternalServerException extends IdentitystoreServiceException_1.IdentitystoreServiceException {
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InternalServerException",
|
|
37
|
+
$fault: "server",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
this.name = "InternalServerException";
|
|
41
|
+
this.$fault = "server";
|
|
42
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
43
|
+
this.Message = opts.Message;
|
|
44
|
+
this.RequestId = opts.RequestId;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.InternalServerException = InternalServerException;
|
|
17
48
|
var ResourceType;
|
|
18
49
|
(function (ResourceType) {
|
|
19
50
|
ResourceType["GROUP"] = "GROUP";
|
|
20
51
|
ResourceType["IDENTITY_STORE"] = "IDENTITY_STORE";
|
|
21
52
|
ResourceType["USER"] = "USER";
|
|
22
53
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
54
|
+
class ResourceNotFoundException extends IdentitystoreServiceException_1.IdentitystoreServiceException {
|
|
55
|
+
constructor(opts) {
|
|
56
|
+
super({
|
|
57
|
+
name: "ResourceNotFoundException",
|
|
58
|
+
$fault: "client",
|
|
59
|
+
...opts,
|
|
60
|
+
});
|
|
61
|
+
this.name = "ResourceNotFoundException";
|
|
62
|
+
this.$fault = "client";
|
|
63
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
64
|
+
this.ResourceType = opts.ResourceType;
|
|
65
|
+
this.ResourceId = opts.ResourceId;
|
|
66
|
+
this.Message = opts.Message;
|
|
67
|
+
this.RequestId = opts.RequestId;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
71
|
+
class ThrottlingException extends IdentitystoreServiceException_1.IdentitystoreServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "ThrottlingException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "ThrottlingException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
81
|
+
this.Message = opts.Message;
|
|
82
|
+
this.RequestId = opts.RequestId;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.ThrottlingException = ThrottlingException;
|
|
86
|
+
class ValidationException extends IdentitystoreServiceException_1.IdentitystoreServiceException {
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "ValidationException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
this.name = "ValidationException";
|
|
94
|
+
this.$fault = "client";
|
|
95
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
96
|
+
this.Message = opts.Message;
|
|
97
|
+
this.RequestId = opts.RequestId;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ValidationException = ValidationException;
|
|
23
101
|
var DescribeUserRequest;
|
|
24
102
|
(function (DescribeUserRequest) {
|
|
25
103
|
DescribeUserRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListGroupsCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeGroupCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListGroupsCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeGroupCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const IdentitystoreServiceException_1 = require("../models/IdentitystoreServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1DescribeGroupCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -68,59 +70,28 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
68
70
|
switch (errorCode) {
|
|
69
71
|
case "AccessDeniedException":
|
|
70
72
|
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
71
|
-
|
|
72
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
73
|
-
name: errorCode,
|
|
74
|
-
$metadata: deserializeMetadata(output),
|
|
75
|
-
};
|
|
76
|
-
break;
|
|
73
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
77
74
|
case "InternalServerException":
|
|
78
75
|
case "com.amazonaws.identitystore#InternalServerException":
|
|
79
|
-
|
|
80
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
81
|
-
name: errorCode,
|
|
82
|
-
$metadata: deserializeMetadata(output),
|
|
83
|
-
};
|
|
84
|
-
break;
|
|
76
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
85
77
|
case "ResourceNotFoundException":
|
|
86
78
|
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
87
|
-
|
|
88
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
89
|
-
name: errorCode,
|
|
90
|
-
$metadata: deserializeMetadata(output),
|
|
91
|
-
};
|
|
92
|
-
break;
|
|
79
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
93
80
|
case "ThrottlingException":
|
|
94
81
|
case "com.amazonaws.identitystore#ThrottlingException":
|
|
95
|
-
|
|
96
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
97
|
-
name: errorCode,
|
|
98
|
-
$metadata: deserializeMetadata(output),
|
|
99
|
-
};
|
|
100
|
-
break;
|
|
82
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
101
83
|
case "ValidationException":
|
|
102
84
|
case "com.amazonaws.identitystore#ValidationException":
|
|
103
|
-
|
|
104
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
105
|
-
name: errorCode,
|
|
106
|
-
$metadata: deserializeMetadata(output),
|
|
107
|
-
};
|
|
108
|
-
break;
|
|
85
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
109
86
|
default:
|
|
110
87
|
const parsedBody = parsedOutput.body;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
...parsedBody,
|
|
114
|
-
name: `${errorCode}`,
|
|
115
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
88
|
+
response = new IdentitystoreServiceException_1.IdentitystoreServiceException({
|
|
89
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
116
90
|
$fault: "client",
|
|
117
91
|
$metadata: deserializeMetadata(output),
|
|
118
|
-
};
|
|
92
|
+
});
|
|
93
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
119
94
|
}
|
|
120
|
-
const message = response.message || response.Message || errorCode;
|
|
121
|
-
response.message = message;
|
|
122
|
-
delete response.Message;
|
|
123
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
124
95
|
};
|
|
125
96
|
const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
|
|
126
97
|
if (output.statusCode >= 300) {
|
|
@@ -147,59 +118,28 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
147
118
|
switch (errorCode) {
|
|
148
119
|
case "AccessDeniedException":
|
|
149
120
|
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
150
|
-
|
|
151
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
152
|
-
name: errorCode,
|
|
153
|
-
$metadata: deserializeMetadata(output),
|
|
154
|
-
};
|
|
155
|
-
break;
|
|
121
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
156
122
|
case "InternalServerException":
|
|
157
123
|
case "com.amazonaws.identitystore#InternalServerException":
|
|
158
|
-
|
|
159
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
160
|
-
name: errorCode,
|
|
161
|
-
$metadata: deserializeMetadata(output),
|
|
162
|
-
};
|
|
163
|
-
break;
|
|
124
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
164
125
|
case "ResourceNotFoundException":
|
|
165
126
|
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
166
|
-
|
|
167
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
168
|
-
name: errorCode,
|
|
169
|
-
$metadata: deserializeMetadata(output),
|
|
170
|
-
};
|
|
171
|
-
break;
|
|
127
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
172
128
|
case "ThrottlingException":
|
|
173
129
|
case "com.amazonaws.identitystore#ThrottlingException":
|
|
174
|
-
|
|
175
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
176
|
-
name: errorCode,
|
|
177
|
-
$metadata: deserializeMetadata(output),
|
|
178
|
-
};
|
|
179
|
-
break;
|
|
130
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
180
131
|
case "ValidationException":
|
|
181
132
|
case "com.amazonaws.identitystore#ValidationException":
|
|
182
|
-
|
|
183
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
184
|
-
name: errorCode,
|
|
185
|
-
$metadata: deserializeMetadata(output),
|
|
186
|
-
};
|
|
187
|
-
break;
|
|
133
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
188
134
|
default:
|
|
189
135
|
const parsedBody = parsedOutput.body;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
...parsedBody,
|
|
193
|
-
name: `${errorCode}`,
|
|
194
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
136
|
+
response = new IdentitystoreServiceException_1.IdentitystoreServiceException({
|
|
137
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
195
138
|
$fault: "client",
|
|
196
139
|
$metadata: deserializeMetadata(output),
|
|
197
|
-
};
|
|
140
|
+
});
|
|
141
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
198
142
|
}
|
|
199
|
-
const message = response.message || response.Message || errorCode;
|
|
200
|
-
response.message = message;
|
|
201
|
-
delete response.Message;
|
|
202
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
203
143
|
};
|
|
204
144
|
const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
|
|
205
145
|
if (output.statusCode >= 300) {
|
|
@@ -226,59 +166,28 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
226
166
|
switch (errorCode) {
|
|
227
167
|
case "AccessDeniedException":
|
|
228
168
|
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
229
|
-
|
|
230
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
231
|
-
name: errorCode,
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
};
|
|
234
|
-
break;
|
|
169
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
235
170
|
case "InternalServerException":
|
|
236
171
|
case "com.amazonaws.identitystore#InternalServerException":
|
|
237
|
-
|
|
238
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
239
|
-
name: errorCode,
|
|
240
|
-
$metadata: deserializeMetadata(output),
|
|
241
|
-
};
|
|
242
|
-
break;
|
|
172
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
243
173
|
case "ResourceNotFoundException":
|
|
244
174
|
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
245
|
-
|
|
246
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
247
|
-
name: errorCode,
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
};
|
|
250
|
-
break;
|
|
175
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
251
176
|
case "ThrottlingException":
|
|
252
177
|
case "com.amazonaws.identitystore#ThrottlingException":
|
|
253
|
-
|
|
254
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
255
|
-
name: errorCode,
|
|
256
|
-
$metadata: deserializeMetadata(output),
|
|
257
|
-
};
|
|
258
|
-
break;
|
|
178
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
259
179
|
case "ValidationException":
|
|
260
180
|
case "com.amazonaws.identitystore#ValidationException":
|
|
261
|
-
|
|
262
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
181
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
267
182
|
default:
|
|
268
183
|
const parsedBody = parsedOutput.body;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
...parsedBody,
|
|
272
|
-
name: `${errorCode}`,
|
|
273
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
184
|
+
response = new IdentitystoreServiceException_1.IdentitystoreServiceException({
|
|
185
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
274
186
|
$fault: "client",
|
|
275
187
|
$metadata: deserializeMetadata(output),
|
|
276
|
-
};
|
|
188
|
+
});
|
|
189
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
277
190
|
}
|
|
278
|
-
const message = response.message || response.Message || errorCode;
|
|
279
|
-
response.message = message;
|
|
280
|
-
delete response.Message;
|
|
281
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
282
191
|
};
|
|
283
192
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
284
193
|
if (output.statusCode >= 300) {
|
|
@@ -305,114 +214,73 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
305
214
|
switch (errorCode) {
|
|
306
215
|
case "AccessDeniedException":
|
|
307
216
|
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
308
|
-
|
|
309
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
310
|
-
name: errorCode,
|
|
311
|
-
$metadata: deserializeMetadata(output),
|
|
312
|
-
};
|
|
313
|
-
break;
|
|
217
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
314
218
|
case "InternalServerException":
|
|
315
219
|
case "com.amazonaws.identitystore#InternalServerException":
|
|
316
|
-
|
|
317
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
318
|
-
name: errorCode,
|
|
319
|
-
$metadata: deserializeMetadata(output),
|
|
320
|
-
};
|
|
321
|
-
break;
|
|
220
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
322
221
|
case "ResourceNotFoundException":
|
|
323
222
|
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
324
|
-
|
|
325
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
326
|
-
name: errorCode,
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
};
|
|
329
|
-
break;
|
|
223
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
330
224
|
case "ThrottlingException":
|
|
331
225
|
case "com.amazonaws.identitystore#ThrottlingException":
|
|
332
|
-
|
|
333
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
334
|
-
name: errorCode,
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
};
|
|
337
|
-
break;
|
|
226
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
338
227
|
case "ValidationException":
|
|
339
228
|
case "com.amazonaws.identitystore#ValidationException":
|
|
340
|
-
|
|
341
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
342
|
-
name: errorCode,
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
break;
|
|
229
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
346
230
|
default:
|
|
347
231
|
const parsedBody = parsedOutput.body;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
...parsedBody,
|
|
351
|
-
name: `${errorCode}`,
|
|
352
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
232
|
+
response = new IdentitystoreServiceException_1.IdentitystoreServiceException({
|
|
233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
353
234
|
$fault: "client",
|
|
354
235
|
$metadata: deserializeMetadata(output),
|
|
355
|
-
};
|
|
236
|
+
});
|
|
237
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
356
238
|
}
|
|
357
|
-
const message = response.message || response.Message || errorCode;
|
|
358
|
-
response.message = message;
|
|
359
|
-
delete response.Message;
|
|
360
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
361
239
|
};
|
|
362
240
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
363
241
|
const body = parsedOutput.body;
|
|
364
242
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
365
|
-
const
|
|
366
|
-
name: "AccessDeniedException",
|
|
367
|
-
$fault: "client",
|
|
243
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
368
244
|
$metadata: deserializeMetadata(parsedOutput),
|
|
369
245
|
...deserialized,
|
|
370
|
-
};
|
|
371
|
-
return
|
|
246
|
+
});
|
|
247
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
372
248
|
};
|
|
373
249
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
374
250
|
const body = parsedOutput.body;
|
|
375
251
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
376
|
-
const
|
|
377
|
-
name: "InternalServerException",
|
|
378
|
-
$fault: "server",
|
|
252
|
+
const exception = new models_0_1.InternalServerException({
|
|
379
253
|
$metadata: deserializeMetadata(parsedOutput),
|
|
380
254
|
...deserialized,
|
|
381
|
-
};
|
|
382
|
-
return
|
|
255
|
+
});
|
|
256
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
383
257
|
};
|
|
384
258
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
385
259
|
const body = parsedOutput.body;
|
|
386
260
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
387
|
-
const
|
|
388
|
-
name: "ResourceNotFoundException",
|
|
389
|
-
$fault: "client",
|
|
261
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
390
262
|
$metadata: deserializeMetadata(parsedOutput),
|
|
391
263
|
...deserialized,
|
|
392
|
-
};
|
|
393
|
-
return
|
|
264
|
+
});
|
|
265
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
394
266
|
};
|
|
395
267
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
396
268
|
const body = parsedOutput.body;
|
|
397
269
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
398
|
-
const
|
|
399
|
-
name: "ThrottlingException",
|
|
400
|
-
$fault: "client",
|
|
270
|
+
const exception = new models_0_1.ThrottlingException({
|
|
401
271
|
$metadata: deserializeMetadata(parsedOutput),
|
|
402
272
|
...deserialized,
|
|
403
|
-
};
|
|
404
|
-
return
|
|
273
|
+
});
|
|
274
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
405
275
|
};
|
|
406
276
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
407
277
|
const body = parsedOutput.body;
|
|
408
278
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
409
|
-
const
|
|
410
|
-
name: "ValidationException",
|
|
411
|
-
$fault: "client",
|
|
279
|
+
const exception = new models_0_1.ValidationException({
|
|
412
280
|
$metadata: deserializeMetadata(parsedOutput),
|
|
413
281
|
...deserialized,
|
|
414
|
-
};
|
|
415
|
-
return
|
|
282
|
+
});
|
|
283
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
416
284
|
};
|
|
417
285
|
const serializeAws_json1_1DescribeGroupRequest = (input, context) => {
|
|
418
286
|
return {
|
|
@@ -490,7 +358,7 @@ const deserializeAws_json1_1Group = (output, context) => {
|
|
|
490
358
|
};
|
|
491
359
|
};
|
|
492
360
|
const deserializeAws_json1_1Groups = (output, context) => {
|
|
493
|
-
|
|
361
|
+
const retVal = (output || [])
|
|
494
362
|
.filter((e) => e != null)
|
|
495
363
|
.map((entry) => {
|
|
496
364
|
if (entry === null) {
|
|
@@ -498,6 +366,7 @@ const deserializeAws_json1_1Groups = (output, context) => {
|
|
|
498
366
|
}
|
|
499
367
|
return deserializeAws_json1_1Group(entry, context);
|
|
500
368
|
});
|
|
369
|
+
return retVal;
|
|
501
370
|
};
|
|
502
371
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
503
372
|
return {
|
|
@@ -542,7 +411,7 @@ const deserializeAws_json1_1User = (output, context) => {
|
|
|
542
411
|
};
|
|
543
412
|
};
|
|
544
413
|
const deserializeAws_json1_1Users = (output, context) => {
|
|
545
|
-
|
|
414
|
+
const retVal = (output || [])
|
|
546
415
|
.filter((e) => e != null)
|
|
547
416
|
.map((entry) => {
|
|
548
417
|
if (entry === null) {
|
|
@@ -550,6 +419,7 @@ const deserializeAws_json1_1Users = (output, context) => {
|
|
|
550
419
|
}
|
|
551
420
|
return deserializeAws_json1_1User(entry, context);
|
|
552
421
|
});
|
|
422
|
+
return retVal;
|
|
553
423
|
};
|
|
554
424
|
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
555
425
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var IdentitystoreServiceException = (function (_super) {
|
|
4
|
+
__extends(IdentitystoreServiceException, _super);
|
|
5
|
+
function IdentitystoreServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, IdentitystoreServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return IdentitystoreServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { IdentitystoreServiceException };
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException";
|
|
4
|
+
var AccessDeniedException = (function (_super) {
|
|
5
|
+
__extends(AccessDeniedException, _super);
|
|
6
|
+
function AccessDeniedException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "AccessDeniedException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
11
|
+
_this.Message = opts.Message;
|
|
12
|
+
_this.RequestId = opts.RequestId;
|
|
13
|
+
return _this;
|
|
14
|
+
}
|
|
15
|
+
return AccessDeniedException;
|
|
16
|
+
}(__BaseException));
|
|
17
|
+
export { AccessDeniedException };
|
|
3
18
|
export var DescribeGroupRequest;
|
|
4
19
|
(function (DescribeGroupRequest) {
|
|
5
20
|
DescribeGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -8,12 +23,70 @@ export var DescribeGroupResponse;
|
|
|
8
23
|
(function (DescribeGroupResponse) {
|
|
9
24
|
DescribeGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
25
|
})(DescribeGroupResponse || (DescribeGroupResponse = {}));
|
|
26
|
+
var InternalServerException = (function (_super) {
|
|
27
|
+
__extends(InternalServerException, _super);
|
|
28
|
+
function InternalServerException(opts) {
|
|
29
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
30
|
+
_this.name = "InternalServerException";
|
|
31
|
+
_this.$fault = "server";
|
|
32
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
33
|
+
_this.Message = opts.Message;
|
|
34
|
+
_this.RequestId = opts.RequestId;
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return InternalServerException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { InternalServerException };
|
|
11
40
|
export var ResourceType;
|
|
12
41
|
(function (ResourceType) {
|
|
13
42
|
ResourceType["GROUP"] = "GROUP";
|
|
14
43
|
ResourceType["IDENTITY_STORE"] = "IDENTITY_STORE";
|
|
15
44
|
ResourceType["USER"] = "USER";
|
|
16
45
|
})(ResourceType || (ResourceType = {}));
|
|
46
|
+
var ResourceNotFoundException = (function (_super) {
|
|
47
|
+
__extends(ResourceNotFoundException, _super);
|
|
48
|
+
function ResourceNotFoundException(opts) {
|
|
49
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
50
|
+
_this.name = "ResourceNotFoundException";
|
|
51
|
+
_this.$fault = "client";
|
|
52
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
53
|
+
_this.ResourceType = opts.ResourceType;
|
|
54
|
+
_this.ResourceId = opts.ResourceId;
|
|
55
|
+
_this.Message = opts.Message;
|
|
56
|
+
_this.RequestId = opts.RequestId;
|
|
57
|
+
return _this;
|
|
58
|
+
}
|
|
59
|
+
return ResourceNotFoundException;
|
|
60
|
+
}(__BaseException));
|
|
61
|
+
export { ResourceNotFoundException };
|
|
62
|
+
var ThrottlingException = (function (_super) {
|
|
63
|
+
__extends(ThrottlingException, _super);
|
|
64
|
+
function ThrottlingException(opts) {
|
|
65
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
66
|
+
_this.name = "ThrottlingException";
|
|
67
|
+
_this.$fault = "client";
|
|
68
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
69
|
+
_this.Message = opts.Message;
|
|
70
|
+
_this.RequestId = opts.RequestId;
|
|
71
|
+
return _this;
|
|
72
|
+
}
|
|
73
|
+
return ThrottlingException;
|
|
74
|
+
}(__BaseException));
|
|
75
|
+
export { ThrottlingException };
|
|
76
|
+
var ValidationException = (function (_super) {
|
|
77
|
+
__extends(ValidationException, _super);
|
|
78
|
+
function ValidationException(opts) {
|
|
79
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
80
|
+
_this.name = "ValidationException";
|
|
81
|
+
_this.$fault = "client";
|
|
82
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
83
|
+
_this.Message = opts.Message;
|
|
84
|
+
_this.RequestId = opts.RequestId;
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
return ValidationException;
|
|
88
|
+
}(__BaseException));
|
|
89
|
+
export { ValidationException };
|
|
17
90
|
export var DescribeUserRequest;
|
|
18
91
|
(function (DescribeUserRequest) {
|
|
19
92
|
DescribeUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|