@aws-sdk/client-identitystore 3.925.0 → 3.927.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.
Files changed (29) hide show
  1. package/README.md +1 -8
  2. package/dist-cjs/index.js +210 -7
  3. package/dist-es/models/models_0.js +43 -0
  4. package/dist-es/protocols/Aws_json1_1.js +163 -9
  5. package/dist-types/Identitystore.d.ts +1 -8
  6. package/dist-types/IdentitystoreClient.d.ts +1 -8
  7. package/dist-types/commands/CreateGroupCommand.d.ts +1 -9
  8. package/dist-types/commands/CreateGroupMembershipCommand.d.ts +1 -9
  9. package/dist-types/commands/CreateUserCommand.d.ts +12 -10
  10. package/dist-types/commands/DeleteGroupCommand.d.ts +1 -9
  11. package/dist-types/commands/DeleteGroupMembershipCommand.d.ts +1 -9
  12. package/dist-types/commands/DeleteUserCommand.d.ts +1 -9
  13. package/dist-types/commands/DescribeGroupCommand.d.ts +5 -7
  14. package/dist-types/commands/DescribeGroupMembershipCommand.d.ts +5 -6
  15. package/dist-types/commands/DescribeUserCommand.d.ts +18 -8
  16. package/dist-types/commands/GetGroupIdCommand.d.ts +1 -6
  17. package/dist-types/commands/GetGroupMembershipIdCommand.d.ts +1 -6
  18. package/dist-types/commands/GetUserIdCommand.d.ts +2 -7
  19. package/dist-types/commands/IsMemberInGroupsCommand.d.ts +1 -6
  20. package/dist-types/commands/ListGroupMembershipsCommand.d.ts +5 -6
  21. package/dist-types/commands/ListGroupMembershipsForMemberCommand.d.ts +5 -6
  22. package/dist-types/commands/ListGroupsCommand.d.ts +5 -7
  23. package/dist-types/commands/ListUsersCommand.d.ts +18 -9
  24. package/dist-types/commands/UpdateGroupCommand.d.ts +2 -10
  25. package/dist-types/commands/UpdateUserCommand.d.ts +2 -10
  26. package/dist-types/index.d.ts +1 -8
  27. package/dist-types/models/models_0.d.ts +365 -202
  28. package/dist-types/ts3.4/models/models_0.d.ts +80 -6
  29. package/package.json +5 -5
package/README.md CHANGED
@@ -6,14 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript Identitystore Client for Node.js, Browser and React Native.
8
8
 
9
- <p>The Identity Store service used by IAM Identity Center provides a single place to retrieve all of
10
- your identities (users and groups). For more information, see the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">IAM Identity Center User
11
- Guide</a>.</p>
12
- <p>This reference guide describes the identity store operations that you can call
13
- programmatically and includes detailed information about data types and errors.</p>
14
- <note>
15
- <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces.</p>
16
- </note>
9
+ <p>The Identity Store service used by IAM Identity Center provides a single place to retrieve all of your identities (users and groups). For more information, see the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html"> IAM Identity Center User Guide</a>.</p> <p>This reference guide describes the identity store operations that you can call programmatically and includes detailed information about data types and errors.</p> <note> <p> IAM Identity Center uses the <code>sso</code>, <code>sso-directory</code>, and <code>identitystore</code> API namespaces. The <code>sso-directory</code> and <code>identitystore</code> namespaces authorize access to data in the Identity Store. Make sure your policies with IAM actions from these two namespaces are consistent to avoid conflicting authorization to the same data.</p> </note>
17
10
 
18
11
  ## Installing
19
12
 
package/dist-cjs/index.js CHANGED
@@ -117,11 +117,15 @@ class IdentitystoreServiceException extends smithyClient.ServiceException {
117
117
  }
118
118
  }
119
119
 
120
+ const AccessDeniedExceptionReason = {
121
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
122
+ };
120
123
  class AccessDeniedException extends IdentitystoreServiceException {
121
124
  name = "AccessDeniedException";
122
125
  $fault = "client";
123
126
  Message;
124
127
  RequestId;
128
+ Reason;
125
129
  constructor(opts) {
126
130
  super({
127
131
  name: "AccessDeniedException",
@@ -131,6 +135,7 @@ class AccessDeniedException extends IdentitystoreServiceException {
131
135
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
136
  this.Message = opts.Message;
133
137
  this.RequestId = opts.RequestId;
138
+ this.Reason = opts.Reason;
134
139
  }
135
140
  }
136
141
  exports.AlternateIdentifier = void 0;
@@ -162,6 +167,9 @@ class InternalServerException extends IdentitystoreServiceException {
162
167
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
163
168
  }
164
169
  }
170
+ const ResourceNotFoundExceptionReason = {
171
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
172
+ };
165
173
  const ResourceType = {
166
174
  GROUP: "GROUP",
167
175
  GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
@@ -173,6 +181,7 @@ class ResourceNotFoundException extends IdentitystoreServiceException {
173
181
  $fault = "client";
174
182
  ResourceType;
175
183
  ResourceId;
184
+ Reason;
176
185
  Message;
177
186
  RequestId;
178
187
  constructor(opts) {
@@ -184,10 +193,14 @@ class ResourceNotFoundException extends IdentitystoreServiceException {
184
193
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
185
194
  this.ResourceType = opts.ResourceType;
186
195
  this.ResourceId = opts.ResourceId;
196
+ this.Reason = opts.Reason;
187
197
  this.Message = opts.Message;
188
198
  this.RequestId = opts.RequestId;
189
199
  }
190
200
  }
201
+ const ThrottlingExceptionReason = {
202
+ KMS_THROTTLING: "KMS_THROTTLING",
203
+ };
191
204
  class ThrottlingException extends IdentitystoreServiceException {
192
205
  name = "ThrottlingException";
193
206
  $fault = "client";
@@ -197,6 +210,7 @@ class ThrottlingException extends IdentitystoreServiceException {
197
210
  Message;
198
211
  RequestId;
199
212
  RetryAfterSeconds;
213
+ Reason;
200
214
  constructor(opts) {
201
215
  super({
202
216
  name: "ThrottlingException",
@@ -207,13 +221,21 @@ class ThrottlingException extends IdentitystoreServiceException {
207
221
  this.Message = opts.Message;
208
222
  this.RequestId = opts.RequestId;
209
223
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
224
+ this.Reason = opts.Reason;
210
225
  }
211
226
  }
227
+ const ValidationExceptionReason = {
228
+ KMS_DISABLED: "KMS_DISABLED",
229
+ KMS_INVALID_ARN: "KMS_INVALID_ARN",
230
+ KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
231
+ KMS_INVALID_STATE: "KMS_INVALID_STATE",
232
+ };
212
233
  class ValidationException extends IdentitystoreServiceException {
213
234
  name = "ValidationException";
214
235
  $fault = "client";
215
236
  Message;
216
237
  RequestId;
238
+ Reason;
217
239
  constructor(opts) {
218
240
  super({
219
241
  name: "ValidationException",
@@ -223,6 +245,7 @@ class ValidationException extends IdentitystoreServiceException {
223
245
  Object.setPrototypeOf(this, ValidationException.prototype);
224
246
  this.Message = opts.Message;
225
247
  this.RequestId = opts.RequestId;
248
+ this.Reason = opts.Reason;
226
249
  }
227
250
  }
228
251
  exports.MemberId = void 0;
@@ -271,6 +294,10 @@ class ServiceQuotaExceededException extends IdentitystoreServiceException {
271
294
  this.RequestId = opts.RequestId;
272
295
  }
273
296
  }
297
+ const UserStatus = {
298
+ DISABLED: "DISABLED",
299
+ ENABLED: "ENABLED",
300
+ };
274
301
  const AddressFilterSensitiveLog = (obj) => ({
275
302
  ...obj,
276
303
  ...(obj.StreetAddress && { StreetAddress: smithyClient.SENSITIVE_STRING }),
@@ -366,6 +393,13 @@ const PhoneNumberFilterSensitiveLog = (obj) => ({
366
393
  ...(obj.Type && { Type: smithyClient.SENSITIVE_STRING }),
367
394
  ...(obj.Primary && { Primary: smithyClient.SENSITIVE_STRING }),
368
395
  });
396
+ const PhotoFilterSensitiveLog = (obj) => ({
397
+ ...obj,
398
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
399
+ ...(obj.Type && { Type: smithyClient.SENSITIVE_STRING }),
400
+ ...(obj.Display && { Display: smithyClient.SENSITIVE_STRING }),
401
+ ...(obj.Primary && { Primary: smithyClient.SENSITIVE_STRING }),
402
+ });
369
403
  const CreateUserRequestFilterSensitiveLog = (obj) => ({
370
404
  ...obj,
371
405
  ...(obj.UserName && { UserName: smithyClient.SENSITIVE_STRING }),
@@ -381,6 +415,9 @@ const CreateUserRequestFilterSensitiveLog = (obj) => ({
381
415
  ...(obj.PreferredLanguage && { PreferredLanguage: smithyClient.SENSITIVE_STRING }),
382
416
  ...(obj.Locale && { Locale: smithyClient.SENSITIVE_STRING }),
383
417
  ...(obj.Timezone && { Timezone: smithyClient.SENSITIVE_STRING }),
418
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
419
+ ...(obj.Website && { Website: smithyClient.SENSITIVE_STRING }),
420
+ ...(obj.Birthdate && { Birthdate: smithyClient.SENSITIVE_STRING }),
384
421
  });
385
422
  const DescribeUserResponseFilterSensitiveLog = (obj) => ({
386
423
  ...obj,
@@ -398,6 +435,9 @@ const DescribeUserResponseFilterSensitiveLog = (obj) => ({
398
435
  ...(obj.PreferredLanguage && { PreferredLanguage: smithyClient.SENSITIVE_STRING }),
399
436
  ...(obj.Locale && { Locale: smithyClient.SENSITIVE_STRING }),
400
437
  ...(obj.Timezone && { Timezone: smithyClient.SENSITIVE_STRING }),
438
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
439
+ ...(obj.Website && { Website: smithyClient.SENSITIVE_STRING }),
440
+ ...(obj.Birthdate && { Birthdate: smithyClient.SENSITIVE_STRING }),
401
441
  });
402
442
  const ListUsersRequestFilterSensitiveLog = (obj) => ({
403
443
  ...obj,
@@ -419,6 +459,9 @@ const UserFilterSensitiveLog = (obj) => ({
419
459
  ...(obj.PreferredLanguage && { PreferredLanguage: smithyClient.SENSITIVE_STRING }),
420
460
  ...(obj.Locale && { Locale: smithyClient.SENSITIVE_STRING }),
421
461
  ...(obj.Timezone && { Timezone: smithyClient.SENSITIVE_STRING }),
462
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
463
+ ...(obj.Website && { Website: smithyClient.SENSITIVE_STRING }),
464
+ ...(obj.Birthdate && { Birthdate: smithyClient.SENSITIVE_STRING }),
422
465
  });
423
466
  const ListUsersResponseFilterSensitiveLog = (obj) => ({
424
467
  ...obj,
@@ -623,7 +666,7 @@ const de_DescribeGroupCommand = async (output, context) => {
623
666
  }
624
667
  const data = await core$1.parseJsonBody(output.body, context);
625
668
  let contents = {};
626
- contents = smithyClient._json(data);
669
+ contents = de_DescribeGroupResponse(data);
627
670
  const response = {
628
671
  $metadata: deserializeMetadata(output),
629
672
  ...contents,
@@ -636,7 +679,7 @@ const de_DescribeGroupMembershipCommand = async (output, context) => {
636
679
  }
637
680
  const data = await core$1.parseJsonBody(output.body, context);
638
681
  let contents = {};
639
- contents = smithyClient._json(data);
682
+ contents = de_DescribeGroupMembershipResponse(data);
640
683
  const response = {
641
684
  $metadata: deserializeMetadata(output),
642
685
  ...contents,
@@ -649,7 +692,7 @@ const de_DescribeUserCommand = async (output, context) => {
649
692
  }
650
693
  const data = await core$1.parseJsonBody(output.body, context);
651
694
  let contents = {};
652
- contents = smithyClient._json(data);
695
+ contents = de_DescribeUserResponse(data);
653
696
  const response = {
654
697
  $metadata: deserializeMetadata(output),
655
698
  ...contents,
@@ -714,7 +757,7 @@ const de_ListGroupMembershipsCommand = async (output, context) => {
714
757
  }
715
758
  const data = await core$1.parseJsonBody(output.body, context);
716
759
  let contents = {};
717
- contents = smithyClient._json(data);
760
+ contents = de_ListGroupMembershipsResponse(data);
718
761
  const response = {
719
762
  $metadata: deserializeMetadata(output),
720
763
  ...contents,
@@ -727,7 +770,7 @@ const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
727
770
  }
728
771
  const data = await core$1.parseJsonBody(output.body, context);
729
772
  let contents = {};
730
- contents = smithyClient._json(data);
773
+ contents = de_ListGroupMembershipsForMemberResponse(data);
731
774
  const response = {
732
775
  $metadata: deserializeMetadata(output),
733
776
  ...contents,
@@ -740,7 +783,7 @@ const de_ListGroupsCommand = async (output, context) => {
740
783
  }
741
784
  const data = await core$1.parseJsonBody(output.body, context);
742
785
  let contents = {};
743
- contents = smithyClient._json(data);
786
+ contents = de_ListGroupsResponse(data);
744
787
  const response = {
745
788
  $metadata: deserializeMetadata(output),
746
789
  ...contents,
@@ -753,7 +796,7 @@ const de_ListUsersCommand = async (output, context) => {
753
796
  }
754
797
  const data = await core$1.parseJsonBody(output.body, context);
755
798
  let contents = {};
756
- contents = smithyClient._json(data);
799
+ contents = de_ListUsersResponse(data);
757
800
  const response = {
758
801
  $metadata: deserializeMetadata(output),
759
802
  ...contents,
@@ -941,6 +984,160 @@ const se_UpdateUserRequest = (input, context) => {
941
984
  UserId: [],
942
985
  });
943
986
  };
987
+ const de_DescribeGroupMembershipResponse = (output, context) => {
988
+ return smithyClient.take(output, {
989
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
990
+ CreatedBy: smithyClient.expectString,
991
+ GroupId: smithyClient.expectString,
992
+ IdentityStoreId: smithyClient.expectString,
993
+ MemberId: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
994
+ MembershipId: smithyClient.expectString,
995
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
996
+ UpdatedBy: smithyClient.expectString,
997
+ });
998
+ };
999
+ const de_DescribeGroupResponse = (output, context) => {
1000
+ return smithyClient.take(output, {
1001
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1002
+ CreatedBy: smithyClient.expectString,
1003
+ Description: smithyClient.expectString,
1004
+ DisplayName: smithyClient.expectString,
1005
+ ExternalIds: smithyClient._json,
1006
+ GroupId: smithyClient.expectString,
1007
+ IdentityStoreId: smithyClient.expectString,
1008
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1009
+ UpdatedBy: smithyClient.expectString,
1010
+ });
1011
+ };
1012
+ const de_DescribeUserResponse = (output, context) => {
1013
+ return smithyClient.take(output, {
1014
+ Addresses: smithyClient._json,
1015
+ Birthdate: smithyClient.expectString,
1016
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1017
+ CreatedBy: smithyClient.expectString,
1018
+ DisplayName: smithyClient.expectString,
1019
+ Emails: smithyClient._json,
1020
+ ExternalIds: smithyClient._json,
1021
+ IdentityStoreId: smithyClient.expectString,
1022
+ Locale: smithyClient.expectString,
1023
+ Name: smithyClient._json,
1024
+ NickName: smithyClient.expectString,
1025
+ PhoneNumbers: smithyClient._json,
1026
+ Photos: smithyClient._json,
1027
+ PreferredLanguage: smithyClient.expectString,
1028
+ ProfileUrl: smithyClient.expectString,
1029
+ Timezone: smithyClient.expectString,
1030
+ Title: smithyClient.expectString,
1031
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1032
+ UpdatedBy: smithyClient.expectString,
1033
+ UserId: smithyClient.expectString,
1034
+ UserName: smithyClient.expectString,
1035
+ UserStatus: smithyClient.expectString,
1036
+ UserType: smithyClient.expectString,
1037
+ Website: smithyClient.expectString,
1038
+ });
1039
+ };
1040
+ const de_Group = (output, context) => {
1041
+ return smithyClient.take(output, {
1042
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1043
+ CreatedBy: smithyClient.expectString,
1044
+ Description: smithyClient.expectString,
1045
+ DisplayName: smithyClient.expectString,
1046
+ ExternalIds: smithyClient._json,
1047
+ GroupId: smithyClient.expectString,
1048
+ IdentityStoreId: smithyClient.expectString,
1049
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1050
+ UpdatedBy: smithyClient.expectString,
1051
+ });
1052
+ };
1053
+ const de_GroupMembership = (output, context) => {
1054
+ return smithyClient.take(output, {
1055
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1056
+ CreatedBy: smithyClient.expectString,
1057
+ GroupId: smithyClient.expectString,
1058
+ IdentityStoreId: smithyClient.expectString,
1059
+ MemberId: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1060
+ MembershipId: smithyClient.expectString,
1061
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1062
+ UpdatedBy: smithyClient.expectString,
1063
+ });
1064
+ };
1065
+ const de_GroupMemberships = (output, context) => {
1066
+ const retVal = (output || [])
1067
+ .filter((e) => e != null)
1068
+ .map((entry) => {
1069
+ return de_GroupMembership(entry);
1070
+ });
1071
+ return retVal;
1072
+ };
1073
+ const de_Groups = (output, context) => {
1074
+ const retVal = (output || [])
1075
+ .filter((e) => e != null)
1076
+ .map((entry) => {
1077
+ return de_Group(entry);
1078
+ });
1079
+ return retVal;
1080
+ };
1081
+ const de_ListGroupMembershipsForMemberResponse = (output, context) => {
1082
+ return smithyClient.take(output, {
1083
+ GroupMemberships: (_) => de_GroupMemberships(_),
1084
+ NextToken: smithyClient.expectString,
1085
+ });
1086
+ };
1087
+ const de_ListGroupMembershipsResponse = (output, context) => {
1088
+ return smithyClient.take(output, {
1089
+ GroupMemberships: (_) => de_GroupMemberships(_),
1090
+ NextToken: smithyClient.expectString,
1091
+ });
1092
+ };
1093
+ const de_ListGroupsResponse = (output, context) => {
1094
+ return smithyClient.take(output, {
1095
+ Groups: (_) => de_Groups(_),
1096
+ NextToken: smithyClient.expectString,
1097
+ });
1098
+ };
1099
+ const de_ListUsersResponse = (output, context) => {
1100
+ return smithyClient.take(output, {
1101
+ NextToken: smithyClient.expectString,
1102
+ Users: (_) => de_Users(_),
1103
+ });
1104
+ };
1105
+ const de_User = (output, context) => {
1106
+ return smithyClient.take(output, {
1107
+ Addresses: smithyClient._json,
1108
+ Birthdate: smithyClient.expectString,
1109
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1110
+ CreatedBy: smithyClient.expectString,
1111
+ DisplayName: smithyClient.expectString,
1112
+ Emails: smithyClient._json,
1113
+ ExternalIds: smithyClient._json,
1114
+ IdentityStoreId: smithyClient.expectString,
1115
+ Locale: smithyClient.expectString,
1116
+ Name: smithyClient._json,
1117
+ NickName: smithyClient.expectString,
1118
+ PhoneNumbers: smithyClient._json,
1119
+ Photos: smithyClient._json,
1120
+ PreferredLanguage: smithyClient.expectString,
1121
+ ProfileUrl: smithyClient.expectString,
1122
+ Timezone: smithyClient.expectString,
1123
+ Title: smithyClient.expectString,
1124
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1125
+ UpdatedBy: smithyClient.expectString,
1126
+ UserId: smithyClient.expectString,
1127
+ UserName: smithyClient.expectString,
1128
+ UserStatus: smithyClient.expectString,
1129
+ UserType: smithyClient.expectString,
1130
+ Website: smithyClient.expectString,
1131
+ });
1132
+ };
1133
+ const de_Users = (output, context) => {
1134
+ const retVal = (output || [])
1135
+ .filter((e) => e != null)
1136
+ .map((entry) => {
1137
+ return de_User(entry);
1138
+ });
1139
+ return retVal;
1140
+ };
944
1141
  const deserializeMetadata = (output) => ({
945
1142
  httpStatusCode: output.statusCode,
946
1143
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1335,6 +1532,7 @@ Object.defineProperty(exports, "__Client", {
1335
1532
  get: function () { return smithyClient.Client; }
1336
1533
  });
1337
1534
  exports.AccessDeniedException = AccessDeniedException;
1535
+ exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
1338
1536
  exports.AddressFilterSensitiveLog = AddressFilterSensitiveLog;
1339
1537
  exports.AlternateIdentifierFilterSensitiveLog = AlternateIdentifierFilterSensitiveLog;
1340
1538
  exports.ConflictException = ConflictException;
@@ -1378,14 +1576,19 @@ exports.ListUsersRequestFilterSensitiveLog = ListUsersRequestFilterSensitiveLog;
1378
1576
  exports.ListUsersResponseFilterSensitiveLog = ListUsersResponseFilterSensitiveLog;
1379
1577
  exports.NameFilterSensitiveLog = NameFilterSensitiveLog;
1380
1578
  exports.PhoneNumberFilterSensitiveLog = PhoneNumberFilterSensitiveLog;
1579
+ exports.PhotoFilterSensitiveLog = PhotoFilterSensitiveLog;
1381
1580
  exports.ResourceNotFoundException = ResourceNotFoundException;
1581
+ exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
1382
1582
  exports.ResourceType = ResourceType;
1383
1583
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1384
1584
  exports.ThrottlingException = ThrottlingException;
1585
+ exports.ThrottlingExceptionReason = ThrottlingExceptionReason;
1385
1586
  exports.UpdateGroupCommand = UpdateGroupCommand;
1386
1587
  exports.UpdateUserCommand = UpdateUserCommand;
1387
1588
  exports.UserFilterSensitiveLog = UserFilterSensitiveLog;
1589
+ exports.UserStatus = UserStatus;
1388
1590
  exports.ValidationException = ValidationException;
1591
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1389
1592
  exports.paginateListGroupMemberships = paginateListGroupMemberships;
1390
1593
  exports.paginateListGroupMembershipsForMember = paginateListGroupMembershipsForMember;
1391
1594
  exports.paginateListGroups = paginateListGroups;
@@ -1,10 +1,14 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException";
3
+ export const AccessDeniedExceptionReason = {
4
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
5
+ };
3
6
  export class AccessDeniedException extends __BaseException {
4
7
  name = "AccessDeniedException";
5
8
  $fault = "client";
6
9
  Message;
7
10
  RequestId;
11
+ Reason;
8
12
  constructor(opts) {
9
13
  super({
10
14
  name: "AccessDeniedException",
@@ -14,6 +18,7 @@ export class AccessDeniedException extends __BaseException {
14
18
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
19
  this.Message = opts.Message;
16
20
  this.RequestId = opts.RequestId;
21
+ this.Reason = opts.Reason;
17
22
  }
18
23
  }
19
24
  export var AlternateIdentifier;
@@ -45,6 +50,9 @@ export class InternalServerException extends __BaseException {
45
50
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
46
51
  }
47
52
  }
53
+ export const ResourceNotFoundExceptionReason = {
54
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
55
+ };
48
56
  export const ResourceType = {
49
57
  GROUP: "GROUP",
50
58
  GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
@@ -56,6 +64,7 @@ export class ResourceNotFoundException extends __BaseException {
56
64
  $fault = "client";
57
65
  ResourceType;
58
66
  ResourceId;
67
+ Reason;
59
68
  Message;
60
69
  RequestId;
61
70
  constructor(opts) {
@@ -67,10 +76,14 @@ export class ResourceNotFoundException extends __BaseException {
67
76
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
77
  this.ResourceType = opts.ResourceType;
69
78
  this.ResourceId = opts.ResourceId;
79
+ this.Reason = opts.Reason;
70
80
  this.Message = opts.Message;
71
81
  this.RequestId = opts.RequestId;
72
82
  }
73
83
  }
84
+ export const ThrottlingExceptionReason = {
85
+ KMS_THROTTLING: "KMS_THROTTLING",
86
+ };
74
87
  export class ThrottlingException extends __BaseException {
75
88
  name = "ThrottlingException";
76
89
  $fault = "client";
@@ -80,6 +93,7 @@ export class ThrottlingException extends __BaseException {
80
93
  Message;
81
94
  RequestId;
82
95
  RetryAfterSeconds;
96
+ Reason;
83
97
  constructor(opts) {
84
98
  super({
85
99
  name: "ThrottlingException",
@@ -90,13 +104,21 @@ export class ThrottlingException extends __BaseException {
90
104
  this.Message = opts.Message;
91
105
  this.RequestId = opts.RequestId;
92
106
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
107
+ this.Reason = opts.Reason;
93
108
  }
94
109
  }
110
+ export const ValidationExceptionReason = {
111
+ KMS_DISABLED: "KMS_DISABLED",
112
+ KMS_INVALID_ARN: "KMS_INVALID_ARN",
113
+ KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
114
+ KMS_INVALID_STATE: "KMS_INVALID_STATE",
115
+ };
95
116
  export class ValidationException extends __BaseException {
96
117
  name = "ValidationException";
97
118
  $fault = "client";
98
119
  Message;
99
120
  RequestId;
121
+ Reason;
100
122
  constructor(opts) {
101
123
  super({
102
124
  name: "ValidationException",
@@ -106,6 +128,7 @@ export class ValidationException extends __BaseException {
106
128
  Object.setPrototypeOf(this, ValidationException.prototype);
107
129
  this.Message = opts.Message;
108
130
  this.RequestId = opts.RequestId;
131
+ this.Reason = opts.Reason;
109
132
  }
110
133
  }
111
134
  export var MemberId;
@@ -154,6 +177,10 @@ export class ServiceQuotaExceededException extends __BaseException {
154
177
  this.RequestId = opts.RequestId;
155
178
  }
156
179
  }
180
+ export const UserStatus = {
181
+ DISABLED: "DISABLED",
182
+ ENABLED: "ENABLED",
183
+ };
157
184
  export const AddressFilterSensitiveLog = (obj) => ({
158
185
  ...obj,
159
186
  ...(obj.StreetAddress && { StreetAddress: SENSITIVE_STRING }),
@@ -249,6 +276,13 @@ export const PhoneNumberFilterSensitiveLog = (obj) => ({
249
276
  ...(obj.Type && { Type: SENSITIVE_STRING }),
250
277
  ...(obj.Primary && { Primary: SENSITIVE_STRING }),
251
278
  });
279
+ export const PhotoFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ ...(obj.Value && { Value: SENSITIVE_STRING }),
282
+ ...(obj.Type && { Type: SENSITIVE_STRING }),
283
+ ...(obj.Display && { Display: SENSITIVE_STRING }),
284
+ ...(obj.Primary && { Primary: SENSITIVE_STRING }),
285
+ });
252
286
  export const CreateUserRequestFilterSensitiveLog = (obj) => ({
253
287
  ...obj,
254
288
  ...(obj.UserName && { UserName: SENSITIVE_STRING }),
@@ -264,6 +298,9 @@ export const CreateUserRequestFilterSensitiveLog = (obj) => ({
264
298
  ...(obj.PreferredLanguage && { PreferredLanguage: SENSITIVE_STRING }),
265
299
  ...(obj.Locale && { Locale: SENSITIVE_STRING }),
266
300
  ...(obj.Timezone && { Timezone: SENSITIVE_STRING }),
301
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
302
+ ...(obj.Website && { Website: SENSITIVE_STRING }),
303
+ ...(obj.Birthdate && { Birthdate: SENSITIVE_STRING }),
267
304
  });
268
305
  export const DescribeUserResponseFilterSensitiveLog = (obj) => ({
269
306
  ...obj,
@@ -281,6 +318,9 @@ export const DescribeUserResponseFilterSensitiveLog = (obj) => ({
281
318
  ...(obj.PreferredLanguage && { PreferredLanguage: SENSITIVE_STRING }),
282
319
  ...(obj.Locale && { Locale: SENSITIVE_STRING }),
283
320
  ...(obj.Timezone && { Timezone: SENSITIVE_STRING }),
321
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
322
+ ...(obj.Website && { Website: SENSITIVE_STRING }),
323
+ ...(obj.Birthdate && { Birthdate: SENSITIVE_STRING }),
284
324
  });
285
325
  export const ListUsersRequestFilterSensitiveLog = (obj) => ({
286
326
  ...obj,
@@ -302,6 +342,9 @@ export const UserFilterSensitiveLog = (obj) => ({
302
342
  ...(obj.PreferredLanguage && { PreferredLanguage: SENSITIVE_STRING }),
303
343
  ...(obj.Locale && { Locale: SENSITIVE_STRING }),
304
344
  ...(obj.Timezone && { Timezone: SENSITIVE_STRING }),
345
+ ...(obj.Photos && { Photos: obj.Photos.map((item) => PhotoFilterSensitiveLog(item)) }),
346
+ ...(obj.Website && { Website: SENSITIVE_STRING }),
347
+ ...(obj.Birthdate && { Birthdate: SENSITIVE_STRING }),
305
348
  });
306
349
  export const ListUsersResponseFilterSensitiveLog = (obj) => ({
307
350
  ...obj,