@aws-sdk/client-identitystore 3.934.0 → 3.936.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/dist-cjs/index.js CHANGED
@@ -117,9 +117,6 @@ let IdentitystoreServiceException$1 = class IdentitystoreServiceException extend
117
117
  }
118
118
  };
119
119
 
120
- const AccessDeniedExceptionReason = {
121
- KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
122
- };
123
120
  let AccessDeniedException$1 = class AccessDeniedException extends IdentitystoreServiceException$1 {
124
121
  name = "AccessDeniedException";
125
122
  $fault = "client";
@@ -157,15 +154,6 @@ let InternalServerException$1 = class InternalServerException extends Identityst
157
154
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
158
155
  }
159
156
  };
160
- const ResourceNotFoundExceptionReason = {
161
- KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
162
- };
163
- const ResourceType = {
164
- GROUP: "GROUP",
165
- GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
166
- IDENTITY_STORE: "IDENTITY_STORE",
167
- USER: "USER",
168
- };
169
157
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends IdentitystoreServiceException$1 {
170
158
  name = "ResourceNotFoundException";
171
159
  $fault = "client";
@@ -188,9 +176,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends Identi
188
176
  this.RequestId = opts.RequestId;
189
177
  }
190
178
  };
191
- const ThrottlingExceptionReason = {
192
- KMS_THROTTLING: "KMS_THROTTLING",
193
- };
194
179
  let ThrottlingException$1 = class ThrottlingException extends IdentitystoreServiceException$1 {
195
180
  name = "ThrottlingException";
196
181
  $fault = "client";
@@ -214,12 +199,6 @@ let ThrottlingException$1 = class ThrottlingException extends IdentitystoreServi
214
199
  this.Reason = opts.Reason;
215
200
  }
216
201
  };
217
- const ValidationExceptionReason = {
218
- KMS_DISABLED: "KMS_DISABLED",
219
- KMS_INVALID_ARN: "KMS_INVALID_ARN",
220
- KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
221
- KMS_INVALID_STATE: "KMS_INVALID_STATE",
222
- };
223
202
  let ValidationException$1 = class ValidationException extends IdentitystoreServiceException$1 {
224
203
  name = "ValidationException";
225
204
  $fault = "client";
@@ -238,10 +217,6 @@ let ValidationException$1 = class ValidationException extends IdentitystoreServi
238
217
  this.Reason = opts.Reason;
239
218
  }
240
219
  };
241
- const ConflictExceptionReason = {
242
- CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
243
- UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION",
244
- };
245
220
  let ConflictException$1 = class ConflictException extends IdentitystoreServiceException$1 {
246
221
  name = "ConflictException";
247
222
  $fault = "client";
@@ -276,10 +251,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
276
251
  this.RequestId = opts.RequestId;
277
252
  }
278
253
  };
279
- const UserStatus = {
280
- DISABLED: "DISABLED",
281
- ENABLED: "ENABLED",
282
- };
283
254
 
284
255
  const _A = "Address";
285
256
  const _ADE = "AccessDeniedException";
@@ -1314,6 +1285,36 @@ const paginateListGroups = core.createPaginator(IdentitystoreClient, ListGroupsC
1314
1285
 
1315
1286
  const paginateListUsers = core.createPaginator(IdentitystoreClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
1316
1287
 
1288
+ const AccessDeniedExceptionReason = {
1289
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
1290
+ };
1291
+ const ResourceNotFoundExceptionReason = {
1292
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
1293
+ };
1294
+ const ResourceType = {
1295
+ GROUP: "GROUP",
1296
+ GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
1297
+ IDENTITY_STORE: "IDENTITY_STORE",
1298
+ USER: "USER",
1299
+ };
1300
+ const ThrottlingExceptionReason = {
1301
+ KMS_THROTTLING: "KMS_THROTTLING",
1302
+ };
1303
+ const ValidationExceptionReason = {
1304
+ KMS_DISABLED: "KMS_DISABLED",
1305
+ KMS_INVALID_ARN: "KMS_INVALID_ARN",
1306
+ KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
1307
+ KMS_INVALID_STATE: "KMS_INVALID_STATE",
1308
+ };
1309
+ const ConflictExceptionReason = {
1310
+ CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
1311
+ UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION",
1312
+ };
1313
+ const UserStatus = {
1314
+ DISABLED: "DISABLED",
1315
+ ENABLED: "ENABLED",
1316
+ };
1317
+
1317
1318
  Object.defineProperty(exports, "$Command", {
1318
1319
  enumerable: true,
1319
1320
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./IdentitystoreClient";
2
2
  export * from "./Identitystore";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { IdentitystoreServiceException } from "./models/IdentitystoreServiceException";
@@ -0,0 +1,29 @@
1
+ export const AccessDeniedExceptionReason = {
2
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
3
+ };
4
+ export const ResourceNotFoundExceptionReason = {
5
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
6
+ };
7
+ export const ResourceType = {
8
+ GROUP: "GROUP",
9
+ GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
10
+ IDENTITY_STORE: "IDENTITY_STORE",
11
+ USER: "USER",
12
+ };
13
+ export const ThrottlingExceptionReason = {
14
+ KMS_THROTTLING: "KMS_THROTTLING",
15
+ };
16
+ export const ValidationExceptionReason = {
17
+ KMS_DISABLED: "KMS_DISABLED",
18
+ KMS_INVALID_ARN: "KMS_INVALID_ARN",
19
+ KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
20
+ KMS_INVALID_STATE: "KMS_INVALID_STATE",
21
+ };
22
+ export const ConflictExceptionReason = {
23
+ CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
24
+ UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION",
25
+ };
26
+ export const UserStatus = {
27
+ DISABLED: "DISABLED",
28
+ ENABLED: "ENABLED",
29
+ };
@@ -0,0 +1,135 @@
1
+ import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ RequestId;
7
+ Reason;
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ this.RequestId = opts.RequestId;
17
+ this.Reason = opts.Reason;
18
+ }
19
+ }
20
+ export class InternalServerException extends __BaseException {
21
+ name = "InternalServerException";
22
+ $fault = "server";
23
+ $retryable = {};
24
+ Message;
25
+ RequestId;
26
+ RetryAfterSeconds;
27
+ constructor(opts) {
28
+ super({
29
+ name: "InternalServerException",
30
+ $fault: "server",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, InternalServerException.prototype);
34
+ this.Message = opts.Message;
35
+ this.RequestId = opts.RequestId;
36
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
37
+ }
38
+ }
39
+ export class ResourceNotFoundException extends __BaseException {
40
+ name = "ResourceNotFoundException";
41
+ $fault = "client";
42
+ ResourceType;
43
+ ResourceId;
44
+ Reason;
45
+ Message;
46
+ RequestId;
47
+ constructor(opts) {
48
+ super({
49
+ name: "ResourceNotFoundException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
54
+ this.ResourceType = opts.ResourceType;
55
+ this.ResourceId = opts.ResourceId;
56
+ this.Reason = opts.Reason;
57
+ this.Message = opts.Message;
58
+ this.RequestId = opts.RequestId;
59
+ }
60
+ }
61
+ export class ThrottlingException extends __BaseException {
62
+ name = "ThrottlingException";
63
+ $fault = "client";
64
+ $retryable = {
65
+ throttling: true,
66
+ };
67
+ Message;
68
+ RequestId;
69
+ RetryAfterSeconds;
70
+ Reason;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ThrottlingException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
78
+ this.Message = opts.Message;
79
+ this.RequestId = opts.RequestId;
80
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
81
+ this.Reason = opts.Reason;
82
+ }
83
+ }
84
+ export class ValidationException extends __BaseException {
85
+ name = "ValidationException";
86
+ $fault = "client";
87
+ Message;
88
+ RequestId;
89
+ Reason;
90
+ constructor(opts) {
91
+ super({
92
+ name: "ValidationException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ValidationException.prototype);
97
+ this.Message = opts.Message;
98
+ this.RequestId = opts.RequestId;
99
+ this.Reason = opts.Reason;
100
+ }
101
+ }
102
+ export class ConflictException extends __BaseException {
103
+ name = "ConflictException";
104
+ $fault = "client";
105
+ Message;
106
+ RequestId;
107
+ Reason;
108
+ constructor(opts) {
109
+ super({
110
+ name: "ConflictException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ Object.setPrototypeOf(this, ConflictException.prototype);
115
+ this.Message = opts.Message;
116
+ this.RequestId = opts.RequestId;
117
+ this.Reason = opts.Reason;
118
+ }
119
+ }
120
+ export class ServiceQuotaExceededException extends __BaseException {
121
+ name = "ServiceQuotaExceededException";
122
+ $fault = "client";
123
+ Message;
124
+ RequestId;
125
+ constructor(opts) {
126
+ super({
127
+ name: "ServiceQuotaExceededException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
132
+ this.Message = opts.Message;
133
+ this.RequestId = opts.RequestId;
134
+ }
135
+ }
@@ -1,164 +1 @@
1
- import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException";
2
- export const AccessDeniedExceptionReason = {
3
- KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
4
- };
5
- export class AccessDeniedException extends __BaseException {
6
- name = "AccessDeniedException";
7
- $fault = "client";
8
- Message;
9
- RequestId;
10
- Reason;
11
- constructor(opts) {
12
- super({
13
- name: "AccessDeniedException",
14
- $fault: "client",
15
- ...opts,
16
- });
17
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
- this.Message = opts.Message;
19
- this.RequestId = opts.RequestId;
20
- this.Reason = opts.Reason;
21
- }
22
- }
23
- export class InternalServerException extends __BaseException {
24
- name = "InternalServerException";
25
- $fault = "server";
26
- $retryable = {};
27
- Message;
28
- RequestId;
29
- RetryAfterSeconds;
30
- constructor(opts) {
31
- super({
32
- name: "InternalServerException",
33
- $fault: "server",
34
- ...opts,
35
- });
36
- Object.setPrototypeOf(this, InternalServerException.prototype);
37
- this.Message = opts.Message;
38
- this.RequestId = opts.RequestId;
39
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
40
- }
41
- }
42
- export const ResourceNotFoundExceptionReason = {
43
- KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
44
- };
45
- export const ResourceType = {
46
- GROUP: "GROUP",
47
- GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",
48
- IDENTITY_STORE: "IDENTITY_STORE",
49
- USER: "USER",
50
- };
51
- export class ResourceNotFoundException extends __BaseException {
52
- name = "ResourceNotFoundException";
53
- $fault = "client";
54
- ResourceType;
55
- ResourceId;
56
- Reason;
57
- Message;
58
- RequestId;
59
- constructor(opts) {
60
- super({
61
- name: "ResourceNotFoundException",
62
- $fault: "client",
63
- ...opts,
64
- });
65
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
66
- this.ResourceType = opts.ResourceType;
67
- this.ResourceId = opts.ResourceId;
68
- this.Reason = opts.Reason;
69
- this.Message = opts.Message;
70
- this.RequestId = opts.RequestId;
71
- }
72
- }
73
- export const ThrottlingExceptionReason = {
74
- KMS_THROTTLING: "KMS_THROTTLING",
75
- };
76
- export class ThrottlingException extends __BaseException {
77
- name = "ThrottlingException";
78
- $fault = "client";
79
- $retryable = {
80
- throttling: true,
81
- };
82
- Message;
83
- RequestId;
84
- RetryAfterSeconds;
85
- Reason;
86
- constructor(opts) {
87
- super({
88
- name: "ThrottlingException",
89
- $fault: "client",
90
- ...opts,
91
- });
92
- Object.setPrototypeOf(this, ThrottlingException.prototype);
93
- this.Message = opts.Message;
94
- this.RequestId = opts.RequestId;
95
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
96
- this.Reason = opts.Reason;
97
- }
98
- }
99
- export const ValidationExceptionReason = {
100
- KMS_DISABLED: "KMS_DISABLED",
101
- KMS_INVALID_ARN: "KMS_INVALID_ARN",
102
- KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",
103
- KMS_INVALID_STATE: "KMS_INVALID_STATE",
104
- };
105
- export class ValidationException extends __BaseException {
106
- name = "ValidationException";
107
- $fault = "client";
108
- Message;
109
- RequestId;
110
- Reason;
111
- constructor(opts) {
112
- super({
113
- name: "ValidationException",
114
- $fault: "client",
115
- ...opts,
116
- });
117
- Object.setPrototypeOf(this, ValidationException.prototype);
118
- this.Message = opts.Message;
119
- this.RequestId = opts.RequestId;
120
- this.Reason = opts.Reason;
121
- }
122
- }
123
- export const ConflictExceptionReason = {
124
- CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
125
- UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION",
126
- };
127
- export class ConflictException extends __BaseException {
128
- name = "ConflictException";
129
- $fault = "client";
130
- Message;
131
- RequestId;
132
- Reason;
133
- constructor(opts) {
134
- super({
135
- name: "ConflictException",
136
- $fault: "client",
137
- ...opts,
138
- });
139
- Object.setPrototypeOf(this, ConflictException.prototype);
140
- this.Message = opts.Message;
141
- this.RequestId = opts.RequestId;
142
- this.Reason = opts.Reason;
143
- }
144
- }
145
- export class ServiceQuotaExceededException extends __BaseException {
146
- name = "ServiceQuotaExceededException";
147
- $fault = "client";
148
- Message;
149
- RequestId;
150
- constructor(opts) {
151
- super({
152
- name: "ServiceQuotaExceededException",
153
- $fault: "client",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
157
- this.Message = opts.Message;
158
- this.RequestId = opts.RequestId;
159
- }
160
- }
161
- export const UserStatus = {
162
- DISABLED: "DISABLED",
163
- ENABLED: "ENABLED",
164
- };
1
+ export {};
@@ -154,8 +154,8 @@ const _s = "server";
154
154
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.identitystore";
155
155
  const n0 = "com.amazonaws.identitystore";
156
156
  import { TypeRegistry } from "@smithy/core/schema";
157
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
157
158
  import { IdentitystoreServiceException as __IdentitystoreServiceException } from "../models/IdentitystoreServiceException";
158
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
159
159
  export var ExternalIdIdentifier = [0, n0, _EII, 8, 0];
160
160
  export var ExternalIdIssuer = [0, n0, _EIIx, 8, 0];
161
161
  export var GroupDisplayName = [0, n0, _GDN, 8, 0];
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { IdentitystoreExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { IdentitystoreServiceException } from "./models/IdentitystoreServiceException";
@@ -0,0 +1,85 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccessDeniedExceptionReason: {
6
+ readonly KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const ResourceNotFoundExceptionReason: {
17
+ readonly KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND";
18
+ };
19
+ /**
20
+ * @public
21
+ */
22
+ export type ResourceNotFoundExceptionReason = (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
23
+ /**
24
+ * @public
25
+ * @enum
26
+ */
27
+ export declare const ResourceType: {
28
+ readonly GROUP: "GROUP";
29
+ readonly GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP";
30
+ readonly IDENTITY_STORE: "IDENTITY_STORE";
31
+ readonly USER: "USER";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const ThrottlingExceptionReason: {
42
+ readonly KMS_THROTTLING: "KMS_THROTTLING";
43
+ };
44
+ /**
45
+ * @public
46
+ */
47
+ export type ThrottlingExceptionReason = (typeof ThrottlingExceptionReason)[keyof typeof ThrottlingExceptionReason];
48
+ /**
49
+ * @public
50
+ * @enum
51
+ */
52
+ export declare const ValidationExceptionReason: {
53
+ readonly KMS_DISABLED: "KMS_DISABLED";
54
+ readonly KMS_INVALID_ARN: "KMS_INVALID_ARN";
55
+ readonly KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE";
56
+ readonly KMS_INVALID_STATE: "KMS_INVALID_STATE";
57
+ };
58
+ /**
59
+ * @public
60
+ */
61
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
62
+ /**
63
+ * @public
64
+ * @enum
65
+ */
66
+ export declare const ConflictExceptionReason: {
67
+ readonly CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION";
68
+ readonly UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION";
69
+ };
70
+ /**
71
+ * @public
72
+ */
73
+ export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
74
+ /**
75
+ * @public
76
+ * @enum
77
+ */
78
+ export declare const UserStatus: {
79
+ readonly DISABLED: "DISABLED";
80
+ readonly ENABLED: "ENABLED";
81
+ };
82
+ /**
83
+ * @public
84
+ */
85
+ export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus];