@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,823 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { RolesAnywhereServiceException as __BaseException } from "./RolesAnywhereServiceException";
3
+ /**
4
+ * <p>You do not have sufficient access to perform this action.</p>
5
+ */
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
13
+ }
14
+ /**
15
+ * <p>A label that consists of a key and value you define. </p>
16
+ */
17
+ export interface Tag {
18
+ /**
19
+ * <p>The tag key.</p>
20
+ */
21
+ key: string | undefined;
22
+ /**
23
+ * <p>The tag value.</p>
24
+ */
25
+ value: string | undefined;
26
+ }
27
+ export declare namespace Tag {
28
+ /**
29
+ * @internal
30
+ */
31
+ const filterSensitiveLog: (obj: Tag) => any;
32
+ }
33
+ export interface CreateProfileRequest {
34
+ /**
35
+ * <p>The name of the profile.</p>
36
+ */
37
+ name: string | undefined;
38
+ /**
39
+ * <p>Specifies whether instance properties are required in <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests with this profile. </p>
40
+ */
41
+ requireInstanceProperties?: boolean;
42
+ /**
43
+ * <p>A session policy that applies to the trust boundary of the vended session credentials. </p>
44
+ */
45
+ sessionPolicy?: string;
46
+ /**
47
+ * <p>A list of IAM roles that this profile can assume in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
48
+ */
49
+ roleArns: string[] | undefined;
50
+ /**
51
+ * <p>A list of managed policy ARNs that apply to the vended session credentials. </p>
52
+ */
53
+ managedPolicyArns?: string[];
54
+ /**
55
+ * <p> The number of seconds the vended session credentials are valid for. </p>
56
+ */
57
+ durationSeconds?: number;
58
+ /**
59
+ * <p>Specifies whether the profile is enabled.</p>
60
+ */
61
+ enabled?: boolean;
62
+ /**
63
+ * <p>The tags to attach to the profile.</p>
64
+ */
65
+ tags?: Tag[];
66
+ }
67
+ export declare namespace CreateProfileRequest {
68
+ /**
69
+ * @internal
70
+ */
71
+ const filterSensitiveLog: (obj: CreateProfileRequest) => any;
72
+ }
73
+ /**
74
+ * <p>The state of the profile after a read or write operation.</p>
75
+ */
76
+ export interface ProfileDetail {
77
+ /**
78
+ * <p>The unique identifier of the profile.</p>
79
+ */
80
+ profileId?: string;
81
+ /**
82
+ * <p>The ARN of the profile.</p>
83
+ */
84
+ profileArn?: string;
85
+ /**
86
+ * <p>The name of the profile.</p>
87
+ */
88
+ name?: string;
89
+ /**
90
+ * <p>Specifies whether instance properties are required in <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests with this profile. </p>
91
+ */
92
+ requireInstanceProperties?: boolean;
93
+ /**
94
+ * <p>Indicates whether the profile is enabled.</p>
95
+ */
96
+ enabled?: boolean;
97
+ /**
98
+ * <p>The Amazon Web Services account that created the profile.</p>
99
+ */
100
+ createdBy?: string;
101
+ /**
102
+ * <p>A session policy that applies to the trust boundary of the vended session credentials. </p>
103
+ */
104
+ sessionPolicy?: string;
105
+ /**
106
+ * <p>A list of IAM roles that this profile can assume in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
107
+ */
108
+ roleArns?: string[];
109
+ /**
110
+ * <p>A list of managed policy ARNs that apply to the vended session credentials. </p>
111
+ */
112
+ managedPolicyArns?: string[];
113
+ /**
114
+ * <p>The ISO-8601 timestamp when the profile was created. </p>
115
+ */
116
+ createdAt?: Date;
117
+ /**
118
+ * <p>The ISO-8601 timestamp when the profile was last updated. </p>
119
+ */
120
+ updatedAt?: Date;
121
+ /**
122
+ * <p> The number of seconds the vended session credentials are valid for. </p>
123
+ */
124
+ durationSeconds?: number;
125
+ }
126
+ export declare namespace ProfileDetail {
127
+ /**
128
+ * @internal
129
+ */
130
+ const filterSensitiveLog: (obj: ProfileDetail) => any;
131
+ }
132
+ export interface ProfileDetailResponse {
133
+ /**
134
+ * <p>The state of the profile after a read or write operation.</p>
135
+ */
136
+ profile?: ProfileDetail;
137
+ }
138
+ export declare namespace ProfileDetailResponse {
139
+ /**
140
+ * @internal
141
+ */
142
+ const filterSensitiveLog: (obj: ProfileDetailResponse) => any;
143
+ }
144
+ /**
145
+ * <p>Validation exception error.</p>
146
+ */
147
+ export declare class ValidationException extends __BaseException {
148
+ readonly name: "ValidationException";
149
+ readonly $fault: "client";
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
154
+ }
155
+ /**
156
+ * <p>The data field of the trust anchor depending on its type. </p>
157
+ */
158
+ export declare type SourceData = SourceData.AcmPcaArnMember | SourceData.X509CertificateDataMember | SourceData.$UnknownMember;
159
+ export declare namespace SourceData {
160
+ /**
161
+ * <p>The PEM-encoded data for the certificate anchor. Included for trust anchors of type <code>CERTIFICATE_BUNDLE</code>. </p>
162
+ */
163
+ interface X509CertificateDataMember {
164
+ x509CertificateData: string;
165
+ acmPcaArn?: never;
166
+ $unknown?: never;
167
+ }
168
+ /**
169
+ * <p>The root certificate of the Certificate Manager Private Certificate Authority specified by this ARN is used in trust validation for <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operations. Included for trust anchors of type <code>AWS_ACM_PCA</code>. </p>
170
+ */
171
+ interface AcmPcaArnMember {
172
+ x509CertificateData?: never;
173
+ acmPcaArn: string;
174
+ $unknown?: never;
175
+ }
176
+ interface $UnknownMember {
177
+ x509CertificateData?: never;
178
+ acmPcaArn?: never;
179
+ $unknown: [string, any];
180
+ }
181
+ interface Visitor<T> {
182
+ x509CertificateData: (value: string) => T;
183
+ acmPcaArn: (value: string) => T;
184
+ _: (name: string, value: any) => T;
185
+ }
186
+ const visit: <T>(value: SourceData, visitor: Visitor<T>) => T;
187
+ /**
188
+ * @internal
189
+ */
190
+ const filterSensitiveLog: (obj: SourceData) => any;
191
+ }
192
+ export declare enum TrustAnchorType {
193
+ AWS_ACM_PCA = "AWS_ACM_PCA",
194
+ CERTIFICATE_BUNDLE = "CERTIFICATE_BUNDLE",
195
+ SELF_SIGNED_REPOSITORY = "SELF_SIGNED_REPOSITORY"
196
+ }
197
+ /**
198
+ * <p>The trust anchor type and its related certificate data.</p>
199
+ */
200
+ export interface Source {
201
+ /**
202
+ * <p>The type of the trust anchor. </p>
203
+ */
204
+ sourceType?: TrustAnchorType | string;
205
+ /**
206
+ * <p>The data field of the trust anchor depending on its type. </p>
207
+ */
208
+ sourceData?: SourceData;
209
+ }
210
+ export declare namespace Source {
211
+ /**
212
+ * @internal
213
+ */
214
+ const filterSensitiveLog: (obj: Source) => any;
215
+ }
216
+ export interface CreateTrustAnchorRequest {
217
+ /**
218
+ * <p>The name of the trust anchor.</p>
219
+ */
220
+ name: string | undefined;
221
+ /**
222
+ * <p>The trust anchor type and its related certificate data.</p>
223
+ */
224
+ source: Source | undefined;
225
+ /**
226
+ * <p>Specifies whether the trust anchor is enabled.</p>
227
+ */
228
+ enabled?: boolean;
229
+ /**
230
+ * <p>The tags to attach to the trust anchor.</p>
231
+ */
232
+ tags?: Tag[];
233
+ }
234
+ export declare namespace CreateTrustAnchorRequest {
235
+ /**
236
+ * @internal
237
+ */
238
+ const filterSensitiveLog: (obj: CreateTrustAnchorRequest) => any;
239
+ }
240
+ /**
241
+ * <p>The state of the trust anchor after a read or write operation. </p>
242
+ */
243
+ export interface TrustAnchorDetail {
244
+ /**
245
+ * <p>The unique identifier of the trust anchor.</p>
246
+ */
247
+ trustAnchorId?: string;
248
+ /**
249
+ * <p>The ARN of the trust anchor.</p>
250
+ */
251
+ trustAnchorArn?: string;
252
+ /**
253
+ * <p>The name of the trust anchor.</p>
254
+ */
255
+ name?: string;
256
+ /**
257
+ * <p>The trust anchor type and its related certificate data.</p>
258
+ */
259
+ source?: Source;
260
+ /**
261
+ * <p>Indicates whether the trust anchor is enabled.</p>
262
+ */
263
+ enabled?: boolean;
264
+ /**
265
+ * <p>The ISO-8601 timestamp when the trust anchor was created. </p>
266
+ */
267
+ createdAt?: Date;
268
+ /**
269
+ * <p>The ISO-8601 timestamp when the trust anchor was last updated. </p>
270
+ */
271
+ updatedAt?: Date;
272
+ }
273
+ export declare namespace TrustAnchorDetail {
274
+ /**
275
+ * @internal
276
+ */
277
+ const filterSensitiveLog: (obj: TrustAnchorDetail) => any;
278
+ }
279
+ export interface TrustAnchorDetailResponse {
280
+ /**
281
+ * <p>The state of the trust anchor after a read or write operation. </p>
282
+ */
283
+ trustAnchor: TrustAnchorDetail | undefined;
284
+ }
285
+ export declare namespace TrustAnchorDetailResponse {
286
+ /**
287
+ * @internal
288
+ */
289
+ const filterSensitiveLog: (obj: TrustAnchorDetailResponse) => any;
290
+ }
291
+ /**
292
+ * <p>A record of a presented X509 credential to <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a>. </p>
293
+ */
294
+ export interface CredentialSummary {
295
+ /**
296
+ * <p>The ISO-8601 time stamp of when the certificate was last used in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
297
+ */
298
+ seenAt?: Date;
299
+ /**
300
+ * <p>The serial number of the certificate.</p>
301
+ */
302
+ serialNumber?: string;
303
+ /**
304
+ * <p>The fully qualified domain name of the issuing certificate for the presented end-entity certificate.</p>
305
+ */
306
+ issuer?: string;
307
+ /**
308
+ * <p>Indicates whether the credential is enabled.</p>
309
+ */
310
+ enabled?: boolean;
311
+ /**
312
+ * <p>The PEM-encoded data of the certificate.</p>
313
+ */
314
+ x509CertificateData?: string;
315
+ /**
316
+ * <p>Indicates whether the <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation was successful. </p>
317
+ */
318
+ failed?: boolean;
319
+ }
320
+ export declare namespace CredentialSummary {
321
+ /**
322
+ * @internal
323
+ */
324
+ const filterSensitiveLog: (obj: CredentialSummary) => any;
325
+ }
326
+ /**
327
+ * <p>The state of the certificate revocation list (CRL) after a read or write operation.</p>
328
+ */
329
+ export interface CrlDetail {
330
+ /**
331
+ * <p>The unique identifier of the certificate revocation list (CRL).</p>
332
+ */
333
+ crlId?: string;
334
+ /**
335
+ * <p>The ARN of the certificate revocation list (CRL).</p>
336
+ */
337
+ crlArn?: string;
338
+ /**
339
+ * <p>The name of the certificate revocation list (CRL).</p>
340
+ */
341
+ name?: string;
342
+ /**
343
+ * <p>Indicates whether the certificate revocation list (CRL) is enabled.</p>
344
+ */
345
+ enabled?: boolean;
346
+ /**
347
+ * <p>The state of the certificate revocation list (CRL) after a read or write operation.</p>
348
+ */
349
+ crlData?: Uint8Array;
350
+ /**
351
+ * <p>The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for. </p>
352
+ */
353
+ trustAnchorArn?: string;
354
+ /**
355
+ * <p>The ISO-8601 timestamp when the certificate revocation list (CRL) was created. </p>
356
+ */
357
+ createdAt?: Date;
358
+ /**
359
+ * <p>The ISO-8601 timestamp when the certificate revocation list (CRL) was last updated. </p>
360
+ */
361
+ updatedAt?: Date;
362
+ }
363
+ export declare namespace CrlDetail {
364
+ /**
365
+ * @internal
366
+ */
367
+ const filterSensitiveLog: (obj: CrlDetail) => any;
368
+ }
369
+ export interface CrlDetailResponse {
370
+ /**
371
+ * <p>The state of the certificate revocation list (CRL) after a read or write operation.</p>
372
+ */
373
+ crl: CrlDetail | undefined;
374
+ }
375
+ export declare namespace CrlDetailResponse {
376
+ /**
377
+ * @internal
378
+ */
379
+ const filterSensitiveLog: (obj: CrlDetailResponse) => any;
380
+ }
381
+ /**
382
+ * <p>The resource could not be found.</p>
383
+ */
384
+ export declare class ResourceNotFoundException extends __BaseException {
385
+ readonly name: "ResourceNotFoundException";
386
+ readonly $fault: "client";
387
+ /**
388
+ * @internal
389
+ */
390
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
391
+ }
392
+ export interface ScalarCrlRequest {
393
+ /**
394
+ * <p>The unique identifier of the certificate revocation list (CRL).</p>
395
+ */
396
+ crlId: string | undefined;
397
+ }
398
+ export declare namespace ScalarCrlRequest {
399
+ /**
400
+ * @internal
401
+ */
402
+ const filterSensitiveLog: (obj: ScalarCrlRequest) => any;
403
+ }
404
+ export interface ImportCrlRequest {
405
+ /**
406
+ * <p>The name of the certificate revocation list (CRL).</p>
407
+ */
408
+ name: string | undefined;
409
+ /**
410
+ * <p>The x509 v3 specified certificate revocation list</p>
411
+ */
412
+ crlData: Uint8Array | undefined;
413
+ /**
414
+ * <p>Specifies whether the certificate revocation list (CRL) is enabled.</p>
415
+ */
416
+ enabled?: boolean;
417
+ /**
418
+ * <p>A list of tags to attach to the certificate revocation list (CRL).</p>
419
+ */
420
+ tags?: Tag[];
421
+ /**
422
+ * <p>The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.</p>
423
+ */
424
+ trustAnchorArn: string | undefined;
425
+ }
426
+ export declare namespace ImportCrlRequest {
427
+ /**
428
+ * @internal
429
+ */
430
+ const filterSensitiveLog: (obj: ImportCrlRequest) => any;
431
+ }
432
+ export interface ListCrlsResponse {
433
+ /**
434
+ * <p>A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.</p>
435
+ */
436
+ nextToken?: string;
437
+ /**
438
+ * <p>A list of certificate revocation lists (CRL). </p>
439
+ */
440
+ crls?: CrlDetail[];
441
+ }
442
+ export declare namespace ListCrlsResponse {
443
+ /**
444
+ * @internal
445
+ */
446
+ const filterSensitiveLog: (obj: ListCrlsResponse) => any;
447
+ }
448
+ export interface ListRequest {
449
+ /**
450
+ * <p>A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.</p>
451
+ */
452
+ nextToken?: string;
453
+ /**
454
+ * <p>The number of resources in the paginated list. </p>
455
+ */
456
+ pageSize?: number;
457
+ }
458
+ export declare namespace ListRequest {
459
+ /**
460
+ * @internal
461
+ */
462
+ const filterSensitiveLog: (obj: ListRequest) => any;
463
+ }
464
+ export interface UpdateCrlRequest {
465
+ /**
466
+ * <p>The unique identifier of the certificate revocation list (CRL).</p>
467
+ */
468
+ crlId: string | undefined;
469
+ /**
470
+ * <p>The name of the Crl.</p>
471
+ */
472
+ name?: string;
473
+ /**
474
+ * <p>The x509 v3 specified certificate revocation list</p>
475
+ */
476
+ crlData?: Uint8Array;
477
+ }
478
+ export declare namespace UpdateCrlRequest {
479
+ /**
480
+ * @internal
481
+ */
482
+ const filterSensitiveLog: (obj: UpdateCrlRequest) => any;
483
+ }
484
+ export interface ScalarProfileRequest {
485
+ /**
486
+ * <p>The unique identifier of the profile.</p>
487
+ */
488
+ profileId: string | undefined;
489
+ }
490
+ export declare namespace ScalarProfileRequest {
491
+ /**
492
+ * @internal
493
+ */
494
+ const filterSensitiveLog: (obj: ScalarProfileRequest) => any;
495
+ }
496
+ export interface ScalarTrustAnchorRequest {
497
+ /**
498
+ * <p>The unique identifier of the trust anchor.</p>
499
+ */
500
+ trustAnchorId: string | undefined;
501
+ }
502
+ export declare namespace ScalarTrustAnchorRequest {
503
+ /**
504
+ * @internal
505
+ */
506
+ const filterSensitiveLog: (obj: ScalarTrustAnchorRequest) => any;
507
+ }
508
+ export interface ScalarSubjectRequest {
509
+ /**
510
+ * <p>The unique identifier of the subject. </p>
511
+ */
512
+ subjectId: string | undefined;
513
+ }
514
+ export declare namespace ScalarSubjectRequest {
515
+ /**
516
+ * @internal
517
+ */
518
+ const filterSensitiveLog: (obj: ScalarSubjectRequest) => any;
519
+ }
520
+ /**
521
+ * <p>A key-value pair you set that identifies a property of the authenticating instance.</p>
522
+ */
523
+ export interface InstanceProperty {
524
+ /**
525
+ * <p>The ISO-8601 time stamp of when the certificate was last used in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
526
+ */
527
+ seenAt?: Date;
528
+ /**
529
+ * <p>A list of instanceProperty objects. </p>
530
+ */
531
+ properties?: Record<string, string>;
532
+ /**
533
+ * <p>Indicates whether the <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation was successful. </p>
534
+ */
535
+ failed?: boolean;
536
+ }
537
+ export declare namespace InstanceProperty {
538
+ /**
539
+ * @internal
540
+ */
541
+ const filterSensitiveLog: (obj: InstanceProperty) => any;
542
+ }
543
+ /**
544
+ * <p>The state of the subject after a read or write operation.</p>
545
+ */
546
+ export interface SubjectDetail {
547
+ /**
548
+ * <p>The ARN of the resource.</p>
549
+ */
550
+ subjectArn?: string;
551
+ /**
552
+ * <p>The id of the resource</p>
553
+ */
554
+ subjectId?: string;
555
+ /**
556
+ * <p>The enabled status of the subject.</p>
557
+ */
558
+ enabled?: boolean;
559
+ /**
560
+ * <p>The x509 principal identifier of the authenticating certificate.</p>
561
+ */
562
+ x509Subject?: string;
563
+ /**
564
+ * <p>The ISO-8601 timestamp of the last time this Subject requested temporary session credentials.</p>
565
+ */
566
+ lastSeenAt?: Date;
567
+ /**
568
+ * <p>The ISO-8601 timestamp when the subject was created. </p>
569
+ */
570
+ createdAt?: Date;
571
+ /**
572
+ * <p>The ISO-8601 timestamp when the subject was last updated.</p>
573
+ */
574
+ updatedAt?: Date;
575
+ /**
576
+ * <p>The temporary session credentials vended at the last authenticating call with this Subject.</p>
577
+ */
578
+ credentials?: CredentialSummary[];
579
+ /**
580
+ * <p>The specified instance properties associated with the request.</p>
581
+ */
582
+ instanceProperties?: InstanceProperty[];
583
+ }
584
+ export declare namespace SubjectDetail {
585
+ /**
586
+ * @internal
587
+ */
588
+ const filterSensitiveLog: (obj: SubjectDetail) => any;
589
+ }
590
+ export interface SubjectDetailResponse {
591
+ /**
592
+ * <p>The state of the subject after a read or write operation.</p>
593
+ */
594
+ subject?: SubjectDetail;
595
+ }
596
+ export declare namespace SubjectDetailResponse {
597
+ /**
598
+ * @internal
599
+ */
600
+ const filterSensitiveLog: (obj: SubjectDetailResponse) => any;
601
+ }
602
+ export interface ListProfilesResponse {
603
+ /**
604
+ * <p>A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.</p>
605
+ */
606
+ nextToken?: string;
607
+ /**
608
+ * <p>A list of profiles.</p>
609
+ */
610
+ profiles?: ProfileDetail[];
611
+ }
612
+ export declare namespace ListProfilesResponse {
613
+ /**
614
+ * @internal
615
+ */
616
+ const filterSensitiveLog: (obj: ListProfilesResponse) => any;
617
+ }
618
+ /**
619
+ * <p>A summary representation of Subject resources returned in read operations; primarily ListSubjects.</p>
620
+ */
621
+ export interface SubjectSummary {
622
+ /**
623
+ * <p>The ARN of the resource.</p>
624
+ */
625
+ subjectArn?: string;
626
+ /**
627
+ * <p>The id of the resource.</p>
628
+ */
629
+ subjectId?: string;
630
+ /**
631
+ * <p>The enabled status of the Subject. </p>
632
+ */
633
+ enabled?: boolean;
634
+ /**
635
+ * <p>The x509 principal identifier of the authenticating certificate.</p>
636
+ */
637
+ x509Subject?: string;
638
+ /**
639
+ * <p>The ISO-8601 time stamp of when the certificate was last used in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
640
+ */
641
+ lastSeenAt?: Date;
642
+ /**
643
+ * <p>The ISO-8601 time stamp of when the certificate was first used in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
644
+ */
645
+ createdAt?: Date;
646
+ /**
647
+ * <p>The ISO-8601 timestamp when the subject was last updated. </p>
648
+ */
649
+ updatedAt?: Date;
650
+ }
651
+ export declare namespace SubjectSummary {
652
+ /**
653
+ * @internal
654
+ */
655
+ const filterSensitiveLog: (obj: SubjectSummary) => any;
656
+ }
657
+ export interface ListSubjectsResponse {
658
+ /**
659
+ * <p>A list of subjects.</p>
660
+ */
661
+ subjects?: SubjectSummary[];
662
+ /**
663
+ * <p>A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.</p>
664
+ */
665
+ nextToken?: string;
666
+ }
667
+ export declare namespace ListSubjectsResponse {
668
+ /**
669
+ * @internal
670
+ */
671
+ const filterSensitiveLog: (obj: ListSubjectsResponse) => any;
672
+ }
673
+ export interface ListTagsForResourceRequest {
674
+ /**
675
+ * <p>The ARN of the resource.</p>
676
+ */
677
+ resourceArn: string | undefined;
678
+ }
679
+ export declare namespace ListTagsForResourceRequest {
680
+ /**
681
+ * @internal
682
+ */
683
+ const filterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
684
+ }
685
+ export interface ListTagsForResourceResponse {
686
+ /**
687
+ * <p>A list of tags attached to the resource.</p>
688
+ */
689
+ tags?: Tag[];
690
+ }
691
+ export declare namespace ListTagsForResourceResponse {
692
+ /**
693
+ * @internal
694
+ */
695
+ const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
696
+ }
697
+ export interface ListTrustAnchorsResponse {
698
+ /**
699
+ * <p>A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.</p>
700
+ */
701
+ nextToken?: string;
702
+ /**
703
+ * <p>A list of trust anchors.</p>
704
+ */
705
+ trustAnchors?: TrustAnchorDetail[];
706
+ }
707
+ export declare namespace ListTrustAnchorsResponse {
708
+ /**
709
+ * @internal
710
+ */
711
+ const filterSensitiveLog: (obj: ListTrustAnchorsResponse) => any;
712
+ }
713
+ export interface UpdateProfileRequest {
714
+ /**
715
+ * <p>The unique identifier of the profile.</p>
716
+ */
717
+ profileId: string | undefined;
718
+ /**
719
+ * <p>The name of the profile.</p>
720
+ */
721
+ name?: string;
722
+ /**
723
+ * <p>A session policy that applies to the trust boundary of the vended session credentials. </p>
724
+ */
725
+ sessionPolicy?: string;
726
+ /**
727
+ * <p>A list of IAM roles that this profile can assume in a <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> operation.</p>
728
+ */
729
+ roleArns?: string[];
730
+ /**
731
+ * <p>A list of managed policy ARNs that apply to the vended session credentials. </p>
732
+ */
733
+ managedPolicyArns?: string[];
734
+ /**
735
+ * <p> The number of seconds the vended session credentials are valid for. </p>
736
+ */
737
+ durationSeconds?: number;
738
+ }
739
+ export declare namespace UpdateProfileRequest {
740
+ /**
741
+ * @internal
742
+ */
743
+ const filterSensitiveLog: (obj: UpdateProfileRequest) => any;
744
+ }
745
+ export interface TagResourceRequest {
746
+ /**
747
+ * <p>The ARN of the resource.</p>
748
+ */
749
+ resourceArn: string | undefined;
750
+ /**
751
+ * <p>The tags to attach to the resource.</p>
752
+ */
753
+ tags: Tag[] | undefined;
754
+ }
755
+ export declare namespace TagResourceRequest {
756
+ /**
757
+ * @internal
758
+ */
759
+ const filterSensitiveLog: (obj: TagResourceRequest) => any;
760
+ }
761
+ export interface TagResourceResponse {
762
+ }
763
+ export declare namespace TagResourceResponse {
764
+ /**
765
+ * @internal
766
+ */
767
+ const filterSensitiveLog: (obj: TagResourceResponse) => any;
768
+ }
769
+ /**
770
+ * <p>Too many tags.</p>
771
+ */
772
+ export declare class TooManyTagsException extends __BaseException {
773
+ readonly name: "TooManyTagsException";
774
+ readonly $fault: "client";
775
+ /**
776
+ * @internal
777
+ */
778
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
779
+ }
780
+ export interface UpdateTrustAnchorRequest {
781
+ /**
782
+ * <p>The unique identifier of the trust anchor.</p>
783
+ */
784
+ trustAnchorId: string | undefined;
785
+ /**
786
+ * <p>The name of the trust anchor.</p>
787
+ */
788
+ name?: string;
789
+ /**
790
+ * <p>The trust anchor type and its related certificate data.</p>
791
+ */
792
+ source?: Source;
793
+ }
794
+ export declare namespace UpdateTrustAnchorRequest {
795
+ /**
796
+ * @internal
797
+ */
798
+ const filterSensitiveLog: (obj: UpdateTrustAnchorRequest) => any;
799
+ }
800
+ export interface UntagResourceRequest {
801
+ /**
802
+ * <p>The ARN of the resource.</p>
803
+ */
804
+ resourceArn: string | undefined;
805
+ /**
806
+ * <p>A list of keys. Tag keys are the unique identifiers of tags. </p>
807
+ */
808
+ tagKeys: string[] | undefined;
809
+ }
810
+ export declare namespace UntagResourceRequest {
811
+ /**
812
+ * @internal
813
+ */
814
+ const filterSensitiveLog: (obj: UntagResourceRequest) => any;
815
+ }
816
+ export interface UntagResourceResponse {
817
+ }
818
+ export declare namespace UntagResourceResponse {
819
+ /**
820
+ * @internal
821
+ */
822
+ const filterSensitiveLog: (obj: UntagResourceResponse) => any;
823
+ }