UNPKG

28.2 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class RAM extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
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 * Creates a resource share.
32 */
33 createResourceShare(params: RAM.Types.CreateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.CreateResourceShareResponse) => void): Request<RAM.Types.CreateResourceShareResponse, AWSError>;
34 /**
35 * Creates a resource share.
36 */
37 createResourceShare(callback?: (err: AWSError, data: RAM.Types.CreateResourceShareResponse) => void): Request<RAM.Types.CreateResourceShareResponse, AWSError>;
38 /**
39 * Deletes the specified resource share.
40 */
41 deleteResourceShare(params: RAM.Types.DeleteResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.DeleteResourceShareResponse) => void): Request<RAM.Types.DeleteResourceShareResponse, AWSError>;
42 /**
43 * Deletes the specified resource share.
44 */
45 deleteResourceShare(callback?: (err: AWSError, data: RAM.Types.DeleteResourceShareResponse) => void): Request<RAM.Types.DeleteResourceShareResponse, AWSError>;
46 /**
47 * Disassociates the specified principals or resources from the specified resource share.
48 */
49 disassociateResourceShare(params: RAM.Types.DisassociateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.DisassociateResourceShareResponse) => void): Request<RAM.Types.DisassociateResourceShareResponse, AWSError>;
50 /**
51 * Disassociates the specified principals or resources from the specified resource share.
52 */
53 disassociateResourceShare(callback?: (err: AWSError, data: RAM.Types.DisassociateResourceShareResponse) => void): Request<RAM.Types.DisassociateResourceShareResponse, AWSError>;
54 /**
55 * Enables resource sharing within your organization.
56 */
57 enableSharingWithAwsOrganization(params: RAM.Types.EnableSharingWithAwsOrganizationRequest, callback?: (err: AWSError, data: RAM.Types.EnableSharingWithAwsOrganizationResponse) => void): Request<RAM.Types.EnableSharingWithAwsOrganizationResponse, AWSError>;
58 /**
59 * Enables resource sharing within your organization.
60 */
61 enableSharingWithAwsOrganization(callback?: (err: AWSError, data: RAM.Types.EnableSharingWithAwsOrganizationResponse) => void): Request<RAM.Types.EnableSharingWithAwsOrganizationResponse, AWSError>;
62 /**
63 * Gets the policies for the specifies resources.
64 */
65 getResourcePolicies(params: RAM.Types.GetResourcePoliciesRequest, callback?: (err: AWSError, data: RAM.Types.GetResourcePoliciesResponse) => void): Request<RAM.Types.GetResourcePoliciesResponse, AWSError>;
66 /**
67 * Gets the policies for the specifies resources.
68 */
69 getResourcePolicies(callback?: (err: AWSError, data: RAM.Types.GetResourcePoliciesResponse) => void): Request<RAM.Types.GetResourcePoliciesResponse, AWSError>;
70 /**
71 * Gets the associations for the specified resource share.
72 */
73 getResourceShareAssociations(params: RAM.Types.GetResourceShareAssociationsRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceShareAssociationsResponse) => void): Request<RAM.Types.GetResourceShareAssociationsResponse, AWSError>;
74 /**
75 * Gets the associations for the specified resource share.
76 */
77 getResourceShareAssociations(callback?: (err: AWSError, data: RAM.Types.GetResourceShareAssociationsResponse) => void): Request<RAM.Types.GetResourceShareAssociationsResponse, AWSError>;
78 /**
79 * Gets the specified invitations for resource sharing.
80 */
81 getResourceShareInvitations(params: RAM.Types.GetResourceShareInvitationsRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceShareInvitationsResponse) => void): Request<RAM.Types.GetResourceShareInvitationsResponse, AWSError>;
82 /**
83 * Gets the specified invitations for resource sharing.
84 */
85 getResourceShareInvitations(callback?: (err: AWSError, data: RAM.Types.GetResourceShareInvitationsResponse) => void): Request<RAM.Types.GetResourceShareInvitationsResponse, AWSError>;
86 /**
87 * Gets the specified resource shares or all of your resource shares.
88 */
89 getResourceShares(params: RAM.Types.GetResourceSharesRequest, callback?: (err: AWSError, data: RAM.Types.GetResourceSharesResponse) => void): Request<RAM.Types.GetResourceSharesResponse, AWSError>;
90 /**
91 * Gets the specified resource shares or all of your resource shares.
92 */
93 getResourceShares(callback?: (err: AWSError, data: RAM.Types.GetResourceSharesResponse) => void): Request<RAM.Types.GetResourceSharesResponse, AWSError>;
94 /**
95 * Lists the principals with access to the specified resource.
96 */
97 listPrincipals(params: RAM.Types.ListPrincipalsRequest, callback?: (err: AWSError, data: RAM.Types.ListPrincipalsResponse) => void): Request<RAM.Types.ListPrincipalsResponse, AWSError>;
98 /**
99 * Lists the principals with access to the specified resource.
100 */
101 listPrincipals(callback?: (err: AWSError, data: RAM.Types.ListPrincipalsResponse) => void): Request<RAM.Types.ListPrincipalsResponse, AWSError>;
102 /**
103 * Lists the resources that the specified principal can access.
104 */
105 listResources(params: RAM.Types.ListResourcesRequest, callback?: (err: AWSError, data: RAM.Types.ListResourcesResponse) => void): Request<RAM.Types.ListResourcesResponse, AWSError>;
106 /**
107 * Lists the resources that the specified principal can access.
108 */
109 listResources(callback?: (err: AWSError, data: RAM.Types.ListResourcesResponse) => void): Request<RAM.Types.ListResourcesResponse, AWSError>;
110 /**
111 * Rejects an invitation to a resource share from another AWS account.
112 */
113 rejectResourceShareInvitation(params: RAM.Types.RejectResourceShareInvitationRequest, callback?: (err: AWSError, data: RAM.Types.RejectResourceShareInvitationResponse) => void): Request<RAM.Types.RejectResourceShareInvitationResponse, AWSError>;
114 /**
115 * Rejects an invitation to a resource share from another AWS account.
116 */
117 rejectResourceShareInvitation(callback?: (err: AWSError, data: RAM.Types.RejectResourceShareInvitationResponse) => void): Request<RAM.Types.RejectResourceShareInvitationResponse, AWSError>;
118 /**
119 * Adds the specified tags to the specified resource share.
120 */
121 tagResource(params: RAM.Types.TagResourceRequest, callback?: (err: AWSError, data: RAM.Types.TagResourceResponse) => void): Request<RAM.Types.TagResourceResponse, AWSError>;
122 /**
123 * Adds the specified tags to the specified resource share.
124 */
125 tagResource(callback?: (err: AWSError, data: RAM.Types.TagResourceResponse) => void): Request<RAM.Types.TagResourceResponse, AWSError>;
126 /**
127 * Removes the specified tags from the specified resource share.
128 */
129 untagResource(params: RAM.Types.UntagResourceRequest, callback?: (err: AWSError, data: RAM.Types.UntagResourceResponse) => void): Request<RAM.Types.UntagResourceResponse, AWSError>;
130 /**
131 * Removes the specified tags from the specified resource share.
132 */
133 untagResource(callback?: (err: AWSError, data: RAM.Types.UntagResourceResponse) => void): Request<RAM.Types.UntagResourceResponse, AWSError>;
134 /**
135 * Updates the specified resource share.
136 */
137 updateResourceShare(params: RAM.Types.UpdateResourceShareRequest, callback?: (err: AWSError, data: RAM.Types.UpdateResourceShareResponse) => void): Request<RAM.Types.UpdateResourceShareResponse, AWSError>;
138 /**
139 * Updates the specified resource share.
140 */
141 updateResourceShare(callback?: (err: AWSError, data: RAM.Types.UpdateResourceShareResponse) => void): Request<RAM.Types.UpdateResourceShareResponse, AWSError>;
142}
143declare namespace RAM {
144 export interface AcceptResourceShareInvitationRequest {
145 /**
146 * The Amazon Resource Name (ARN) of the invitation.
147 */
148 resourceShareInvitationArn: String;
149 /**
150 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
151 */
152 clientToken?: String;
153 }
154 export interface AcceptResourceShareInvitationResponse {
155 /**
156 * Information about the invitation.
157 */
158 resourceShareInvitation?: ResourceShareInvitation;
159 /**
160 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
161 */
162 clientToken?: String;
163 }
164 export interface AssociateResourceShareRequest {
165 /**
166 * The Amazon Resource Name (ARN) of the resource share.
167 */
168 resourceShareArn: String;
169 /**
170 * The Amazon Resource Names (ARN) of the resources.
171 */
172 resourceArns?: ResourceArnList;
173 /**
174 * The principals.
175 */
176 principals?: PrincipalArnOrIdList;
177 /**
178 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
179 */
180 clientToken?: String;
181 }
182 export interface AssociateResourceShareResponse {
183 /**
184 * Information about the associations.
185 */
186 resourceShareAssociations?: ResourceShareAssociationList;
187 /**
188 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
189 */
190 clientToken?: String;
191 }
192 export type Boolean = boolean;
193 export interface CreateResourceShareRequest {
194 /**
195 * The name of the resource share.
196 */
197 name: String;
198 /**
199 * The Amazon Resource Names (ARN) of the resources to associate with the resource share.
200 */
201 resourceArns?: ResourceArnList;
202 /**
203 * The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
204 */
205 principals?: PrincipalArnOrIdList;
206 /**
207 * One or more tags.
208 */
209 tags?: TagList;
210 /**
211 * Indicates whether principals outside your organization can be associated with a resource share.
212 */
213 allowExternalPrincipals?: Boolean;
214 /**
215 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
216 */
217 clientToken?: String;
218 }
219 export interface CreateResourceShareResponse {
220 /**
221 * Information about the resource share.
222 */
223 resourceShare?: ResourceShare;
224 /**
225 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
226 */
227 clientToken?: String;
228 }
229 export type DateTime = Date;
230 export interface DeleteResourceShareRequest {
231 /**
232 * The Amazon Resource Name (ARN) of the resource share.
233 */
234 resourceShareArn: String;
235 /**
236 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
237 */
238 clientToken?: String;
239 }
240 export interface DeleteResourceShareResponse {
241 /**
242 * Indicates whether the request succeeded.
243 */
244 returnValue?: Boolean;
245 /**
246 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
247 */
248 clientToken?: String;
249 }
250 export interface DisassociateResourceShareRequest {
251 /**
252 * The Amazon Resource Name (ARN) of the resource share.
253 */
254 resourceShareArn: String;
255 /**
256 * The Amazon Resource Names (ARN) of the resources.
257 */
258 resourceArns?: ResourceArnList;
259 /**
260 * The principals.
261 */
262 principals?: PrincipalArnOrIdList;
263 /**
264 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
265 */
266 clientToken?: String;
267 }
268 export interface DisassociateResourceShareResponse {
269 /**
270 * Information about the associations.
271 */
272 resourceShareAssociations?: ResourceShareAssociationList;
273 /**
274 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
275 */
276 clientToken?: String;
277 }
278 export interface EnableSharingWithAwsOrganizationRequest {
279 }
280 export interface EnableSharingWithAwsOrganizationResponse {
281 /**
282 * Indicates whether the request succeeded.
283 */
284 returnValue?: Boolean;
285 }
286 export interface GetResourcePoliciesRequest {
287 /**
288 * The Amazon Resource Names (ARN) of the resources.
289 */
290 resourceArns: ResourceArnList;
291 /**
292 * The principal.
293 */
294 principal?: String;
295 /**
296 * The token for the next page of results.
297 */
298 nextToken?: String;
299 /**
300 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
301 */
302 maxResults?: MaxResults;
303 }
304 export interface GetResourcePoliciesResponse {
305 /**
306 * A key policy document, in JSON format.
307 */
308 policies?: PolicyList;
309 /**
310 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
311 */
312 nextToken?: String;
313 }
314 export interface GetResourceShareAssociationsRequest {
315 /**
316 * The association type.
317 */
318 associationType: ResourceShareAssociationType;
319 /**
320 * The Amazon Resource Names (ARN) of the resource shares.
321 */
322 resourceShareArns?: ResourceShareArnList;
323 /**
324 * The Amazon Resource Name (ARN) of the resource.
325 */
326 resourceArn?: String;
327 /**
328 * The principal.
329 */
330 principal?: String;
331 /**
332 * The status of the association.
333 */
334 associationStatus?: ResourceShareAssociationStatus;
335 /**
336 * The token for the next page of results.
337 */
338 nextToken?: String;
339 /**
340 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
341 */
342 maxResults?: MaxResults;
343 }
344 export interface GetResourceShareAssociationsResponse {
345 /**
346 * Information about the association.
347 */
348 resourceShareAssociations?: ResourceShareAssociationList;
349 /**
350 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
351 */
352 nextToken?: String;
353 }
354 export interface GetResourceShareInvitationsRequest {
355 /**
356 * The Amazon Resource Names (ARN) of the invitations.
357 */
358 resourceShareInvitationArns?: ResourceShareInvitationArnList;
359 /**
360 * The Amazon Resource Names (ARN) of the resource shares.
361 */
362 resourceShareArns?: ResourceShareArnList;
363 /**
364 * The token for the next page of results.
365 */
366 nextToken?: String;
367 /**
368 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
369 */
370 maxResults?: MaxResults;
371 }
372 export interface GetResourceShareInvitationsResponse {
373 /**
374 * Information about the invitations.
375 */
376 resourceShareInvitations?: ResourceShareInvitationList;
377 /**
378 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
379 */
380 nextToken?: String;
381 }
382 export interface GetResourceSharesRequest {
383 /**
384 * The Amazon Resource Names (ARN) of the resource shares.
385 */
386 resourceShareArns?: ResourceShareArnList;
387 /**
388 * The status of the resource share.
389 */
390 resourceShareStatus?: ResourceShareStatus;
391 /**
392 * The type of owner.
393 */
394 resourceOwner: ResourceOwner;
395 /**
396 * The name of the resource share.
397 */
398 name?: String;
399 /**
400 * One or more tag filters.
401 */
402 tagFilters?: TagFilters;
403 /**
404 * The token for the next page of results.
405 */
406 nextToken?: String;
407 /**
408 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
409 */
410 maxResults?: MaxResults;
411 }
412 export interface GetResourceSharesResponse {
413 /**
414 * Information about the resource shares.
415 */
416 resourceShares?: ResourceShareList;
417 /**
418 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
419 */
420 nextToken?: String;
421 }
422 export interface ListPrincipalsRequest {
423 /**
424 * The type of owner.
425 */
426 resourceOwner: ResourceOwner;
427 /**
428 * The Amazon Resource Name (ARN) of the resource.
429 */
430 resourceArn?: String;
431 /**
432 * The principals.
433 */
434 principals?: PrincipalArnOrIdList;
435 /**
436 * The resource type.
437 */
438 resourceType?: String;
439 /**
440 * The Amazon Resource Names (ARN) of the resource shares.
441 */
442 resourceShareArns?: ResourceShareArnList;
443 /**
444 * The token for the next page of results.
445 */
446 nextToken?: String;
447 /**
448 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
449 */
450 maxResults?: MaxResults;
451 }
452 export interface ListPrincipalsResponse {
453 /**
454 * The principals.
455 */
456 principals?: PrincipalList;
457 /**
458 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
459 */
460 nextToken?: String;
461 }
462 export interface ListResourcesRequest {
463 /**
464 * The type of owner.
465 */
466 resourceOwner: ResourceOwner;
467 /**
468 * The principal.
469 */
470 principal?: String;
471 /**
472 * The resource type.
473 */
474 resourceType?: String;
475 /**
476 * The Amazon Resource Names (ARN) of the resources.
477 */
478 resourceArns?: ResourceArnList;
479 /**
480 * The Amazon Resource Names (ARN) of the resource shares.
481 */
482 resourceShareArns?: ResourceShareArnList;
483 /**
484 * The token for the next page of results.
485 */
486 nextToken?: String;
487 /**
488 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
489 */
490 maxResults?: MaxResults;
491 }
492 export interface ListResourcesResponse {
493 /**
494 * Information about the resources.
495 */
496 resources?: ResourceList;
497 /**
498 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
499 */
500 nextToken?: String;
501 }
502 export type MaxResults = number;
503 export type Policy = string;
504 export type PolicyList = Policy[];
505 export interface Principal {
506 /**
507 * The ID of the principal.
508 */
509 id?: String;
510 /**
511 * The Amazon Resource Name (ARN) of the resource share.
512 */
513 resourceShareArn?: String;
514 /**
515 * The time when the principal was associated with the resource share.
516 */
517 creationTime?: DateTime;
518 /**
519 * The time when the association was last updated.
520 */
521 lastUpdatedTime?: DateTime;
522 /**
523 * Indicates whether the principal belongs to the same organization as the AWS account that owns the resource share.
524 */
525 external?: Boolean;
526 }
527 export type PrincipalArnOrIdList = String[];
528 export type PrincipalList = Principal[];
529 export interface RejectResourceShareInvitationRequest {
530 /**
531 * The Amazon Resource Name (ARN) of the invitation.
532 */
533 resourceShareInvitationArn: String;
534 /**
535 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
536 */
537 clientToken?: String;
538 }
539 export interface RejectResourceShareInvitationResponse {
540 /**
541 * Information about the invitation.
542 */
543 resourceShareInvitation?: ResourceShareInvitation;
544 /**
545 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
546 */
547 clientToken?: String;
548 }
549 export interface Resource {
550 /**
551 * The Amazon Resource Name (ARN) of the resource.
552 */
553 arn?: String;
554 /**
555 * The resource type.
556 */
557 type?: String;
558 /**
559 * The Amazon Resource Name (ARN) of the resource share.
560 */
561 resourceShareArn?: String;
562 /**
563 * The status of the resource.
564 */
565 status?: ResourceStatus;
566 /**
567 * A message about the status of the resource.
568 */
569 statusMessage?: String;
570 /**
571 * The time when the resource was associated with the resource share.
572 */
573 creationTime?: DateTime;
574 /**
575 * The time when the association was last updated.
576 */
577 lastUpdatedTime?: DateTime;
578 }
579 export type ResourceArnList = String[];
580 export type ResourceList = Resource[];
581 export type ResourceOwner = "SELF"|"OTHER-ACCOUNTS"|string;
582 export interface ResourceShare {
583 /**
584 * The Amazon Resource Name (ARN) of the resource share.
585 */
586 resourceShareArn?: String;
587 /**
588 * The name of the resource share.
589 */
590 name?: String;
591 /**
592 * The ID of the AWS account that owns the resource share.
593 */
594 owningAccountId?: String;
595 /**
596 * Indicates whether principals outside your organization can be associated with a resource share.
597 */
598 allowExternalPrincipals?: Boolean;
599 /**
600 * The status of the resource share.
601 */
602 status?: ResourceShareStatus;
603 /**
604 * A message about the status of the resource share.
605 */
606 statusMessage?: String;
607 /**
608 * The tags for the resource share.
609 */
610 tags?: TagList;
611 /**
612 * The time when the resource share was created.
613 */
614 creationTime?: DateTime;
615 /**
616 * The time when the resource share was last updated.
617 */
618 lastUpdatedTime?: DateTime;
619 }
620 export type ResourceShareArnList = String[];
621 export interface ResourceShareAssociation {
622 /**
623 * The Amazon Resource Name (ARN) of the resource share.
624 */
625 resourceShareArn?: String;
626 /**
627 * The associated entity. For resource associations, this is the ARN of the resource. For principal associations, this is the ID of an AWS account or the ARN of an OU or organization from AWS Organizations.
628 */
629 associatedEntity?: String;
630 /**
631 * The association type.
632 */
633 associationType?: ResourceShareAssociationType;
634 /**
635 * The status of the association.
636 */
637 status?: ResourceShareAssociationStatus;
638 /**
639 * A message about the status of the association.
640 */
641 statusMessage?: String;
642 /**
643 * The time when the association was created.
644 */
645 creationTime?: DateTime;
646 /**
647 * The time when the association was last updated.
648 */
649 lastUpdatedTime?: DateTime;
650 /**
651 * Indicates whether the principal belongs to the same organization as the AWS account that owns the resource share.
652 */
653 external?: Boolean;
654 }
655 export type ResourceShareAssociationList = ResourceShareAssociation[];
656 export type ResourceShareAssociationStatus = "ASSOCIATING"|"ASSOCIATED"|"FAILED"|"DISASSOCIATING"|"DISASSOCIATED"|string;
657 export type ResourceShareAssociationType = "PRINCIPAL"|"RESOURCE"|string;
658 export interface ResourceShareInvitation {
659 /**
660 * The Amazon Resource Name (ARN) of the invitation.
661 */
662 resourceShareInvitationArn?: String;
663 /**
664 * The name of the resource share.
665 */
666 resourceShareName?: String;
667 /**
668 * The Amazon Resource Name (ARN) of the resource share.
669 */
670 resourceShareArn?: String;
671 /**
672 * The ID of the AWS account that sent the invitation.
673 */
674 senderAccountId?: String;
675 /**
676 * The ID of the AWS account that received the invitation.
677 */
678 receiverAccountId?: String;
679 /**
680 * The date and time when the invitation was sent.
681 */
682 invitationTimestamp?: DateTime;
683 /**
684 * The status of the invitation.
685 */
686 status?: ResourceShareInvitationStatus;
687 /**
688 * The resources associated with the resource share.
689 */
690 resourceShareAssociations?: ResourceShareAssociationList;
691 }
692 export type ResourceShareInvitationArnList = String[];
693 export type ResourceShareInvitationList = ResourceShareInvitation[];
694 export type ResourceShareInvitationStatus = "PENDING"|"ACCEPTED"|"REJECTED"|"EXPIRED"|string;
695 export type ResourceShareList = ResourceShare[];
696 export type ResourceShareStatus = "PENDING"|"ACTIVE"|"FAILED"|"DELETING"|"DELETED"|string;
697 export type ResourceStatus = "AVAILABLE"|"ZONAL_RESOURCE_INACCESSIBLE"|"LIMIT_EXCEEDED"|"UNAVAILABLE"|string;
698 export type String = string;
699 export interface Tag {
700 /**
701 * The key of the tag.
702 */
703 key?: TagKey;
704 /**
705 * The value of the tag.
706 */
707 value?: TagValue;
708 }
709 export interface TagFilter {
710 /**
711 * The tag key.
712 */
713 tagKey?: TagKey;
714 /**
715 * The tag values.
716 */
717 tagValues?: TagValueList;
718 }
719 export type TagFilters = TagFilter[];
720 export type TagKey = string;
721 export type TagKeyList = TagKey[];
722 export type TagList = Tag[];
723 export interface TagResourceRequest {
724 /**
725 * The Amazon Resource Name (ARN) of the resource share.
726 */
727 resourceShareArn: String;
728 /**
729 * One or more tags.
730 */
731 tags: TagList;
732 }
733 export interface TagResourceResponse {
734 }
735 export type TagValue = string;
736 export type TagValueList = TagValue[];
737 export interface UntagResourceRequest {
738 /**
739 * The Amazon Resource Name (ARN) of the resource share.
740 */
741 resourceShareArn: String;
742 /**
743 * The tag keys of the tags to remove.
744 */
745 tagKeys: TagKeyList;
746 }
747 export interface UntagResourceResponse {
748 }
749 export interface UpdateResourceShareRequest {
750 /**
751 * The Amazon Resource Name (ARN) of the resource share.
752 */
753 resourceShareArn: String;
754 /**
755 * The name of the resource share.
756 */
757 name?: String;
758 /**
759 * Indicates whether principals outside your organization can be associated with a resource share.
760 */
761 allowExternalPrincipals?: Boolean;
762 /**
763 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
764 */
765 clientToken?: String;
766 }
767 export interface UpdateResourceShareResponse {
768 /**
769 * Information about the resource share.
770 */
771 resourceShare?: ResourceShare;
772 /**
773 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
774 */
775 clientToken?: String;
776 }
777 /**
778 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
779 */
780 export type apiVersion = "2018-01-04"|"latest"|string;
781 export interface ClientApiVersions {
782 /**
783 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
784 */
785 apiVersion?: apiVersion;
786 }
787 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
788 /**
789 * Contains interfaces for use with the RAM client.
790 */
791 export import Types = RAM;
792}
793export = RAM;