1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class RAM extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: RAM.Types.ClientConfiguration)
|
13 | config: Config & RAM.Types.ClientConfiguration;
|
14 | /**
|
15 | * Accepts an invitation to a resource share from another AWS account.
|
16 | */
|
17 | acceptResourceShareInvitation(params: RAM.Types.AcceptResourceShareInvitationRequest, callback?: (err: AWSError, data: RAM.Types.AcceptResourceShareInvitationResponse) => void): Request<RAM.Types.AcceptResourceShareInvitationResponse, AWSError>;
|
18 | /**
|
19 | * Accepts an invitation to a resource share from another AWS account.
|
20 | */
|
21 | acceptResourceShareInvitation(callback?: (err: AWSError, data: RAM.Types.AcceptResourceShareInvitationResponse) => void): Request<RAM.Types.AcceptResourceShareInvitationResponse, AWSError>;
|
22 | /**
|
23 | * Associates the specified resource share with the specified principals and resources.
|
24 | */
|
25 | associateResourceShare(params: RAM.Types.AssociateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.AssociateResourceShareResponse) => void): Request<RAM.Types.AssociateResourceShareResponse, AWSError>;
|
26 | /**
|
27 | * Associates the specified resource share with the specified principals and resources.
|
28 | */
|
29 | associateResourceShare(callback?: (err: AWSError, data: RAM.Types.AssociateResourceShareResponse) => void): Request<RAM.Types.AssociateResourceShareResponse, AWSError>;
|
30 | /**
|
31 | * Associates a permission with a resource share.
|
32 | */
|
33 | associateResourceSharePermission(params: RAM.Types.AssociateResourceSharePermissionRequest, callback?: (err: AWSError, data: RAM.Types.AssociateResourceSharePermissionResponse) => void): Request<RAM.Types.AssociateResourceSharePermissionResponse, AWSError>;
|
34 | /**
|
35 | * Associates a permission with a resource share.
|
36 | */
|
37 | associateResourceSharePermission(callback?: (err: AWSError, data: RAM.Types.AssociateResourceSharePermissionResponse) => void): Request<RAM.Types.AssociateResourceSharePermissionResponse, AWSError>;
|
38 | /**
|
39 | * Creates a resource share.
|
40 | */
|
41 | createResourceShare(params: RAM.Types.CreateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.CreateResourceShareResponse) => void): Request<RAM.Types.CreateResourceShareResponse, AWSError>;
|
42 | /**
|
43 | * Creates a resource share.
|
44 | */
|
45 | createResourceShare(callback?: (err: AWSError, data: RAM.Types.CreateResourceShareResponse) => void): Request<RAM.Types.CreateResourceShareResponse, AWSError>;
|
46 | /**
|
47 | * Deletes the specified resource share.
|
48 | */
|
49 | deleteResourceShare(params: RAM.Types.DeleteResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.DeleteResourceShareResponse) => void): Request<RAM.Types.DeleteResourceShareResponse, AWSError>;
|
50 | /**
|
51 | * Deletes the specified resource share.
|
52 | */
|
53 | deleteResourceShare(callback?: (err: AWSError, data: RAM.Types.DeleteResourceShareResponse) => void): Request<RAM.Types.DeleteResourceShareResponse, AWSError>;
|
54 | /**
|
55 | * Disassociates the specified principals or resources from the specified resource share.
|
56 | */
|
57 | disassociateResourceShare(params: RAM.Types.DisassociateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.DisassociateResourceShareResponse) => void): Request<RAM.Types.DisassociateResourceShareResponse, AWSError>;
|
58 | /**
|
59 | * Disassociates the specified principals or resources from the specified resource share.
|
60 | */
|
61 | disassociateResourceShare(callback?: (err: AWSError, data: RAM.Types.DisassociateResourceShareResponse) => void): Request<RAM.Types.DisassociateResourceShareResponse, AWSError>;
|
62 | /**
|
63 | * Disassociates an AWS RAM permission from a resource share.
|
64 | */
|
65 | disassociateResourceSharePermission(params: RAM.Types.DisassociateResourceSharePermissionRequest, callback?: (err: AWSError, data: RAM.Types.DisassociateResourceSharePermissionResponse) => void): Request<RAM.Types.DisassociateResourceSharePermissionResponse, AWSError>;
|
66 | /**
|
67 | * Disassociates an AWS RAM permission from a resource share.
|
68 | */
|
69 | disassociateResourceSharePermission(callback?: (err: AWSError, data: RAM.Types.DisassociateResourceSharePermissionResponse) => void): Request<RAM.Types.DisassociateResourceSharePermissionResponse, AWSError>;
|
70 | /**
|
71 | * Enables resource sharing within your AWS Organization. The caller must be the master account for the AWS Organization.
|
72 | */
|
73 | enableSharingWithAwsOrganization(params: RAM.Types.EnableSharingWithAwsOrganizationRequest, callback?: (err: AWSError, data: RAM.Types.EnableSharingWithAwsOrganizationResponse) => void): Request<RAM.Types.EnableSharingWithAwsOrganizationResponse, AWSError>;
|
74 | /**
|
75 | * Enables resource sharing within your AWS Organization. The caller must be the master account for the AWS Organization.
|
76 | */
|
77 | enableSharingWithAwsOrganization(callback?: (err: AWSError, data: RAM.Types.EnableSharingWithAwsOrganizationResponse) => void): Request<RAM.Types.EnableSharingWithAwsOrganizationResponse, AWSError>;
|
78 | /**
|
79 | * Gets the contents of an AWS RAM permission in JSON format.
|
80 | */
|
81 | getPermission(params: RAM.Types.GetPermissionRequest, callback?: (err: AWSError, data: RAM.Types.GetPermissionResponse) => void): Request<RAM.Types.GetPermissionResponse, AWSError>;
|
82 | /**
|
83 | * Gets the contents of an AWS RAM permission in JSON format.
|
84 | */
|
85 | getPermission(callback?: (err: AWSError, data: RAM.Types.GetPermissionResponse) => void): Request<RAM.Types.GetPermissionResponse, AWSError>;
|
86 | /**
|
87 | * Gets the policies for the specified resources that you own and have shared.
|
88 | */
|
89 | getResourcePolicies(params: RAM.Types.GetResourcePoliciesRequest, callback?: (err: AWSError, data: RAM.Types.GetResourcePoliciesResponse) => void): Request<RAM.Types.GetResourcePoliciesResponse, AWSError>;
|
90 | /**
|
91 | * Gets the policies for the specified resources that you own and have shared.
|
92 | */
|
93 | getResourcePolicies(callback?: (err: AWSError, data: RAM.Types.GetResourcePoliciesResponse) => void): Request<RAM.Types.GetResourcePoliciesResponse, AWSError>;
|
94 | /**
|
95 | * Gets the resources or principals for the resource shares that you own.
|
96 | */
|
97 | getResourceShareAssociations(params: RAM.Types.GetResourceShareAssociationsRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceShareAssociationsResponse) => void): Request<RAM.Types.GetResourceShareAssociationsResponse, AWSError>;
|
98 | /**
|
99 | * Gets the resources or principals for the resource shares that you own.
|
100 | */
|
101 | getResourceShareAssociations(callback?: (err: AWSError, data: RAM.Types.GetResourceShareAssociationsResponse) => void): Request<RAM.Types.GetResourceShareAssociationsResponse, AWSError>;
|
102 | /**
|
103 | * Gets the invitations for resource sharing that you've received.
|
104 | */
|
105 | getResourceShareInvitations(params: RAM.Types.GetResourceShareInvitationsRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceShareInvitationsResponse) => void): Request<RAM.Types.GetResourceShareInvitationsResponse, AWSError>;
|
106 | /**
|
107 | * Gets the invitations for resource sharing that you've received.
|
108 | */
|
109 | getResourceShareInvitations(callback?: (err: AWSError, data: RAM.Types.GetResourceShareInvitationsResponse) => void): Request<RAM.Types.GetResourceShareInvitationsResponse, AWSError>;
|
110 | /**
|
111 | * Gets the resource shares that you own or the resource shares that are shared with you.
|
112 | */
|
113 | getResourceShares(params: RAM.Types.GetResourceSharesRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceSharesResponse) => void): Request<RAM.Types.GetResourceSharesResponse, AWSError>;
|
114 | /**
|
115 | * Gets the resource shares that you own or the resource shares that are shared with you.
|
116 | */
|
117 | getResourceShares(callback?: (err: AWSError, data: RAM.Types.GetResourceSharesResponse) => void): Request<RAM.Types.GetResourceSharesResponse, AWSError>;
|
118 | /**
|
119 | * Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
|
120 | */
|
121 | listPendingInvitationResources(params: RAM.Types.ListPendingInvitationResourcesRequest, callback?: (err: AWSError, data: RAM.Types.ListPendingInvitationResourcesResponse) => void): Request<RAM.Types.ListPendingInvitationResourcesResponse, AWSError>;
|
122 | /**
|
123 | * Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
|
124 | */
|
125 | listPendingInvitationResources(callback?: (err: AWSError, data: RAM.Types.ListPendingInvitationResourcesResponse) => void): Request<RAM.Types.ListPendingInvitationResourcesResponse, AWSError>;
|
126 | /**
|
127 | * Lists the AWS RAM permissions.
|
128 | */
|
129 | listPermissions(params: RAM.Types.ListPermissionsRequest, callback?: (err: AWSError, data: RAM.Types.ListPermissionsResponse) => void): Request<RAM.Types.ListPermissionsResponse, AWSError>;
|
130 | /**
|
131 | * Lists the AWS RAM permissions.
|
132 | */
|
133 | listPermissions(callback?: (err: AWSError, data: RAM.Types.ListPermissionsResponse) => void): Request<RAM.Types.ListPermissionsResponse, AWSError>;
|
134 | /**
|
135 | * Lists the principals that you have shared resources with or that have shared resources with you.
|
136 | */
|
137 | listPrincipals(params: RAM.Types.ListPrincipalsRequest, callback?: (err: AWSError, data: RAM.Types.ListPrincipalsResponse) => void): Request<RAM.Types.ListPrincipalsResponse, AWSError>;
|
138 | /**
|
139 | * Lists the principals that you have shared resources with or that have shared resources with you.
|
140 | */
|
141 | listPrincipals(callback?: (err: AWSError, data: RAM.Types.ListPrincipalsResponse) => void): Request<RAM.Types.ListPrincipalsResponse, AWSError>;
|
142 | /**
|
143 | * Lists the AWS RAM permissions that are associated with a resource share.
|
144 | */
|
145 | listResourceSharePermissions(params: RAM.Types.ListResourceSharePermissionsRequest, callback?: (err: AWSError, data: RAM.Types.ListResourceSharePermissionsResponse) => void): Request<RAM.Types.ListResourceSharePermissionsResponse, AWSError>;
|
146 | /**
|
147 | * Lists the AWS RAM permissions that are associated with a resource share.
|
148 | */
|
149 | listResourceSharePermissions(callback?: (err: AWSError, data: RAM.Types.ListResourceSharePermissionsResponse) => void): Request<RAM.Types.ListResourceSharePermissionsResponse, AWSError>;
|
150 | /**
|
151 | * Lists the resources that you added to a resource shares or the resources that are shared with you.
|
152 | */
|
153 | listResources(params: RAM.Types.ListResourcesRequest, callback?: (err: AWSError, data: RAM.Types.ListResourcesResponse) => void): Request<RAM.Types.ListResourcesResponse, AWSError>;
|
154 | /**
|
155 | * Lists the resources that you added to a resource shares or the resources that are shared with you.
|
156 | */
|
157 | listResources(callback?: (err: AWSError, data: RAM.Types.ListResourcesResponse) => void): Request<RAM.Types.ListResourcesResponse, AWSError>;
|
158 | /**
|
159 | * Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM. Use this API action to promote the resource share. When you promote the resource share, it becomes: Visible to all principals that it is shared with. Modifiable in AWS RAM.
|
160 | */
|
161 | promoteResourceShareCreatedFromPolicy(params: RAM.Types.PromoteResourceShareCreatedFromPolicyRequest, callback?: (err: AWSError, data: RAM.Types.PromoteResourceShareCreatedFromPolicyResponse) => void): Request<RAM.Types.PromoteResourceShareCreatedFromPolicyResponse, AWSError>;
|
162 | /**
|
163 | * Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM. Use this API action to promote the resource share. When you promote the resource share, it becomes: Visible to all principals that it is shared with. Modifiable in AWS RAM.
|
164 | */
|
165 | promoteResourceShareCreatedFromPolicy(callback?: (err: AWSError, data: RAM.Types.PromoteResourceShareCreatedFromPolicyResponse) => void): Request<RAM.Types.PromoteResourceShareCreatedFromPolicyResponse, AWSError>;
|
166 | /**
|
167 | * Rejects an invitation to a resource share from another AWS account.
|
168 | */
|
169 | rejectResourceShareInvitation(params: RAM.Types.RejectResourceShareInvitationRequest, callback?: (err: AWSError, data: RAM.Types.RejectResourceShareInvitationResponse) => void): Request<RAM.Types.RejectResourceShareInvitationResponse, AWSError>;
|
170 | /**
|
171 | * Rejects an invitation to a resource share from another AWS account.
|
172 | */
|
173 | rejectResourceShareInvitation(callback?: (err: AWSError, data: RAM.Types.RejectResourceShareInvitationResponse) => void): Request<RAM.Types.RejectResourceShareInvitationResponse, AWSError>;
|
174 | /**
|
175 | * Adds the specified tags to the specified resource share that you own.
|
176 | */
|
177 | tagResource(params: RAM.Types.TagResourceRequest, callback?: (err: AWSError, data: RAM.Types.TagResourceResponse) => void): Request<RAM.Types.TagResourceResponse, AWSError>;
|
178 | /**
|
179 | * Adds the specified tags to the specified resource share that you own.
|
180 | */
|
181 | tagResource(callback?: (err: AWSError, data: RAM.Types.TagResourceResponse) => void): Request<RAM.Types.TagResourceResponse, AWSError>;
|
182 | /**
|
183 | * Removes the specified tags from the specified resource share that you own.
|
184 | */
|
185 | untagResource(params: RAM.Types.UntagResourceRequest, callback?: (err: AWSError, data: RAM.Types.UntagResourceResponse) => void): Request<RAM.Types.UntagResourceResponse, AWSError>;
|
186 | /**
|
187 | * Removes the specified tags from the specified resource share that you own.
|
188 | */
|
189 | untagResource(callback?: (err: AWSError, data: RAM.Types.UntagResourceResponse) => void): Request<RAM.Types.UntagResourceResponse, AWSError>;
|
190 | /**
|
191 | * Updates the specified resource share that you own.
|
192 | */
|
193 | updateResourceShare(params: RAM.Types.UpdateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.UpdateResourceShareResponse) => void): Request<RAM.Types.UpdateResourceShareResponse, AWSError>;
|
194 | /**
|
195 | * Updates the specified resource share that you own.
|
196 | */
|
197 | updateResourceShare(callback?: (err: AWSError, data: RAM.Types.UpdateResourceShareResponse) => void): Request<RAM.Types.UpdateResourceShareResponse, AWSError>;
|
198 | }
|
199 | declare namespace RAM {
|
200 | export interface AcceptResourceShareInvitationRequest {
|
201 | |
202 |
|
203 |
|
204 | resourceShareInvitationArn: String;
|
205 | |
206 |
|
207 |
|
208 | clientToken?: String;
|
209 | }
|
210 | export interface AcceptResourceShareInvitationResponse {
|
211 | |
212 |
|
213 |
|
214 | resourceShareInvitation?: ResourceShareInvitation;
|
215 | |
216 |
|
217 |
|
218 | clientToken?: String;
|
219 | }
|
220 | export interface AssociateResourceSharePermissionRequest {
|
221 | |
222 |
|
223 |
|
224 | resourceShareArn: String;
|
225 | |
226 |
|
227 |
|
228 | permissionArn: String;
|
229 | |
230 |
|
231 |
|
232 | replace?: Boolean;
|
233 | |
234 |
|
235 |
|
236 | clientToken?: String;
|
237 | }
|
238 | export interface AssociateResourceSharePermissionResponse {
|
239 | |
240 |
|
241 |
|
242 | returnValue?: Boolean;
|
243 | |
244 |
|
245 |
|
246 | clientToken?: String;
|
247 | }
|
248 | export interface AssociateResourceShareRequest {
|
249 | |
250 |
|
251 |
|
252 | resourceShareArn: String;
|
253 | |
254 |
|
255 |
|
256 | resourceArns?: ResourceArnList;
|
257 | |
258 |
|
259 |
|
260 | principals?: PrincipalArnOrIdList;
|
261 | |
262 |
|
263 |
|
264 | clientToken?: String;
|
265 | }
|
266 | export interface AssociateResourceShareResponse {
|
267 | |
268 |
|
269 |
|
270 | resourceShareAssociations?: ResourceShareAssociationList;
|
271 | |
272 |
|
273 |
|
274 | clientToken?: String;
|
275 | }
|
276 | export type Boolean = boolean;
|
277 | export interface CreateResourceShareRequest {
|
278 | |
279 |
|
280 |
|
281 | name: String;
|
282 | |
283 |
|
284 |
|
285 | resourceArns?: ResourceArnList;
|
286 | |
287 |
|
288 |
|
289 | principals?: PrincipalArnOrIdList;
|
290 | |
291 |
|
292 |
|
293 | tags?: TagList;
|
294 | |
295 |
|
296 |
|
297 | allowExternalPrincipals?: Boolean;
|
298 | |
299 |
|
300 |
|
301 | clientToken?: String;
|
302 | |
303 |
|
304 |
|
305 | permissionArns?: PermissionArnList;
|
306 | }
|
307 | export interface CreateResourceShareResponse {
|
308 | |
309 |
|
310 |
|
311 | resourceShare?: ResourceShare;
|
312 | |
313 |
|
314 |
|
315 | clientToken?: String;
|
316 | }
|
317 | export type DateTime = Date;
|
318 | export interface DeleteResourceShareRequest {
|
319 | |
320 |
|
321 |
|
322 | resourceShareArn: String;
|
323 | |
324 |
|
325 |
|
326 | clientToken?: String;
|
327 | }
|
328 | export interface DeleteResourceShareResponse {
|
329 | |
330 |
|
331 |
|
332 | returnValue?: Boolean;
|
333 | |
334 |
|
335 |
|
336 | clientToken?: String;
|
337 | }
|
338 | export interface DisassociateResourceSharePermissionRequest {
|
339 | |
340 |
|
341 |
|
342 | resourceShareArn: String;
|
343 | |
344 |
|
345 |
|
346 | permissionArn: String;
|
347 | |
348 |
|
349 |
|
350 | clientToken?: String;
|
351 | }
|
352 | export interface DisassociateResourceSharePermissionResponse {
|
353 | |
354 |
|
355 |
|
356 | returnValue?: Boolean;
|
357 | |
358 |
|
359 |
|
360 | clientToken?: String;
|
361 | }
|
362 | export interface DisassociateResourceShareRequest {
|
363 | |
364 |
|
365 |
|
366 | resourceShareArn: String;
|
367 | |
368 |
|
369 |
|
370 | resourceArns?: ResourceArnList;
|
371 | |
372 |
|
373 |
|
374 | principals?: PrincipalArnOrIdList;
|
375 | |
376 |
|
377 |
|
378 | clientToken?: String;
|
379 | }
|
380 | export interface DisassociateResourceShareResponse {
|
381 | |
382 |
|
383 |
|
384 | resourceShareAssociations?: ResourceShareAssociationList;
|
385 | |
386 |
|
387 |
|
388 | clientToken?: String;
|
389 | }
|
390 | export interface EnableSharingWithAwsOrganizationRequest {
|
391 | }
|
392 | export interface EnableSharingWithAwsOrganizationResponse {
|
393 | |
394 |
|
395 |
|
396 | returnValue?: Boolean;
|
397 | }
|
398 | export interface GetPermissionRequest {
|
399 | |
400 |
|
401 |
|
402 | permissionArn: String;
|
403 | |
404 |
|
405 |
|
406 | permissionVersion?: Integer;
|
407 | }
|
408 | export interface GetPermissionResponse {
|
409 | |
410 |
|
411 |
|
412 | permission?: ResourceSharePermissionDetail;
|
413 | }
|
414 | export interface GetResourcePoliciesRequest {
|
415 | |
416 |
|
417 |
|
418 | resourceArns: ResourceArnList;
|
419 | |
420 |
|
421 |
|
422 | principal?: String;
|
423 | |
424 |
|
425 |
|
426 | nextToken?: String;
|
427 | |
428 |
|
429 |
|
430 | maxResults?: MaxResults;
|
431 | }
|
432 | export interface GetResourcePoliciesResponse {
|
433 | |
434 |
|
435 |
|
436 | policies?: PolicyList;
|
437 | |
438 |
|
439 |
|
440 | nextToken?: String;
|
441 | }
|
442 | export interface GetResourceShareAssociationsRequest {
|
443 | |
444 |
|
445 |
|
446 | associationType: ResourceShareAssociationType;
|
447 | |
448 |
|
449 |
|
450 | resourceShareArns?: ResourceShareArnList;
|
451 | |
452 |
|
453 |
|
454 | resourceArn?: String;
|
455 | |
456 |
|
457 |
|
458 | principal?: String;
|
459 | |
460 |
|
461 |
|
462 | associationStatus?: ResourceShareAssociationStatus;
|
463 | |
464 |
|
465 |
|
466 | nextToken?: String;
|
467 | |
468 |
|
469 |
|
470 | maxResults?: MaxResults;
|
471 | }
|
472 | export interface GetResourceShareAssociationsResponse {
|
473 | |
474 |
|
475 |
|
476 | resourceShareAssociations?: ResourceShareAssociationList;
|
477 | |
478 |
|
479 |
|
480 | nextToken?: String;
|
481 | }
|
482 | export interface GetResourceShareInvitationsRequest {
|
483 | |
484 |
|
485 |
|
486 | resourceShareInvitationArns?: ResourceShareInvitationArnList;
|
487 | |
488 |
|
489 |
|
490 | resourceShareArns?: ResourceShareArnList;
|
491 | |
492 |
|
493 |
|
494 | nextToken?: String;
|
495 | |
496 |
|
497 |
|
498 | maxResults?: MaxResults;
|
499 | }
|
500 | export interface GetResourceShareInvitationsResponse {
|
501 | |
502 |
|
503 |
|
504 | resourceShareInvitations?: ResourceShareInvitationList;
|
505 | |
506 |
|
507 |
|
508 | nextToken?: String;
|
509 | }
|
510 | export interface GetResourceSharesRequest {
|
511 | |
512 |
|
513 |
|
514 | resourceShareArns?: ResourceShareArnList;
|
515 | |
516 |
|
517 |
|
518 | resourceShareStatus?: ResourceShareStatus;
|
519 | |
520 |
|
521 |
|
522 | resourceOwner: ResourceOwner;
|
523 | |
524 |
|
525 |
|
526 | name?: String;
|
527 | |
528 |
|
529 |
|
530 | tagFilters?: TagFilters;
|
531 | |
532 |
|
533 |
|
534 | nextToken?: String;
|
535 | |
536 |
|
537 |
|
538 | maxResults?: MaxResults;
|
539 | }
|
540 | export interface GetResourceSharesResponse {
|
541 | |
542 |
|
543 |
|
544 | resourceShares?: ResourceShareList;
|
545 | |
546 |
|
547 |
|
548 | nextToken?: String;
|
549 | }
|
550 | export type Integer = number;
|
551 | export interface ListPendingInvitationResourcesRequest {
|
552 | |
553 |
|
554 |
|
555 | resourceShareInvitationArn: String;
|
556 | |
557 |
|
558 |
|
559 | nextToken?: String;
|
560 | |
561 |
|
562 |
|
563 | maxResults?: MaxResults;
|
564 | }
|
565 | export interface ListPendingInvitationResourcesResponse {
|
566 | |
567 |
|
568 |
|
569 | resources?: ResourceList;
|
570 | |
571 |
|
572 |
|
573 | nextToken?: String;
|
574 | }
|
575 | export interface ListPermissionsRequest {
|
576 | |
577 |
|
578 |
|
579 | resourceType?: String;
|
580 | |
581 |
|
582 |
|
583 | nextToken?: String;
|
584 | |
585 |
|
586 |
|
587 | maxResults?: MaxResults;
|
588 | }
|
589 | export interface ListPermissionsResponse {
|
590 | |
591 |
|
592 |
|
593 | permissions?: ResourceSharePermissionList;
|
594 | |
595 |
|
596 |
|
597 | nextToken?: String;
|
598 | }
|
599 | export interface ListPrincipalsRequest {
|
600 | |
601 |
|
602 |
|
603 | resourceOwner: ResourceOwner;
|
604 | |
605 |
|
606 |
|
607 | resourceArn?: String;
|
608 | |
609 |
|
610 |
|
611 | principals?: PrincipalArnOrIdList;
|
612 | |
613 |
|
614 |
|
615 | resourceType?: String;
|
616 | |
617 |
|
618 |
|
619 | resourceShareArns?: ResourceShareArnList;
|
620 | |
621 |
|
622 |
|
623 | nextToken?: String;
|
624 | |
625 |
|
626 |
|
627 | maxResults?: MaxResults;
|
628 | }
|
629 | export interface ListPrincipalsResponse {
|
630 | |
631 |
|
632 |
|
633 | principals?: PrincipalList;
|
634 | |
635 |
|
636 |
|
637 | nextToken?: String;
|
638 | }
|
639 | export interface ListResourceSharePermissionsRequest {
|
640 | |
641 |
|
642 |
|
643 | resourceShareArn: String;
|
644 | |
645 |
|
646 |
|
647 | nextToken?: String;
|
648 | |
649 |
|
650 |
|
651 | maxResults?: MaxResults;
|
652 | }
|
653 | export interface ListResourceSharePermissionsResponse {
|
654 | |
655 |
|
656 |
|
657 | permissions?: ResourceSharePermissionList;
|
658 | |
659 |
|
660 |
|
661 | nextToken?: String;
|
662 | }
|
663 | export interface ListResourcesRequest {
|
664 | |
665 |
|
666 |
|
667 | resourceOwner: ResourceOwner;
|
668 | |
669 |
|
670 |
|
671 | principal?: String;
|
672 | |
673 |
|
674 |
|
675 | resourceType?: String;
|
676 | |
677 |
|
678 |
|
679 | resourceArns?: ResourceArnList;
|
680 | |
681 |
|
682 |
|
683 | resourceShareArns?: ResourceShareArnList;
|
684 | |
685 |
|
686 |
|
687 | nextToken?: String;
|
688 | |
689 |
|
690 |
|
691 | maxResults?: MaxResults;
|
692 | }
|
693 | export interface ListResourcesResponse {
|
694 | |
695 |
|
696 |
|
697 | resources?: ResourceList;
|
698 | |
699 |
|
700 |
|
701 | nextToken?: String;
|
702 | }
|
703 | export type MaxResults = number;
|
704 | export type PermissionArnList = String[];
|
705 | export type Policy = string;
|
706 | export type PolicyList = Policy[];
|
707 | export interface Principal {
|
708 | |
709 |
|
710 |
|
711 | id?: String;
|
712 | |
713 |
|
714 |
|
715 | resourceShareArn?: String;
|
716 | |
717 |
|
718 |
|
719 | creationTime?: DateTime;
|
720 | |
721 |
|
722 |
|
723 | lastUpdatedTime?: DateTime;
|
724 | |
725 |
|
726 |
|
727 | external?: Boolean;
|
728 | }
|
729 | export type PrincipalArnOrIdList = String[];
|
730 | export type PrincipalList = Principal[];
|
731 | export interface PromoteResourceShareCreatedFromPolicyRequest {
|
732 | |
733 |
|
734 |
|
735 | resourceShareArn: String;
|
736 | }
|
737 | export interface PromoteResourceShareCreatedFromPolicyResponse {
|
738 | |
739 |
|
740 |
|
741 | returnValue?: Boolean;
|
742 | }
|
743 | export interface RejectResourceShareInvitationRequest {
|
744 | |
745 |
|
746 |
|
747 | resourceShareInvitationArn: String;
|
748 | |
749 |
|
750 |
|
751 | clientToken?: String;
|
752 | }
|
753 | export interface RejectResourceShareInvitationResponse {
|
754 | |
755 |
|
756 |
|
757 | resourceShareInvitation?: ResourceShareInvitation;
|
758 | |
759 |
|
760 |
|
761 | clientToken?: String;
|
762 | }
|
763 | export interface Resource {
|
764 | |
765 |
|
766 |
|
767 | arn?: String;
|
768 | |
769 |
|
770 |
|
771 | type?: String;
|
772 | |
773 |
|
774 |
|
775 | resourceShareArn?: String;
|
776 | |
777 |
|
778 |
|
779 | resourceGroupArn?: String;
|
780 | |
781 |
|
782 |
|
783 | status?: ResourceStatus;
|
784 | |
785 |
|
786 |
|
787 | statusMessage?: String;
|
788 | |
789 |
|
790 |
|
791 | creationTime?: DateTime;
|
792 | |
793 |
|
794 |
|
795 | lastUpdatedTime?: DateTime;
|
796 | }
|
797 | export type ResourceArnList = String[];
|
798 | export type ResourceList = Resource[];
|
799 | export type ResourceOwner = "SELF"|"OTHER-ACCOUNTS"|string;
|
800 | export interface ResourceShare {
|
801 | |
802 |
|
803 |
|
804 | resourceShareArn?: String;
|
805 | |
806 |
|
807 |
|
808 | name?: String;
|
809 | |
810 |
|
811 |
|
812 | owningAccountId?: String;
|
813 | |
814 |
|
815 |
|
816 | allowExternalPrincipals?: Boolean;
|
817 | |
818 |
|
819 |
|
820 | status?: ResourceShareStatus;
|
821 | |
822 |
|
823 |
|
824 | statusMessage?: String;
|
825 | |
826 |
|
827 |
|
828 | tags?: TagList;
|
829 | |
830 |
|
831 |
|
832 | creationTime?: DateTime;
|
833 | |
834 |
|
835 |
|
836 | lastUpdatedTime?: DateTime;
|
837 | |
838 |
|
839 |
|
840 | featureSet?: ResourceShareFeatureSet;
|
841 | }
|
842 | export type ResourceShareArnList = String[];
|
843 | export interface ResourceShareAssociation {
|
844 | |
845 |
|
846 |
|
847 | resourceShareArn?: String;
|
848 | |
849 |
|
850 |
|
851 | resourceShareName?: String;
|
852 | |
853 |
|
854 |
|
855 | associatedEntity?: String;
|
856 | |
857 |
|
858 |
|
859 | associationType?: ResourceShareAssociationType;
|
860 | |
861 |
|
862 |
|
863 | status?: ResourceShareAssociationStatus;
|
864 | |
865 |
|
866 |
|
867 | statusMessage?: String;
|
868 | |
869 |
|
870 |
|
871 | creationTime?: DateTime;
|
872 | |
873 |
|
874 |
|
875 | lastUpdatedTime?: DateTime;
|
876 | |
877 |
|
878 |
|
879 | external?: Boolean;
|
880 | }
|
881 | export type ResourceShareAssociationList = ResourceShareAssociation[];
|
882 | export type ResourceShareAssociationStatus = "ASSOCIATING"|"ASSOCIATED"|"FAILED"|"DISASSOCIATING"|"DISASSOCIATED"|string;
|
883 | export type ResourceShareAssociationType = "PRINCIPAL"|"RESOURCE"|string;
|
884 | export type ResourceShareFeatureSet = "CREATED_FROM_POLICY"|"PROMOTING_TO_STANDARD"|"STANDARD"|string;
|
885 | export interface ResourceShareInvitation {
|
886 | |
887 |
|
888 |
|
889 | resourceShareInvitationArn?: String;
|
890 | |
891 |
|
892 |
|
893 | resourceShareName?: String;
|
894 | |
895 |
|
896 |
|
897 | resourceShareArn?: String;
|
898 | |
899 |
|
900 |
|
901 | senderAccountId?: String;
|
902 | |
903 |
|
904 |
|
905 | receiverAccountId?: String;
|
906 | |
907 |
|
908 |
|
909 | invitationTimestamp?: DateTime;
|
910 | |
911 |
|
912 |
|
913 | status?: ResourceShareInvitationStatus;
|
914 | |
915 |
|
916 |
|
917 | resourceShareAssociations?: ResourceShareAssociationList;
|
918 | }
|
919 | export type ResourceShareInvitationArnList = String[];
|
920 | export type ResourceShareInvitationList = ResourceShareInvitation[];
|
921 | export type ResourceShareInvitationStatus = "PENDING"|"ACCEPTED"|"REJECTED"|"EXPIRED"|string;
|
922 | export type ResourceShareList = ResourceShare[];
|
923 | export interface ResourceSharePermissionDetail {
|
924 | |
925 |
|
926 |
|
927 | arn?: String;
|
928 | |
929 |
|
930 |
|
931 | version?: String;
|
932 | |
933 |
|
934 |
|
935 | defaultVersion?: Boolean;
|
936 | |
937 |
|
938 |
|
939 | name?: String;
|
940 | |
941 |
|
942 |
|
943 | resourceType?: String;
|
944 | |
945 |
|
946 |
|
947 | permission?: String;
|
948 | |
949 |
|
950 |
|
951 | creationTime?: DateTime;
|
952 | |
953 |
|
954 |
|
955 | lastUpdatedTime?: DateTime;
|
956 | }
|
957 | export type ResourceSharePermissionList = ResourceSharePermissionSummary[];
|
958 | export interface ResourceSharePermissionSummary {
|
959 | |
960 |
|
961 |
|
962 | arn?: String;
|
963 | |
964 |
|
965 |
|
966 | version?: String;
|
967 | |
968 |
|
969 |
|
970 | defaultVersion?: Boolean;
|
971 | |
972 |
|
973 |
|
974 | name?: String;
|
975 | |
976 |
|
977 |
|
978 | resourceType?: String;
|
979 | |
980 |
|
981 |
|
982 | status?: String;
|
983 | |
984 |
|
985 |
|
986 | creationTime?: DateTime;
|
987 | |
988 |
|
989 |
|
990 | lastUpdatedTime?: DateTime;
|
991 | }
|
992 | export type ResourceShareStatus = "PENDING"|"ACTIVE"|"FAILED"|"DELETING"|"DELETED"|string;
|
993 | export type ResourceStatus = "AVAILABLE"|"ZONAL_RESOURCE_INACCESSIBLE"|"LIMIT_EXCEEDED"|"UNAVAILABLE"|"PENDING"|string;
|
994 | export type String = string;
|
995 | export interface Tag {
|
996 | |
997 |
|
998 |
|
999 | key?: TagKey;
|
1000 | |
1001 |
|
1002 |
|
1003 | value?: TagValue;
|
1004 | }
|
1005 | export interface TagFilter {
|
1006 | |
1007 |
|
1008 |
|
1009 | tagKey?: TagKey;
|
1010 | |
1011 |
|
1012 |
|
1013 | tagValues?: TagValueList;
|
1014 | }
|
1015 | export type TagFilters = TagFilter[];
|
1016 | export type TagKey = string;
|
1017 | export type TagKeyList = TagKey[];
|
1018 | export type TagList = Tag[];
|
1019 | export interface TagResourceRequest {
|
1020 | |
1021 |
|
1022 |
|
1023 | resourceShareArn: String;
|
1024 | |
1025 |
|
1026 |
|
1027 | tags: TagList;
|
1028 | }
|
1029 | export interface TagResourceResponse {
|
1030 | }
|
1031 | export type TagValue = string;
|
1032 | export type TagValueList = TagValue[];
|
1033 | export interface UntagResourceRequest {
|
1034 | |
1035 |
|
1036 |
|
1037 | resourceShareArn: String;
|
1038 | |
1039 |
|
1040 |
|
1041 | tagKeys: TagKeyList;
|
1042 | }
|
1043 | export interface UntagResourceResponse {
|
1044 | }
|
1045 | export interface UpdateResourceShareRequest {
|
1046 | |
1047 |
|
1048 |
|
1049 | resourceShareArn: String;
|
1050 | |
1051 |
|
1052 |
|
1053 | name?: String;
|
1054 | |
1055 |
|
1056 |
|
1057 | allowExternalPrincipals?: Boolean;
|
1058 | |
1059 |
|
1060 |
|
1061 | clientToken?: String;
|
1062 | }
|
1063 | export interface UpdateResourceShareResponse {
|
1064 | |
1065 |
|
1066 |
|
1067 | resourceShare?: ResourceShare;
|
1068 | |
1069 |
|
1070 |
|
1071 | clientToken?: String;
|
1072 | }
|
1073 | |
1074 |
|
1075 |
|
1076 | export type apiVersion = "2018-01-04"|"latest"|string;
|
1077 | export interface ClientApiVersions {
|
1078 | |
1079 |
|
1080 |
|
1081 | apiVersion?: apiVersion;
|
1082 | }
|
1083 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
1084 | |
1085 |
|
1086 |
|
1087 | export import Types = RAM;
|
1088 | }
|
1089 | export = RAM;
|