@aws-sdk/client-rolesanywhere 3.123.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.
Files changed (184) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +208 -0
  4. package/dist-cjs/RolesAnywhere.js +397 -0
  5. package/dist-cjs/RolesAnywhereClient.js +37 -0
  6. package/dist-cjs/commands/CreateProfileCommand.js +36 -0
  7. package/dist-cjs/commands/CreateTrustAnchorCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteCrlCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteProfileCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteTrustAnchorCommand.js +36 -0
  11. package/dist-cjs/commands/DisableCrlCommand.js +36 -0
  12. package/dist-cjs/commands/DisableProfileCommand.js +36 -0
  13. package/dist-cjs/commands/DisableTrustAnchorCommand.js +36 -0
  14. package/dist-cjs/commands/EnableCrlCommand.js +36 -0
  15. package/dist-cjs/commands/EnableProfileCommand.js +36 -0
  16. package/dist-cjs/commands/EnableTrustAnchorCommand.js +36 -0
  17. package/dist-cjs/commands/GetCrlCommand.js +36 -0
  18. package/dist-cjs/commands/GetProfileCommand.js +36 -0
  19. package/dist-cjs/commands/GetSubjectCommand.js +36 -0
  20. package/dist-cjs/commands/GetTrustAnchorCommand.js +36 -0
  21. package/dist-cjs/commands/ImportCrlCommand.js +36 -0
  22. package/dist-cjs/commands/ListCrlsCommand.js +36 -0
  23. package/dist-cjs/commands/ListProfilesCommand.js +36 -0
  24. package/dist-cjs/commands/ListSubjectsCommand.js +36 -0
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  26. package/dist-cjs/commands/ListTrustAnchorsCommand.js +36 -0
  27. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  29. package/dist-cjs/commands/UpdateCrlCommand.js +36 -0
  30. package/dist-cjs/commands/UpdateProfileCommand.js +36 -0
  31. package/dist-cjs/commands/UpdateTrustAnchorCommand.js +36 -0
  32. package/dist-cjs/commands/index.js +29 -0
  33. package/dist-cjs/endpoints.js +131 -0
  34. package/dist-cjs/index.js +11 -0
  35. package/dist-cjs/models/RolesAnywhereServiceException.js +11 -0
  36. package/dist-cjs/models/index.js +4 -0
  37. package/dist-cjs/models/models_0.js +301 -0
  38. package/dist-cjs/pagination/Interfaces.js +2 -0
  39. package/dist-cjs/pagination/ListCrlsPaginator.js +35 -0
  40. package/dist-cjs/pagination/ListProfilesPaginator.js +35 -0
  41. package/dist-cjs/pagination/ListSubjectsPaginator.js +35 -0
  42. package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +35 -0
  43. package/dist-cjs/pagination/index.js +8 -0
  44. package/dist-cjs/protocols/Aws_restJson1.js +2195 -0
  45. package/dist-cjs/runtimeConfig.browser.js +45 -0
  46. package/dist-cjs/runtimeConfig.js +52 -0
  47. package/dist-cjs/runtimeConfig.native.js +16 -0
  48. package/dist-cjs/runtimeConfig.shared.js +17 -0
  49. package/dist-es/RolesAnywhere.js +400 -0
  50. package/dist-es/RolesAnywhereClient.js +39 -0
  51. package/dist-es/commands/CreateProfileCommand.js +39 -0
  52. package/dist-es/commands/CreateTrustAnchorCommand.js +39 -0
  53. package/dist-es/commands/DeleteCrlCommand.js +39 -0
  54. package/dist-es/commands/DeleteProfileCommand.js +39 -0
  55. package/dist-es/commands/DeleteTrustAnchorCommand.js +39 -0
  56. package/dist-es/commands/DisableCrlCommand.js +39 -0
  57. package/dist-es/commands/DisableProfileCommand.js +39 -0
  58. package/dist-es/commands/DisableTrustAnchorCommand.js +39 -0
  59. package/dist-es/commands/EnableCrlCommand.js +39 -0
  60. package/dist-es/commands/EnableProfileCommand.js +39 -0
  61. package/dist-es/commands/EnableTrustAnchorCommand.js +39 -0
  62. package/dist-es/commands/GetCrlCommand.js +39 -0
  63. package/dist-es/commands/GetProfileCommand.js +39 -0
  64. package/dist-es/commands/GetSubjectCommand.js +39 -0
  65. package/dist-es/commands/GetTrustAnchorCommand.js +39 -0
  66. package/dist-es/commands/ImportCrlCommand.js +39 -0
  67. package/dist-es/commands/ListCrlsCommand.js +39 -0
  68. package/dist-es/commands/ListProfilesCommand.js +39 -0
  69. package/dist-es/commands/ListSubjectsCommand.js +39 -0
  70. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  71. package/dist-es/commands/ListTrustAnchorsCommand.js +39 -0
  72. package/dist-es/commands/TagResourceCommand.js +39 -0
  73. package/dist-es/commands/UntagResourceCommand.js +39 -0
  74. package/dist-es/commands/UpdateCrlCommand.js +39 -0
  75. package/dist-es/commands/UpdateProfileCommand.js +39 -0
  76. package/dist-es/commands/UpdateTrustAnchorCommand.js +39 -0
  77. package/dist-es/commands/index.js +26 -0
  78. package/dist-es/endpoints.js +127 -0
  79. package/dist-es/index.js +6 -0
  80. package/dist-es/models/RolesAnywhereServiceException.js +12 -0
  81. package/dist-es/models/index.js +1 -0
  82. package/dist-es/models/models_0.js +214 -0
  83. package/dist-es/pagination/Interfaces.js +1 -0
  84. package/dist-es/pagination/ListCrlsPaginator.js +74 -0
  85. package/dist-es/pagination/ListProfilesPaginator.js +74 -0
  86. package/dist-es/pagination/ListSubjectsPaginator.js +74 -0
  87. package/dist-es/pagination/ListTrustAnchorsPaginator.js +74 -0
  88. package/dist-es/pagination/index.js +5 -0
  89. package/dist-es/protocols/Aws_restJson1.js +2793 -0
  90. package/dist-es/runtimeConfig.browser.js +26 -0
  91. package/dist-es/runtimeConfig.js +30 -0
  92. package/dist-es/runtimeConfig.native.js +8 -0
  93. package/dist-es/runtimeConfig.shared.js +13 -0
  94. package/dist-types/RolesAnywhere.d.ts +296 -0
  95. package/dist-types/RolesAnywhereClient.d.ts +173 -0
  96. package/dist-types/commands/CreateProfileCommand.d.ts +39 -0
  97. package/dist-types/commands/CreateTrustAnchorCommand.d.ts +39 -0
  98. package/dist-types/commands/DeleteCrlCommand.d.ts +39 -0
  99. package/dist-types/commands/DeleteProfileCommand.d.ts +39 -0
  100. package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +39 -0
  101. package/dist-types/commands/DisableCrlCommand.d.ts +39 -0
  102. package/dist-types/commands/DisableProfileCommand.d.ts +39 -0
  103. package/dist-types/commands/DisableTrustAnchorCommand.d.ts +39 -0
  104. package/dist-types/commands/EnableCrlCommand.d.ts +39 -0
  105. package/dist-types/commands/EnableProfileCommand.d.ts +39 -0
  106. package/dist-types/commands/EnableTrustAnchorCommand.d.ts +39 -0
  107. package/dist-types/commands/GetCrlCommand.d.ts +39 -0
  108. package/dist-types/commands/GetProfileCommand.d.ts +39 -0
  109. package/dist-types/commands/GetSubjectCommand.d.ts +39 -0
  110. package/dist-types/commands/GetTrustAnchorCommand.d.ts +39 -0
  111. package/dist-types/commands/ImportCrlCommand.d.ts +39 -0
  112. package/dist-types/commands/ListCrlsCommand.d.ts +39 -0
  113. package/dist-types/commands/ListProfilesCommand.d.ts +39 -0
  114. package/dist-types/commands/ListSubjectsCommand.d.ts +39 -0
  115. package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
  116. package/dist-types/commands/ListTrustAnchorsCommand.d.ts +39 -0
  117. package/dist-types/commands/TagResourceCommand.d.ts +39 -0
  118. package/dist-types/commands/UntagResourceCommand.d.ts +39 -0
  119. package/dist-types/commands/UpdateCrlCommand.d.ts +39 -0
  120. package/dist-types/commands/UpdateProfileCommand.d.ts +39 -0
  121. package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +39 -0
  122. package/dist-types/commands/index.d.ts +26 -0
  123. package/dist-types/endpoints.d.ts +2 -0
  124. package/dist-types/index.d.ts +6 -0
  125. package/dist-types/models/RolesAnywhereServiceException.d.ts +10 -0
  126. package/dist-types/models/index.d.ts +1 -0
  127. package/dist-types/models/models_0.d.ts +823 -0
  128. package/dist-types/pagination/Interfaces.d.ts +6 -0
  129. package/dist-types/pagination/ListCrlsPaginator.d.ts +4 -0
  130. package/dist-types/pagination/ListProfilesPaginator.d.ts +4 -0
  131. package/dist-types/pagination/ListSubjectsPaginator.d.ts +4 -0
  132. package/dist-types/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
  133. package/dist-types/pagination/index.d.ts +5 -0
  134. package/dist-types/protocols/Aws_restJson1.d.ts +80 -0
  135. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  136. package/dist-types/runtimeConfig.d.ts +40 -0
  137. package/dist-types/runtimeConfig.native.d.ts +39 -0
  138. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  139. package/dist-types/ts3.4/RolesAnywhere.d.ts +135 -0
  140. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +99 -0
  141. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/CreateTrustAnchorCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/DeleteCrlCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/DeleteTrustAnchorCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/DisableCrlCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/DisableProfileCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/DisableTrustAnchorCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/EnableCrlCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/EnableProfileCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/EnableTrustAnchorCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/GetCrlCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/GetSubjectCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/GetTrustAnchorCommand.d.ts +17 -0
  156. package/dist-types/ts3.4/commands/ImportCrlCommand.d.ts +17 -0
  157. package/dist-types/ts3.4/commands/ListCrlsCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/ListSubjectsCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/ListTrustAnchorsCommand.d.ts +17 -0
  162. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  163. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/UpdateCrlCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/UpdateTrustAnchorCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  168. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  169. package/dist-types/ts3.4/index.d.ts +6 -0
  170. package/dist-types/ts3.4/models/RolesAnywhereServiceException.d.ts +6 -0
  171. package/dist-types/ts3.4/models/index.d.ts +1 -0
  172. package/dist-types/ts3.4/models/models_0.d.ts +498 -0
  173. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  174. package/dist-types/ts3.4/pagination/ListCrlsPaginator.d.ts +4 -0
  175. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +4 -0
  176. package/dist-types/ts3.4/pagination/ListSubjectsPaginator.d.ts +4 -0
  177. package/dist-types/ts3.4/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
  178. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  179. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +80 -0
  180. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  181. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  182. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  183. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  184. package/package.json +94 -0
@@ -0,0 +1,397 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RolesAnywhere = void 0;
4
+ const CreateProfileCommand_1 = require("./commands/CreateProfileCommand");
5
+ const CreateTrustAnchorCommand_1 = require("./commands/CreateTrustAnchorCommand");
6
+ const DeleteCrlCommand_1 = require("./commands/DeleteCrlCommand");
7
+ const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
8
+ const DeleteTrustAnchorCommand_1 = require("./commands/DeleteTrustAnchorCommand");
9
+ const DisableCrlCommand_1 = require("./commands/DisableCrlCommand");
10
+ const DisableProfileCommand_1 = require("./commands/DisableProfileCommand");
11
+ const DisableTrustAnchorCommand_1 = require("./commands/DisableTrustAnchorCommand");
12
+ const EnableCrlCommand_1 = require("./commands/EnableCrlCommand");
13
+ const EnableProfileCommand_1 = require("./commands/EnableProfileCommand");
14
+ const EnableTrustAnchorCommand_1 = require("./commands/EnableTrustAnchorCommand");
15
+ const GetCrlCommand_1 = require("./commands/GetCrlCommand");
16
+ const GetProfileCommand_1 = require("./commands/GetProfileCommand");
17
+ const GetSubjectCommand_1 = require("./commands/GetSubjectCommand");
18
+ const GetTrustAnchorCommand_1 = require("./commands/GetTrustAnchorCommand");
19
+ const ImportCrlCommand_1 = require("./commands/ImportCrlCommand");
20
+ const ListCrlsCommand_1 = require("./commands/ListCrlsCommand");
21
+ const ListProfilesCommand_1 = require("./commands/ListProfilesCommand");
22
+ const ListSubjectsCommand_1 = require("./commands/ListSubjectsCommand");
23
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
24
+ const ListTrustAnchorsCommand_1 = require("./commands/ListTrustAnchorsCommand");
25
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
26
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
27
+ const UpdateCrlCommand_1 = require("./commands/UpdateCrlCommand");
28
+ const UpdateProfileCommand_1 = require("./commands/UpdateProfileCommand");
29
+ const UpdateTrustAnchorCommand_1 = require("./commands/UpdateTrustAnchorCommand");
30
+ const RolesAnywhereClient_1 = require("./RolesAnywhereClient");
31
+ 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
+ }
397
+ exports.RolesAnywhere = RolesAnywhere;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RolesAnywhereClient = void 0;
4
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
+ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
9
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
+ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
13
+ const runtimeConfig_1 = require("./runtimeConfig");
14
+ class RolesAnywhereClient extends smithy_client_1.Client {
15
+ constructor(configuration) {
16
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
17
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
18
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
19
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
20
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
21
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
22
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
23
+ super(_config_6);
24
+ this.config = _config_6;
25
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
30
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
31
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
32
+ }
33
+ destroy() {
34
+ super.destroy();
35
+ }
36
+ }
37
+ exports.RolesAnywhereClient = RolesAnywhereClient;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateProfileCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateProfileCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "CreateProfileCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateProfileRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ProfileDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateProfileCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateProfileCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateProfileCommand = CreateProfileCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTrustAnchorCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateTrustAnchorCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "CreateTrustAnchorCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateTrustAnchorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.TrustAnchorDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateTrustAnchorCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateTrustAnchorCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateTrustAnchorCommand = CreateTrustAnchorCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteCrlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteCrlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "DeleteCrlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ScalarCrlRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CrlDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteCrlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteCrlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteCrlCommand = DeleteCrlCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteProfileCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteProfileCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "DeleteProfileCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ScalarProfileRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ProfileDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteProfileCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteProfileCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteProfileCommand = DeleteProfileCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTrustAnchorCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteTrustAnchorCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "DeleteTrustAnchorCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ScalarTrustAnchorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.TrustAnchorDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteTrustAnchorCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteTrustAnchorCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteTrustAnchorCommand = DeleteTrustAnchorCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisableCrlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DisableCrlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RolesAnywhereClient";
18
+ const commandName = "DisableCrlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ScalarCrlRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CrlDetailResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DisableCrlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DisableCrlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DisableCrlCommand = DisableCrlCommand;