@aws-sdk/client-rolesanywhere 3.315.0 → 3.319.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/RolesAnywhere.js +30 -364
- package/dist-es/RolesAnywhere.js +30 -364
- package/dist-types/RolesAnywhere.d.ts +36 -164
- package/dist-types/ts3.4/RolesAnywhere.d.ts +4 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RolesAnywhere = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateProfileCommand_1 = require("./commands/CreateProfileCommand");
|
|
5
6
|
const CreateTrustAnchorCommand_1 = require("./commands/CreateTrustAnchorCommand");
|
|
6
7
|
const DeleteCrlCommand_1 = require("./commands/DeleteCrlCommand");
|
|
@@ -28,370 +29,35 @@ const UpdateCrlCommand_1 = require("./commands/UpdateCrlCommand");
|
|
|
28
29
|
const UpdateProfileCommand_1 = require("./commands/UpdateProfileCommand");
|
|
29
30
|
const UpdateTrustAnchorCommand_1 = require("./commands/UpdateTrustAnchorCommand");
|
|
30
31
|
const RolesAnywhereClient_1 = require("./RolesAnywhereClient");
|
|
32
|
+
const commands = {
|
|
33
|
+
CreateProfileCommand: CreateProfileCommand_1.CreateProfileCommand,
|
|
34
|
+
CreateTrustAnchorCommand: CreateTrustAnchorCommand_1.CreateTrustAnchorCommand,
|
|
35
|
+
DeleteCrlCommand: DeleteCrlCommand_1.DeleteCrlCommand,
|
|
36
|
+
DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
|
|
37
|
+
DeleteTrustAnchorCommand: DeleteTrustAnchorCommand_1.DeleteTrustAnchorCommand,
|
|
38
|
+
DisableCrlCommand: DisableCrlCommand_1.DisableCrlCommand,
|
|
39
|
+
DisableProfileCommand: DisableProfileCommand_1.DisableProfileCommand,
|
|
40
|
+
DisableTrustAnchorCommand: DisableTrustAnchorCommand_1.DisableTrustAnchorCommand,
|
|
41
|
+
EnableCrlCommand: EnableCrlCommand_1.EnableCrlCommand,
|
|
42
|
+
EnableProfileCommand: EnableProfileCommand_1.EnableProfileCommand,
|
|
43
|
+
EnableTrustAnchorCommand: EnableTrustAnchorCommand_1.EnableTrustAnchorCommand,
|
|
44
|
+
GetCrlCommand: GetCrlCommand_1.GetCrlCommand,
|
|
45
|
+
GetProfileCommand: GetProfileCommand_1.GetProfileCommand,
|
|
46
|
+
GetSubjectCommand: GetSubjectCommand_1.GetSubjectCommand,
|
|
47
|
+
GetTrustAnchorCommand: GetTrustAnchorCommand_1.GetTrustAnchorCommand,
|
|
48
|
+
ImportCrlCommand: ImportCrlCommand_1.ImportCrlCommand,
|
|
49
|
+
ListCrlsCommand: ListCrlsCommand_1.ListCrlsCommand,
|
|
50
|
+
ListProfilesCommand: ListProfilesCommand_1.ListProfilesCommand,
|
|
51
|
+
ListSubjectsCommand: ListSubjectsCommand_1.ListSubjectsCommand,
|
|
52
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
53
|
+
ListTrustAnchorsCommand: ListTrustAnchorsCommand_1.ListTrustAnchorsCommand,
|
|
54
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
55
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
56
|
+
UpdateCrlCommand: UpdateCrlCommand_1.UpdateCrlCommand,
|
|
57
|
+
UpdateProfileCommand: UpdateProfileCommand_1.UpdateProfileCommand,
|
|
58
|
+
UpdateTrustAnchorCommand: UpdateTrustAnchorCommand_1.UpdateTrustAnchorCommand,
|
|
59
|
+
};
|
|
31
60
|
class RolesAnywhere extends RolesAnywhereClient_1.RolesAnywhereClient {
|
|
32
|
-
createProfile(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new CreateProfileCommand_1.CreateProfileCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
createTrustAnchor(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new CreateTrustAnchorCommand_1.CreateTrustAnchorCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
deleteCrl(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new DeleteCrlCommand_1.DeleteCrlCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
deleteProfile(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new DeleteProfileCommand_1.DeleteProfileCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
deleteTrustAnchor(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new DeleteTrustAnchorCommand_1.DeleteTrustAnchorCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
disableCrl(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new DisableCrlCommand_1.DisableCrlCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
disableProfile(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new DisableProfileCommand_1.DisableProfileCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
disableTrustAnchor(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new DisableTrustAnchorCommand_1.DisableTrustAnchorCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
enableCrl(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new EnableCrlCommand_1.EnableCrlCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
enableProfile(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new EnableProfileCommand_1.EnableProfileCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
enableTrustAnchor(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new EnableTrustAnchorCommand_1.EnableTrustAnchorCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
getCrl(args, optionsOrCb, cb) {
|
|
187
|
-
const command = new GetCrlCommand_1.GetCrlCommand(args);
|
|
188
|
-
if (typeof optionsOrCb === "function") {
|
|
189
|
-
this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
else if (typeof cb === "function") {
|
|
192
|
-
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
194
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
getProfile(args, optionsOrCb, cb) {
|
|
201
|
-
const command = new GetProfileCommand_1.GetProfileCommand(args);
|
|
202
|
-
if (typeof optionsOrCb === "function") {
|
|
203
|
-
this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
else if (typeof cb === "function") {
|
|
206
|
-
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
208
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
getSubject(args, optionsOrCb, cb) {
|
|
215
|
-
const command = new GetSubjectCommand_1.GetSubjectCommand(args);
|
|
216
|
-
if (typeof optionsOrCb === "function") {
|
|
217
|
-
this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
else if (typeof cb === "function") {
|
|
220
|
-
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
222
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
return this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
getTrustAnchor(args, optionsOrCb, cb) {
|
|
229
|
-
const command = new GetTrustAnchorCommand_1.GetTrustAnchorCommand(args);
|
|
230
|
-
if (typeof optionsOrCb === "function") {
|
|
231
|
-
this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
236
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
return this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
importCrl(args, optionsOrCb, cb) {
|
|
243
|
-
const command = new ImportCrlCommand_1.ImportCrlCommand(args);
|
|
244
|
-
if (typeof optionsOrCb === "function") {
|
|
245
|
-
this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
else if (typeof cb === "function") {
|
|
248
|
-
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
250
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
return this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
listCrls(args, optionsOrCb, cb) {
|
|
257
|
-
const command = new ListCrlsCommand_1.ListCrlsCommand(args);
|
|
258
|
-
if (typeof optionsOrCb === "function") {
|
|
259
|
-
this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
264
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
return this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
listProfiles(args, optionsOrCb, cb) {
|
|
271
|
-
const command = new ListProfilesCommand_1.ListProfilesCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
else if (typeof cb === "function") {
|
|
276
|
-
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
return this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
listSubjects(args, optionsOrCb, cb) {
|
|
285
|
-
const command = new ListSubjectsCommand_1.ListSubjectsCommand(args);
|
|
286
|
-
if (typeof optionsOrCb === "function") {
|
|
287
|
-
this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
else if (typeof cb === "function") {
|
|
290
|
-
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
292
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
return this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
299
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
300
|
-
if (typeof optionsOrCb === "function") {
|
|
301
|
-
this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
else if (typeof cb === "function") {
|
|
304
|
-
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
306
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
listTrustAnchors(args, optionsOrCb, cb) {
|
|
313
|
-
const command = new ListTrustAnchorsCommand_1.ListTrustAnchorsCommand(args);
|
|
314
|
-
if (typeof optionsOrCb === "function") {
|
|
315
|
-
this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
else if (typeof cb === "function") {
|
|
318
|
-
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
320
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
return this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
tagResource(args, optionsOrCb, cb) {
|
|
327
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
else if (typeof cb === "function") {
|
|
332
|
-
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
334
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
untagResource(args, optionsOrCb, cb) {
|
|
341
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
342
|
-
if (typeof optionsOrCb === "function") {
|
|
343
|
-
this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
else if (typeof cb === "function") {
|
|
346
|
-
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
348
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
return this.send(command, optionsOrCb);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
updateCrl(args, optionsOrCb, cb) {
|
|
355
|
-
const command = new UpdateCrlCommand_1.UpdateCrlCommand(args);
|
|
356
|
-
if (typeof optionsOrCb === "function") {
|
|
357
|
-
this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
else if (typeof cb === "function") {
|
|
360
|
-
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
362
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return this.send(command, optionsOrCb);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
updateProfile(args, optionsOrCb, cb) {
|
|
369
|
-
const command = new UpdateProfileCommand_1.UpdateProfileCommand(args);
|
|
370
|
-
if (typeof optionsOrCb === "function") {
|
|
371
|
-
this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
else if (typeof cb === "function") {
|
|
374
|
-
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
376
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
return this.send(command, optionsOrCb);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
updateTrustAnchor(args, optionsOrCb, cb) {
|
|
383
|
-
const command = new UpdateTrustAnchorCommand_1.UpdateTrustAnchorCommand(args);
|
|
384
|
-
if (typeof optionsOrCb === "function") {
|
|
385
|
-
this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
else if (typeof cb === "function") {
|
|
388
|
-
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
390
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
return this.send(command, optionsOrCb);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
61
|
}
|
|
397
62
|
exports.RolesAnywhere = RolesAnywhere;
|
|
63
|
+
(0, smithy_client_1.createAggregatedClient)(commands, RolesAnywhere);
|
package/dist-es/RolesAnywhere.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
|
|
2
3
|
import { CreateTrustAnchorCommand, } from "./commands/CreateTrustAnchorCommand";
|
|
3
4
|
import { DeleteCrlCommand } from "./commands/DeleteCrlCommand";
|
|
@@ -25,369 +26,34 @@ import { UpdateCrlCommand } from "./commands/UpdateCrlCommand";
|
|
|
25
26
|
import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
|
|
26
27
|
import { UpdateTrustAnchorCommand, } from "./commands/UpdateTrustAnchorCommand";
|
|
27
28
|
import { RolesAnywhereClient } from "./RolesAnywhereClient";
|
|
29
|
+
const commands = {
|
|
30
|
+
CreateProfileCommand,
|
|
31
|
+
CreateTrustAnchorCommand,
|
|
32
|
+
DeleteCrlCommand,
|
|
33
|
+
DeleteProfileCommand,
|
|
34
|
+
DeleteTrustAnchorCommand,
|
|
35
|
+
DisableCrlCommand,
|
|
36
|
+
DisableProfileCommand,
|
|
37
|
+
DisableTrustAnchorCommand,
|
|
38
|
+
EnableCrlCommand,
|
|
39
|
+
EnableProfileCommand,
|
|
40
|
+
EnableTrustAnchorCommand,
|
|
41
|
+
GetCrlCommand,
|
|
42
|
+
GetProfileCommand,
|
|
43
|
+
GetSubjectCommand,
|
|
44
|
+
GetTrustAnchorCommand,
|
|
45
|
+
ImportCrlCommand,
|
|
46
|
+
ListCrlsCommand,
|
|
47
|
+
ListProfilesCommand,
|
|
48
|
+
ListSubjectsCommand,
|
|
49
|
+
ListTagsForResourceCommand,
|
|
50
|
+
ListTrustAnchorsCommand,
|
|
51
|
+
TagResourceCommand,
|
|
52
|
+
UntagResourceCommand,
|
|
53
|
+
UpdateCrlCommand,
|
|
54
|
+
UpdateProfileCommand,
|
|
55
|
+
UpdateTrustAnchorCommand,
|
|
56
|
+
};
|
|
28
57
|
export class RolesAnywhere extends RolesAnywhereClient {
|
|
29
|
-
createProfile(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateProfileCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
createTrustAnchor(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new CreateTrustAnchorCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
deleteCrl(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DeleteCrlCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
deleteProfile(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new DeleteProfileCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
deleteTrustAnchor(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DeleteTrustAnchorCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
disableCrl(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new DisableCrlCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
disableProfile(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new DisableProfileCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
disableTrustAnchor(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new DisableTrustAnchorCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
enableCrl(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new EnableCrlCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
enableProfile(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new EnableProfileCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
enableTrustAnchor(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new EnableTrustAnchorCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
getCrl(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new GetCrlCommand(args);
|
|
185
|
-
if (typeof optionsOrCb === "function") {
|
|
186
|
-
this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
else if (typeof cb === "function") {
|
|
189
|
-
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
getProfile(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new GetProfileCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
else if (typeof cb === "function") {
|
|
203
|
-
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
getSubject(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new GetSubjectCommand(args);
|
|
213
|
-
if (typeof optionsOrCb === "function") {
|
|
214
|
-
this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
else if (typeof cb === "function") {
|
|
217
|
-
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
getTrustAnchor(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new GetTrustAnchorCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
else if (typeof cb === "function") {
|
|
231
|
-
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
return this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
importCrl(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new ImportCrlCommand(args);
|
|
241
|
-
if (typeof optionsOrCb === "function") {
|
|
242
|
-
this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
else if (typeof cb === "function") {
|
|
245
|
-
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
listCrls(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new ListCrlsCommand(args);
|
|
255
|
-
if (typeof optionsOrCb === "function") {
|
|
256
|
-
this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
else if (typeof cb === "function") {
|
|
259
|
-
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
listProfiles(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new ListProfilesCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
else if (typeof cb === "function") {
|
|
273
|
-
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
listSubjects(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new ListSubjectsCommand(args);
|
|
283
|
-
if (typeof optionsOrCb === "function") {
|
|
284
|
-
this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof cb === "function") {
|
|
287
|
-
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
return this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new ListTagsForResourceCommand(args);
|
|
297
|
-
if (typeof optionsOrCb === "function") {
|
|
298
|
-
this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
else if (typeof cb === "function") {
|
|
301
|
-
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
return this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
listTrustAnchors(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new ListTrustAnchorsCommand(args);
|
|
311
|
-
if (typeof optionsOrCb === "function") {
|
|
312
|
-
this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
else if (typeof cb === "function") {
|
|
315
|
-
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
tagResource(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new TagResourceCommand(args);
|
|
325
|
-
if (typeof optionsOrCb === "function") {
|
|
326
|
-
this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
else if (typeof cb === "function") {
|
|
329
|
-
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
untagResource(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new UntagResourceCommand(args);
|
|
339
|
-
if (typeof optionsOrCb === "function") {
|
|
340
|
-
this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
else if (typeof cb === "function") {
|
|
343
|
-
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
return this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
updateCrl(args, optionsOrCb, cb) {
|
|
352
|
-
const command = new UpdateCrlCommand(args);
|
|
353
|
-
if (typeof optionsOrCb === "function") {
|
|
354
|
-
this.send(command, optionsOrCb);
|
|
355
|
-
}
|
|
356
|
-
else if (typeof cb === "function") {
|
|
357
|
-
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
return this.send(command, optionsOrCb);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
updateProfile(args, optionsOrCb, cb) {
|
|
366
|
-
const command = new UpdateProfileCommand(args);
|
|
367
|
-
if (typeof optionsOrCb === "function") {
|
|
368
|
-
this.send(command, optionsOrCb);
|
|
369
|
-
}
|
|
370
|
-
else if (typeof cb === "function") {
|
|
371
|
-
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
return this.send(command, optionsOrCb);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
updateTrustAnchor(args, optionsOrCb, cb) {
|
|
380
|
-
const command = new UpdateTrustAnchorCommand(args);
|
|
381
|
-
if (typeof optionsOrCb === "function") {
|
|
382
|
-
this.send(command, optionsOrCb);
|
|
383
|
-
}
|
|
384
|
-
else if (typeof cb === "function") {
|
|
385
|
-
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
387
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
390
|
-
return this.send(command, optionsOrCb);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
58
|
}
|
|
59
|
+
createAggregatedClient(commands, RolesAnywhere);
|
|
@@ -26,298 +26,170 @@ import { UpdateCrlCommandInput, UpdateCrlCommandOutput } from "./commands/Update
|
|
|
26
26
|
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
|
|
27
27
|
import { UpdateTrustAnchorCommandInput, UpdateTrustAnchorCommandOutput } from "./commands/UpdateTrustAnchorCommand";
|
|
28
28
|
import { RolesAnywhereClient } from "./RolesAnywhereClient";
|
|
29
|
-
|
|
30
|
-
* @public
|
|
31
|
-
* <p>AWS Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications running outside of AWS to obtain Temporary AWS credentials. Your workloads can use the same IAM policies and roles that you have configured with native AWS applications to access AWS resources. Using IAM Roles Anywhere will eliminate the need to manage long term credentials for workloads running outside of AWS.</p>
|
|
32
|
-
* <p>To use IAM Roles Anywhere customer workloads will need to use X.509 certificates issued by their Certificate Authority (CA) . The Certificate Authority (CA) needs to be registered with IAM Roles Anywhere as a trust anchor to establish trust between customer PKI and IAM Roles Anywhere. Customers who do not manage their own PKI system can use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a Certificate Authority and use that to establish trust with IAM Roles Anywhere</p>
|
|
33
|
-
* <p>This guide describes the IAM rolesanywhere operations that you can call programmatically. For general information about IAM Roles Anywhere see <a href="https://docs.aws.amazon.com/">https://docs.aws.amazon.com/</a>
|
|
34
|
-
* </p>
|
|
35
|
-
*/
|
|
36
|
-
export declare class RolesAnywhere extends RolesAnywhereClient {
|
|
29
|
+
export interface RolesAnywhere {
|
|
37
30
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>Creates a profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can intersect permissions with IAM managed policies.</p>
|
|
40
|
-
* <p>
|
|
41
|
-
* <b>Required permissions: </b>
|
|
42
|
-
* <code>rolesanywhere:CreateProfile</code>.
|
|
43
|
-
* </p>
|
|
31
|
+
* @see {@link CreateProfileCommand}
|
|
44
32
|
*/
|
|
45
33
|
createProfile(args: CreateProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateProfileCommandOutput>;
|
|
46
34
|
createProfile(args: CreateProfileCommandInput, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
|
|
47
35
|
createProfile(args: CreateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
|
|
48
36
|
/**
|
|
49
|
-
* @
|
|
50
|
-
* <p>Creates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.</p>
|
|
51
|
-
* <p>
|
|
52
|
-
* <b>Required permissions: </b>
|
|
53
|
-
* <code>rolesanywhere:CreateTrustAnchor</code>.
|
|
54
|
-
* </p>
|
|
37
|
+
* @see {@link CreateTrustAnchorCommand}
|
|
55
38
|
*/
|
|
56
39
|
createTrustAnchor(args: CreateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrustAnchorCommandOutput>;
|
|
57
40
|
createTrustAnchor(args: CreateTrustAnchorCommandInput, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
|
|
58
41
|
createTrustAnchor(args: CreateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
|
|
59
42
|
/**
|
|
60
|
-
* @
|
|
61
|
-
* <p>Deletes a certificate revocation list (CRL).</p>
|
|
62
|
-
* <p>
|
|
63
|
-
* <b>Required permissions: </b>
|
|
64
|
-
* <code>rolesanywhere:DeleteCrl</code>.
|
|
65
|
-
* </p>
|
|
43
|
+
* @see {@link DeleteCrlCommand}
|
|
66
44
|
*/
|
|
67
45
|
deleteCrl(args: DeleteCrlCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCrlCommandOutput>;
|
|
68
46
|
deleteCrl(args: DeleteCrlCommandInput, cb: (err: any, data?: DeleteCrlCommandOutput) => void): void;
|
|
69
47
|
deleteCrl(args: DeleteCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCrlCommandOutput) => void): void;
|
|
70
48
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <p>Deletes a profile.</p>
|
|
73
|
-
* <p>
|
|
74
|
-
* <b>Required permissions: </b>
|
|
75
|
-
* <code>rolesanywhere:DeleteProfile</code>.
|
|
76
|
-
* </p>
|
|
49
|
+
* @see {@link DeleteProfileCommand}
|
|
77
50
|
*/
|
|
78
51
|
deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
|
|
79
52
|
deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
80
53
|
deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
81
54
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Deletes a trust anchor.</p>
|
|
84
|
-
* <p>
|
|
85
|
-
* <b>Required permissions: </b>
|
|
86
|
-
* <code>rolesanywhere:DeleteTrustAnchor</code>.
|
|
87
|
-
* </p>
|
|
55
|
+
* @see {@link DeleteTrustAnchorCommand}
|
|
88
56
|
*/
|
|
89
57
|
deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrustAnchorCommandOutput>;
|
|
90
58
|
deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, cb: (err: any, data?: DeleteTrustAnchorCommandOutput) => void): void;
|
|
91
59
|
deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrustAnchorCommandOutput) => void): void;
|
|
92
60
|
/**
|
|
93
|
-
* @
|
|
94
|
-
* <p>Disables a certificate revocation list (CRL).</p>
|
|
95
|
-
* <p>
|
|
96
|
-
* <b>Required permissions: </b>
|
|
97
|
-
* <code>rolesanywhere:DisableCrl</code>.
|
|
98
|
-
* </p>
|
|
61
|
+
* @see {@link DisableCrlCommand}
|
|
99
62
|
*/
|
|
100
63
|
disableCrl(args: DisableCrlCommandInput, options?: __HttpHandlerOptions): Promise<DisableCrlCommandOutput>;
|
|
101
64
|
disableCrl(args: DisableCrlCommandInput, cb: (err: any, data?: DisableCrlCommandOutput) => void): void;
|
|
102
65
|
disableCrl(args: DisableCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableCrlCommandOutput) => void): void;
|
|
103
66
|
/**
|
|
104
|
-
* @
|
|
105
|
-
* <p>Disables a profile. When disabled, <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests with this profile fail.</p>
|
|
106
|
-
* <p>
|
|
107
|
-
* <b>Required permissions: </b>
|
|
108
|
-
* <code>rolesanywhere:DisableProfile</code>.
|
|
109
|
-
* </p>
|
|
67
|
+
* @see {@link DisableProfileCommand}
|
|
110
68
|
*/
|
|
111
69
|
disableProfile(args: DisableProfileCommandInput, options?: __HttpHandlerOptions): Promise<DisableProfileCommandOutput>;
|
|
112
70
|
disableProfile(args: DisableProfileCommandInput, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
|
|
113
71
|
disableProfile(args: DisableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
|
|
114
72
|
/**
|
|
115
|
-
* @
|
|
116
|
-
* <p>Disables a trust anchor. When disabled, <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests specifying this trust anchor are unauthorized.</p>
|
|
117
|
-
* <p>
|
|
118
|
-
* <b>Required permissions: </b>
|
|
119
|
-
* <code>rolesanywhere:DisableTrustAnchor</code>.
|
|
120
|
-
* </p>
|
|
73
|
+
* @see {@link DisableTrustAnchorCommand}
|
|
121
74
|
*/
|
|
122
75
|
disableTrustAnchor(args: DisableTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<DisableTrustAnchorCommandOutput>;
|
|
123
76
|
disableTrustAnchor(args: DisableTrustAnchorCommandInput, cb: (err: any, data?: DisableTrustAnchorCommandOutput) => void): void;
|
|
124
77
|
disableTrustAnchor(args: DisableTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableTrustAnchorCommandOutput) => void): void;
|
|
125
78
|
/**
|
|
126
|
-
* @
|
|
127
|
-
* <p>Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.</p>
|
|
128
|
-
* <p>
|
|
129
|
-
* <b>Required permissions: </b>
|
|
130
|
-
* <code>rolesanywhere:EnableCrl</code>.
|
|
131
|
-
* </p>
|
|
79
|
+
* @see {@link EnableCrlCommand}
|
|
132
80
|
*/
|
|
133
81
|
enableCrl(args: EnableCrlCommandInput, options?: __HttpHandlerOptions): Promise<EnableCrlCommandOutput>;
|
|
134
82
|
enableCrl(args: EnableCrlCommandInput, cb: (err: any, data?: EnableCrlCommandOutput) => void): void;
|
|
135
83
|
enableCrl(args: EnableCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableCrlCommandOutput) => void): void;
|
|
136
84
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>Enables the roles in a profile to receive session credentials in <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a>. </p>
|
|
139
|
-
* <p>
|
|
140
|
-
* <b>Required permissions: </b>
|
|
141
|
-
* <code>rolesanywhere:EnableProfile</code>.
|
|
142
|
-
* </p>
|
|
85
|
+
* @see {@link EnableProfileCommand}
|
|
143
86
|
*/
|
|
144
87
|
enableProfile(args: EnableProfileCommandInput, options?: __HttpHandlerOptions): Promise<EnableProfileCommandOutput>;
|
|
145
88
|
enableProfile(args: EnableProfileCommandInput, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
|
|
146
89
|
enableProfile(args: EnableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
|
|
147
90
|
/**
|
|
148
|
-
* @
|
|
149
|
-
* <p>Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation. </p>
|
|
150
|
-
* <p>
|
|
151
|
-
* <b>Required permissions: </b>
|
|
152
|
-
* <code>rolesanywhere:EnableTrustAnchor</code>.
|
|
153
|
-
* </p>
|
|
91
|
+
* @see {@link EnableTrustAnchorCommand}
|
|
154
92
|
*/
|
|
155
93
|
enableTrustAnchor(args: EnableTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<EnableTrustAnchorCommandOutput>;
|
|
156
94
|
enableTrustAnchor(args: EnableTrustAnchorCommandInput, cb: (err: any, data?: EnableTrustAnchorCommandOutput) => void): void;
|
|
157
95
|
enableTrustAnchor(args: EnableTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableTrustAnchorCommandOutput) => void): void;
|
|
158
96
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Gets a certificate revocation list (CRL).</p>
|
|
161
|
-
* <p>
|
|
162
|
-
* <b>Required permissions: </b>
|
|
163
|
-
* <code>rolesanywhere:GetCrl</code>.
|
|
164
|
-
* </p>
|
|
97
|
+
* @see {@link GetCrlCommand}
|
|
165
98
|
*/
|
|
166
99
|
getCrl(args: GetCrlCommandInput, options?: __HttpHandlerOptions): Promise<GetCrlCommandOutput>;
|
|
167
100
|
getCrl(args: GetCrlCommandInput, cb: (err: any, data?: GetCrlCommandOutput) => void): void;
|
|
168
101
|
getCrl(args: GetCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCrlCommandOutput) => void): void;
|
|
169
102
|
/**
|
|
170
|
-
* @
|
|
171
|
-
* <p>Gets a profile.</p>
|
|
172
|
-
* <p>
|
|
173
|
-
* <b>Required permissions: </b>
|
|
174
|
-
* <code>rolesanywhere:GetProfile</code>.
|
|
175
|
-
* </p>
|
|
103
|
+
* @see {@link GetProfileCommand}
|
|
176
104
|
*/
|
|
177
105
|
getProfile(args: GetProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetProfileCommandOutput>;
|
|
178
106
|
getProfile(args: GetProfileCommandInput, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
|
|
179
107
|
getProfile(args: GetProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
|
|
180
108
|
/**
|
|
181
|
-
* @
|
|
182
|
-
* <p>Gets a Subject. A Subject associates a certificate identity with authentication attempts by CreateSession. The Subject resources stores audit information such as status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication. </p>
|
|
183
|
-
* <p>
|
|
184
|
-
* <b>Required permissions: </b>
|
|
185
|
-
* <code>rolesanywhere:GetSubject</code>.
|
|
186
|
-
* </p>
|
|
109
|
+
* @see {@link GetSubjectCommand}
|
|
187
110
|
*/
|
|
188
111
|
getSubject(args: GetSubjectCommandInput, options?: __HttpHandlerOptions): Promise<GetSubjectCommandOutput>;
|
|
189
112
|
getSubject(args: GetSubjectCommandInput, cb: (err: any, data?: GetSubjectCommandOutput) => void): void;
|
|
190
113
|
getSubject(args: GetSubjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubjectCommandOutput) => void): void;
|
|
191
114
|
/**
|
|
192
|
-
* @
|
|
193
|
-
* <p>Gets a trust anchor.</p>
|
|
194
|
-
* <p>
|
|
195
|
-
* <b>Required permissions: </b>
|
|
196
|
-
* <code>rolesanywhere:GetTrustAnchor</code>.
|
|
197
|
-
* </p>
|
|
115
|
+
* @see {@link GetTrustAnchorCommand}
|
|
198
116
|
*/
|
|
199
117
|
getTrustAnchor(args: GetTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<GetTrustAnchorCommandOutput>;
|
|
200
118
|
getTrustAnchor(args: GetTrustAnchorCommandInput, cb: (err: any, data?: GetTrustAnchorCommandOutput) => void): void;
|
|
201
119
|
getTrustAnchor(args: GetTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrustAnchorCommandOutput) => void): void;
|
|
202
120
|
/**
|
|
203
|
-
* @
|
|
204
|
-
* <p>Imports the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials. </p>
|
|
205
|
-
* <p>
|
|
206
|
-
* <b>Required permissions: </b>
|
|
207
|
-
* <code>rolesanywhere:ImportCrl</code>.
|
|
208
|
-
* </p>
|
|
121
|
+
* @see {@link ImportCrlCommand}
|
|
209
122
|
*/
|
|
210
123
|
importCrl(args: ImportCrlCommandInput, options?: __HttpHandlerOptions): Promise<ImportCrlCommandOutput>;
|
|
211
124
|
importCrl(args: ImportCrlCommandInput, cb: (err: any, data?: ImportCrlCommandOutput) => void): void;
|
|
212
125
|
importCrl(args: ImportCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportCrlCommandOutput) => void): void;
|
|
213
126
|
/**
|
|
214
|
-
* @
|
|
215
|
-
* <p>Lists all Crls in the authenticated account and Amazon Web Services Region.</p>
|
|
216
|
-
* <p>
|
|
217
|
-
* <b>Required permissions: </b>
|
|
218
|
-
* <code>rolesanywhere:ListCrls</code>.
|
|
219
|
-
* </p>
|
|
127
|
+
* @see {@link ListCrlsCommand}
|
|
220
128
|
*/
|
|
221
129
|
listCrls(args: ListCrlsCommandInput, options?: __HttpHandlerOptions): Promise<ListCrlsCommandOutput>;
|
|
222
130
|
listCrls(args: ListCrlsCommandInput, cb: (err: any, data?: ListCrlsCommandOutput) => void): void;
|
|
223
131
|
listCrls(args: ListCrlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCrlsCommandOutput) => void): void;
|
|
224
132
|
/**
|
|
225
|
-
* @
|
|
226
|
-
* <p>Lists all profiles in the authenticated account and Amazon Web Services Region.</p>
|
|
227
|
-
* <p>
|
|
228
|
-
* <b>Required permissions: </b>
|
|
229
|
-
* <code>rolesanywhere:ListProfiles</code>.
|
|
230
|
-
* </p>
|
|
133
|
+
* @see {@link ListProfilesCommand}
|
|
231
134
|
*/
|
|
232
135
|
listProfiles(args: ListProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListProfilesCommandOutput>;
|
|
233
136
|
listProfiles(args: ListProfilesCommandInput, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
|
|
234
137
|
listProfiles(args: ListProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
|
|
235
138
|
/**
|
|
236
|
-
* @
|
|
237
|
-
* <p>Lists the subjects in the authenticated account and Amazon Web Services Region.</p>
|
|
238
|
-
* <p>
|
|
239
|
-
* <b>Required permissions: </b>
|
|
240
|
-
* <code>rolesanywhere:ListSubjects</code>.
|
|
241
|
-
* </p>
|
|
139
|
+
* @see {@link ListSubjectsCommand}
|
|
242
140
|
*/
|
|
243
141
|
listSubjects(args: ListSubjectsCommandInput, options?: __HttpHandlerOptions): Promise<ListSubjectsCommandOutput>;
|
|
244
142
|
listSubjects(args: ListSubjectsCommandInput, cb: (err: any, data?: ListSubjectsCommandOutput) => void): void;
|
|
245
143
|
listSubjects(args: ListSubjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubjectsCommandOutput) => void): void;
|
|
246
144
|
/**
|
|
247
|
-
* @
|
|
248
|
-
* <p>Lists the tags attached to the resource.</p>
|
|
249
|
-
* <p>
|
|
250
|
-
* <b>Required permissions: </b>
|
|
251
|
-
* <code>rolesanywhere:ListTagsForResource</code>.
|
|
252
|
-
* </p>
|
|
145
|
+
* @see {@link ListTagsForResourceCommand}
|
|
253
146
|
*/
|
|
254
147
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
255
148
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
256
149
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
257
150
|
/**
|
|
258
|
-
* @
|
|
259
|
-
* <p>Lists the trust anchors in the authenticated account and Amazon Web Services Region.</p>
|
|
260
|
-
* <p>
|
|
261
|
-
* <b>Required permissions: </b>
|
|
262
|
-
* <code>rolesanywhere:ListTrustAnchors</code>.
|
|
263
|
-
* </p>
|
|
151
|
+
* @see {@link ListTrustAnchorsCommand}
|
|
264
152
|
*/
|
|
265
153
|
listTrustAnchors(args: ListTrustAnchorsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrustAnchorsCommandOutput>;
|
|
266
154
|
listTrustAnchors(args: ListTrustAnchorsCommandInput, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
|
|
267
155
|
listTrustAnchors(args: ListTrustAnchorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
|
|
268
156
|
/**
|
|
269
|
-
* @
|
|
270
|
-
* <p>Attaches tags to a resource.</p>
|
|
271
|
-
* <p>
|
|
272
|
-
* <b>Required permissions: </b>
|
|
273
|
-
* <code>rolesanywhere:TagResource</code>.
|
|
274
|
-
* </p>
|
|
157
|
+
* @see {@link TagResourceCommand}
|
|
275
158
|
*/
|
|
276
159
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
277
160
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
278
161
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
279
162
|
/**
|
|
280
|
-
* @
|
|
281
|
-
* <p>Removes tags from the resource.</p>
|
|
282
|
-
* <p>
|
|
283
|
-
* <b>Required permissions: </b>
|
|
284
|
-
* <code>rolesanywhere:UntagResource</code>.
|
|
285
|
-
* </p>
|
|
163
|
+
* @see {@link UntagResourceCommand}
|
|
286
164
|
*/
|
|
287
165
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
288
166
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
289
167
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
290
168
|
/**
|
|
291
|
-
* @
|
|
292
|
-
* <p>Updates the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials.</p>
|
|
293
|
-
* <p>
|
|
294
|
-
* <b>Required permissions: </b>
|
|
295
|
-
* <code>rolesanywhere:UpdateCrl</code>.
|
|
296
|
-
* </p>
|
|
169
|
+
* @see {@link UpdateCrlCommand}
|
|
297
170
|
*/
|
|
298
171
|
updateCrl(args: UpdateCrlCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCrlCommandOutput>;
|
|
299
172
|
updateCrl(args: UpdateCrlCommandInput, cb: (err: any, data?: UpdateCrlCommandOutput) => void): void;
|
|
300
173
|
updateCrl(args: UpdateCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCrlCommandOutput) => void): void;
|
|
301
174
|
/**
|
|
302
|
-
* @
|
|
303
|
-
* <p>Updates the profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can scope-down permissions with IAM managed policies.</p>
|
|
304
|
-
* <p>
|
|
305
|
-
* <b>Required permissions: </b>
|
|
306
|
-
* <code>rolesanywhere:UpdateProfile</code>.
|
|
307
|
-
* </p>
|
|
175
|
+
* @see {@link UpdateProfileCommand}
|
|
308
176
|
*/
|
|
309
177
|
updateProfile(args: UpdateProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProfileCommandOutput>;
|
|
310
178
|
updateProfile(args: UpdateProfileCommandInput, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
|
|
311
179
|
updateProfile(args: UpdateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
|
|
312
180
|
/**
|
|
313
|
-
* @
|
|
314
|
-
* <p>Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.</p>
|
|
315
|
-
* <p>
|
|
316
|
-
* <b>Required permissions: </b>
|
|
317
|
-
* <code>rolesanywhere:UpdateTrustAnchor</code>.
|
|
318
|
-
* </p>
|
|
181
|
+
* @see {@link UpdateTrustAnchorCommand}
|
|
319
182
|
*/
|
|
320
183
|
updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrustAnchorCommandOutput>;
|
|
321
184
|
updateTrustAnchor(args: UpdateTrustAnchorCommandInput, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
|
|
322
185
|
updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
|
|
323
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* @public
|
|
189
|
+
* <p>AWS Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications running outside of AWS to obtain Temporary AWS credentials. Your workloads can use the same IAM policies and roles that you have configured with native AWS applications to access AWS resources. Using IAM Roles Anywhere will eliminate the need to manage long term credentials for workloads running outside of AWS.</p>
|
|
190
|
+
* <p>To use IAM Roles Anywhere customer workloads will need to use X.509 certificates issued by their Certificate Authority (CA) . The Certificate Authority (CA) needs to be registered with IAM Roles Anywhere as a trust anchor to establish trust between customer PKI and IAM Roles Anywhere. Customers who do not manage their own PKI system can use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a Certificate Authority and use that to establish trust with IAM Roles Anywhere</p>
|
|
191
|
+
* <p>This guide describes the IAM rolesanywhere operations that you can call programmatically. For general information about IAM Roles Anywhere see <a href="https://docs.aws.amazon.com/">https://docs.aws.amazon.com/</a>
|
|
192
|
+
* </p>
|
|
193
|
+
*/
|
|
194
|
+
export declare class RolesAnywhere extends RolesAnywhereClient implements RolesAnywhere {
|
|
195
|
+
}
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
UpdateTrustAnchorCommandOutput,
|
|
105
105
|
} from "./commands/UpdateTrustAnchorCommand";
|
|
106
106
|
import { RolesAnywhereClient } from "./RolesAnywhereClient";
|
|
107
|
-
export
|
|
107
|
+
export interface RolesAnywhere {
|
|
108
108
|
createProfile(
|
|
109
109
|
args: CreateProfileCommandInput,
|
|
110
110
|
options?: __HttpHandlerOptions
|
|
@@ -444,3 +444,6 @@ export declare class RolesAnywhere extends RolesAnywhereClient {
|
|
|
444
444
|
cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void
|
|
445
445
|
): void;
|
|
446
446
|
}
|
|
447
|
+
export declare class RolesAnywhere
|
|
448
|
+
extends RolesAnywhereClient
|
|
449
|
+
implements RolesAnywhere {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rolesanywhere",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rolesanywhere Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|