@aws-sdk/client-pca-connector-ad 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +144 -331
- package/dist-es/protocols/Aws_restJson1.js +145 -332
- package/package.json +5 -4
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateTemplateGroupAccessControlEntryCommand = exports.de_UpdateTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTemplatesCommand = exports.de_ListTemplateGroupAccessControlEntriesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicePrincipalNamesCommand = exports.de_ListDirectoryRegistrationsCommand = exports.de_ListConnectorsCommand = exports.de_GetTemplateGroupAccessControlEntryCommand = exports.de_GetTemplateCommand = exports.de_GetServicePrincipalNameCommand = exports.de_GetDirectoryRegistrationCommand = exports.de_GetConnectorCommand = exports.de_DeleteTemplateGroupAccessControlEntryCommand = exports.de_DeleteTemplateCommand = exports.de_DeleteServicePrincipalNameCommand = exports.de_DeleteDirectoryRegistrationCommand = exports.de_DeleteConnectorCommand = exports.de_CreateTemplateGroupAccessControlEntryCommand = exports.de_CreateTemplateCommand = exports.de_CreateServicePrincipalNameCommand = exports.de_CreateDirectoryRegistrationCommand = exports.de_CreateConnectorCommand = exports.se_UpdateTemplateGroupAccessControlEntryCommand = exports.se_UpdateTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTemplatesCommand = exports.se_ListTemplateGroupAccessControlEntriesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicePrincipalNamesCommand = exports.se_ListDirectoryRegistrationsCommand = exports.se_ListConnectorsCommand = exports.se_GetTemplateGroupAccessControlEntryCommand = exports.se_GetTemplateCommand = exports.se_GetServicePrincipalNameCommand = exports.se_GetDirectoryRegistrationCommand = exports.se_GetConnectorCommand = exports.se_DeleteTemplateGroupAccessControlEntryCommand = exports.se_DeleteTemplateCommand = exports.se_DeleteServicePrincipalNameCommand = exports.se_DeleteDirectoryRegistrationCommand = exports.se_DeleteConnectorCommand = exports.se_CreateTemplateGroupAccessControlEntryCommand = exports.se_CreateTemplateCommand = exports.se_CreateServicePrincipalNameCommand = exports.se_CreateDirectoryRegistrationCommand = exports.se_CreateConnectorCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const PcaConnectorAdServiceException_1 = require("../models/PcaConnectorAdServiceException");
|
|
10
10
|
const se_CreateConnectorCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/connectors");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
CertificateAuthorityArn: [],
|
|
@@ -21,70 +21,48 @@ const se_CreateConnectorCommand = async (input, context) => {
|
|
|
21
21
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
22
|
VpcInformation: (_) => (0, smithy_client_1._json)(_),
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
35
28
|
const se_CreateDirectoryRegistrationCommand = async (input, context) => {
|
|
36
|
-
const
|
|
29
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
37
30
|
const headers = {
|
|
38
31
|
"content-type": "application/json",
|
|
39
32
|
};
|
|
40
|
-
|
|
33
|
+
b.bp("/directoryRegistrations");
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
44
37
|
DirectoryId: [],
|
|
45
38
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
46
39
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
56
42
|
};
|
|
57
43
|
exports.se_CreateDirectoryRegistrationCommand = se_CreateDirectoryRegistrationCommand;
|
|
58
44
|
const se_CreateServicePrincipalNameCommand = async (input, context) => {
|
|
59
|
-
const
|
|
45
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
46
|
const headers = {
|
|
61
47
|
"content-type": "application/json",
|
|
62
48
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
49
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
50
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
51
|
+
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
67
52
|
let body;
|
|
68
53
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
69
54
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
70
55
|
}));
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
hostname,
|
|
74
|
-
port,
|
|
75
|
-
method: "POST",
|
|
76
|
-
headers,
|
|
77
|
-
path: resolvedPath,
|
|
78
|
-
body,
|
|
79
|
-
});
|
|
56
|
+
b.m("POST").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
80
58
|
};
|
|
81
59
|
exports.se_CreateServicePrincipalNameCommand = se_CreateServicePrincipalNameCommand;
|
|
82
60
|
const se_CreateTemplateCommand = async (input, context) => {
|
|
83
|
-
const
|
|
61
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
84
62
|
const headers = {
|
|
85
63
|
"content-type": "application/json",
|
|
86
64
|
};
|
|
87
|
-
|
|
65
|
+
b.bp("/templates");
|
|
88
66
|
let body;
|
|
89
67
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
90
68
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -93,25 +71,17 @@ const se_CreateTemplateCommand = async (input, context) => {
|
|
|
93
71
|
Name: [],
|
|
94
72
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
95
73
|
}));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
hostname,
|
|
99
|
-
port,
|
|
100
|
-
method: "POST",
|
|
101
|
-
headers,
|
|
102
|
-
path: resolvedPath,
|
|
103
|
-
body,
|
|
104
|
-
});
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
105
76
|
};
|
|
106
77
|
exports.se_CreateTemplateCommand = se_CreateTemplateCommand;
|
|
107
78
|
const se_CreateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
108
|
-
const
|
|
79
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
109
80
|
const headers = {
|
|
110
81
|
"content-type": "application/json",
|
|
111
82
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
83
|
+
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
84
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
115
85
|
let body;
|
|
116
86
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
117
87
|
AccessRights: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -119,416 +89,254 @@ const se_CreateTemplateGroupAccessControlEntryCommand = async (input, context) =
|
|
|
119
89
|
GroupDisplayName: [],
|
|
120
90
|
GroupSecurityIdentifier: [],
|
|
121
91
|
}));
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
hostname,
|
|
125
|
-
port,
|
|
126
|
-
method: "POST",
|
|
127
|
-
headers,
|
|
128
|
-
path: resolvedPath,
|
|
129
|
-
body,
|
|
130
|
-
});
|
|
92
|
+
b.m("POST").h(headers).b(body);
|
|
93
|
+
return b.build();
|
|
131
94
|
};
|
|
132
95
|
exports.se_CreateTemplateGroupAccessControlEntryCommand = se_CreateTemplateGroupAccessControlEntryCommand;
|
|
133
96
|
const se_DeleteConnectorCommand = async (input, context) => {
|
|
134
|
-
const
|
|
97
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
135
98
|
const headers = {};
|
|
136
|
-
|
|
137
|
-
|
|
99
|
+
b.bp("/connectors/{ConnectorArn}");
|
|
100
|
+
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
138
101
|
let body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
body,
|
|
147
|
-
});
|
|
102
|
+
b.m("DELETE").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
148
104
|
};
|
|
149
105
|
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
150
106
|
const se_DeleteDirectoryRegistrationCommand = async (input, context) => {
|
|
151
|
-
const
|
|
107
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
152
108
|
const headers = {};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
109
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
110
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
156
111
|
let body;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
hostname,
|
|
160
|
-
port,
|
|
161
|
-
method: "DELETE",
|
|
162
|
-
headers,
|
|
163
|
-
path: resolvedPath,
|
|
164
|
-
body,
|
|
165
|
-
});
|
|
112
|
+
b.m("DELETE").h(headers).b(body);
|
|
113
|
+
return b.build();
|
|
166
114
|
};
|
|
167
115
|
exports.se_DeleteDirectoryRegistrationCommand = se_DeleteDirectoryRegistrationCommand;
|
|
168
116
|
const se_DeleteServicePrincipalNameCommand = async (input, context) => {
|
|
169
|
-
const
|
|
117
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
170
118
|
const headers = {};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
119
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
120
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
121
|
+
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
175
122
|
let body;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "DELETE",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
123
|
+
b.m("DELETE").h(headers).b(body);
|
|
124
|
+
return b.build();
|
|
185
125
|
};
|
|
186
126
|
exports.se_DeleteServicePrincipalNameCommand = se_DeleteServicePrincipalNameCommand;
|
|
187
127
|
const se_DeleteTemplateCommand = async (input, context) => {
|
|
188
|
-
const
|
|
128
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
189
129
|
const headers = {};
|
|
190
|
-
|
|
191
|
-
|
|
130
|
+
b.bp("/templates/{TemplateArn}");
|
|
131
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
192
132
|
let body;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
hostname,
|
|
196
|
-
port,
|
|
197
|
-
method: "DELETE",
|
|
198
|
-
headers,
|
|
199
|
-
path: resolvedPath,
|
|
200
|
-
body,
|
|
201
|
-
});
|
|
133
|
+
b.m("DELETE").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
202
135
|
};
|
|
203
136
|
exports.se_DeleteTemplateCommand = se_DeleteTemplateCommand;
|
|
204
137
|
const se_DeleteTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
205
|
-
const
|
|
138
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
206
139
|
const headers = {};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
140
|
+
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
141
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
142
|
+
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
211
143
|
let body;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
hostname,
|
|
215
|
-
port,
|
|
216
|
-
method: "DELETE",
|
|
217
|
-
headers,
|
|
218
|
-
path: resolvedPath,
|
|
219
|
-
body,
|
|
220
|
-
});
|
|
144
|
+
b.m("DELETE").h(headers).b(body);
|
|
145
|
+
return b.build();
|
|
221
146
|
};
|
|
222
147
|
exports.se_DeleteTemplateGroupAccessControlEntryCommand = se_DeleteTemplateGroupAccessControlEntryCommand;
|
|
223
148
|
const se_GetConnectorCommand = async (input, context) => {
|
|
224
|
-
const
|
|
149
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
225
150
|
const headers = {};
|
|
226
|
-
|
|
227
|
-
|
|
151
|
+
b.bp("/connectors/{ConnectorArn}");
|
|
152
|
+
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
228
153
|
let body;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
hostname,
|
|
232
|
-
port,
|
|
233
|
-
method: "GET",
|
|
234
|
-
headers,
|
|
235
|
-
path: resolvedPath,
|
|
236
|
-
body,
|
|
237
|
-
});
|
|
154
|
+
b.m("GET").h(headers).b(body);
|
|
155
|
+
return b.build();
|
|
238
156
|
};
|
|
239
157
|
exports.se_GetConnectorCommand = se_GetConnectorCommand;
|
|
240
158
|
const se_GetDirectoryRegistrationCommand = async (input, context) => {
|
|
241
|
-
const
|
|
159
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
242
160
|
const headers = {};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
161
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
162
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
246
163
|
let body;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
hostname,
|
|
250
|
-
port,
|
|
251
|
-
method: "GET",
|
|
252
|
-
headers,
|
|
253
|
-
path: resolvedPath,
|
|
254
|
-
body,
|
|
255
|
-
});
|
|
164
|
+
b.m("GET").h(headers).b(body);
|
|
165
|
+
return b.build();
|
|
256
166
|
};
|
|
257
167
|
exports.se_GetDirectoryRegistrationCommand = se_GetDirectoryRegistrationCommand;
|
|
258
168
|
const se_GetServicePrincipalNameCommand = async (input, context) => {
|
|
259
|
-
const
|
|
169
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
260
170
|
const headers = {};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
171
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
172
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
173
|
+
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
265
174
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
175
|
+
b.m("GET").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
275
177
|
};
|
|
276
178
|
exports.se_GetServicePrincipalNameCommand = se_GetServicePrincipalNameCommand;
|
|
277
179
|
const se_GetTemplateCommand = async (input, context) => {
|
|
278
|
-
const
|
|
180
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
279
181
|
const headers = {};
|
|
280
|
-
|
|
281
|
-
|
|
182
|
+
b.bp("/templates/{TemplateArn}");
|
|
183
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
282
184
|
let body;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
hostname,
|
|
286
|
-
port,
|
|
287
|
-
method: "GET",
|
|
288
|
-
headers,
|
|
289
|
-
path: resolvedPath,
|
|
290
|
-
body,
|
|
291
|
-
});
|
|
185
|
+
b.m("GET").h(headers).b(body);
|
|
186
|
+
return b.build();
|
|
292
187
|
};
|
|
293
188
|
exports.se_GetTemplateCommand = se_GetTemplateCommand;
|
|
294
189
|
const se_GetTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
295
|
-
const
|
|
190
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
296
191
|
const headers = {};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
192
|
+
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
193
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
194
|
+
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
301
195
|
let body;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
hostname,
|
|
305
|
-
port,
|
|
306
|
-
method: "GET",
|
|
307
|
-
headers,
|
|
308
|
-
path: resolvedPath,
|
|
309
|
-
body,
|
|
310
|
-
});
|
|
196
|
+
b.m("GET").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
311
198
|
};
|
|
312
199
|
exports.se_GetTemplateGroupAccessControlEntryCommand = se_GetTemplateGroupAccessControlEntryCommand;
|
|
313
200
|
const se_ListConnectorsCommand = async (input, context) => {
|
|
314
|
-
const
|
|
201
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
202
|
const headers = {};
|
|
316
|
-
|
|
203
|
+
b.bp("/connectors");
|
|
317
204
|
const query = (0, smithy_client_1.map)({
|
|
318
|
-
|
|
319
|
-
|
|
205
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
206
|
+
[_NT]: [, input[_NT]],
|
|
320
207
|
});
|
|
321
208
|
let body;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
hostname,
|
|
325
|
-
port,
|
|
326
|
-
method: "GET",
|
|
327
|
-
headers,
|
|
328
|
-
path: resolvedPath,
|
|
329
|
-
query,
|
|
330
|
-
body,
|
|
331
|
-
});
|
|
209
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
210
|
+
return b.build();
|
|
332
211
|
};
|
|
333
212
|
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
334
213
|
const se_ListDirectoryRegistrationsCommand = async (input, context) => {
|
|
335
|
-
const
|
|
214
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
215
|
const headers = {};
|
|
337
|
-
|
|
216
|
+
b.bp("/directoryRegistrations");
|
|
338
217
|
const query = (0, smithy_client_1.map)({
|
|
339
|
-
|
|
340
|
-
|
|
218
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
219
|
+
[_NT]: [, input[_NT]],
|
|
341
220
|
});
|
|
342
221
|
let body;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
hostname,
|
|
346
|
-
port,
|
|
347
|
-
method: "GET",
|
|
348
|
-
headers,
|
|
349
|
-
path: resolvedPath,
|
|
350
|
-
query,
|
|
351
|
-
body,
|
|
352
|
-
});
|
|
222
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
223
|
+
return b.build();
|
|
353
224
|
};
|
|
354
225
|
exports.se_ListDirectoryRegistrationsCommand = se_ListDirectoryRegistrationsCommand;
|
|
355
226
|
const se_ListServicePrincipalNamesCommand = async (input, context) => {
|
|
356
|
-
const
|
|
227
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
357
228
|
const headers = {};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
229
|
+
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames");
|
|
230
|
+
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
361
231
|
const query = (0, smithy_client_1.map)({
|
|
362
|
-
|
|
363
|
-
|
|
232
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
233
|
+
[_NT]: [, input[_NT]],
|
|
364
234
|
});
|
|
365
235
|
let body;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
hostname,
|
|
369
|
-
port,
|
|
370
|
-
method: "GET",
|
|
371
|
-
headers,
|
|
372
|
-
path: resolvedPath,
|
|
373
|
-
query,
|
|
374
|
-
body,
|
|
375
|
-
});
|
|
236
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
237
|
+
return b.build();
|
|
376
238
|
};
|
|
377
239
|
exports.se_ListServicePrincipalNamesCommand = se_ListServicePrincipalNamesCommand;
|
|
378
240
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
379
|
-
const
|
|
241
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
380
242
|
const headers = {};
|
|
381
|
-
|
|
382
|
-
|
|
243
|
+
b.bp("/tags/{ResourceArn}");
|
|
244
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
383
245
|
let body;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
hostname,
|
|
387
|
-
port,
|
|
388
|
-
method: "GET",
|
|
389
|
-
headers,
|
|
390
|
-
path: resolvedPath,
|
|
391
|
-
body,
|
|
392
|
-
});
|
|
246
|
+
b.m("GET").h(headers).b(body);
|
|
247
|
+
return b.build();
|
|
393
248
|
};
|
|
394
249
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
395
250
|
const se_ListTemplateGroupAccessControlEntriesCommand = async (input, context) => {
|
|
396
|
-
const
|
|
251
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
397
252
|
const headers = {};
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
253
|
+
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
254
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
401
255
|
const query = (0, smithy_client_1.map)({
|
|
402
|
-
|
|
403
|
-
|
|
256
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
+
[_NT]: [, input[_NT]],
|
|
404
258
|
});
|
|
405
259
|
let body;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "GET",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
query,
|
|
414
|
-
body,
|
|
415
|
-
});
|
|
260
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
261
|
+
return b.build();
|
|
416
262
|
};
|
|
417
263
|
exports.se_ListTemplateGroupAccessControlEntriesCommand = se_ListTemplateGroupAccessControlEntriesCommand;
|
|
418
264
|
const se_ListTemplatesCommand = async (input, context) => {
|
|
419
|
-
const
|
|
265
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
420
266
|
const headers = {};
|
|
421
|
-
|
|
267
|
+
b.bp("/templates");
|
|
422
268
|
const query = (0, smithy_client_1.map)({
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
269
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
270
|
+
[_NT]: [, input[_NT]],
|
|
271
|
+
[_CA]: [, (0, smithy_client_1.expectNonNull)(input[_CA], `ConnectorArn`)],
|
|
426
272
|
});
|
|
427
273
|
let body;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
hostname,
|
|
431
|
-
port,
|
|
432
|
-
method: "GET",
|
|
433
|
-
headers,
|
|
434
|
-
path: resolvedPath,
|
|
435
|
-
query,
|
|
436
|
-
body,
|
|
437
|
-
});
|
|
274
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
275
|
+
return b.build();
|
|
438
276
|
};
|
|
439
277
|
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
440
278
|
const se_TagResourceCommand = async (input, context) => {
|
|
441
|
-
const
|
|
279
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
442
280
|
const headers = {
|
|
443
281
|
"content-type": "application/json",
|
|
444
282
|
};
|
|
445
|
-
|
|
446
|
-
|
|
283
|
+
b.bp("/tags/{ResourceArn}");
|
|
284
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
447
285
|
let body;
|
|
448
286
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
449
287
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
450
288
|
}));
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
hostname,
|
|
454
|
-
port,
|
|
455
|
-
method: "POST",
|
|
456
|
-
headers,
|
|
457
|
-
path: resolvedPath,
|
|
458
|
-
body,
|
|
459
|
-
});
|
|
289
|
+
b.m("POST").h(headers).b(body);
|
|
290
|
+
return b.build();
|
|
460
291
|
};
|
|
461
292
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
462
293
|
const se_UntagResourceCommand = async (input, context) => {
|
|
463
|
-
const
|
|
294
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
464
295
|
const headers = {};
|
|
465
|
-
|
|
466
|
-
|
|
296
|
+
b.bp("/tags/{ResourceArn}");
|
|
297
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
467
298
|
const query = (0, smithy_client_1.map)({
|
|
468
|
-
|
|
299
|
+
[_tK]: [
|
|
469
300
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
470
|
-
() => (input
|
|
301
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
471
302
|
],
|
|
472
303
|
});
|
|
473
304
|
let body;
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
hostname,
|
|
477
|
-
port,
|
|
478
|
-
method: "DELETE",
|
|
479
|
-
headers,
|
|
480
|
-
path: resolvedPath,
|
|
481
|
-
query,
|
|
482
|
-
body,
|
|
483
|
-
});
|
|
305
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
306
|
+
return b.build();
|
|
484
307
|
};
|
|
485
308
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
486
309
|
const se_UpdateTemplateCommand = async (input, context) => {
|
|
487
|
-
const
|
|
310
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
488
311
|
const headers = {
|
|
489
312
|
"content-type": "application/json",
|
|
490
313
|
};
|
|
491
|
-
|
|
492
|
-
|
|
314
|
+
b.bp("/templates/{TemplateArn}");
|
|
315
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
493
316
|
let body;
|
|
494
317
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
495
318
|
Definition: (_) => (0, smithy_client_1._json)(_),
|
|
496
319
|
ReenrollAllCertificateHolders: [],
|
|
497
320
|
}));
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
hostname,
|
|
501
|
-
port,
|
|
502
|
-
method: "PATCH",
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
body,
|
|
506
|
-
});
|
|
321
|
+
b.m("PATCH").h(headers).b(body);
|
|
322
|
+
return b.build();
|
|
507
323
|
};
|
|
508
324
|
exports.se_UpdateTemplateCommand = se_UpdateTemplateCommand;
|
|
509
325
|
const se_UpdateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
510
|
-
const
|
|
326
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
511
327
|
const headers = {
|
|
512
328
|
"content-type": "application/json",
|
|
513
329
|
};
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
330
|
+
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
331
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
332
|
+
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
518
333
|
let body;
|
|
519
334
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
335
|
AccessRights: (_) => (0, smithy_client_1._json)(_),
|
|
521
336
|
GroupDisplayName: [],
|
|
522
337
|
}));
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
hostname,
|
|
526
|
-
port,
|
|
527
|
-
method: "PATCH",
|
|
528
|
-
headers,
|
|
529
|
-
path: resolvedPath,
|
|
530
|
-
body,
|
|
531
|
-
});
|
|
338
|
+
b.m("PATCH").h(headers).b(body);
|
|
339
|
+
return b.build();
|
|
532
340
|
};
|
|
533
341
|
exports.se_UpdateTemplateGroupAccessControlEntryCommand = se_UpdateTemplateGroupAccessControlEntryCommand;
|
|
534
342
|
const de_CreateConnectorCommand = async (output, context) => {
|
|
@@ -1944,6 +1752,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1944
1752
|
value !== "" &&
|
|
1945
1753
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1946
1754
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1755
|
+
const _CA = "ConnectorArn";
|
|
1756
|
+
const _MR = "MaxResults";
|
|
1757
|
+
const _NT = "NextToken";
|
|
1758
|
+
const _TK = "TagKeys";
|
|
1759
|
+
const _tK = "tagKeys";
|
|
1947
1760
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1948
1761
|
if (encoded.length) {
|
|
1949
1762
|
return JSON.parse(encoded);
|