@aws-sdk/client-directory-service-data 3.899.0 → 3.906.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 +1485 -1713
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,1773 +1,1545 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "ds-data",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
AccessDeniedReason: () => AccessDeniedReason,
|
|
26
|
-
AddGroupMemberCommand: () => AddGroupMemberCommand,
|
|
27
|
-
AttributeValue: () => AttributeValue,
|
|
28
|
-
AttributeValueFilterSensitiveLog: () => AttributeValueFilterSensitiveLog,
|
|
29
|
-
ConflictException: () => ConflictException,
|
|
30
|
-
CreateGroupCommand: () => CreateGroupCommand,
|
|
31
|
-
CreateGroupRequestFilterSensitiveLog: () => CreateGroupRequestFilterSensitiveLog,
|
|
32
|
-
CreateUserCommand: () => CreateUserCommand,
|
|
33
|
-
CreateUserRequestFilterSensitiveLog: () => CreateUserRequestFilterSensitiveLog,
|
|
34
|
-
DeleteGroupCommand: () => DeleteGroupCommand,
|
|
35
|
-
DeleteUserCommand: () => DeleteUserCommand,
|
|
36
|
-
DescribeGroupCommand: () => DescribeGroupCommand,
|
|
37
|
-
DescribeGroupResultFilterSensitiveLog: () => DescribeGroupResultFilterSensitiveLog,
|
|
38
|
-
DescribeUserCommand: () => DescribeUserCommand,
|
|
39
|
-
DescribeUserResultFilterSensitiveLog: () => DescribeUserResultFilterSensitiveLog,
|
|
40
|
-
DirectoryServiceData: () => DirectoryServiceData,
|
|
41
|
-
DirectoryServiceDataClient: () => DirectoryServiceDataClient,
|
|
42
|
-
DirectoryServiceDataServiceException: () => DirectoryServiceDataServiceException,
|
|
43
|
-
DirectoryUnavailableException: () => DirectoryUnavailableException,
|
|
44
|
-
DirectoryUnavailableReason: () => DirectoryUnavailableReason,
|
|
45
|
-
DisableUserCommand: () => DisableUserCommand,
|
|
46
|
-
GroupFilterSensitiveLog: () => GroupFilterSensitiveLog,
|
|
47
|
-
GroupScope: () => GroupScope,
|
|
48
|
-
GroupType: () => GroupType,
|
|
49
|
-
InternalServerException: () => InternalServerException,
|
|
50
|
-
ListGroupMembersCommand: () => ListGroupMembersCommand,
|
|
51
|
-
ListGroupMembersRequestFilterSensitiveLog: () => ListGroupMembersRequestFilterSensitiveLog,
|
|
52
|
-
ListGroupMembersResultFilterSensitiveLog: () => ListGroupMembersResultFilterSensitiveLog,
|
|
53
|
-
ListGroupsCommand: () => ListGroupsCommand,
|
|
54
|
-
ListGroupsForMemberCommand: () => ListGroupsForMemberCommand,
|
|
55
|
-
ListGroupsForMemberRequestFilterSensitiveLog: () => ListGroupsForMemberRequestFilterSensitiveLog,
|
|
56
|
-
ListGroupsForMemberResultFilterSensitiveLog: () => ListGroupsForMemberResultFilterSensitiveLog,
|
|
57
|
-
ListGroupsRequestFilterSensitiveLog: () => ListGroupsRequestFilterSensitiveLog,
|
|
58
|
-
ListGroupsResultFilterSensitiveLog: () => ListGroupsResultFilterSensitiveLog,
|
|
59
|
-
ListUsersCommand: () => ListUsersCommand,
|
|
60
|
-
ListUsersRequestFilterSensitiveLog: () => ListUsersRequestFilterSensitiveLog,
|
|
61
|
-
ListUsersResultFilterSensitiveLog: () => ListUsersResultFilterSensitiveLog,
|
|
62
|
-
MemberType: () => MemberType,
|
|
63
|
-
RemoveGroupMemberCommand: () => RemoveGroupMemberCommand,
|
|
64
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
65
|
-
SearchGroupsCommand: () => SearchGroupsCommand,
|
|
66
|
-
SearchGroupsRequestFilterSensitiveLog: () => SearchGroupsRequestFilterSensitiveLog,
|
|
67
|
-
SearchGroupsResultFilterSensitiveLog: () => SearchGroupsResultFilterSensitiveLog,
|
|
68
|
-
SearchUsersCommand: () => SearchUsersCommand,
|
|
69
|
-
SearchUsersRequestFilterSensitiveLog: () => SearchUsersRequestFilterSensitiveLog,
|
|
70
|
-
SearchUsersResultFilterSensitiveLog: () => SearchUsersResultFilterSensitiveLog,
|
|
71
|
-
ThrottlingException: () => ThrottlingException,
|
|
72
|
-
UpdateGroupCommand: () => UpdateGroupCommand,
|
|
73
|
-
UpdateGroupRequestFilterSensitiveLog: () => UpdateGroupRequestFilterSensitiveLog,
|
|
74
|
-
UpdateType: () => UpdateType,
|
|
75
|
-
UpdateUserCommand: () => UpdateUserCommand,
|
|
76
|
-
UpdateUserRequestFilterSensitiveLog: () => UpdateUserRequestFilterSensitiveLog,
|
|
77
|
-
UserFilterSensitiveLog: () => UserFilterSensitiveLog,
|
|
78
|
-
UserSummaryFilterSensitiveLog: () => UserSummaryFilterSensitiveLog,
|
|
79
|
-
ValidationException: () => ValidationException,
|
|
80
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
81
|
-
__Client: () => import_smithy_client.Client,
|
|
82
|
-
paginateListGroupMembers: () => paginateListGroupMembers,
|
|
83
|
-
paginateListGroups: () => paginateListGroups,
|
|
84
|
-
paginateListGroupsForMember: () => paginateListGroupsForMember,
|
|
85
|
-
paginateListUsers: () => paginateListUsers,
|
|
86
|
-
paginateSearchGroups: () => paginateSearchGroups,
|
|
87
|
-
paginateSearchUsers: () => paginateSearchUsers
|
|
88
|
-
});
|
|
89
|
-
module.exports = __toCommonJS(index_exports);
|
|
90
|
-
|
|
91
|
-
// src/DirectoryServiceDataClient.ts
|
|
92
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
93
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
94
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
95
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
96
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
97
|
-
var import_core = require("@smithy/core");
|
|
98
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
99
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
100
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
101
34
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
117
72
|
};
|
|
118
73
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
125
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
126
79
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
80
|
+
class DirectoryServiceDataClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDirectoryServiceDataHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
155
111
|
}
|
|
156
|
-
|
|
157
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
158
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
159
|
-
return {
|
|
160
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
161
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
162
|
-
credentials: config.credentials()
|
|
163
|
-
};
|
|
164
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
112
|
+
}
|
|
165
113
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
173
|
-
);
|
|
174
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
175
|
-
return Object.assign(
|
|
176
|
-
runtimeConfig,
|
|
177
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
178
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
179
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
180
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
181
|
-
);
|
|
182
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class DirectoryServiceDataServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, DirectoryServiceDataServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
183
120
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* The resolved configuration of DirectoryServiceDataClient class. This is resolved and normalized from the {@link DirectoryServiceDataClientConfig | constructor configuration interface}.
|
|
191
|
-
*/
|
|
192
|
-
config;
|
|
193
|
-
constructor(...[configuration]) {
|
|
194
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
195
|
-
super(_config_0);
|
|
196
|
-
this.initConfig = _config_0;
|
|
197
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
198
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
199
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
200
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
201
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
202
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
203
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
204
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
205
|
-
this.config = _config_8;
|
|
206
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
207
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
208
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
209
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
210
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
211
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
212
|
-
this.middlewareStack.use(
|
|
213
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
214
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDirectoryServiceDataHttpAuthSchemeParametersProvider,
|
|
215
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
216
|
-
"aws.auth#sigv4": config.credentials
|
|
217
|
-
}), "identityProviderConfigProvider")
|
|
218
|
-
})
|
|
219
|
-
);
|
|
220
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
224
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
225
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
226
|
-
*/
|
|
227
|
-
destroy() {
|
|
228
|
-
super.destroy();
|
|
229
|
-
}
|
|
121
|
+
const AccessDeniedReason = {
|
|
122
|
+
DATA_DISABLED: "DATA_DISABLED",
|
|
123
|
+
DIRECTORY_AUTH: "DIRECTORY_AUTH",
|
|
124
|
+
IAM_AUTH: "IAM_AUTH",
|
|
230
125
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
126
|
+
class AccessDeniedException extends DirectoryServiceDataServiceException {
|
|
127
|
+
name = "AccessDeniedException";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
Message;
|
|
130
|
+
Reason;
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "AccessDeniedException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
138
|
+
this.Message = opts.Message;
|
|
139
|
+
this.Reason = opts.Reason;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
class ConflictException extends DirectoryServiceDataServiceException {
|
|
143
|
+
name = "ConflictException";
|
|
144
|
+
$fault = "client";
|
|
145
|
+
Message;
|
|
146
|
+
constructor(opts) {
|
|
147
|
+
super({
|
|
148
|
+
name: "ConflictException",
|
|
149
|
+
$fault: "client",
|
|
150
|
+
...opts,
|
|
151
|
+
});
|
|
152
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
153
|
+
this.Message = opts.Message;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const DirectoryUnavailableReason = {
|
|
157
|
+
DIRECTORY_RESOURCES_EXCEEDED: "DIRECTORY_RESOURCES_EXCEEDED",
|
|
158
|
+
DIRECTORY_TIMEOUT: "DIRECTORY_TIMEOUT",
|
|
159
|
+
INVALID_DIRECTORY_STATE: "INVALID_DIRECTORY_STATE",
|
|
160
|
+
NO_DISK_SPACE: "NO_DISK_SPACE",
|
|
161
|
+
TRUST_AUTH_FAILURE: "TRUST_AUTH_FAILURE",
|
|
259
162
|
};
|
|
163
|
+
class DirectoryUnavailableException extends DirectoryServiceDataServiceException {
|
|
164
|
+
name = "DirectoryUnavailableException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
$retryable = {};
|
|
167
|
+
Message;
|
|
168
|
+
Reason;
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "DirectoryUnavailableException",
|
|
172
|
+
$fault: "client",
|
|
173
|
+
...opts,
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, DirectoryUnavailableException.prototype);
|
|
176
|
+
this.Message = opts.Message;
|
|
177
|
+
this.Reason = opts.Reason;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class InternalServerException extends DirectoryServiceDataServiceException {
|
|
181
|
+
name = "InternalServerException";
|
|
182
|
+
$fault = "server";
|
|
183
|
+
$retryable = {};
|
|
184
|
+
Message;
|
|
185
|
+
constructor(opts) {
|
|
186
|
+
super({
|
|
187
|
+
name: "InternalServerException",
|
|
188
|
+
$fault: "server",
|
|
189
|
+
...opts,
|
|
190
|
+
});
|
|
191
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
192
|
+
this.Message = opts.Message;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class ResourceNotFoundException extends DirectoryServiceDataServiceException {
|
|
196
|
+
name = "ResourceNotFoundException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
Message;
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ResourceNotFoundException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
206
|
+
this.Message = opts.Message;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
class ThrottlingException extends DirectoryServiceDataServiceException {
|
|
210
|
+
name = "ThrottlingException";
|
|
211
|
+
$fault = "client";
|
|
212
|
+
$retryable = {
|
|
213
|
+
throttling: true,
|
|
214
|
+
};
|
|
215
|
+
Message;
|
|
216
|
+
RetryAfterSeconds;
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ThrottlingException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
224
|
+
this.Message = opts.Message;
|
|
225
|
+
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const ValidationExceptionReason = {
|
|
229
|
+
ATTRIBUTE_EXISTS: "ATTRIBUTE_EXISTS",
|
|
230
|
+
DUPLICATE_ATTRIBUTE: "DUPLICATE_ATTRIBUTE",
|
|
231
|
+
INVALID_ATTRIBUTE_FOR_GROUP: "INVALID_ATTRIBUTE_FOR_GROUP",
|
|
232
|
+
INVALID_ATTRIBUTE_FOR_MODIFY: "INVALID_ATTRIBUTE_FOR_MODIFY",
|
|
233
|
+
INVALID_ATTRIBUTE_FOR_SEARCH: "INVALID_ATTRIBUTE_FOR_SEARCH",
|
|
234
|
+
INVALID_ATTRIBUTE_FOR_USER: "INVALID_ATTRIBUTE_FOR_USER",
|
|
235
|
+
INVALID_ATTRIBUTE_NAME: "INVALID_ATTRIBUTE_NAME",
|
|
236
|
+
INVALID_ATTRIBUTE_VALUE: "INVALID_ATTRIBUTE_VALUE",
|
|
237
|
+
INVALID_DIRECTORY_TYPE: "INVALID_DIRECTORY_TYPE",
|
|
238
|
+
INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN",
|
|
239
|
+
INVALID_REALM: "INVALID_REALM",
|
|
240
|
+
INVALID_SECONDARY_REGION: "INVALID_SECONDARY_REGION",
|
|
241
|
+
LDAP_SIZE_LIMIT_EXCEEDED: "LDAP_SIZE_LIMIT_EXCEEDED",
|
|
242
|
+
LDAP_UNSUPPORTED_OPERATION: "LDAP_UNSUPPORTED_OPERATION",
|
|
243
|
+
MISSING_ATTRIBUTE: "MISSING_ATTRIBUTE",
|
|
244
|
+
};
|
|
245
|
+
class ValidationException extends DirectoryServiceDataServiceException {
|
|
246
|
+
name = "ValidationException";
|
|
247
|
+
$fault = "client";
|
|
248
|
+
Message;
|
|
249
|
+
Reason;
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "ValidationException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
257
|
+
this.Message = opts.Message;
|
|
258
|
+
this.Reason = opts.Reason;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
exports.AttributeValue = void 0;
|
|
262
|
+
(function (AttributeValue) {
|
|
263
|
+
AttributeValue.visit = (value, visitor) => {
|
|
264
|
+
if (value.S !== undefined)
|
|
265
|
+
return visitor.S(value.S);
|
|
266
|
+
if (value.N !== undefined)
|
|
267
|
+
return visitor.N(value.N);
|
|
268
|
+
if (value.BOOL !== undefined)
|
|
269
|
+
return visitor.BOOL(value.BOOL);
|
|
270
|
+
if (value.SS !== undefined)
|
|
271
|
+
return visitor.SS(value.SS);
|
|
272
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
273
|
+
};
|
|
274
|
+
})(exports.AttributeValue || (exports.AttributeValue = {}));
|
|
275
|
+
const GroupScope = {
|
|
276
|
+
BUILTIN_LOCAL: "BuiltinLocal",
|
|
277
|
+
DOMAIN_LOCAL: "DomainLocal",
|
|
278
|
+
GLOBAL: "Global",
|
|
279
|
+
UNIVERSAL: "Universal",
|
|
280
|
+
};
|
|
281
|
+
const GroupType = {
|
|
282
|
+
DISTRIBUTION: "Distribution",
|
|
283
|
+
SECURITY: "Security",
|
|
284
|
+
};
|
|
285
|
+
const MemberType = {
|
|
286
|
+
COMPUTER: "COMPUTER",
|
|
287
|
+
GROUP: "GROUP",
|
|
288
|
+
USER: "USER",
|
|
289
|
+
};
|
|
290
|
+
const UpdateType = {
|
|
291
|
+
ADD: "ADD",
|
|
292
|
+
REMOVE: "REMOVE",
|
|
293
|
+
REPLACE: "REPLACE",
|
|
294
|
+
};
|
|
295
|
+
const AttributeValueFilterSensitiveLog = (obj) => {
|
|
296
|
+
if (obj.S !== undefined)
|
|
297
|
+
return { S: smithyClient.SENSITIVE_STRING };
|
|
298
|
+
if (obj.N !== undefined)
|
|
299
|
+
return { N: smithyClient.SENSITIVE_STRING };
|
|
300
|
+
if (obj.BOOL !== undefined)
|
|
301
|
+
return { BOOL: smithyClient.SENSITIVE_STRING };
|
|
302
|
+
if (obj.SS !== undefined)
|
|
303
|
+
return { SS: smithyClient.SENSITIVE_STRING };
|
|
304
|
+
if (obj.$unknown !== undefined)
|
|
305
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
306
|
+
};
|
|
307
|
+
const CreateGroupRequestFilterSensitiveLog = (obj) => ({
|
|
308
|
+
...obj,
|
|
309
|
+
...(obj.OtherAttributes && {
|
|
310
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
311
|
+
}),
|
|
312
|
+
});
|
|
313
|
+
const CreateUserRequestFilterSensitiveLog = (obj) => ({
|
|
314
|
+
...obj,
|
|
315
|
+
...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
|
|
316
|
+
...(obj.GivenName && { GivenName: smithyClient.SENSITIVE_STRING }),
|
|
317
|
+
...(obj.Surname && { Surname: smithyClient.SENSITIVE_STRING }),
|
|
318
|
+
...(obj.OtherAttributes && {
|
|
319
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
320
|
+
}),
|
|
321
|
+
});
|
|
322
|
+
const DescribeGroupResultFilterSensitiveLog = (obj) => ({
|
|
323
|
+
...obj,
|
|
324
|
+
...(obj.DistinguishedName && { DistinguishedName: smithyClient.SENSITIVE_STRING }),
|
|
325
|
+
...(obj.OtherAttributes && {
|
|
326
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
327
|
+
}),
|
|
328
|
+
});
|
|
329
|
+
const DescribeUserResultFilterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
...(obj.DistinguishedName && { DistinguishedName: smithyClient.SENSITIVE_STRING }),
|
|
332
|
+
...(obj.UserPrincipalName && { UserPrincipalName: smithyClient.SENSITIVE_STRING }),
|
|
333
|
+
...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
|
|
334
|
+
...(obj.GivenName && { GivenName: smithyClient.SENSITIVE_STRING }),
|
|
335
|
+
...(obj.Surname && { Surname: smithyClient.SENSITIVE_STRING }),
|
|
336
|
+
...(obj.OtherAttributes && {
|
|
337
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
338
|
+
}),
|
|
339
|
+
});
|
|
340
|
+
const ListGroupMembersRequestFilterSensitiveLog = (obj) => ({
|
|
341
|
+
...obj,
|
|
342
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
343
|
+
});
|
|
344
|
+
const ListGroupMembersResultFilterSensitiveLog = (obj) => ({
|
|
345
|
+
...obj,
|
|
346
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
347
|
+
});
|
|
348
|
+
const ListGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
349
|
+
...obj,
|
|
350
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
351
|
+
});
|
|
352
|
+
const ListGroupsResultFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
355
|
+
});
|
|
356
|
+
const ListGroupsForMemberRequestFilterSensitiveLog = (obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
359
|
+
});
|
|
360
|
+
const ListGroupsForMemberResultFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
363
|
+
});
|
|
364
|
+
const ListUsersRequestFilterSensitiveLog = (obj) => ({
|
|
365
|
+
...obj,
|
|
366
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
367
|
+
});
|
|
368
|
+
const UserSummaryFilterSensitiveLog = (obj) => ({
|
|
369
|
+
...obj,
|
|
370
|
+
...(obj.GivenName && { GivenName: smithyClient.SENSITIVE_STRING }),
|
|
371
|
+
...(obj.Surname && { Surname: smithyClient.SENSITIVE_STRING }),
|
|
372
|
+
});
|
|
373
|
+
const ListUsersResultFilterSensitiveLog = (obj) => ({
|
|
374
|
+
...obj,
|
|
375
|
+
...(obj.Users && { Users: obj.Users.map((item) => UserSummaryFilterSensitiveLog(item)) }),
|
|
376
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
377
|
+
});
|
|
378
|
+
const SearchGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
379
|
+
...obj,
|
|
380
|
+
...(obj.SearchString && { SearchString: smithyClient.SENSITIVE_STRING }),
|
|
381
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
382
|
+
});
|
|
383
|
+
const GroupFilterSensitiveLog = (obj) => ({
|
|
384
|
+
...obj,
|
|
385
|
+
...(obj.DistinguishedName && { DistinguishedName: smithyClient.SENSITIVE_STRING }),
|
|
386
|
+
...(obj.OtherAttributes && {
|
|
387
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
388
|
+
}),
|
|
389
|
+
});
|
|
390
|
+
const SearchGroupsResultFilterSensitiveLog = (obj) => ({
|
|
391
|
+
...obj,
|
|
392
|
+
...(obj.Groups && { Groups: obj.Groups.map((item) => GroupFilterSensitiveLog(item)) }),
|
|
393
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
394
|
+
});
|
|
395
|
+
const SearchUsersRequestFilterSensitiveLog = (obj) => ({
|
|
396
|
+
...obj,
|
|
397
|
+
...(obj.SearchString && { SearchString: smithyClient.SENSITIVE_STRING }),
|
|
398
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
399
|
+
});
|
|
400
|
+
const UserFilterSensitiveLog = (obj) => ({
|
|
401
|
+
...obj,
|
|
402
|
+
...(obj.DistinguishedName && { DistinguishedName: smithyClient.SENSITIVE_STRING }),
|
|
403
|
+
...(obj.UserPrincipalName && { UserPrincipalName: smithyClient.SENSITIVE_STRING }),
|
|
404
|
+
...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
|
|
405
|
+
...(obj.GivenName && { GivenName: smithyClient.SENSITIVE_STRING }),
|
|
406
|
+
...(obj.Surname && { Surname: smithyClient.SENSITIVE_STRING }),
|
|
407
|
+
...(obj.OtherAttributes && {
|
|
408
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
409
|
+
}),
|
|
410
|
+
});
|
|
411
|
+
const SearchUsersResultFilterSensitiveLog = (obj) => ({
|
|
412
|
+
...obj,
|
|
413
|
+
...(obj.Users && { Users: obj.Users.map((item) => UserFilterSensitiveLog(item)) }),
|
|
414
|
+
...(obj.NextToken && { NextToken: smithyClient.SENSITIVE_STRING }),
|
|
415
|
+
});
|
|
416
|
+
const UpdateGroupRequestFilterSensitiveLog = (obj) => ({
|
|
417
|
+
...obj,
|
|
418
|
+
...(obj.OtherAttributes && {
|
|
419
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
420
|
+
}),
|
|
421
|
+
});
|
|
422
|
+
const UpdateUserRequestFilterSensitiveLog = (obj) => ({
|
|
423
|
+
...obj,
|
|
424
|
+
...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
|
|
425
|
+
...(obj.GivenName && { GivenName: smithyClient.SENSITIVE_STRING }),
|
|
426
|
+
...(obj.Surname && { Surname: smithyClient.SENSITIVE_STRING }),
|
|
427
|
+
...(obj.OtherAttributes && {
|
|
428
|
+
OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
429
|
+
}),
|
|
430
|
+
});
|
|
260
431
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
432
|
+
const se_AddGroupMemberCommand = async (input, context) => {
|
|
433
|
+
const b = core.requestBuilder(input, context);
|
|
434
|
+
const headers = {
|
|
435
|
+
"content-type": "application/json",
|
|
436
|
+
};
|
|
437
|
+
b.bp("/GroupMemberships/AddGroupMember");
|
|
438
|
+
const query = smithyClient.map({
|
|
439
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
440
|
+
});
|
|
441
|
+
let body;
|
|
442
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
443
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
444
|
+
GroupName: [],
|
|
445
|
+
MemberName: [],
|
|
446
|
+
MemberRealm: [],
|
|
447
|
+
}));
|
|
448
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
449
|
+
return b.build();
|
|
267
450
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
* <p> Reason the request was unauthorized. </p>
|
|
277
|
-
* @public
|
|
278
|
-
*/
|
|
279
|
-
Reason;
|
|
280
|
-
/**
|
|
281
|
-
* @internal
|
|
282
|
-
*/
|
|
283
|
-
constructor(opts) {
|
|
284
|
-
super({
|
|
285
|
-
name: "AccessDeniedException",
|
|
286
|
-
$fault: "client",
|
|
287
|
-
...opts
|
|
451
|
+
const se_CreateGroupCommand = async (input, context) => {
|
|
452
|
+
const b = core.requestBuilder(input, context);
|
|
453
|
+
const headers = {
|
|
454
|
+
"content-type": "application/json",
|
|
455
|
+
};
|
|
456
|
+
b.bp("/Groups/CreateGroup");
|
|
457
|
+
const query = smithyClient.map({
|
|
458
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
288
459
|
});
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
460
|
+
let body;
|
|
461
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
462
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
463
|
+
GroupScope: [],
|
|
464
|
+
GroupType: [],
|
|
465
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
466
|
+
SAMAccountName: [],
|
|
467
|
+
}));
|
|
468
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
469
|
+
return b.build();
|
|
293
470
|
};
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
* @internal
|
|
303
|
-
*/
|
|
304
|
-
constructor(opts) {
|
|
305
|
-
super({
|
|
306
|
-
name: "ConflictException",
|
|
307
|
-
$fault: "client",
|
|
308
|
-
...opts
|
|
471
|
+
const se_CreateUserCommand = async (input, context) => {
|
|
472
|
+
const b = core.requestBuilder(input, context);
|
|
473
|
+
const headers = {
|
|
474
|
+
"content-type": "application/json",
|
|
475
|
+
};
|
|
476
|
+
b.bp("/Users/CreateUser");
|
|
477
|
+
const query = smithyClient.map({
|
|
478
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
309
479
|
});
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
482
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
483
|
+
EmailAddress: [],
|
|
484
|
+
GivenName: [],
|
|
485
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
486
|
+
SAMAccountName: [],
|
|
487
|
+
Surname: [],
|
|
488
|
+
}));
|
|
489
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
490
|
+
return b.build();
|
|
313
491
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
492
|
+
const se_DeleteGroupCommand = async (input, context) => {
|
|
493
|
+
const b = core.requestBuilder(input, context);
|
|
494
|
+
const headers = {
|
|
495
|
+
"content-type": "application/json",
|
|
496
|
+
};
|
|
497
|
+
b.bp("/Groups/DeleteGroup");
|
|
498
|
+
const query = smithyClient.map({
|
|
499
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
500
|
+
});
|
|
501
|
+
let body;
|
|
502
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
503
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
504
|
+
SAMAccountName: [],
|
|
505
|
+
}));
|
|
506
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
507
|
+
return b.build();
|
|
320
508
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* <p> Reason the request failed for the specified directory. </p>
|
|
331
|
-
* @public
|
|
332
|
-
*/
|
|
333
|
-
Reason;
|
|
334
|
-
/**
|
|
335
|
-
* @internal
|
|
336
|
-
*/
|
|
337
|
-
constructor(opts) {
|
|
338
|
-
super({
|
|
339
|
-
name: "DirectoryUnavailableException",
|
|
340
|
-
$fault: "client",
|
|
341
|
-
...opts
|
|
509
|
+
const se_DeleteUserCommand = async (input, context) => {
|
|
510
|
+
const b = core.requestBuilder(input, context);
|
|
511
|
+
const headers = {
|
|
512
|
+
"content-type": "application/json",
|
|
513
|
+
};
|
|
514
|
+
b.bp("/Users/DeleteUser");
|
|
515
|
+
const query = smithyClient.map({
|
|
516
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
342
517
|
});
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
518
|
+
let body;
|
|
519
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
520
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
521
|
+
SAMAccountName: [],
|
|
522
|
+
}));
|
|
523
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
524
|
+
return b.build();
|
|
347
525
|
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* @internal
|
|
358
|
-
*/
|
|
359
|
-
constructor(opts) {
|
|
360
|
-
super({
|
|
361
|
-
name: "InternalServerException",
|
|
362
|
-
$fault: "server",
|
|
363
|
-
...opts
|
|
526
|
+
const se_DescribeGroupCommand = async (input, context) => {
|
|
527
|
+
const b = core.requestBuilder(input, context);
|
|
528
|
+
const headers = {
|
|
529
|
+
"content-type": "application/json",
|
|
530
|
+
};
|
|
531
|
+
b.bp("/Groups/DescribeGroup");
|
|
532
|
+
const query = smithyClient.map({
|
|
533
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
364
534
|
});
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
535
|
+
let body;
|
|
536
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
537
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
538
|
+
Realm: [],
|
|
539
|
+
SAMAccountName: [],
|
|
540
|
+
}));
|
|
541
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
542
|
+
return b.build();
|
|
368
543
|
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
* @internal
|
|
378
|
-
*/
|
|
379
|
-
constructor(opts) {
|
|
380
|
-
super({
|
|
381
|
-
name: "ResourceNotFoundException",
|
|
382
|
-
$fault: "client",
|
|
383
|
-
...opts
|
|
544
|
+
const se_DescribeUserCommand = async (input, context) => {
|
|
545
|
+
const b = core.requestBuilder(input, context);
|
|
546
|
+
const headers = {
|
|
547
|
+
"content-type": "application/json",
|
|
548
|
+
};
|
|
549
|
+
b.bp("/Users/DescribeUser");
|
|
550
|
+
const query = smithyClient.map({
|
|
551
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
384
552
|
});
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
553
|
+
let body;
|
|
554
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
555
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
556
|
+
Realm: [],
|
|
557
|
+
SAMAccountName: [],
|
|
558
|
+
}));
|
|
559
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
560
|
+
return b.build();
|
|
388
561
|
};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
};
|
|
398
|
-
Message;
|
|
399
|
-
/**
|
|
400
|
-
* <p> The recommended amount of seconds to retry after a throttling exception. </p>
|
|
401
|
-
* @public
|
|
402
|
-
*/
|
|
403
|
-
RetryAfterSeconds;
|
|
404
|
-
/**
|
|
405
|
-
* @internal
|
|
406
|
-
*/
|
|
407
|
-
constructor(opts) {
|
|
408
|
-
super({
|
|
409
|
-
name: "ThrottlingException",
|
|
410
|
-
$fault: "client",
|
|
411
|
-
...opts
|
|
562
|
+
const se_DisableUserCommand = async (input, context) => {
|
|
563
|
+
const b = core.requestBuilder(input, context);
|
|
564
|
+
const headers = {
|
|
565
|
+
"content-type": "application/json",
|
|
566
|
+
};
|
|
567
|
+
b.bp("/Users/DisableUser");
|
|
568
|
+
const query = smithyClient.map({
|
|
569
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
412
570
|
});
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
571
|
+
let body;
|
|
572
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
573
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
574
|
+
SAMAccountName: [],
|
|
575
|
+
}));
|
|
576
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
577
|
+
return b.build();
|
|
417
578
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
579
|
+
const se_ListGroupMembersCommand = async (input, context) => {
|
|
580
|
+
const b = core.requestBuilder(input, context);
|
|
581
|
+
const headers = {
|
|
582
|
+
"content-type": "application/json",
|
|
583
|
+
};
|
|
584
|
+
b.bp("/GroupMemberships/ListGroupMembers");
|
|
585
|
+
const query = smithyClient.map({
|
|
586
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
587
|
+
});
|
|
588
|
+
let body;
|
|
589
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
590
|
+
MaxResults: [],
|
|
591
|
+
MemberRealm: [],
|
|
592
|
+
NextToken: [],
|
|
593
|
+
Realm: [],
|
|
594
|
+
SAMAccountName: [],
|
|
595
|
+
}));
|
|
596
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
597
|
+
return b.build();
|
|
434
598
|
};
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
* <p> Reason the request failed validation. </p>
|
|
444
|
-
* @public
|
|
445
|
-
*/
|
|
446
|
-
Reason;
|
|
447
|
-
/**
|
|
448
|
-
* @internal
|
|
449
|
-
*/
|
|
450
|
-
constructor(opts) {
|
|
451
|
-
super({
|
|
452
|
-
name: "ValidationException",
|
|
453
|
-
$fault: "client",
|
|
454
|
-
...opts
|
|
599
|
+
const se_ListGroupsCommand = async (input, context) => {
|
|
600
|
+
const b = core.requestBuilder(input, context);
|
|
601
|
+
const headers = {
|
|
602
|
+
"content-type": "application/json",
|
|
603
|
+
};
|
|
604
|
+
b.bp("/Groups/ListGroups");
|
|
605
|
+
const query = smithyClient.map({
|
|
606
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
455
607
|
});
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
608
|
+
let body;
|
|
609
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
610
|
+
MaxResults: [],
|
|
611
|
+
NextToken: [],
|
|
612
|
+
Realm: [],
|
|
613
|
+
}));
|
|
614
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
615
|
+
return b.build();
|
|
460
616
|
};
|
|
461
|
-
|
|
462
|
-
(
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
617
|
+
const se_ListGroupsForMemberCommand = async (input, context) => {
|
|
618
|
+
const b = core.requestBuilder(input, context);
|
|
619
|
+
const headers = {
|
|
620
|
+
"content-type": "application/json",
|
|
621
|
+
};
|
|
622
|
+
b.bp("/GroupMemberships/ListGroupsForMember");
|
|
623
|
+
const query = smithyClient.map({
|
|
624
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
625
|
+
});
|
|
626
|
+
let body;
|
|
627
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
628
|
+
MaxResults: [],
|
|
629
|
+
MemberRealm: [],
|
|
630
|
+
NextToken: [],
|
|
631
|
+
Realm: [],
|
|
632
|
+
SAMAccountName: [],
|
|
633
|
+
}));
|
|
634
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
635
|
+
return b.build();
|
|
476
636
|
};
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
637
|
+
const se_ListUsersCommand = async (input, context) => {
|
|
638
|
+
const b = core.requestBuilder(input, context);
|
|
639
|
+
const headers = {
|
|
640
|
+
"content-type": "application/json",
|
|
641
|
+
};
|
|
642
|
+
b.bp("/Users/ListUsers");
|
|
643
|
+
const query = smithyClient.map({
|
|
644
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
645
|
+
});
|
|
646
|
+
let body;
|
|
647
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
648
|
+
MaxResults: [],
|
|
649
|
+
NextToken: [],
|
|
650
|
+
Realm: [],
|
|
651
|
+
}));
|
|
652
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
653
|
+
return b.build();
|
|
480
654
|
};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
655
|
+
const se_RemoveGroupMemberCommand = async (input, context) => {
|
|
656
|
+
const b = core.requestBuilder(input, context);
|
|
657
|
+
const headers = {
|
|
658
|
+
"content-type": "application/json",
|
|
659
|
+
};
|
|
660
|
+
b.bp("/GroupMemberships/RemoveGroupMember");
|
|
661
|
+
const query = smithyClient.map({
|
|
662
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
663
|
+
});
|
|
664
|
+
let body;
|
|
665
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
666
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
667
|
+
GroupName: [],
|
|
668
|
+
MemberName: [],
|
|
669
|
+
MemberRealm: [],
|
|
670
|
+
}));
|
|
671
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
672
|
+
return b.build();
|
|
485
673
|
};
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
674
|
+
const se_SearchGroupsCommand = async (input, context) => {
|
|
675
|
+
const b = core.requestBuilder(input, context);
|
|
676
|
+
const headers = {
|
|
677
|
+
"content-type": "application/json",
|
|
678
|
+
};
|
|
679
|
+
b.bp("/Groups/SearchGroups");
|
|
680
|
+
const query = smithyClient.map({
|
|
681
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
682
|
+
});
|
|
683
|
+
let body;
|
|
684
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
685
|
+
MaxResults: [],
|
|
686
|
+
NextToken: [],
|
|
687
|
+
Realm: [],
|
|
688
|
+
SearchAttributes: (_) => smithyClient._json(_),
|
|
689
|
+
SearchString: [],
|
|
690
|
+
}));
|
|
691
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
692
|
+
return b.build();
|
|
490
693
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
...obj.GivenName && { GivenName: import_smithy_client.SENSITIVE_STRING },
|
|
511
|
-
...obj.Surname && { Surname: import_smithy_client.SENSITIVE_STRING },
|
|
512
|
-
...obj.OtherAttributes && {
|
|
513
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
514
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
515
|
-
{}
|
|
516
|
-
)
|
|
517
|
-
}
|
|
518
|
-
}), "CreateUserRequestFilterSensitiveLog");
|
|
519
|
-
var DescribeGroupResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
520
|
-
...obj,
|
|
521
|
-
...obj.DistinguishedName && { DistinguishedName: import_smithy_client.SENSITIVE_STRING },
|
|
522
|
-
...obj.OtherAttributes && {
|
|
523
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
524
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
525
|
-
{}
|
|
526
|
-
)
|
|
527
|
-
}
|
|
528
|
-
}), "DescribeGroupResultFilterSensitiveLog");
|
|
529
|
-
var DescribeUserResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
530
|
-
...obj,
|
|
531
|
-
...obj.DistinguishedName && { DistinguishedName: import_smithy_client.SENSITIVE_STRING },
|
|
532
|
-
...obj.UserPrincipalName && { UserPrincipalName: import_smithy_client.SENSITIVE_STRING },
|
|
533
|
-
...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING },
|
|
534
|
-
...obj.GivenName && { GivenName: import_smithy_client.SENSITIVE_STRING },
|
|
535
|
-
...obj.Surname && { Surname: import_smithy_client.SENSITIVE_STRING },
|
|
536
|
-
...obj.OtherAttributes && {
|
|
537
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
538
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
539
|
-
{}
|
|
540
|
-
)
|
|
541
|
-
}
|
|
542
|
-
}), "DescribeUserResultFilterSensitiveLog");
|
|
543
|
-
var ListGroupMembersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
544
|
-
...obj,
|
|
545
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
546
|
-
}), "ListGroupMembersRequestFilterSensitiveLog");
|
|
547
|
-
var ListGroupMembersResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
548
|
-
...obj,
|
|
549
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
550
|
-
}), "ListGroupMembersResultFilterSensitiveLog");
|
|
551
|
-
var ListGroupsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
552
|
-
...obj,
|
|
553
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
554
|
-
}), "ListGroupsRequestFilterSensitiveLog");
|
|
555
|
-
var ListGroupsResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
556
|
-
...obj,
|
|
557
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
558
|
-
}), "ListGroupsResultFilterSensitiveLog");
|
|
559
|
-
var ListGroupsForMemberRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
560
|
-
...obj,
|
|
561
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
562
|
-
}), "ListGroupsForMemberRequestFilterSensitiveLog");
|
|
563
|
-
var ListGroupsForMemberResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
564
|
-
...obj,
|
|
565
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
566
|
-
}), "ListGroupsForMemberResultFilterSensitiveLog");
|
|
567
|
-
var ListUsersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
568
|
-
...obj,
|
|
569
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
570
|
-
}), "ListUsersRequestFilterSensitiveLog");
|
|
571
|
-
var UserSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
572
|
-
...obj,
|
|
573
|
-
...obj.GivenName && { GivenName: import_smithy_client.SENSITIVE_STRING },
|
|
574
|
-
...obj.Surname && { Surname: import_smithy_client.SENSITIVE_STRING }
|
|
575
|
-
}), "UserSummaryFilterSensitiveLog");
|
|
576
|
-
var ListUsersResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
577
|
-
...obj,
|
|
578
|
-
...obj.Users && { Users: obj.Users.map((item) => UserSummaryFilterSensitiveLog(item)) },
|
|
579
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
580
|
-
}), "ListUsersResultFilterSensitiveLog");
|
|
581
|
-
var SearchGroupsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
582
|
-
...obj,
|
|
583
|
-
...obj.SearchString && { SearchString: import_smithy_client.SENSITIVE_STRING },
|
|
584
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
585
|
-
}), "SearchGroupsRequestFilterSensitiveLog");
|
|
586
|
-
var GroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
587
|
-
...obj,
|
|
588
|
-
...obj.DistinguishedName && { DistinguishedName: import_smithy_client.SENSITIVE_STRING },
|
|
589
|
-
...obj.OtherAttributes && {
|
|
590
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
591
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
592
|
-
{}
|
|
593
|
-
)
|
|
594
|
-
}
|
|
595
|
-
}), "GroupFilterSensitiveLog");
|
|
596
|
-
var SearchGroupsResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
597
|
-
...obj,
|
|
598
|
-
...obj.Groups && { Groups: obj.Groups.map((item) => GroupFilterSensitiveLog(item)) },
|
|
599
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
600
|
-
}), "SearchGroupsResultFilterSensitiveLog");
|
|
601
|
-
var SearchUsersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
602
|
-
...obj,
|
|
603
|
-
...obj.SearchString && { SearchString: import_smithy_client.SENSITIVE_STRING },
|
|
604
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
605
|
-
}), "SearchUsersRequestFilterSensitiveLog");
|
|
606
|
-
var UserFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
607
|
-
...obj,
|
|
608
|
-
...obj.DistinguishedName && { DistinguishedName: import_smithy_client.SENSITIVE_STRING },
|
|
609
|
-
...obj.UserPrincipalName && { UserPrincipalName: import_smithy_client.SENSITIVE_STRING },
|
|
610
|
-
...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING },
|
|
611
|
-
...obj.GivenName && { GivenName: import_smithy_client.SENSITIVE_STRING },
|
|
612
|
-
...obj.Surname && { Surname: import_smithy_client.SENSITIVE_STRING },
|
|
613
|
-
...obj.OtherAttributes && {
|
|
614
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
615
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
616
|
-
{}
|
|
617
|
-
)
|
|
618
|
-
}
|
|
619
|
-
}), "UserFilterSensitiveLog");
|
|
620
|
-
var SearchUsersResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
621
|
-
...obj,
|
|
622
|
-
...obj.Users && { Users: obj.Users.map((item) => UserFilterSensitiveLog(item)) },
|
|
623
|
-
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
624
|
-
}), "SearchUsersResultFilterSensitiveLog");
|
|
625
|
-
var UpdateGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
626
|
-
...obj,
|
|
627
|
-
...obj.OtherAttributes && {
|
|
628
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
629
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
630
|
-
{}
|
|
631
|
-
)
|
|
632
|
-
}
|
|
633
|
-
}), "UpdateGroupRequestFilterSensitiveLog");
|
|
634
|
-
var UpdateUserRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
635
|
-
...obj,
|
|
636
|
-
...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING },
|
|
637
|
-
...obj.GivenName && { GivenName: import_smithy_client.SENSITIVE_STRING },
|
|
638
|
-
...obj.Surname && { Surname: import_smithy_client.SENSITIVE_STRING },
|
|
639
|
-
...obj.OtherAttributes && {
|
|
640
|
-
OtherAttributes: Object.entries(obj.OtherAttributes).reduce(
|
|
641
|
-
(acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
|
|
642
|
-
{}
|
|
643
|
-
)
|
|
644
|
-
}
|
|
645
|
-
}), "UpdateUserRequestFilterSensitiveLog");
|
|
646
|
-
|
|
647
|
-
// src/protocols/Aws_restJson1.ts
|
|
648
|
-
var se_AddGroupMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
649
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
650
|
-
const headers = {
|
|
651
|
-
"content-type": "application/json"
|
|
652
|
-
};
|
|
653
|
-
b.bp("/GroupMemberships/AddGroupMember");
|
|
654
|
-
const query = (0, import_smithy_client.map)({
|
|
655
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
656
|
-
});
|
|
657
|
-
let body;
|
|
658
|
-
body = JSON.stringify(
|
|
659
|
-
(0, import_smithy_client.take)(input, {
|
|
660
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
661
|
-
GroupName: [],
|
|
662
|
-
MemberName: [],
|
|
663
|
-
MemberRealm: []
|
|
664
|
-
})
|
|
665
|
-
);
|
|
666
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
667
|
-
return b.build();
|
|
668
|
-
}, "se_AddGroupMemberCommand");
|
|
669
|
-
var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
670
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
671
|
-
const headers = {
|
|
672
|
-
"content-type": "application/json"
|
|
673
|
-
};
|
|
674
|
-
b.bp("/Groups/CreateGroup");
|
|
675
|
-
const query = (0, import_smithy_client.map)({
|
|
676
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
677
|
-
});
|
|
678
|
-
let body;
|
|
679
|
-
body = JSON.stringify(
|
|
680
|
-
(0, import_smithy_client.take)(input, {
|
|
681
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
682
|
-
GroupScope: [],
|
|
683
|
-
GroupType: [],
|
|
684
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
685
|
-
SAMAccountName: []
|
|
686
|
-
})
|
|
687
|
-
);
|
|
688
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
689
|
-
return b.build();
|
|
690
|
-
}, "se_CreateGroupCommand");
|
|
691
|
-
var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
692
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
693
|
-
const headers = {
|
|
694
|
-
"content-type": "application/json"
|
|
695
|
-
};
|
|
696
|
-
b.bp("/Users/CreateUser");
|
|
697
|
-
const query = (0, import_smithy_client.map)({
|
|
698
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
699
|
-
});
|
|
700
|
-
let body;
|
|
701
|
-
body = JSON.stringify(
|
|
702
|
-
(0, import_smithy_client.take)(input, {
|
|
703
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
704
|
-
EmailAddress: [],
|
|
705
|
-
GivenName: [],
|
|
706
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
707
|
-
SAMAccountName: [],
|
|
708
|
-
Surname: []
|
|
709
|
-
})
|
|
710
|
-
);
|
|
711
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
712
|
-
return b.build();
|
|
713
|
-
}, "se_CreateUserCommand");
|
|
714
|
-
var se_DeleteGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
715
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
716
|
-
const headers = {
|
|
717
|
-
"content-type": "application/json"
|
|
718
|
-
};
|
|
719
|
-
b.bp("/Groups/DeleteGroup");
|
|
720
|
-
const query = (0, import_smithy_client.map)({
|
|
721
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
722
|
-
});
|
|
723
|
-
let body;
|
|
724
|
-
body = JSON.stringify(
|
|
725
|
-
(0, import_smithy_client.take)(input, {
|
|
726
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
727
|
-
SAMAccountName: []
|
|
728
|
-
})
|
|
729
|
-
);
|
|
730
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
731
|
-
return b.build();
|
|
732
|
-
}, "se_DeleteGroupCommand");
|
|
733
|
-
var se_DeleteUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
734
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
735
|
-
const headers = {
|
|
736
|
-
"content-type": "application/json"
|
|
737
|
-
};
|
|
738
|
-
b.bp("/Users/DeleteUser");
|
|
739
|
-
const query = (0, import_smithy_client.map)({
|
|
740
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
741
|
-
});
|
|
742
|
-
let body;
|
|
743
|
-
body = JSON.stringify(
|
|
744
|
-
(0, import_smithy_client.take)(input, {
|
|
745
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
746
|
-
SAMAccountName: []
|
|
747
|
-
})
|
|
748
|
-
);
|
|
749
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
750
|
-
return b.build();
|
|
751
|
-
}, "se_DeleteUserCommand");
|
|
752
|
-
var se_DescribeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
753
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
754
|
-
const headers = {
|
|
755
|
-
"content-type": "application/json"
|
|
756
|
-
};
|
|
757
|
-
b.bp("/Groups/DescribeGroup");
|
|
758
|
-
const query = (0, import_smithy_client.map)({
|
|
759
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
760
|
-
});
|
|
761
|
-
let body;
|
|
762
|
-
body = JSON.stringify(
|
|
763
|
-
(0, import_smithy_client.take)(input, {
|
|
764
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
765
|
-
Realm: [],
|
|
766
|
-
SAMAccountName: []
|
|
767
|
-
})
|
|
768
|
-
);
|
|
769
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
770
|
-
return b.build();
|
|
771
|
-
}, "se_DescribeGroupCommand");
|
|
772
|
-
var se_DescribeUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
773
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
774
|
-
const headers = {
|
|
775
|
-
"content-type": "application/json"
|
|
776
|
-
};
|
|
777
|
-
b.bp("/Users/DescribeUser");
|
|
778
|
-
const query = (0, import_smithy_client.map)({
|
|
779
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
780
|
-
});
|
|
781
|
-
let body;
|
|
782
|
-
body = JSON.stringify(
|
|
783
|
-
(0, import_smithy_client.take)(input, {
|
|
784
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
785
|
-
Realm: [],
|
|
786
|
-
SAMAccountName: []
|
|
787
|
-
})
|
|
788
|
-
);
|
|
789
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
790
|
-
return b.build();
|
|
791
|
-
}, "se_DescribeUserCommand");
|
|
792
|
-
var se_DisableUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
793
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
794
|
-
const headers = {
|
|
795
|
-
"content-type": "application/json"
|
|
796
|
-
};
|
|
797
|
-
b.bp("/Users/DisableUser");
|
|
798
|
-
const query = (0, import_smithy_client.map)({
|
|
799
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
800
|
-
});
|
|
801
|
-
let body;
|
|
802
|
-
body = JSON.stringify(
|
|
803
|
-
(0, import_smithy_client.take)(input, {
|
|
804
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
805
|
-
SAMAccountName: []
|
|
806
|
-
})
|
|
807
|
-
);
|
|
808
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
809
|
-
return b.build();
|
|
810
|
-
}, "se_DisableUserCommand");
|
|
811
|
-
var se_ListGroupMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
812
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
813
|
-
const headers = {
|
|
814
|
-
"content-type": "application/json"
|
|
815
|
-
};
|
|
816
|
-
b.bp("/GroupMemberships/ListGroupMembers");
|
|
817
|
-
const query = (0, import_smithy_client.map)({
|
|
818
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
819
|
-
});
|
|
820
|
-
let body;
|
|
821
|
-
body = JSON.stringify(
|
|
822
|
-
(0, import_smithy_client.take)(input, {
|
|
823
|
-
MaxResults: [],
|
|
824
|
-
MemberRealm: [],
|
|
825
|
-
NextToken: [],
|
|
826
|
-
Realm: [],
|
|
827
|
-
SAMAccountName: []
|
|
828
|
-
})
|
|
829
|
-
);
|
|
830
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
831
|
-
return b.build();
|
|
832
|
-
}, "se_ListGroupMembersCommand");
|
|
833
|
-
var se_ListGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
834
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
835
|
-
const headers = {
|
|
836
|
-
"content-type": "application/json"
|
|
837
|
-
};
|
|
838
|
-
b.bp("/Groups/ListGroups");
|
|
839
|
-
const query = (0, import_smithy_client.map)({
|
|
840
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
841
|
-
});
|
|
842
|
-
let body;
|
|
843
|
-
body = JSON.stringify(
|
|
844
|
-
(0, import_smithy_client.take)(input, {
|
|
845
|
-
MaxResults: [],
|
|
846
|
-
NextToken: [],
|
|
847
|
-
Realm: []
|
|
848
|
-
})
|
|
849
|
-
);
|
|
850
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
851
|
-
return b.build();
|
|
852
|
-
}, "se_ListGroupsCommand");
|
|
853
|
-
var se_ListGroupsForMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
854
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
855
|
-
const headers = {
|
|
856
|
-
"content-type": "application/json"
|
|
857
|
-
};
|
|
858
|
-
b.bp("/GroupMemberships/ListGroupsForMember");
|
|
859
|
-
const query = (0, import_smithy_client.map)({
|
|
860
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
861
|
-
});
|
|
862
|
-
let body;
|
|
863
|
-
body = JSON.stringify(
|
|
864
|
-
(0, import_smithy_client.take)(input, {
|
|
865
|
-
MaxResults: [],
|
|
866
|
-
MemberRealm: [],
|
|
867
|
-
NextToken: [],
|
|
868
|
-
Realm: [],
|
|
869
|
-
SAMAccountName: []
|
|
870
|
-
})
|
|
871
|
-
);
|
|
872
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
873
|
-
return b.build();
|
|
874
|
-
}, "se_ListGroupsForMemberCommand");
|
|
875
|
-
var se_ListUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
876
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
877
|
-
const headers = {
|
|
878
|
-
"content-type": "application/json"
|
|
879
|
-
};
|
|
880
|
-
b.bp("/Users/ListUsers");
|
|
881
|
-
const query = (0, import_smithy_client.map)({
|
|
882
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
883
|
-
});
|
|
884
|
-
let body;
|
|
885
|
-
body = JSON.stringify(
|
|
886
|
-
(0, import_smithy_client.take)(input, {
|
|
887
|
-
MaxResults: [],
|
|
888
|
-
NextToken: [],
|
|
889
|
-
Realm: []
|
|
890
|
-
})
|
|
891
|
-
);
|
|
892
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
893
|
-
return b.build();
|
|
894
|
-
}, "se_ListUsersCommand");
|
|
895
|
-
var se_RemoveGroupMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
896
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
897
|
-
const headers = {
|
|
898
|
-
"content-type": "application/json"
|
|
899
|
-
};
|
|
900
|
-
b.bp("/GroupMemberships/RemoveGroupMember");
|
|
901
|
-
const query = (0, import_smithy_client.map)({
|
|
902
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
903
|
-
});
|
|
904
|
-
let body;
|
|
905
|
-
body = JSON.stringify(
|
|
906
|
-
(0, import_smithy_client.take)(input, {
|
|
907
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
908
|
-
GroupName: [],
|
|
909
|
-
MemberName: [],
|
|
910
|
-
MemberRealm: []
|
|
911
|
-
})
|
|
912
|
-
);
|
|
913
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
914
|
-
return b.build();
|
|
915
|
-
}, "se_RemoveGroupMemberCommand");
|
|
916
|
-
var se_SearchGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
917
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
918
|
-
const headers = {
|
|
919
|
-
"content-type": "application/json"
|
|
920
|
-
};
|
|
921
|
-
b.bp("/Groups/SearchGroups");
|
|
922
|
-
const query = (0, import_smithy_client.map)({
|
|
923
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
924
|
-
});
|
|
925
|
-
let body;
|
|
926
|
-
body = JSON.stringify(
|
|
927
|
-
(0, import_smithy_client.take)(input, {
|
|
928
|
-
MaxResults: [],
|
|
929
|
-
NextToken: [],
|
|
930
|
-
Realm: [],
|
|
931
|
-
SearchAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SearchAttributes"),
|
|
932
|
-
SearchString: []
|
|
933
|
-
})
|
|
934
|
-
);
|
|
935
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
936
|
-
return b.build();
|
|
937
|
-
}, "se_SearchGroupsCommand");
|
|
938
|
-
var se_SearchUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
939
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
940
|
-
const headers = {
|
|
941
|
-
"content-type": "application/json"
|
|
942
|
-
};
|
|
943
|
-
b.bp("/Users/SearchUsers");
|
|
944
|
-
const query = (0, import_smithy_client.map)({
|
|
945
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
946
|
-
});
|
|
947
|
-
let body;
|
|
948
|
-
body = JSON.stringify(
|
|
949
|
-
(0, import_smithy_client.take)(input, {
|
|
950
|
-
MaxResults: [],
|
|
951
|
-
NextToken: [],
|
|
952
|
-
Realm: [],
|
|
953
|
-
SearchAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SearchAttributes"),
|
|
954
|
-
SearchString: []
|
|
955
|
-
})
|
|
956
|
-
);
|
|
957
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
958
|
-
return b.build();
|
|
959
|
-
}, "se_SearchUsersCommand");
|
|
960
|
-
var se_UpdateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
961
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
962
|
-
const headers = {
|
|
963
|
-
"content-type": "application/json"
|
|
964
|
-
};
|
|
965
|
-
b.bp("/Groups/UpdateGroup");
|
|
966
|
-
const query = (0, import_smithy_client.map)({
|
|
967
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
968
|
-
});
|
|
969
|
-
let body;
|
|
970
|
-
body = JSON.stringify(
|
|
971
|
-
(0, import_smithy_client.take)(input, {
|
|
972
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
973
|
-
GroupScope: [],
|
|
974
|
-
GroupType: [],
|
|
975
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
976
|
-
SAMAccountName: [],
|
|
977
|
-
UpdateType: []
|
|
978
|
-
})
|
|
979
|
-
);
|
|
980
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
981
|
-
return b.build();
|
|
982
|
-
}, "se_UpdateGroupCommand");
|
|
983
|
-
var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
984
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
985
|
-
const headers = {
|
|
986
|
-
"content-type": "application/json"
|
|
987
|
-
};
|
|
988
|
-
b.bp("/Users/UpdateUser");
|
|
989
|
-
const query = (0, import_smithy_client.map)({
|
|
990
|
-
[_DI]: [, (0, import_smithy_client.expectNonNull)(input[_DI], `DirectoryId`)]
|
|
991
|
-
});
|
|
992
|
-
let body;
|
|
993
|
-
body = JSON.stringify(
|
|
994
|
-
(0, import_smithy_client.take)(input, {
|
|
995
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
996
|
-
EmailAddress: [],
|
|
997
|
-
GivenName: [],
|
|
998
|
-
OtherAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "OtherAttributes"),
|
|
999
|
-
SAMAccountName: [],
|
|
1000
|
-
Surname: [],
|
|
1001
|
-
UpdateType: []
|
|
1002
|
-
})
|
|
1003
|
-
);
|
|
1004
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
1005
|
-
return b.build();
|
|
1006
|
-
}, "se_UpdateUserCommand");
|
|
1007
|
-
var de_AddGroupMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return de_CommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = (0, import_smithy_client.map)({
|
|
1012
|
-
$metadata: deserializeMetadata(output)
|
|
1013
|
-
});
|
|
1014
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1015
|
-
return contents;
|
|
1016
|
-
}, "de_AddGroupMemberCommand");
|
|
1017
|
-
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return de_CommandError(output, context);
|
|
1020
|
-
}
|
|
1021
|
-
const contents = (0, import_smithy_client.map)({
|
|
1022
|
-
$metadata: deserializeMetadata(output)
|
|
1023
|
-
});
|
|
1024
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1025
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1026
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1027
|
-
SAMAccountName: import_smithy_client.expectString,
|
|
1028
|
-
SID: import_smithy_client.expectString
|
|
1029
|
-
});
|
|
1030
|
-
Object.assign(contents, doc);
|
|
1031
|
-
return contents;
|
|
1032
|
-
}, "de_CreateGroupCommand");
|
|
1033
|
-
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1034
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return de_CommandError(output, context);
|
|
1036
|
-
}
|
|
1037
|
-
const contents = (0, import_smithy_client.map)({
|
|
1038
|
-
$metadata: deserializeMetadata(output)
|
|
1039
|
-
});
|
|
1040
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1041
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1042
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1043
|
-
SAMAccountName: import_smithy_client.expectString,
|
|
1044
|
-
SID: import_smithy_client.expectString
|
|
1045
|
-
});
|
|
1046
|
-
Object.assign(contents, doc);
|
|
1047
|
-
return contents;
|
|
1048
|
-
}, "de_CreateUserCommand");
|
|
1049
|
-
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1050
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1051
|
-
return de_CommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const contents = (0, import_smithy_client.map)({
|
|
1054
|
-
$metadata: deserializeMetadata(output)
|
|
1055
|
-
});
|
|
1056
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1057
|
-
return contents;
|
|
1058
|
-
}, "de_DeleteGroupCommand");
|
|
1059
|
-
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return de_CommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents = (0, import_smithy_client.map)({
|
|
1064
|
-
$metadata: deserializeMetadata(output)
|
|
1065
|
-
});
|
|
1066
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1067
|
-
return contents;
|
|
1068
|
-
}, "de_DeleteUserCommand");
|
|
1069
|
-
var de_DescribeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1070
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return de_CommandError(output, context);
|
|
1072
|
-
}
|
|
1073
|
-
const contents = (0, import_smithy_client.map)({
|
|
1074
|
-
$metadata: deserializeMetadata(output)
|
|
1075
|
-
});
|
|
1076
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1077
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1078
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1079
|
-
DistinguishedName: import_smithy_client.expectString,
|
|
1080
|
-
GroupScope: import_smithy_client.expectString,
|
|
1081
|
-
GroupType: import_smithy_client.expectString,
|
|
1082
|
-
OtherAttributes: import_smithy_client._json,
|
|
1083
|
-
Realm: import_smithy_client.expectString,
|
|
1084
|
-
SAMAccountName: import_smithy_client.expectString,
|
|
1085
|
-
SID: import_smithy_client.expectString
|
|
1086
|
-
});
|
|
1087
|
-
Object.assign(contents, doc);
|
|
1088
|
-
return contents;
|
|
1089
|
-
}, "de_DescribeGroupCommand");
|
|
1090
|
-
var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
|
-
return de_CommandError(output, context);
|
|
1093
|
-
}
|
|
1094
|
-
const contents = (0, import_smithy_client.map)({
|
|
1095
|
-
$metadata: deserializeMetadata(output)
|
|
1096
|
-
});
|
|
1097
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1098
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1099
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1100
|
-
DistinguishedName: import_smithy_client.expectString,
|
|
1101
|
-
EmailAddress: import_smithy_client.expectString,
|
|
1102
|
-
Enabled: import_smithy_client.expectBoolean,
|
|
1103
|
-
GivenName: import_smithy_client.expectString,
|
|
1104
|
-
OtherAttributes: import_smithy_client._json,
|
|
1105
|
-
Realm: import_smithy_client.expectString,
|
|
1106
|
-
SAMAccountName: import_smithy_client.expectString,
|
|
1107
|
-
SID: import_smithy_client.expectString,
|
|
1108
|
-
Surname: import_smithy_client.expectString,
|
|
1109
|
-
UserPrincipalName: import_smithy_client.expectString
|
|
1110
|
-
});
|
|
1111
|
-
Object.assign(contents, doc);
|
|
1112
|
-
return contents;
|
|
1113
|
-
}, "de_DescribeUserCommand");
|
|
1114
|
-
var de_DisableUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1115
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
|
-
return de_CommandError(output, context);
|
|
1117
|
-
}
|
|
1118
|
-
const contents = (0, import_smithy_client.map)({
|
|
1119
|
-
$metadata: deserializeMetadata(output)
|
|
1120
|
-
});
|
|
1121
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1122
|
-
return contents;
|
|
1123
|
-
}, "de_DisableUserCommand");
|
|
1124
|
-
var de_ListGroupMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1125
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return de_CommandError(output, context);
|
|
1127
|
-
}
|
|
1128
|
-
const contents = (0, import_smithy_client.map)({
|
|
1129
|
-
$metadata: deserializeMetadata(output)
|
|
1130
|
-
});
|
|
1131
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1132
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1133
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1134
|
-
MemberRealm: import_smithy_client.expectString,
|
|
1135
|
-
Members: import_smithy_client._json,
|
|
1136
|
-
NextToken: import_smithy_client.expectString,
|
|
1137
|
-
Realm: import_smithy_client.expectString
|
|
1138
|
-
});
|
|
1139
|
-
Object.assign(contents, doc);
|
|
1140
|
-
return contents;
|
|
1141
|
-
}, "de_ListGroupMembersCommand");
|
|
1142
|
-
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return de_CommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const contents = (0, import_smithy_client.map)({
|
|
1147
|
-
$metadata: deserializeMetadata(output)
|
|
1148
|
-
});
|
|
1149
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1150
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1151
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1152
|
-
Groups: import_smithy_client._json,
|
|
1153
|
-
NextToken: import_smithy_client.expectString,
|
|
1154
|
-
Realm: import_smithy_client.expectString
|
|
1155
|
-
});
|
|
1156
|
-
Object.assign(contents, doc);
|
|
1157
|
-
return contents;
|
|
1158
|
-
}, "de_ListGroupsCommand");
|
|
1159
|
-
var de_ListGroupsForMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
|
-
return de_CommandError(output, context);
|
|
1162
|
-
}
|
|
1163
|
-
const contents = (0, import_smithy_client.map)({
|
|
1164
|
-
$metadata: deserializeMetadata(output)
|
|
1165
|
-
});
|
|
1166
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1167
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1168
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1169
|
-
Groups: import_smithy_client._json,
|
|
1170
|
-
MemberRealm: import_smithy_client.expectString,
|
|
1171
|
-
NextToken: import_smithy_client.expectString,
|
|
1172
|
-
Realm: import_smithy_client.expectString
|
|
1173
|
-
});
|
|
1174
|
-
Object.assign(contents, doc);
|
|
1175
|
-
return contents;
|
|
1176
|
-
}, "de_ListGroupsForMemberCommand");
|
|
1177
|
-
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
-
return de_CommandError(output, context);
|
|
1180
|
-
}
|
|
1181
|
-
const contents = (0, import_smithy_client.map)({
|
|
1182
|
-
$metadata: deserializeMetadata(output)
|
|
1183
|
-
});
|
|
1184
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1185
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1186
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1187
|
-
NextToken: import_smithy_client.expectString,
|
|
1188
|
-
Realm: import_smithy_client.expectString,
|
|
1189
|
-
Users: import_smithy_client._json
|
|
1190
|
-
});
|
|
1191
|
-
Object.assign(contents, doc);
|
|
1192
|
-
return contents;
|
|
1193
|
-
}, "de_ListUsersCommand");
|
|
1194
|
-
var de_RemoveGroupMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1195
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return de_CommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const contents = (0, import_smithy_client.map)({
|
|
1199
|
-
$metadata: deserializeMetadata(output)
|
|
1200
|
-
});
|
|
1201
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1202
|
-
return contents;
|
|
1203
|
-
}, "de_RemoveGroupMemberCommand");
|
|
1204
|
-
var de_SearchGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1205
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
|
-
return de_CommandError(output, context);
|
|
1207
|
-
}
|
|
1208
|
-
const contents = (0, import_smithy_client.map)({
|
|
1209
|
-
$metadata: deserializeMetadata(output)
|
|
1210
|
-
});
|
|
1211
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1212
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1213
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1214
|
-
Groups: import_smithy_client._json,
|
|
1215
|
-
NextToken: import_smithy_client.expectString,
|
|
1216
|
-
Realm: import_smithy_client.expectString
|
|
1217
|
-
});
|
|
1218
|
-
Object.assign(contents, doc);
|
|
1219
|
-
return contents;
|
|
1220
|
-
}, "de_SearchGroupsCommand");
|
|
1221
|
-
var de_SearchUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return de_CommandError(output, context);
|
|
1224
|
-
}
|
|
1225
|
-
const contents = (0, import_smithy_client.map)({
|
|
1226
|
-
$metadata: deserializeMetadata(output)
|
|
1227
|
-
});
|
|
1228
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1229
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1230
|
-
DirectoryId: import_smithy_client.expectString,
|
|
1231
|
-
NextToken: import_smithy_client.expectString,
|
|
1232
|
-
Realm: import_smithy_client.expectString,
|
|
1233
|
-
Users: import_smithy_client._json
|
|
1234
|
-
});
|
|
1235
|
-
Object.assign(contents, doc);
|
|
1236
|
-
return contents;
|
|
1237
|
-
}, "de_SearchUsersCommand");
|
|
1238
|
-
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
|
-
return de_CommandError(output, context);
|
|
1241
|
-
}
|
|
1242
|
-
const contents = (0, import_smithy_client.map)({
|
|
1243
|
-
$metadata: deserializeMetadata(output)
|
|
1244
|
-
});
|
|
1245
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1246
|
-
return contents;
|
|
1247
|
-
}, "de_UpdateGroupCommand");
|
|
1248
|
-
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1249
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1250
|
-
return de_CommandError(output, context);
|
|
1251
|
-
}
|
|
1252
|
-
const contents = (0, import_smithy_client.map)({
|
|
1253
|
-
$metadata: deserializeMetadata(output)
|
|
1254
|
-
});
|
|
1255
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1256
|
-
return contents;
|
|
1257
|
-
}, "de_UpdateUserCommand");
|
|
1258
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "AccessDeniedException":
|
|
1266
|
-
case "com.amazonaws.directoryservicedata#AccessDeniedException":
|
|
1267
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ConflictException":
|
|
1269
|
-
case "com.amazonaws.directoryservicedata#ConflictException":
|
|
1270
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "DirectoryUnavailableException":
|
|
1272
|
-
case "com.amazonaws.directoryservicedata#DirectoryUnavailableException":
|
|
1273
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "InternalServerException":
|
|
1275
|
-
case "com.amazonaws.directoryservicedata#InternalServerException":
|
|
1276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.directoryservicedata#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ThrottlingException":
|
|
1281
|
-
case "com.amazonaws.directoryservicedata#ThrottlingException":
|
|
1282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ValidationException":
|
|
1284
|
-
case "com.amazonaws.directoryservicedata#ValidationException":
|
|
1285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
}, "de_CommandError");
|
|
1295
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DirectoryServiceDataServiceException);
|
|
1296
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1297
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1298
|
-
const data = parsedOutput.body;
|
|
1299
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1300
|
-
Message: import_smithy_client.expectString,
|
|
1301
|
-
Reason: import_smithy_client.expectString
|
|
1302
|
-
});
|
|
1303
|
-
Object.assign(contents, doc);
|
|
1304
|
-
const exception = new AccessDeniedException({
|
|
1305
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1306
|
-
...contents
|
|
1307
|
-
});
|
|
1308
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1309
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1310
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1311
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1312
|
-
const data = parsedOutput.body;
|
|
1313
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1314
|
-
Message: import_smithy_client.expectString
|
|
1315
|
-
});
|
|
1316
|
-
Object.assign(contents, doc);
|
|
1317
|
-
const exception = new ConflictException({
|
|
1318
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
|
-
...contents
|
|
1320
|
-
});
|
|
1321
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1322
|
-
}, "de_ConflictExceptionRes");
|
|
1323
|
-
var de_DirectoryUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1324
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1325
|
-
const data = parsedOutput.body;
|
|
1326
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1327
|
-
Message: import_smithy_client.expectString,
|
|
1328
|
-
Reason: import_smithy_client.expectString
|
|
1329
|
-
});
|
|
1330
|
-
Object.assign(contents, doc);
|
|
1331
|
-
const exception = new DirectoryUnavailableException({
|
|
1332
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1333
|
-
...contents
|
|
1334
|
-
});
|
|
1335
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1336
|
-
}, "de_DirectoryUnavailableExceptionRes");
|
|
1337
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1338
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1339
|
-
const data = parsedOutput.body;
|
|
1340
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1341
|
-
Message: import_smithy_client.expectString
|
|
1342
|
-
});
|
|
1343
|
-
Object.assign(contents, doc);
|
|
1344
|
-
const exception = new InternalServerException({
|
|
1345
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1346
|
-
...contents
|
|
1347
|
-
});
|
|
1348
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1349
|
-
}, "de_InternalServerExceptionRes");
|
|
1350
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1351
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1352
|
-
const data = parsedOutput.body;
|
|
1353
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1354
|
-
Message: import_smithy_client.expectString
|
|
1355
|
-
});
|
|
1356
|
-
Object.assign(contents, doc);
|
|
1357
|
-
const exception = new ResourceNotFoundException({
|
|
1358
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1359
|
-
...contents
|
|
1360
|
-
});
|
|
1361
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1362
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1363
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1364
|
-
const contents = (0, import_smithy_client.map)({
|
|
1365
|
-
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1366
|
-
});
|
|
1367
|
-
const data = parsedOutput.body;
|
|
1368
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1369
|
-
Message: import_smithy_client.expectString
|
|
1370
|
-
});
|
|
1371
|
-
Object.assign(contents, doc);
|
|
1372
|
-
const exception = new ThrottlingException({
|
|
1373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1374
|
-
...contents
|
|
1375
|
-
});
|
|
1376
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1377
|
-
}, "de_ThrottlingExceptionRes");
|
|
1378
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1379
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1380
|
-
const data = parsedOutput.body;
|
|
1381
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1382
|
-
Message: import_smithy_client.expectString,
|
|
1383
|
-
Reason: import_smithy_client.expectString
|
|
1384
|
-
});
|
|
1385
|
-
Object.assign(contents, doc);
|
|
1386
|
-
const exception = new ValidationException({
|
|
1387
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1388
|
-
...contents
|
|
1389
|
-
});
|
|
1390
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1391
|
-
}, "de_ValidationExceptionRes");
|
|
1392
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1393
|
-
httpStatusCode: output.statusCode,
|
|
1394
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1395
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1396
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1397
|
-
}), "deserializeMetadata");
|
|
1398
|
-
var _DI = "DirectoryId";
|
|
1399
|
-
var _RAS = "RetryAfterSeconds";
|
|
1400
|
-
var _ra = "retry-after";
|
|
1401
|
-
|
|
1402
|
-
// src/commands/AddGroupMemberCommand.ts
|
|
1403
|
-
var AddGroupMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1404
|
-
return [
|
|
1405
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1406
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1407
|
-
];
|
|
1408
|
-
}).s("DirectoryServiceData", "AddGroupMember", {}).n("DirectoryServiceDataClient", "AddGroupMemberCommand").f(void 0, void 0).ser(se_AddGroupMemberCommand).de(de_AddGroupMemberCommand).build() {
|
|
1409
|
-
static {
|
|
1410
|
-
__name(this, "AddGroupMemberCommand");
|
|
1411
|
-
}
|
|
694
|
+
const se_SearchUsersCommand = async (input, context) => {
|
|
695
|
+
const b = core.requestBuilder(input, context);
|
|
696
|
+
const headers = {
|
|
697
|
+
"content-type": "application/json",
|
|
698
|
+
};
|
|
699
|
+
b.bp("/Users/SearchUsers");
|
|
700
|
+
const query = smithyClient.map({
|
|
701
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
702
|
+
});
|
|
703
|
+
let body;
|
|
704
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
705
|
+
MaxResults: [],
|
|
706
|
+
NextToken: [],
|
|
707
|
+
Realm: [],
|
|
708
|
+
SearchAttributes: (_) => smithyClient._json(_),
|
|
709
|
+
SearchString: [],
|
|
710
|
+
}));
|
|
711
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
712
|
+
return b.build();
|
|
1412
713
|
};
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
714
|
+
const se_UpdateGroupCommand = async (input, context) => {
|
|
715
|
+
const b = core.requestBuilder(input, context);
|
|
716
|
+
const headers = {
|
|
717
|
+
"content-type": "application/json",
|
|
718
|
+
};
|
|
719
|
+
b.bp("/Groups/UpdateGroup");
|
|
720
|
+
const query = smithyClient.map({
|
|
721
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
722
|
+
});
|
|
723
|
+
let body;
|
|
724
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
725
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
726
|
+
GroupScope: [],
|
|
727
|
+
GroupType: [],
|
|
728
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
729
|
+
SAMAccountName: [],
|
|
730
|
+
UpdateType: [],
|
|
731
|
+
}));
|
|
732
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
733
|
+
return b.build();
|
|
1427
734
|
};
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
735
|
+
const se_UpdateUserCommand = async (input, context) => {
|
|
736
|
+
const b = core.requestBuilder(input, context);
|
|
737
|
+
const headers = {
|
|
738
|
+
"content-type": "application/json",
|
|
739
|
+
};
|
|
740
|
+
b.bp("/Users/UpdateUser");
|
|
741
|
+
const query = smithyClient.map({
|
|
742
|
+
[_DI]: [, smithyClient.expectNonNull(input[_DI], `DirectoryId`)],
|
|
743
|
+
});
|
|
744
|
+
let body;
|
|
745
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
746
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
747
|
+
EmailAddress: [],
|
|
748
|
+
GivenName: [],
|
|
749
|
+
OtherAttributes: (_) => smithyClient._json(_),
|
|
750
|
+
SAMAccountName: [],
|
|
751
|
+
Surname: [],
|
|
752
|
+
UpdateType: [],
|
|
753
|
+
}));
|
|
754
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
755
|
+
return b.build();
|
|
1442
756
|
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
];
|
|
1453
|
-
}).s("DirectoryServiceData", "DeleteGroup", {}).n("DirectoryServiceDataClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
|
|
1454
|
-
static {
|
|
1455
|
-
__name(this, "DeleteGroupCommand");
|
|
1456
|
-
}
|
|
757
|
+
const de_AddGroupMemberCommand = async (output, context) => {
|
|
758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
|
+
return de_CommandError(output, context);
|
|
760
|
+
}
|
|
761
|
+
const contents = smithyClient.map({
|
|
762
|
+
$metadata: deserializeMetadata(output),
|
|
763
|
+
});
|
|
764
|
+
await smithyClient.collectBody(output.body, context);
|
|
765
|
+
return contents;
|
|
1457
766
|
};
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
(
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
767
|
+
const de_CreateGroupCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
+
return de_CommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const contents = smithyClient.map({
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
});
|
|
774
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
775
|
+
const doc = smithyClient.take(data, {
|
|
776
|
+
DirectoryId: smithyClient.expectString,
|
|
777
|
+
SAMAccountName: smithyClient.expectString,
|
|
778
|
+
SID: smithyClient.expectString,
|
|
779
|
+
});
|
|
780
|
+
Object.assign(contents, doc);
|
|
781
|
+
return contents;
|
|
1472
782
|
};
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
(
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
783
|
+
const de_CreateUserCommand = async (output, context) => {
|
|
784
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
+
return de_CommandError(output, context);
|
|
786
|
+
}
|
|
787
|
+
const contents = smithyClient.map({
|
|
788
|
+
$metadata: deserializeMetadata(output),
|
|
789
|
+
});
|
|
790
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
791
|
+
const doc = smithyClient.take(data, {
|
|
792
|
+
DirectoryId: smithyClient.expectString,
|
|
793
|
+
SAMAccountName: smithyClient.expectString,
|
|
794
|
+
SID: smithyClient.expectString,
|
|
795
|
+
});
|
|
796
|
+
Object.assign(contents, doc);
|
|
797
|
+
return contents;
|
|
1487
798
|
};
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
];
|
|
1498
|
-
}).s("DirectoryServiceData", "DescribeUser", {}).n("DirectoryServiceDataClient", "DescribeUserCommand").f(void 0, DescribeUserResultFilterSensitiveLog).ser(se_DescribeUserCommand).de(de_DescribeUserCommand).build() {
|
|
1499
|
-
static {
|
|
1500
|
-
__name(this, "DescribeUserCommand");
|
|
1501
|
-
}
|
|
799
|
+
const de_DeleteGroupCommand = async (output, context) => {
|
|
800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
+
return de_CommandError(output, context);
|
|
802
|
+
}
|
|
803
|
+
const contents = smithyClient.map({
|
|
804
|
+
$metadata: deserializeMetadata(output),
|
|
805
|
+
});
|
|
806
|
+
await smithyClient.collectBody(output.body, context);
|
|
807
|
+
return contents;
|
|
1502
808
|
};
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
];
|
|
1513
|
-
}).s("DirectoryServiceData", "DisableUser", {}).n("DirectoryServiceDataClient", "DisableUserCommand").f(void 0, void 0).ser(se_DisableUserCommand).de(de_DisableUserCommand).build() {
|
|
1514
|
-
static {
|
|
1515
|
-
__name(this, "DisableUserCommand");
|
|
1516
|
-
}
|
|
809
|
+
const de_DeleteUserCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
|
+
return de_CommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
const contents = smithyClient.map({
|
|
814
|
+
$metadata: deserializeMetadata(output),
|
|
815
|
+
});
|
|
816
|
+
await smithyClient.collectBody(output.body, context);
|
|
817
|
+
return contents;
|
|
1517
818
|
};
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
(
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
819
|
+
const de_DescribeGroupCommand = async (output, context) => {
|
|
820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
+
return de_CommandError(output, context);
|
|
822
|
+
}
|
|
823
|
+
const contents = smithyClient.map({
|
|
824
|
+
$metadata: deserializeMetadata(output),
|
|
825
|
+
});
|
|
826
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
827
|
+
const doc = smithyClient.take(data, {
|
|
828
|
+
DirectoryId: smithyClient.expectString,
|
|
829
|
+
DistinguishedName: smithyClient.expectString,
|
|
830
|
+
GroupScope: smithyClient.expectString,
|
|
831
|
+
GroupType: smithyClient.expectString,
|
|
832
|
+
OtherAttributes: smithyClient._json,
|
|
833
|
+
Realm: smithyClient.expectString,
|
|
834
|
+
SAMAccountName: smithyClient.expectString,
|
|
835
|
+
SID: smithyClient.expectString,
|
|
836
|
+
});
|
|
837
|
+
Object.assign(contents, doc);
|
|
838
|
+
return contents;
|
|
1532
839
|
};
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
(
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
840
|
+
const de_DescribeUserCommand = async (output, context) => {
|
|
841
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
+
return de_CommandError(output, context);
|
|
843
|
+
}
|
|
844
|
+
const contents = smithyClient.map({
|
|
845
|
+
$metadata: deserializeMetadata(output),
|
|
846
|
+
});
|
|
847
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
848
|
+
const doc = smithyClient.take(data, {
|
|
849
|
+
DirectoryId: smithyClient.expectString,
|
|
850
|
+
DistinguishedName: smithyClient.expectString,
|
|
851
|
+
EmailAddress: smithyClient.expectString,
|
|
852
|
+
Enabled: smithyClient.expectBoolean,
|
|
853
|
+
GivenName: smithyClient.expectString,
|
|
854
|
+
OtherAttributes: smithyClient._json,
|
|
855
|
+
Realm: smithyClient.expectString,
|
|
856
|
+
SAMAccountName: smithyClient.expectString,
|
|
857
|
+
SID: smithyClient.expectString,
|
|
858
|
+
Surname: smithyClient.expectString,
|
|
859
|
+
UserPrincipalName: smithyClient.expectString,
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
862
|
+
return contents;
|
|
1547
863
|
};
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
];
|
|
1558
|
-
}).s("DirectoryServiceData", "ListGroupsForMember", {}).n("DirectoryServiceDataClient", "ListGroupsForMemberCommand").f(ListGroupsForMemberRequestFilterSensitiveLog, ListGroupsForMemberResultFilterSensitiveLog).ser(se_ListGroupsForMemberCommand).de(de_ListGroupsForMemberCommand).build() {
|
|
1559
|
-
static {
|
|
1560
|
-
__name(this, "ListGroupsForMemberCommand");
|
|
1561
|
-
}
|
|
864
|
+
const de_DisableUserCommand = async (output, context) => {
|
|
865
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
+
return de_CommandError(output, context);
|
|
867
|
+
}
|
|
868
|
+
const contents = smithyClient.map({
|
|
869
|
+
$metadata: deserializeMetadata(output),
|
|
870
|
+
});
|
|
871
|
+
await smithyClient.collectBody(output.body, context);
|
|
872
|
+
return contents;
|
|
1562
873
|
};
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
(
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
874
|
+
const de_ListGroupMembersCommand = async (output, context) => {
|
|
875
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
+
return de_CommandError(output, context);
|
|
877
|
+
}
|
|
878
|
+
const contents = smithyClient.map({
|
|
879
|
+
$metadata: deserializeMetadata(output),
|
|
880
|
+
});
|
|
881
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
882
|
+
const doc = smithyClient.take(data, {
|
|
883
|
+
DirectoryId: smithyClient.expectString,
|
|
884
|
+
MemberRealm: smithyClient.expectString,
|
|
885
|
+
Members: smithyClient._json,
|
|
886
|
+
NextToken: smithyClient.expectString,
|
|
887
|
+
Realm: smithyClient.expectString,
|
|
888
|
+
});
|
|
889
|
+
Object.assign(contents, doc);
|
|
890
|
+
return contents;
|
|
1577
891
|
};
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
(
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
892
|
+
const de_ListGroupsCommand = async (output, context) => {
|
|
893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
+
return de_CommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const contents = smithyClient.map({
|
|
897
|
+
$metadata: deserializeMetadata(output),
|
|
898
|
+
});
|
|
899
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
900
|
+
const doc = smithyClient.take(data, {
|
|
901
|
+
DirectoryId: smithyClient.expectString,
|
|
902
|
+
Groups: smithyClient._json,
|
|
903
|
+
NextToken: smithyClient.expectString,
|
|
904
|
+
Realm: smithyClient.expectString,
|
|
905
|
+
});
|
|
906
|
+
Object.assign(contents, doc);
|
|
907
|
+
return contents;
|
|
1592
908
|
};
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
(
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
909
|
+
const de_ListGroupsForMemberCommand = async (output, context) => {
|
|
910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
911
|
+
return de_CommandError(output, context);
|
|
912
|
+
}
|
|
913
|
+
const contents = smithyClient.map({
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
});
|
|
916
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
917
|
+
const doc = smithyClient.take(data, {
|
|
918
|
+
DirectoryId: smithyClient.expectString,
|
|
919
|
+
Groups: smithyClient._json,
|
|
920
|
+
MemberRealm: smithyClient.expectString,
|
|
921
|
+
NextToken: smithyClient.expectString,
|
|
922
|
+
Realm: smithyClient.expectString,
|
|
923
|
+
});
|
|
924
|
+
Object.assign(contents, doc);
|
|
925
|
+
return contents;
|
|
1607
926
|
};
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
(
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
927
|
+
const de_ListUsersCommand = async (output, context) => {
|
|
928
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
+
return de_CommandError(output, context);
|
|
930
|
+
}
|
|
931
|
+
const contents = smithyClient.map({
|
|
932
|
+
$metadata: deserializeMetadata(output),
|
|
933
|
+
});
|
|
934
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
935
|
+
const doc = smithyClient.take(data, {
|
|
936
|
+
DirectoryId: smithyClient.expectString,
|
|
937
|
+
NextToken: smithyClient.expectString,
|
|
938
|
+
Realm: smithyClient.expectString,
|
|
939
|
+
Users: smithyClient._json,
|
|
940
|
+
});
|
|
941
|
+
Object.assign(contents, doc);
|
|
942
|
+
return contents;
|
|
1622
943
|
};
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
];
|
|
1633
|
-
}).s("DirectoryServiceData", "UpdateGroup", {}).n("DirectoryServiceDataClient", "UpdateGroupCommand").f(UpdateGroupRequestFilterSensitiveLog, void 0).ser(se_UpdateGroupCommand).de(de_UpdateGroupCommand).build() {
|
|
1634
|
-
static {
|
|
1635
|
-
__name(this, "UpdateGroupCommand");
|
|
1636
|
-
}
|
|
944
|
+
const de_RemoveGroupMemberCommand = async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return de_CommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = smithyClient.map({
|
|
949
|
+
$metadata: deserializeMetadata(output),
|
|
950
|
+
});
|
|
951
|
+
await smithyClient.collectBody(output.body, context);
|
|
952
|
+
return contents;
|
|
1637
953
|
};
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
(
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
954
|
+
const de_SearchGroupsCommand = async (output, context) => {
|
|
955
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
|
+
return de_CommandError(output, context);
|
|
957
|
+
}
|
|
958
|
+
const contents = smithyClient.map({
|
|
959
|
+
$metadata: deserializeMetadata(output),
|
|
960
|
+
});
|
|
961
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
962
|
+
const doc = smithyClient.take(data, {
|
|
963
|
+
DirectoryId: smithyClient.expectString,
|
|
964
|
+
Groups: smithyClient._json,
|
|
965
|
+
NextToken: smithyClient.expectString,
|
|
966
|
+
Realm: smithyClient.expectString,
|
|
967
|
+
});
|
|
968
|
+
Object.assign(contents, doc);
|
|
969
|
+
return contents;
|
|
1652
970
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
SearchGroupsCommand,
|
|
1670
|
-
SearchUsersCommand,
|
|
1671
|
-
UpdateGroupCommand,
|
|
1672
|
-
UpdateUserCommand
|
|
971
|
+
const de_SearchUsersCommand = async (output, context) => {
|
|
972
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
+
return de_CommandError(output, context);
|
|
974
|
+
}
|
|
975
|
+
const contents = smithyClient.map({
|
|
976
|
+
$metadata: deserializeMetadata(output),
|
|
977
|
+
});
|
|
978
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
979
|
+
const doc = smithyClient.take(data, {
|
|
980
|
+
DirectoryId: smithyClient.expectString,
|
|
981
|
+
NextToken: smithyClient.expectString,
|
|
982
|
+
Realm: smithyClient.expectString,
|
|
983
|
+
Users: smithyClient._json,
|
|
984
|
+
});
|
|
985
|
+
Object.assign(contents, doc);
|
|
986
|
+
return contents;
|
|
1673
987
|
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
988
|
+
const de_UpdateGroupCommand = async (output, context) => {
|
|
989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
+
return de_CommandError(output, context);
|
|
991
|
+
}
|
|
992
|
+
const contents = smithyClient.map({
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
});
|
|
995
|
+
await smithyClient.collectBody(output.body, context);
|
|
996
|
+
return contents;
|
|
1678
997
|
};
|
|
1679
|
-
(
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
998
|
+
const de_UpdateUserCommand = async (output, context) => {
|
|
999
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1001
|
+
}
|
|
1002
|
+
const contents = smithyClient.map({
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
});
|
|
1005
|
+
await smithyClient.collectBody(output.body, context);
|
|
1006
|
+
return contents;
|
|
1007
|
+
};
|
|
1008
|
+
const de_CommandError = async (output, context) => {
|
|
1009
|
+
const parsedOutput = {
|
|
1010
|
+
...output,
|
|
1011
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1012
|
+
};
|
|
1013
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
+
switch (errorCode) {
|
|
1015
|
+
case "AccessDeniedException":
|
|
1016
|
+
case "com.amazonaws.directoryservicedata#AccessDeniedException":
|
|
1017
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1018
|
+
case "ConflictException":
|
|
1019
|
+
case "com.amazonaws.directoryservicedata#ConflictException":
|
|
1020
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1021
|
+
case "DirectoryUnavailableException":
|
|
1022
|
+
case "com.amazonaws.directoryservicedata#DirectoryUnavailableException":
|
|
1023
|
+
throw await de_DirectoryUnavailableExceptionRes(parsedOutput);
|
|
1024
|
+
case "InternalServerException":
|
|
1025
|
+
case "com.amazonaws.directoryservicedata#InternalServerException":
|
|
1026
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1027
|
+
case "ResourceNotFoundException":
|
|
1028
|
+
case "com.amazonaws.directoryservicedata#ResourceNotFoundException":
|
|
1029
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1030
|
+
case "ThrottlingException":
|
|
1031
|
+
case "com.amazonaws.directoryservicedata#ThrottlingException":
|
|
1032
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1033
|
+
case "ValidationException":
|
|
1034
|
+
case "com.amazonaws.directoryservicedata#ValidationException":
|
|
1035
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1036
|
+
default:
|
|
1037
|
+
const parsedBody = parsedOutput.body;
|
|
1038
|
+
return throwDefaultError({
|
|
1039
|
+
output,
|
|
1040
|
+
parsedBody,
|
|
1041
|
+
errorCode,
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
const throwDefaultError = smithyClient.withBaseException(DirectoryServiceDataServiceException);
|
|
1046
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1047
|
+
const contents = smithyClient.map({});
|
|
1048
|
+
const data = parsedOutput.body;
|
|
1049
|
+
const doc = smithyClient.take(data, {
|
|
1050
|
+
Message: smithyClient.expectString,
|
|
1051
|
+
Reason: smithyClient.expectString,
|
|
1052
|
+
});
|
|
1053
|
+
Object.assign(contents, doc);
|
|
1054
|
+
const exception = new AccessDeniedException({
|
|
1055
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1056
|
+
...contents,
|
|
1057
|
+
});
|
|
1058
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1059
|
+
};
|
|
1060
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1061
|
+
const contents = smithyClient.map({});
|
|
1062
|
+
const data = parsedOutput.body;
|
|
1063
|
+
const doc = smithyClient.take(data, {
|
|
1064
|
+
Message: smithyClient.expectString,
|
|
1065
|
+
});
|
|
1066
|
+
Object.assign(contents, doc);
|
|
1067
|
+
const exception = new ConflictException({
|
|
1068
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
+
...contents,
|
|
1070
|
+
});
|
|
1071
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1072
|
+
};
|
|
1073
|
+
const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1074
|
+
const contents = smithyClient.map({});
|
|
1075
|
+
const data = parsedOutput.body;
|
|
1076
|
+
const doc = smithyClient.take(data, {
|
|
1077
|
+
Message: smithyClient.expectString,
|
|
1078
|
+
Reason: smithyClient.expectString,
|
|
1079
|
+
});
|
|
1080
|
+
Object.assign(contents, doc);
|
|
1081
|
+
const exception = new DirectoryUnavailableException({
|
|
1082
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
|
+
...contents,
|
|
1084
|
+
});
|
|
1085
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1086
|
+
};
|
|
1087
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1088
|
+
const contents = smithyClient.map({});
|
|
1089
|
+
const data = parsedOutput.body;
|
|
1090
|
+
const doc = smithyClient.take(data, {
|
|
1091
|
+
Message: smithyClient.expectString,
|
|
1092
|
+
});
|
|
1093
|
+
Object.assign(contents, doc);
|
|
1094
|
+
const exception = new InternalServerException({
|
|
1095
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
+
...contents,
|
|
1097
|
+
});
|
|
1098
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1099
|
+
};
|
|
1100
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1101
|
+
const contents = smithyClient.map({});
|
|
1102
|
+
const data = parsedOutput.body;
|
|
1103
|
+
const doc = smithyClient.take(data, {
|
|
1104
|
+
Message: smithyClient.expectString,
|
|
1105
|
+
});
|
|
1106
|
+
Object.assign(contents, doc);
|
|
1107
|
+
const exception = new ResourceNotFoundException({
|
|
1108
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
|
+
...contents,
|
|
1110
|
+
});
|
|
1111
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1112
|
+
};
|
|
1113
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1114
|
+
const contents = smithyClient.map({
|
|
1115
|
+
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1116
|
+
});
|
|
1117
|
+
const data = parsedOutput.body;
|
|
1118
|
+
const doc = smithyClient.take(data, {
|
|
1119
|
+
Message: smithyClient.expectString,
|
|
1120
|
+
});
|
|
1121
|
+
Object.assign(contents, doc);
|
|
1122
|
+
const exception = new ThrottlingException({
|
|
1123
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1124
|
+
...contents,
|
|
1125
|
+
});
|
|
1126
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1127
|
+
};
|
|
1128
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1129
|
+
const contents = smithyClient.map({});
|
|
1130
|
+
const data = parsedOutput.body;
|
|
1131
|
+
const doc = smithyClient.take(data, {
|
|
1132
|
+
Message: smithyClient.expectString,
|
|
1133
|
+
Reason: smithyClient.expectString,
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1136
|
+
const exception = new ValidationException({
|
|
1137
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1138
|
+
...contents,
|
|
1139
|
+
});
|
|
1140
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1141
|
+
};
|
|
1142
|
+
const deserializeMetadata = (output) => ({
|
|
1143
|
+
httpStatusCode: output.statusCode,
|
|
1144
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1145
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1146
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1147
|
+
});
|
|
1148
|
+
const _DI = "DirectoryId";
|
|
1149
|
+
const _RAS = "RetryAfterSeconds";
|
|
1150
|
+
const _ra = "retry-after";
|
|
1151
|
+
|
|
1152
|
+
class AddGroupMemberCommand extends smithyClient.Command
|
|
1153
|
+
.classBuilder()
|
|
1154
|
+
.ep(commonParams)
|
|
1155
|
+
.m(function (Command, cs, config, o) {
|
|
1156
|
+
return [
|
|
1157
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1158
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1159
|
+
];
|
|
1160
|
+
})
|
|
1161
|
+
.s("DirectoryServiceData", "AddGroupMember", {})
|
|
1162
|
+
.n("DirectoryServiceDataClient", "AddGroupMemberCommand")
|
|
1163
|
+
.f(void 0, void 0)
|
|
1164
|
+
.ser(se_AddGroupMemberCommand)
|
|
1165
|
+
.de(de_AddGroupMemberCommand)
|
|
1166
|
+
.build() {
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
class CreateGroupCommand extends smithyClient.Command
|
|
1170
|
+
.classBuilder()
|
|
1171
|
+
.ep(commonParams)
|
|
1172
|
+
.m(function (Command, cs, config, o) {
|
|
1173
|
+
return [
|
|
1174
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1175
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1176
|
+
];
|
|
1177
|
+
})
|
|
1178
|
+
.s("DirectoryServiceData", "CreateGroup", {})
|
|
1179
|
+
.n("DirectoryServiceDataClient", "CreateGroupCommand")
|
|
1180
|
+
.f(CreateGroupRequestFilterSensitiveLog, void 0)
|
|
1181
|
+
.ser(se_CreateGroupCommand)
|
|
1182
|
+
.de(de_CreateGroupCommand)
|
|
1183
|
+
.build() {
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
class CreateUserCommand extends smithyClient.Command
|
|
1187
|
+
.classBuilder()
|
|
1188
|
+
.ep(commonParams)
|
|
1189
|
+
.m(function (Command, cs, config, o) {
|
|
1190
|
+
return [
|
|
1191
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1192
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1193
|
+
];
|
|
1194
|
+
})
|
|
1195
|
+
.s("DirectoryServiceData", "CreateUser", {})
|
|
1196
|
+
.n("DirectoryServiceDataClient", "CreateUserCommand")
|
|
1197
|
+
.f(CreateUserRequestFilterSensitiveLog, void 0)
|
|
1198
|
+
.ser(se_CreateUserCommand)
|
|
1199
|
+
.de(de_CreateUserCommand)
|
|
1200
|
+
.build() {
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
class DeleteGroupCommand extends smithyClient.Command
|
|
1204
|
+
.classBuilder()
|
|
1205
|
+
.ep(commonParams)
|
|
1206
|
+
.m(function (Command, cs, config, o) {
|
|
1207
|
+
return [
|
|
1208
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1209
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1210
|
+
];
|
|
1211
|
+
})
|
|
1212
|
+
.s("DirectoryServiceData", "DeleteGroup", {})
|
|
1213
|
+
.n("DirectoryServiceDataClient", "DeleteGroupCommand")
|
|
1214
|
+
.f(void 0, void 0)
|
|
1215
|
+
.ser(se_DeleteGroupCommand)
|
|
1216
|
+
.de(de_DeleteGroupCommand)
|
|
1217
|
+
.build() {
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
class DeleteUserCommand extends smithyClient.Command
|
|
1221
|
+
.classBuilder()
|
|
1222
|
+
.ep(commonParams)
|
|
1223
|
+
.m(function (Command, cs, config, o) {
|
|
1224
|
+
return [
|
|
1225
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1226
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1227
|
+
];
|
|
1228
|
+
})
|
|
1229
|
+
.s("DirectoryServiceData", "DeleteUser", {})
|
|
1230
|
+
.n("DirectoryServiceDataClient", "DeleteUserCommand")
|
|
1231
|
+
.f(void 0, void 0)
|
|
1232
|
+
.ser(se_DeleteUserCommand)
|
|
1233
|
+
.de(de_DeleteUserCommand)
|
|
1234
|
+
.build() {
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
class DescribeGroupCommand extends smithyClient.Command
|
|
1238
|
+
.classBuilder()
|
|
1239
|
+
.ep(commonParams)
|
|
1240
|
+
.m(function (Command, cs, config, o) {
|
|
1241
|
+
return [
|
|
1242
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1243
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1244
|
+
];
|
|
1245
|
+
})
|
|
1246
|
+
.s("DirectoryServiceData", "DescribeGroup", {})
|
|
1247
|
+
.n("DirectoryServiceDataClient", "DescribeGroupCommand")
|
|
1248
|
+
.f(void 0, DescribeGroupResultFilterSensitiveLog)
|
|
1249
|
+
.ser(se_DescribeGroupCommand)
|
|
1250
|
+
.de(de_DescribeGroupCommand)
|
|
1251
|
+
.build() {
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
class DescribeUserCommand extends smithyClient.Command
|
|
1255
|
+
.classBuilder()
|
|
1256
|
+
.ep(commonParams)
|
|
1257
|
+
.m(function (Command, cs, config, o) {
|
|
1258
|
+
return [
|
|
1259
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1260
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1261
|
+
];
|
|
1262
|
+
})
|
|
1263
|
+
.s("DirectoryServiceData", "DescribeUser", {})
|
|
1264
|
+
.n("DirectoryServiceDataClient", "DescribeUserCommand")
|
|
1265
|
+
.f(void 0, DescribeUserResultFilterSensitiveLog)
|
|
1266
|
+
.ser(se_DescribeUserCommand)
|
|
1267
|
+
.de(de_DescribeUserCommand)
|
|
1268
|
+
.build() {
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
class DisableUserCommand extends smithyClient.Command
|
|
1272
|
+
.classBuilder()
|
|
1273
|
+
.ep(commonParams)
|
|
1274
|
+
.m(function (Command, cs, config, o) {
|
|
1275
|
+
return [
|
|
1276
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1277
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1278
|
+
];
|
|
1279
|
+
})
|
|
1280
|
+
.s("DirectoryServiceData", "DisableUser", {})
|
|
1281
|
+
.n("DirectoryServiceDataClient", "DisableUserCommand")
|
|
1282
|
+
.f(void 0, void 0)
|
|
1283
|
+
.ser(se_DisableUserCommand)
|
|
1284
|
+
.de(de_DisableUserCommand)
|
|
1285
|
+
.build() {
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
class ListGroupMembersCommand extends smithyClient.Command
|
|
1289
|
+
.classBuilder()
|
|
1290
|
+
.ep(commonParams)
|
|
1291
|
+
.m(function (Command, cs, config, o) {
|
|
1292
|
+
return [
|
|
1293
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1294
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1295
|
+
];
|
|
1296
|
+
})
|
|
1297
|
+
.s("DirectoryServiceData", "ListGroupMembers", {})
|
|
1298
|
+
.n("DirectoryServiceDataClient", "ListGroupMembersCommand")
|
|
1299
|
+
.f(ListGroupMembersRequestFilterSensitiveLog, ListGroupMembersResultFilterSensitiveLog)
|
|
1300
|
+
.ser(se_ListGroupMembersCommand)
|
|
1301
|
+
.de(de_ListGroupMembersCommand)
|
|
1302
|
+
.build() {
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
class ListGroupsCommand extends smithyClient.Command
|
|
1306
|
+
.classBuilder()
|
|
1307
|
+
.ep(commonParams)
|
|
1308
|
+
.m(function (Command, cs, config, o) {
|
|
1309
|
+
return [
|
|
1310
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1311
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1312
|
+
];
|
|
1313
|
+
})
|
|
1314
|
+
.s("DirectoryServiceData", "ListGroups", {})
|
|
1315
|
+
.n("DirectoryServiceDataClient", "ListGroupsCommand")
|
|
1316
|
+
.f(ListGroupsRequestFilterSensitiveLog, ListGroupsResultFilterSensitiveLog)
|
|
1317
|
+
.ser(se_ListGroupsCommand)
|
|
1318
|
+
.de(de_ListGroupsCommand)
|
|
1319
|
+
.build() {
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
class ListGroupsForMemberCommand extends smithyClient.Command
|
|
1323
|
+
.classBuilder()
|
|
1324
|
+
.ep(commonParams)
|
|
1325
|
+
.m(function (Command, cs, config, o) {
|
|
1326
|
+
return [
|
|
1327
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1328
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1329
|
+
];
|
|
1330
|
+
})
|
|
1331
|
+
.s("DirectoryServiceData", "ListGroupsForMember", {})
|
|
1332
|
+
.n("DirectoryServiceDataClient", "ListGroupsForMemberCommand")
|
|
1333
|
+
.f(ListGroupsForMemberRequestFilterSensitiveLog, ListGroupsForMemberResultFilterSensitiveLog)
|
|
1334
|
+
.ser(se_ListGroupsForMemberCommand)
|
|
1335
|
+
.de(de_ListGroupsForMemberCommand)
|
|
1336
|
+
.build() {
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
class ListUsersCommand extends smithyClient.Command
|
|
1340
|
+
.classBuilder()
|
|
1341
|
+
.ep(commonParams)
|
|
1342
|
+
.m(function (Command, cs, config, o) {
|
|
1343
|
+
return [
|
|
1344
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1345
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1346
|
+
];
|
|
1347
|
+
})
|
|
1348
|
+
.s("DirectoryServiceData", "ListUsers", {})
|
|
1349
|
+
.n("DirectoryServiceDataClient", "ListUsersCommand")
|
|
1350
|
+
.f(ListUsersRequestFilterSensitiveLog, ListUsersResultFilterSensitiveLog)
|
|
1351
|
+
.ser(se_ListUsersCommand)
|
|
1352
|
+
.de(de_ListUsersCommand)
|
|
1353
|
+
.build() {
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
class RemoveGroupMemberCommand extends smithyClient.Command
|
|
1357
|
+
.classBuilder()
|
|
1358
|
+
.ep(commonParams)
|
|
1359
|
+
.m(function (Command, cs, config, o) {
|
|
1360
|
+
return [
|
|
1361
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1362
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1363
|
+
];
|
|
1364
|
+
})
|
|
1365
|
+
.s("DirectoryServiceData", "RemoveGroupMember", {})
|
|
1366
|
+
.n("DirectoryServiceDataClient", "RemoveGroupMemberCommand")
|
|
1367
|
+
.f(void 0, void 0)
|
|
1368
|
+
.ser(se_RemoveGroupMemberCommand)
|
|
1369
|
+
.de(de_RemoveGroupMemberCommand)
|
|
1370
|
+
.build() {
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
class SearchGroupsCommand extends smithyClient.Command
|
|
1374
|
+
.classBuilder()
|
|
1375
|
+
.ep(commonParams)
|
|
1376
|
+
.m(function (Command, cs, config, o) {
|
|
1377
|
+
return [
|
|
1378
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1379
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1380
|
+
];
|
|
1381
|
+
})
|
|
1382
|
+
.s("DirectoryServiceData", "SearchGroups", {})
|
|
1383
|
+
.n("DirectoryServiceDataClient", "SearchGroupsCommand")
|
|
1384
|
+
.f(SearchGroupsRequestFilterSensitiveLog, SearchGroupsResultFilterSensitiveLog)
|
|
1385
|
+
.ser(se_SearchGroupsCommand)
|
|
1386
|
+
.de(de_SearchGroupsCommand)
|
|
1387
|
+
.build() {
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
class SearchUsersCommand extends smithyClient.Command
|
|
1391
|
+
.classBuilder()
|
|
1392
|
+
.ep(commonParams)
|
|
1393
|
+
.m(function (Command, cs, config, o) {
|
|
1394
|
+
return [
|
|
1395
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1396
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1397
|
+
];
|
|
1398
|
+
})
|
|
1399
|
+
.s("DirectoryServiceData", "SearchUsers", {})
|
|
1400
|
+
.n("DirectoryServiceDataClient", "SearchUsersCommand")
|
|
1401
|
+
.f(SearchUsersRequestFilterSensitiveLog, SearchUsersResultFilterSensitiveLog)
|
|
1402
|
+
.ser(se_SearchUsersCommand)
|
|
1403
|
+
.de(de_SearchUsersCommand)
|
|
1404
|
+
.build() {
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
class UpdateGroupCommand extends smithyClient.Command
|
|
1408
|
+
.classBuilder()
|
|
1409
|
+
.ep(commonParams)
|
|
1410
|
+
.m(function (Command, cs, config, o) {
|
|
1411
|
+
return [
|
|
1412
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1413
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1414
|
+
];
|
|
1415
|
+
})
|
|
1416
|
+
.s("DirectoryServiceData", "UpdateGroup", {})
|
|
1417
|
+
.n("DirectoryServiceDataClient", "UpdateGroupCommand")
|
|
1418
|
+
.f(UpdateGroupRequestFilterSensitiveLog, void 0)
|
|
1419
|
+
.ser(se_UpdateGroupCommand)
|
|
1420
|
+
.de(de_UpdateGroupCommand)
|
|
1421
|
+
.build() {
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
class UpdateUserCommand extends smithyClient.Command
|
|
1425
|
+
.classBuilder()
|
|
1426
|
+
.ep(commonParams)
|
|
1427
|
+
.m(function (Command, cs, config, o) {
|
|
1428
|
+
return [
|
|
1429
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1430
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1431
|
+
];
|
|
1432
|
+
})
|
|
1433
|
+
.s("DirectoryServiceData", "UpdateUser", {})
|
|
1434
|
+
.n("DirectoryServiceDataClient", "UpdateUserCommand")
|
|
1435
|
+
.f(UpdateUserRequestFilterSensitiveLog, void 0)
|
|
1436
|
+
.ser(se_UpdateUserCommand)
|
|
1437
|
+
.de(de_UpdateUserCommand)
|
|
1438
|
+
.build() {
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
const commands = {
|
|
1442
|
+
AddGroupMemberCommand,
|
|
1443
|
+
CreateGroupCommand,
|
|
1444
|
+
CreateUserCommand,
|
|
1445
|
+
DeleteGroupCommand,
|
|
1446
|
+
DeleteUserCommand,
|
|
1447
|
+
DescribeGroupCommand,
|
|
1448
|
+
DescribeUserCommand,
|
|
1449
|
+
DisableUserCommand,
|
|
1450
|
+
ListGroupMembersCommand,
|
|
1451
|
+
ListGroupsCommand,
|
|
1452
|
+
ListGroupsForMemberCommand,
|
|
1453
|
+
ListUsersCommand,
|
|
1454
|
+
RemoveGroupMemberCommand,
|
|
1455
|
+
SearchGroupsCommand,
|
|
1456
|
+
SearchUsersCommand,
|
|
1457
|
+
UpdateGroupCommand,
|
|
1458
|
+
UpdateUserCommand,
|
|
1459
|
+
};
|
|
1460
|
+
class DirectoryServiceData extends DirectoryServiceDataClient {
|
|
1461
|
+
}
|
|
1462
|
+
smithyClient.createAggregatedClient(commands, DirectoryServiceData);
|
|
1692
1463
|
|
|
1693
|
-
|
|
1464
|
+
const paginateListGroupMembers = core.createPaginator(DirectoryServiceDataClient, ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1694
1465
|
|
|
1695
|
-
|
|
1466
|
+
const paginateListGroupsForMember = core.createPaginator(DirectoryServiceDataClient, ListGroupsForMemberCommand, "NextToken", "NextToken", "MaxResults");
|
|
1696
1467
|
|
|
1697
|
-
|
|
1468
|
+
const paginateListGroups = core.createPaginator(DirectoryServiceDataClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1698
1469
|
|
|
1699
|
-
|
|
1470
|
+
const paginateListUsers = core.createPaginator(DirectoryServiceDataClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1700
1471
|
|
|
1701
|
-
|
|
1472
|
+
const paginateSearchGroups = core.createPaginator(DirectoryServiceDataClient, SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1702
1473
|
|
|
1703
|
-
|
|
1704
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1474
|
+
const paginateSearchUsers = core.createPaginator(DirectoryServiceDataClient, SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1705
1475
|
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
DirectoryServiceDataClient,
|
|
1710
|
-
DirectoryServiceData,
|
|
1711
|
-
$Command,
|
|
1712
|
-
AddGroupMemberCommand,
|
|
1713
|
-
CreateGroupCommand,
|
|
1714
|
-
CreateUserCommand,
|
|
1715
|
-
DeleteGroupCommand,
|
|
1716
|
-
DeleteUserCommand,
|
|
1717
|
-
DescribeGroupCommand,
|
|
1718
|
-
DescribeUserCommand,
|
|
1719
|
-
DisableUserCommand,
|
|
1720
|
-
ListGroupMembersCommand,
|
|
1721
|
-
ListGroupsCommand,
|
|
1722
|
-
ListGroupsForMemberCommand,
|
|
1723
|
-
ListUsersCommand,
|
|
1724
|
-
RemoveGroupMemberCommand,
|
|
1725
|
-
SearchGroupsCommand,
|
|
1726
|
-
SearchUsersCommand,
|
|
1727
|
-
UpdateGroupCommand,
|
|
1728
|
-
UpdateUserCommand,
|
|
1729
|
-
paginateListGroupMembers,
|
|
1730
|
-
paginateListGroupsForMember,
|
|
1731
|
-
paginateListGroups,
|
|
1732
|
-
paginateListUsers,
|
|
1733
|
-
paginateSearchGroups,
|
|
1734
|
-
paginateSearchUsers,
|
|
1735
|
-
AccessDeniedReason,
|
|
1736
|
-
AccessDeniedException,
|
|
1737
|
-
ConflictException,
|
|
1738
|
-
DirectoryUnavailableReason,
|
|
1739
|
-
DirectoryUnavailableException,
|
|
1740
|
-
InternalServerException,
|
|
1741
|
-
ResourceNotFoundException,
|
|
1742
|
-
ThrottlingException,
|
|
1743
|
-
ValidationExceptionReason,
|
|
1744
|
-
ValidationException,
|
|
1745
|
-
AttributeValue,
|
|
1746
|
-
GroupScope,
|
|
1747
|
-
GroupType,
|
|
1748
|
-
MemberType,
|
|
1749
|
-
UpdateType,
|
|
1750
|
-
AttributeValueFilterSensitiveLog,
|
|
1751
|
-
CreateGroupRequestFilterSensitiveLog,
|
|
1752
|
-
CreateUserRequestFilterSensitiveLog,
|
|
1753
|
-
DescribeGroupResultFilterSensitiveLog,
|
|
1754
|
-
DescribeUserResultFilterSensitiveLog,
|
|
1755
|
-
ListGroupMembersRequestFilterSensitiveLog,
|
|
1756
|
-
ListGroupMembersResultFilterSensitiveLog,
|
|
1757
|
-
ListGroupsRequestFilterSensitiveLog,
|
|
1758
|
-
ListGroupsResultFilterSensitiveLog,
|
|
1759
|
-
ListGroupsForMemberRequestFilterSensitiveLog,
|
|
1760
|
-
ListGroupsForMemberResultFilterSensitiveLog,
|
|
1761
|
-
ListUsersRequestFilterSensitiveLog,
|
|
1762
|
-
UserSummaryFilterSensitiveLog,
|
|
1763
|
-
ListUsersResultFilterSensitiveLog,
|
|
1764
|
-
SearchGroupsRequestFilterSensitiveLog,
|
|
1765
|
-
GroupFilterSensitiveLog,
|
|
1766
|
-
SearchGroupsResultFilterSensitiveLog,
|
|
1767
|
-
SearchUsersRequestFilterSensitiveLog,
|
|
1768
|
-
UserFilterSensitiveLog,
|
|
1769
|
-
SearchUsersResultFilterSensitiveLog,
|
|
1770
|
-
UpdateGroupRequestFilterSensitiveLog,
|
|
1771
|
-
UpdateUserRequestFilterSensitiveLog
|
|
1476
|
+
Object.defineProperty(exports, "$Command", {
|
|
1477
|
+
enumerable: true,
|
|
1478
|
+
get: function () { return smithyClient.Command; }
|
|
1772
1479
|
});
|
|
1773
|
-
|
|
1480
|
+
Object.defineProperty(exports, "__Client", {
|
|
1481
|
+
enumerable: true,
|
|
1482
|
+
get: function () { return smithyClient.Client; }
|
|
1483
|
+
});
|
|
1484
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1485
|
+
exports.AccessDeniedReason = AccessDeniedReason;
|
|
1486
|
+
exports.AddGroupMemberCommand = AddGroupMemberCommand;
|
|
1487
|
+
exports.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog;
|
|
1488
|
+
exports.ConflictException = ConflictException;
|
|
1489
|
+
exports.CreateGroupCommand = CreateGroupCommand;
|
|
1490
|
+
exports.CreateGroupRequestFilterSensitiveLog = CreateGroupRequestFilterSensitiveLog;
|
|
1491
|
+
exports.CreateUserCommand = CreateUserCommand;
|
|
1492
|
+
exports.CreateUserRequestFilterSensitiveLog = CreateUserRequestFilterSensitiveLog;
|
|
1493
|
+
exports.DeleteGroupCommand = DeleteGroupCommand;
|
|
1494
|
+
exports.DeleteUserCommand = DeleteUserCommand;
|
|
1495
|
+
exports.DescribeGroupCommand = DescribeGroupCommand;
|
|
1496
|
+
exports.DescribeGroupResultFilterSensitiveLog = DescribeGroupResultFilterSensitiveLog;
|
|
1497
|
+
exports.DescribeUserCommand = DescribeUserCommand;
|
|
1498
|
+
exports.DescribeUserResultFilterSensitiveLog = DescribeUserResultFilterSensitiveLog;
|
|
1499
|
+
exports.DirectoryServiceData = DirectoryServiceData;
|
|
1500
|
+
exports.DirectoryServiceDataClient = DirectoryServiceDataClient;
|
|
1501
|
+
exports.DirectoryServiceDataServiceException = DirectoryServiceDataServiceException;
|
|
1502
|
+
exports.DirectoryUnavailableException = DirectoryUnavailableException;
|
|
1503
|
+
exports.DirectoryUnavailableReason = DirectoryUnavailableReason;
|
|
1504
|
+
exports.DisableUserCommand = DisableUserCommand;
|
|
1505
|
+
exports.GroupFilterSensitiveLog = GroupFilterSensitiveLog;
|
|
1506
|
+
exports.GroupScope = GroupScope;
|
|
1507
|
+
exports.GroupType = GroupType;
|
|
1508
|
+
exports.InternalServerException = InternalServerException;
|
|
1509
|
+
exports.ListGroupMembersCommand = ListGroupMembersCommand;
|
|
1510
|
+
exports.ListGroupMembersRequestFilterSensitiveLog = ListGroupMembersRequestFilterSensitiveLog;
|
|
1511
|
+
exports.ListGroupMembersResultFilterSensitiveLog = ListGroupMembersResultFilterSensitiveLog;
|
|
1512
|
+
exports.ListGroupsCommand = ListGroupsCommand;
|
|
1513
|
+
exports.ListGroupsForMemberCommand = ListGroupsForMemberCommand;
|
|
1514
|
+
exports.ListGroupsForMemberRequestFilterSensitiveLog = ListGroupsForMemberRequestFilterSensitiveLog;
|
|
1515
|
+
exports.ListGroupsForMemberResultFilterSensitiveLog = ListGroupsForMemberResultFilterSensitiveLog;
|
|
1516
|
+
exports.ListGroupsRequestFilterSensitiveLog = ListGroupsRequestFilterSensitiveLog;
|
|
1517
|
+
exports.ListGroupsResultFilterSensitiveLog = ListGroupsResultFilterSensitiveLog;
|
|
1518
|
+
exports.ListUsersCommand = ListUsersCommand;
|
|
1519
|
+
exports.ListUsersRequestFilterSensitiveLog = ListUsersRequestFilterSensitiveLog;
|
|
1520
|
+
exports.ListUsersResultFilterSensitiveLog = ListUsersResultFilterSensitiveLog;
|
|
1521
|
+
exports.MemberType = MemberType;
|
|
1522
|
+
exports.RemoveGroupMemberCommand = RemoveGroupMemberCommand;
|
|
1523
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1524
|
+
exports.SearchGroupsCommand = SearchGroupsCommand;
|
|
1525
|
+
exports.SearchGroupsRequestFilterSensitiveLog = SearchGroupsRequestFilterSensitiveLog;
|
|
1526
|
+
exports.SearchGroupsResultFilterSensitiveLog = SearchGroupsResultFilterSensitiveLog;
|
|
1527
|
+
exports.SearchUsersCommand = SearchUsersCommand;
|
|
1528
|
+
exports.SearchUsersRequestFilterSensitiveLog = SearchUsersRequestFilterSensitiveLog;
|
|
1529
|
+
exports.SearchUsersResultFilterSensitiveLog = SearchUsersResultFilterSensitiveLog;
|
|
1530
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1531
|
+
exports.UpdateGroupCommand = UpdateGroupCommand;
|
|
1532
|
+
exports.UpdateGroupRequestFilterSensitiveLog = UpdateGroupRequestFilterSensitiveLog;
|
|
1533
|
+
exports.UpdateType = UpdateType;
|
|
1534
|
+
exports.UpdateUserCommand = UpdateUserCommand;
|
|
1535
|
+
exports.UpdateUserRequestFilterSensitiveLog = UpdateUserRequestFilterSensitiveLog;
|
|
1536
|
+
exports.UserFilterSensitiveLog = UserFilterSensitiveLog;
|
|
1537
|
+
exports.UserSummaryFilterSensitiveLog = UserSummaryFilterSensitiveLog;
|
|
1538
|
+
exports.ValidationException = ValidationException;
|
|
1539
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1540
|
+
exports.paginateListGroupMembers = paginateListGroupMembers;
|
|
1541
|
+
exports.paginateListGroups = paginateListGroups;
|
|
1542
|
+
exports.paginateListGroupsForMember = paginateListGroupsForMember;
|
|
1543
|
+
exports.paginateListUsers = paginateListUsers;
|
|
1544
|
+
exports.paginateSearchGroups = paginateSearchGroups;
|
|
1545
|
+
exports.paginateSearchUsers = paginateSearchUsers;
|