@aws-sdk/client-directory-service-data 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 +50 -49
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +49 -0
- package/dist-es/models/errors.js +112 -0
- package/dist-es/models/models_0.js +1 -161
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +105 -0
- package/dist-types/models/errors.d.ts +132 -0
- package/dist-types/models/models_0.d.ts +1 -236
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +59 -0
- package/dist-types/ts3.4/models/errors.d.ts +70 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -124
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { DirectoryServiceDataServiceException as __BaseException } from "./DirectoryServiceDataServiceException";
|
|
3
|
+
import { AccessDeniedReason, DirectoryUnavailableReason, ValidationExceptionReason } from "./enums";
|
|
4
|
+
/**
|
|
5
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
6
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
7
|
+
* outside of your organizational unit (OU). </p>
|
|
8
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
9
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
10
|
+
* of your OU. </p>
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
14
|
+
readonly name: "AccessDeniedException";
|
|
15
|
+
readonly $fault: "client";
|
|
16
|
+
Message?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* <p> Reason the request was unauthorized. </p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
Reason?: AccessDeniedReason | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
29
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
30
|
+
* in.</p>
|
|
31
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
32
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
33
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
34
|
+
* request. </p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare class ConflictException extends __BaseException {
|
|
38
|
+
readonly name: "ConflictException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
Message?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
48
|
+
* of the specified directory. </p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export declare class DirectoryUnavailableException extends __BaseException {
|
|
52
|
+
readonly name: "DirectoryUnavailableException";
|
|
53
|
+
readonly $fault: "client";
|
|
54
|
+
$retryable: {};
|
|
55
|
+
Message?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* <p> Reason the request failed for the specified directory. </p>
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
Reason?: DirectoryUnavailableReason | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
constructor(opts: __ExceptionOptionType<DirectoryUnavailableException, __BaseException>);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class InternalServerException extends __BaseException {
|
|
71
|
+
readonly name: "InternalServerException";
|
|
72
|
+
readonly $fault: "server";
|
|
73
|
+
$retryable: {};
|
|
74
|
+
Message?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* <p> The resource couldn't be found. </p>
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
85
|
+
readonly name: "ResourceNotFoundException";
|
|
86
|
+
readonly $fault: "client";
|
|
87
|
+
Message?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class ThrottlingException extends __BaseException {
|
|
98
|
+
readonly name: "ThrottlingException";
|
|
99
|
+
readonly $fault: "client";
|
|
100
|
+
$retryable: {
|
|
101
|
+
throttling: boolean;
|
|
102
|
+
};
|
|
103
|
+
Message: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* <p> The recommended amount of seconds to retry after a throttling exception. </p>
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
RetryAfterSeconds?: number | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
116
|
+
* parameters or values in your request. </p>
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare class ValidationException extends __BaseException {
|
|
120
|
+
readonly name: "ValidationException";
|
|
121
|
+
readonly $fault: "client";
|
|
122
|
+
Message?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* <p> Reason the request failed validation. </p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
Reason?: ValidationExceptionReason | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
132
|
+
}
|
|
@@ -1,41 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DirectoryServiceDataServiceException as __BaseException } from "./DirectoryServiceDataServiceException";
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
* @enum
|
|
6
|
-
*/
|
|
7
|
-
export declare const AccessDeniedReason: {
|
|
8
|
-
readonly DATA_DISABLED: "DATA_DISABLED";
|
|
9
|
-
readonly DIRECTORY_AUTH: "DIRECTORY_AUTH";
|
|
10
|
-
readonly IAM_AUTH: "IAM_AUTH";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export type AccessDeniedReason = (typeof AccessDeniedReason)[keyof typeof AccessDeniedReason];
|
|
16
|
-
/**
|
|
17
|
-
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
18
|
-
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
19
|
-
* outside of your organizational unit (OU). </p>
|
|
20
|
-
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
21
|
-
* Review the directory information in the request, and make sure that the object isn't outside
|
|
22
|
-
* of your OU. </p>
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
26
|
-
readonly name: "AccessDeniedException";
|
|
27
|
-
readonly $fault: "client";
|
|
28
|
-
Message?: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* <p> Reason the request was unauthorized. </p>
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
Reason?: AccessDeniedReason | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
38
|
-
}
|
|
1
|
+
import { GroupScope, GroupType, MemberType, UpdateType } from "./enums";
|
|
39
2
|
/**
|
|
40
3
|
* @public
|
|
41
4
|
*/
|
|
@@ -86,152 +49,6 @@ export interface AddGroupMemberRequest {
|
|
|
86
49
|
*/
|
|
87
50
|
export interface AddGroupMemberResult {
|
|
88
51
|
}
|
|
89
|
-
/**
|
|
90
|
-
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
91
|
-
* object. It can also occur when adding a member to a group that the member is already
|
|
92
|
-
* in.</p>
|
|
93
|
-
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
94
|
-
* same client token but different input parameters. Client tokens should not be re-used across
|
|
95
|
-
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
96
|
-
* request. </p>
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
export declare class ConflictException extends __BaseException {
|
|
100
|
-
readonly name: "ConflictException";
|
|
101
|
-
readonly $fault: "client";
|
|
102
|
-
Message?: string | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* @public
|
|
110
|
-
* @enum
|
|
111
|
-
*/
|
|
112
|
-
export declare const DirectoryUnavailableReason: {
|
|
113
|
-
readonly DIRECTORY_RESOURCES_EXCEEDED: "DIRECTORY_RESOURCES_EXCEEDED";
|
|
114
|
-
readonly DIRECTORY_TIMEOUT: "DIRECTORY_TIMEOUT";
|
|
115
|
-
readonly INVALID_DIRECTORY_STATE: "INVALID_DIRECTORY_STATE";
|
|
116
|
-
readonly NO_DISK_SPACE: "NO_DISK_SPACE";
|
|
117
|
-
readonly TRUST_AUTH_FAILURE: "TRUST_AUTH_FAILURE";
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* @public
|
|
121
|
-
*/
|
|
122
|
-
export type DirectoryUnavailableReason = (typeof DirectoryUnavailableReason)[keyof typeof DirectoryUnavailableReason];
|
|
123
|
-
/**
|
|
124
|
-
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
125
|
-
* of the specified directory. </p>
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
export declare class DirectoryUnavailableException extends __BaseException {
|
|
129
|
-
readonly name: "DirectoryUnavailableException";
|
|
130
|
-
readonly $fault: "client";
|
|
131
|
-
$retryable: {};
|
|
132
|
-
Message?: string | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* <p> Reason the request failed for the specified directory. </p>
|
|
135
|
-
* @public
|
|
136
|
-
*/
|
|
137
|
-
Reason?: DirectoryUnavailableReason | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
constructor(opts: __ExceptionOptionType<DirectoryUnavailableException, __BaseException>);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
145
|
-
* @public
|
|
146
|
-
*/
|
|
147
|
-
export declare class InternalServerException extends __BaseException {
|
|
148
|
-
readonly name: "InternalServerException";
|
|
149
|
-
readonly $fault: "server";
|
|
150
|
-
$retryable: {};
|
|
151
|
-
Message?: string | undefined;
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
155
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* <p> The resource couldn't be found. </p>
|
|
159
|
-
* @public
|
|
160
|
-
*/
|
|
161
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
162
|
-
readonly name: "ResourceNotFoundException";
|
|
163
|
-
readonly $fault: "client";
|
|
164
|
-
Message?: string | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
172
|
-
* @public
|
|
173
|
-
*/
|
|
174
|
-
export declare class ThrottlingException extends __BaseException {
|
|
175
|
-
readonly name: "ThrottlingException";
|
|
176
|
-
readonly $fault: "client";
|
|
177
|
-
$retryable: {
|
|
178
|
-
throttling: boolean;
|
|
179
|
-
};
|
|
180
|
-
Message: string | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* <p> The recommended amount of seconds to retry after a throttling exception. </p>
|
|
183
|
-
* @public
|
|
184
|
-
*/
|
|
185
|
-
RetryAfterSeconds?: number | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* @public
|
|
193
|
-
* @enum
|
|
194
|
-
*/
|
|
195
|
-
export declare const ValidationExceptionReason: {
|
|
196
|
-
readonly ATTRIBUTE_EXISTS: "ATTRIBUTE_EXISTS";
|
|
197
|
-
readonly DUPLICATE_ATTRIBUTE: "DUPLICATE_ATTRIBUTE";
|
|
198
|
-
readonly INVALID_ATTRIBUTE_FOR_GROUP: "INVALID_ATTRIBUTE_FOR_GROUP";
|
|
199
|
-
readonly INVALID_ATTRIBUTE_FOR_MODIFY: "INVALID_ATTRIBUTE_FOR_MODIFY";
|
|
200
|
-
readonly INVALID_ATTRIBUTE_FOR_SEARCH: "INVALID_ATTRIBUTE_FOR_SEARCH";
|
|
201
|
-
readonly INVALID_ATTRIBUTE_FOR_USER: "INVALID_ATTRIBUTE_FOR_USER";
|
|
202
|
-
readonly INVALID_ATTRIBUTE_NAME: "INVALID_ATTRIBUTE_NAME";
|
|
203
|
-
readonly INVALID_ATTRIBUTE_VALUE: "INVALID_ATTRIBUTE_VALUE";
|
|
204
|
-
readonly INVALID_DIRECTORY_TYPE: "INVALID_DIRECTORY_TYPE";
|
|
205
|
-
readonly INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN";
|
|
206
|
-
readonly INVALID_REALM: "INVALID_REALM";
|
|
207
|
-
readonly INVALID_SECONDARY_REGION: "INVALID_SECONDARY_REGION";
|
|
208
|
-
readonly LDAP_SIZE_LIMIT_EXCEEDED: "LDAP_SIZE_LIMIT_EXCEEDED";
|
|
209
|
-
readonly LDAP_UNSUPPORTED_OPERATION: "LDAP_UNSUPPORTED_OPERATION";
|
|
210
|
-
readonly MISSING_ATTRIBUTE: "MISSING_ATTRIBUTE";
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* @public
|
|
214
|
-
*/
|
|
215
|
-
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
216
|
-
/**
|
|
217
|
-
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
218
|
-
* parameters or values in your request. </p>
|
|
219
|
-
* @public
|
|
220
|
-
*/
|
|
221
|
-
export declare class ValidationException extends __BaseException {
|
|
222
|
-
readonly name: "ValidationException";
|
|
223
|
-
readonly $fault: "client";
|
|
224
|
-
Message?: string | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* <p> Reason the request failed validation. </p>
|
|
227
|
-
* @public
|
|
228
|
-
*/
|
|
229
|
-
Reason?: ValidationExceptionReason | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* @internal
|
|
232
|
-
*/
|
|
233
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
234
|
-
}
|
|
235
52
|
/**
|
|
236
53
|
* <p> The data type for an attribute. Each attribute value is described as a name-value pair.
|
|
237
54
|
* The name is the AD schema name, and the value is the data itself. For a list of supported
|
|
@@ -323,32 +140,6 @@ export declare namespace AttributeValue {
|
|
|
323
140
|
_: (name: string, value: any) => T;
|
|
324
141
|
}
|
|
325
142
|
}
|
|
326
|
-
/**
|
|
327
|
-
* @public
|
|
328
|
-
* @enum
|
|
329
|
-
*/
|
|
330
|
-
export declare const GroupScope: {
|
|
331
|
-
readonly BUILTIN_LOCAL: "BuiltinLocal";
|
|
332
|
-
readonly DOMAIN_LOCAL: "DomainLocal";
|
|
333
|
-
readonly GLOBAL: "Global";
|
|
334
|
-
readonly UNIVERSAL: "Universal";
|
|
335
|
-
};
|
|
336
|
-
/**
|
|
337
|
-
* @public
|
|
338
|
-
*/
|
|
339
|
-
export type GroupScope = (typeof GroupScope)[keyof typeof GroupScope];
|
|
340
|
-
/**
|
|
341
|
-
* @public
|
|
342
|
-
* @enum
|
|
343
|
-
*/
|
|
344
|
-
export declare const GroupType: {
|
|
345
|
-
readonly DISTRIBUTION: "Distribution";
|
|
346
|
-
readonly SECURITY: "Security";
|
|
347
|
-
};
|
|
348
|
-
/**
|
|
349
|
-
* @public
|
|
350
|
-
*/
|
|
351
|
-
export type GroupType = (typeof GroupType)[keyof typeof GroupType];
|
|
352
143
|
/**
|
|
353
144
|
* @public
|
|
354
145
|
*/
|
|
@@ -811,19 +602,6 @@ export interface ListGroupMembersRequest {
|
|
|
811
602
|
*/
|
|
812
603
|
MaxResults?: number | undefined;
|
|
813
604
|
}
|
|
814
|
-
/**
|
|
815
|
-
* @public
|
|
816
|
-
* @enum
|
|
817
|
-
*/
|
|
818
|
-
export declare const MemberType: {
|
|
819
|
-
readonly COMPUTER: "COMPUTER";
|
|
820
|
-
readonly GROUP: "GROUP";
|
|
821
|
-
readonly USER: "USER";
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* @public
|
|
825
|
-
*/
|
|
826
|
-
export type MemberType = (typeof MemberType)[keyof typeof MemberType];
|
|
827
605
|
/**
|
|
828
606
|
* <p>A member object that contains identifying information for a specified member.</p>
|
|
829
607
|
* @public
|
|
@@ -1416,19 +1194,6 @@ export interface SearchUsersResult {
|
|
|
1416
1194
|
*/
|
|
1417
1195
|
NextToken?: string | undefined;
|
|
1418
1196
|
}
|
|
1419
|
-
/**
|
|
1420
|
-
* @public
|
|
1421
|
-
* @enum
|
|
1422
|
-
*/
|
|
1423
|
-
export declare const UpdateType: {
|
|
1424
|
-
readonly ADD: "ADD";
|
|
1425
|
-
readonly REMOVE: "REMOVE";
|
|
1426
|
-
readonly REPLACE: "REPLACE";
|
|
1427
|
-
};
|
|
1428
|
-
/**
|
|
1429
|
-
* @public
|
|
1430
|
-
*/
|
|
1431
|
-
export type UpdateType = (typeof UpdateType)[keyof typeof UpdateType];
|
|
1432
1197
|
/**
|
|
1433
1198
|
* @public
|
|
1434
1199
|
*/
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { DirectoryServiceDataExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { DirectoryServiceDataServiceException } from "./models/DirectoryServiceDataServiceException";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const AccessDeniedReason: {
|
|
2
|
+
readonly DATA_DISABLED: "DATA_DISABLED";
|
|
3
|
+
readonly DIRECTORY_AUTH: "DIRECTORY_AUTH";
|
|
4
|
+
readonly IAM_AUTH: "IAM_AUTH";
|
|
5
|
+
};
|
|
6
|
+
export type AccessDeniedReason =
|
|
7
|
+
(typeof AccessDeniedReason)[keyof typeof AccessDeniedReason];
|
|
8
|
+
export declare const DirectoryUnavailableReason: {
|
|
9
|
+
readonly DIRECTORY_RESOURCES_EXCEEDED: "DIRECTORY_RESOURCES_EXCEEDED";
|
|
10
|
+
readonly DIRECTORY_TIMEOUT: "DIRECTORY_TIMEOUT";
|
|
11
|
+
readonly INVALID_DIRECTORY_STATE: "INVALID_DIRECTORY_STATE";
|
|
12
|
+
readonly NO_DISK_SPACE: "NO_DISK_SPACE";
|
|
13
|
+
readonly TRUST_AUTH_FAILURE: "TRUST_AUTH_FAILURE";
|
|
14
|
+
};
|
|
15
|
+
export type DirectoryUnavailableReason =
|
|
16
|
+
(typeof DirectoryUnavailableReason)[keyof typeof DirectoryUnavailableReason];
|
|
17
|
+
export declare const ValidationExceptionReason: {
|
|
18
|
+
readonly ATTRIBUTE_EXISTS: "ATTRIBUTE_EXISTS";
|
|
19
|
+
readonly DUPLICATE_ATTRIBUTE: "DUPLICATE_ATTRIBUTE";
|
|
20
|
+
readonly INVALID_ATTRIBUTE_FOR_GROUP: "INVALID_ATTRIBUTE_FOR_GROUP";
|
|
21
|
+
readonly INVALID_ATTRIBUTE_FOR_MODIFY: "INVALID_ATTRIBUTE_FOR_MODIFY";
|
|
22
|
+
readonly INVALID_ATTRIBUTE_FOR_SEARCH: "INVALID_ATTRIBUTE_FOR_SEARCH";
|
|
23
|
+
readonly INVALID_ATTRIBUTE_FOR_USER: "INVALID_ATTRIBUTE_FOR_USER";
|
|
24
|
+
readonly INVALID_ATTRIBUTE_NAME: "INVALID_ATTRIBUTE_NAME";
|
|
25
|
+
readonly INVALID_ATTRIBUTE_VALUE: "INVALID_ATTRIBUTE_VALUE";
|
|
26
|
+
readonly INVALID_DIRECTORY_TYPE: "INVALID_DIRECTORY_TYPE";
|
|
27
|
+
readonly INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN";
|
|
28
|
+
readonly INVALID_REALM: "INVALID_REALM";
|
|
29
|
+
readonly INVALID_SECONDARY_REGION: "INVALID_SECONDARY_REGION";
|
|
30
|
+
readonly LDAP_SIZE_LIMIT_EXCEEDED: "LDAP_SIZE_LIMIT_EXCEEDED";
|
|
31
|
+
readonly LDAP_UNSUPPORTED_OPERATION: "LDAP_UNSUPPORTED_OPERATION";
|
|
32
|
+
readonly MISSING_ATTRIBUTE: "MISSING_ATTRIBUTE";
|
|
33
|
+
};
|
|
34
|
+
export type ValidationExceptionReason =
|
|
35
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
36
|
+
export declare const GroupScope: {
|
|
37
|
+
readonly BUILTIN_LOCAL: "BuiltinLocal";
|
|
38
|
+
readonly DOMAIN_LOCAL: "DomainLocal";
|
|
39
|
+
readonly GLOBAL: "Global";
|
|
40
|
+
readonly UNIVERSAL: "Universal";
|
|
41
|
+
};
|
|
42
|
+
export type GroupScope = (typeof GroupScope)[keyof typeof GroupScope];
|
|
43
|
+
export declare const GroupType: {
|
|
44
|
+
readonly DISTRIBUTION: "Distribution";
|
|
45
|
+
readonly SECURITY: "Security";
|
|
46
|
+
};
|
|
47
|
+
export type GroupType = (typeof GroupType)[keyof typeof GroupType];
|
|
48
|
+
export declare const MemberType: {
|
|
49
|
+
readonly COMPUTER: "COMPUTER";
|
|
50
|
+
readonly GROUP: "GROUP";
|
|
51
|
+
readonly USER: "USER";
|
|
52
|
+
};
|
|
53
|
+
export type MemberType = (typeof MemberType)[keyof typeof MemberType];
|
|
54
|
+
export declare const UpdateType: {
|
|
55
|
+
readonly ADD: "ADD";
|
|
56
|
+
readonly REMOVE: "REMOVE";
|
|
57
|
+
readonly REPLACE: "REPLACE";
|
|
58
|
+
};
|
|
59
|
+
export type UpdateType = (typeof UpdateType)[keyof typeof UpdateType];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { DirectoryServiceDataServiceException as __BaseException } from "./DirectoryServiceDataServiceException";
|
|
3
|
+
import {
|
|
4
|
+
AccessDeniedReason,
|
|
5
|
+
DirectoryUnavailableReason,
|
|
6
|
+
ValidationExceptionReason,
|
|
7
|
+
} from "./enums";
|
|
8
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
+
readonly name: "AccessDeniedException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
Message?: string | undefined;
|
|
12
|
+
Reason?: AccessDeniedReason | undefined;
|
|
13
|
+
constructor(
|
|
14
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export declare class ConflictException extends __BaseException {
|
|
18
|
+
readonly name: "ConflictException";
|
|
19
|
+
readonly $fault: "client";
|
|
20
|
+
Message?: string | undefined;
|
|
21
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
22
|
+
}
|
|
23
|
+
export declare class DirectoryUnavailableException extends __BaseException {
|
|
24
|
+
readonly name: "DirectoryUnavailableException";
|
|
25
|
+
readonly $fault: "client";
|
|
26
|
+
$retryable: {};
|
|
27
|
+
Message?: string | undefined;
|
|
28
|
+
Reason?: DirectoryUnavailableReason | undefined;
|
|
29
|
+
constructor(
|
|
30
|
+
opts: __ExceptionOptionType<DirectoryUnavailableException, __BaseException>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export declare class InternalServerException extends __BaseException {
|
|
34
|
+
readonly name: "InternalServerException";
|
|
35
|
+
readonly $fault: "server";
|
|
36
|
+
$retryable: {};
|
|
37
|
+
Message?: string | undefined;
|
|
38
|
+
constructor(
|
|
39
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
43
|
+
readonly name: "ResourceNotFoundException";
|
|
44
|
+
readonly $fault: "client";
|
|
45
|
+
Message?: string | undefined;
|
|
46
|
+
constructor(
|
|
47
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export declare class ThrottlingException extends __BaseException {
|
|
51
|
+
readonly name: "ThrottlingException";
|
|
52
|
+
readonly $fault: "client";
|
|
53
|
+
$retryable: {
|
|
54
|
+
throttling: boolean;
|
|
55
|
+
};
|
|
56
|
+
Message: string | undefined;
|
|
57
|
+
RetryAfterSeconds?: number | undefined;
|
|
58
|
+
constructor(
|
|
59
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export declare class ValidationException extends __BaseException {
|
|
63
|
+
readonly name: "ValidationException";
|
|
64
|
+
readonly $fault: "client";
|
|
65
|
+
Message?: string | undefined;
|
|
66
|
+
Reason?: ValidationExceptionReason | undefined;
|
|
67
|
+
constructor(
|
|
68
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DirectoryServiceDataServiceException as __BaseException } from "./DirectoryServiceDataServiceException";
|
|
3
|
-
export declare const AccessDeniedReason: {
|
|
4
|
-
readonly DATA_DISABLED: "DATA_DISABLED";
|
|
5
|
-
readonly DIRECTORY_AUTH: "DIRECTORY_AUTH";
|
|
6
|
-
readonly IAM_AUTH: "IAM_AUTH";
|
|
7
|
-
};
|
|
8
|
-
export type AccessDeniedReason =
|
|
9
|
-
(typeof AccessDeniedReason)[keyof typeof AccessDeniedReason];
|
|
10
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
11
|
-
readonly name: "AccessDeniedException";
|
|
12
|
-
readonly $fault: "client";
|
|
13
|
-
Message?: string | undefined;
|
|
14
|
-
Reason?: AccessDeniedReason | undefined;
|
|
15
|
-
constructor(
|
|
16
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
1
|
+
import { GroupScope, GroupType, MemberType, UpdateType } from "./enums";
|
|
19
2
|
export interface AddGroupMemberRequest {
|
|
20
3
|
DirectoryId: string | undefined;
|
|
21
4
|
GroupName: string | undefined;
|
|
@@ -24,88 +7,6 @@ export interface AddGroupMemberRequest {
|
|
|
24
7
|
ClientToken?: string | undefined;
|
|
25
8
|
}
|
|
26
9
|
export interface AddGroupMemberResult {}
|
|
27
|
-
export declare class ConflictException extends __BaseException {
|
|
28
|
-
readonly name: "ConflictException";
|
|
29
|
-
readonly $fault: "client";
|
|
30
|
-
Message?: string | undefined;
|
|
31
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
32
|
-
}
|
|
33
|
-
export declare const DirectoryUnavailableReason: {
|
|
34
|
-
readonly DIRECTORY_RESOURCES_EXCEEDED: "DIRECTORY_RESOURCES_EXCEEDED";
|
|
35
|
-
readonly DIRECTORY_TIMEOUT: "DIRECTORY_TIMEOUT";
|
|
36
|
-
readonly INVALID_DIRECTORY_STATE: "INVALID_DIRECTORY_STATE";
|
|
37
|
-
readonly NO_DISK_SPACE: "NO_DISK_SPACE";
|
|
38
|
-
readonly TRUST_AUTH_FAILURE: "TRUST_AUTH_FAILURE";
|
|
39
|
-
};
|
|
40
|
-
export type DirectoryUnavailableReason =
|
|
41
|
-
(typeof DirectoryUnavailableReason)[keyof typeof DirectoryUnavailableReason];
|
|
42
|
-
export declare class DirectoryUnavailableException extends __BaseException {
|
|
43
|
-
readonly name: "DirectoryUnavailableException";
|
|
44
|
-
readonly $fault: "client";
|
|
45
|
-
$retryable: {};
|
|
46
|
-
Message?: string | undefined;
|
|
47
|
-
Reason?: DirectoryUnavailableReason | undefined;
|
|
48
|
-
constructor(
|
|
49
|
-
opts: __ExceptionOptionType<DirectoryUnavailableException, __BaseException>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
export declare class InternalServerException extends __BaseException {
|
|
53
|
-
readonly name: "InternalServerException";
|
|
54
|
-
readonly $fault: "server";
|
|
55
|
-
$retryable: {};
|
|
56
|
-
Message?: string | undefined;
|
|
57
|
-
constructor(
|
|
58
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
62
|
-
readonly name: "ResourceNotFoundException";
|
|
63
|
-
readonly $fault: "client";
|
|
64
|
-
Message?: string | undefined;
|
|
65
|
-
constructor(
|
|
66
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
export declare class ThrottlingException extends __BaseException {
|
|
70
|
-
readonly name: "ThrottlingException";
|
|
71
|
-
readonly $fault: "client";
|
|
72
|
-
$retryable: {
|
|
73
|
-
throttling: boolean;
|
|
74
|
-
};
|
|
75
|
-
Message: string | undefined;
|
|
76
|
-
RetryAfterSeconds?: number | undefined;
|
|
77
|
-
constructor(
|
|
78
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
export declare const ValidationExceptionReason: {
|
|
82
|
-
readonly ATTRIBUTE_EXISTS: "ATTRIBUTE_EXISTS";
|
|
83
|
-
readonly DUPLICATE_ATTRIBUTE: "DUPLICATE_ATTRIBUTE";
|
|
84
|
-
readonly INVALID_ATTRIBUTE_FOR_GROUP: "INVALID_ATTRIBUTE_FOR_GROUP";
|
|
85
|
-
readonly INVALID_ATTRIBUTE_FOR_MODIFY: "INVALID_ATTRIBUTE_FOR_MODIFY";
|
|
86
|
-
readonly INVALID_ATTRIBUTE_FOR_SEARCH: "INVALID_ATTRIBUTE_FOR_SEARCH";
|
|
87
|
-
readonly INVALID_ATTRIBUTE_FOR_USER: "INVALID_ATTRIBUTE_FOR_USER";
|
|
88
|
-
readonly INVALID_ATTRIBUTE_NAME: "INVALID_ATTRIBUTE_NAME";
|
|
89
|
-
readonly INVALID_ATTRIBUTE_VALUE: "INVALID_ATTRIBUTE_VALUE";
|
|
90
|
-
readonly INVALID_DIRECTORY_TYPE: "INVALID_DIRECTORY_TYPE";
|
|
91
|
-
readonly INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN";
|
|
92
|
-
readonly INVALID_REALM: "INVALID_REALM";
|
|
93
|
-
readonly INVALID_SECONDARY_REGION: "INVALID_SECONDARY_REGION";
|
|
94
|
-
readonly LDAP_SIZE_LIMIT_EXCEEDED: "LDAP_SIZE_LIMIT_EXCEEDED";
|
|
95
|
-
readonly LDAP_UNSUPPORTED_OPERATION: "LDAP_UNSUPPORTED_OPERATION";
|
|
96
|
-
readonly MISSING_ATTRIBUTE: "MISSING_ATTRIBUTE";
|
|
97
|
-
};
|
|
98
|
-
export type ValidationExceptionReason =
|
|
99
|
-
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
100
|
-
export declare class ValidationException extends __BaseException {
|
|
101
|
-
readonly name: "ValidationException";
|
|
102
|
-
readonly $fault: "client";
|
|
103
|
-
Message?: string | undefined;
|
|
104
|
-
Reason?: ValidationExceptionReason | undefined;
|
|
105
|
-
constructor(
|
|
106
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
10
|
export type AttributeValue =
|
|
110
11
|
| AttributeValue.BOOLMember
|
|
111
12
|
| AttributeValue.NMember
|
|
@@ -156,18 +57,6 @@ export declare namespace AttributeValue {
|
|
|
156
57
|
_: (name: string, value: any) => T;
|
|
157
58
|
}
|
|
158
59
|
}
|
|
159
|
-
export declare const GroupScope: {
|
|
160
|
-
readonly BUILTIN_LOCAL: "BuiltinLocal";
|
|
161
|
-
readonly DOMAIN_LOCAL: "DomainLocal";
|
|
162
|
-
readonly GLOBAL: "Global";
|
|
163
|
-
readonly UNIVERSAL: "Universal";
|
|
164
|
-
};
|
|
165
|
-
export type GroupScope = (typeof GroupScope)[keyof typeof GroupScope];
|
|
166
|
-
export declare const GroupType: {
|
|
167
|
-
readonly DISTRIBUTION: "Distribution";
|
|
168
|
-
readonly SECURITY: "Security";
|
|
169
|
-
};
|
|
170
|
-
export type GroupType = (typeof GroupType)[keyof typeof GroupType];
|
|
171
60
|
export interface CreateGroupRequest {
|
|
172
61
|
DirectoryId: string | undefined;
|
|
173
62
|
SAMAccountName: string | undefined;
|
|
@@ -256,12 +145,6 @@ export interface ListGroupMembersRequest {
|
|
|
256
145
|
NextToken?: string | undefined;
|
|
257
146
|
MaxResults?: number | undefined;
|
|
258
147
|
}
|
|
259
|
-
export declare const MemberType: {
|
|
260
|
-
readonly COMPUTER: "COMPUTER";
|
|
261
|
-
readonly GROUP: "GROUP";
|
|
262
|
-
readonly USER: "USER";
|
|
263
|
-
};
|
|
264
|
-
export type MemberType = (typeof MemberType)[keyof typeof MemberType];
|
|
265
148
|
export interface Member {
|
|
266
149
|
SID: string | undefined;
|
|
267
150
|
SAMAccountName: string | undefined;
|
|
@@ -381,12 +264,6 @@ export interface SearchUsersResult {
|
|
|
381
264
|
Users?: User[] | undefined;
|
|
382
265
|
NextToken?: string | undefined;
|
|
383
266
|
}
|
|
384
|
-
export declare const UpdateType: {
|
|
385
|
-
readonly ADD: "ADD";
|
|
386
|
-
readonly REMOVE: "REMOVE";
|
|
387
|
-
readonly REPLACE: "REPLACE";
|
|
388
|
-
};
|
|
389
|
-
export type UpdateType = (typeof UpdateType)[keyof typeof UpdateType];
|
|
390
267
|
export interface UpdateGroupRequest {
|
|
391
268
|
DirectoryId: string | undefined;
|
|
392
269
|
SAMAccountName: string | undefined;
|