UNPKG

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