UNPKG

42.5 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 * 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}
199declare namespace RAM {
200 export interface AcceptResourceShareInvitationRequest {
201 /**
202 * The Amazon Resource Name (ARN) of the invitation.
203 */
204 resourceShareInvitationArn: String;
205 /**
206 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
207 */
208 clientToken?: String;
209 }
210 export interface AcceptResourceShareInvitationResponse {
211 /**
212 * Information about the invitation.
213 */
214 resourceShareInvitation?: ResourceShareInvitation;
215 /**
216 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
217 */
218 clientToken?: String;
219 }
220 export interface AssociateResourceSharePermissionRequest {
221 /**
222 * The Amazon Resource Name (ARN) of the resource share.
223 */
224 resourceShareArn: String;
225 /**
226 * The ARN of the AWS RAM permission to associate with the resource share.
227 */
228 permissionArn: String;
229 /**
230 * Indicates whether the permission should replace the permissions that are currently associated with the resource share. Use true to replace the current permissions. Use false to add the permission to the current permission.
231 */
232 replace?: Boolean;
233 /**
234 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
235 */
236 clientToken?: String;
237 }
238 export interface AssociateResourceSharePermissionResponse {
239 /**
240 * Indicates whether the request succeeded.
241 */
242 returnValue?: Boolean;
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 AssociateResourceShareRequest {
249 /**
250 * The Amazon Resource Name (ARN) of the resource share.
251 */
252 resourceShareArn: String;
253 /**
254 * The Amazon Resource Names (ARN) of the resources.
255 */
256 resourceArns?: ResourceArnList;
257 /**
258 * The principals.
259 */
260 principals?: PrincipalArnOrIdList;
261 /**
262 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
263 */
264 clientToken?: String;
265 }
266 export interface AssociateResourceShareResponse {
267 /**
268 * Information about the associations.
269 */
270 resourceShareAssociations?: ResourceShareAssociationList;
271 /**
272 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
273 */
274 clientToken?: String;
275 }
276 export type Boolean = boolean;
277 export interface CreateResourceShareRequest {
278 /**
279 * The name of the resource share.
280 */
281 name: String;
282 /**
283 * The Amazon Resource Names (ARN) of the resources to associate with the resource share.
284 */
285 resourceArns?: ResourceArnList;
286 /**
287 * 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.
288 */
289 principals?: PrincipalArnOrIdList;
290 /**
291 * One or more tags.
292 */
293 tags?: TagList;
294 /**
295 * Indicates whether principals outside your AWS organization can be associated with a resource share.
296 */
297 allowExternalPrincipals?: Boolean;
298 /**
299 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
300 */
301 clientToken?: String;
302 /**
303 * The ARNs of the permissions to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type.
304 */
305 permissionArns?: PermissionArnList;
306 }
307 export interface CreateResourceShareResponse {
308 /**
309 * Information about the resource share.
310 */
311 resourceShare?: ResourceShare;
312 /**
313 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
314 */
315 clientToken?: String;
316 }
317 export type DateTime = Date;
318 export interface DeleteResourceShareRequest {
319 /**
320 * The Amazon Resource Name (ARN) of the resource share.
321 */
322 resourceShareArn: String;
323 /**
324 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
325 */
326 clientToken?: String;
327 }
328 export interface DeleteResourceShareResponse {
329 /**
330 * Indicates whether the request succeeded.
331 */
332 returnValue?: Boolean;
333 /**
334 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
335 */
336 clientToken?: String;
337 }
338 export interface DisassociateResourceSharePermissionRequest {
339 /**
340 * The Amazon Resource Name (ARN) of the resource share.
341 */
342 resourceShareArn: String;
343 /**
344 * The ARN of the permission to disassociate from the resource share.
345 */
346 permissionArn: String;
347 /**
348 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
349 */
350 clientToken?: String;
351 }
352 export interface DisassociateResourceSharePermissionResponse {
353 /**
354 * Indicates whether the request succeeded.
355 */
356 returnValue?: Boolean;
357 /**
358 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
359 */
360 clientToken?: String;
361 }
362 export interface DisassociateResourceShareRequest {
363 /**
364 * The Amazon Resource Name (ARN) of the resource share.
365 */
366 resourceShareArn: String;
367 /**
368 * The Amazon Resource Names (ARNs) of the resources.
369 */
370 resourceArns?: ResourceArnList;
371 /**
372 * The principals.
373 */
374 principals?: PrincipalArnOrIdList;
375 /**
376 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
377 */
378 clientToken?: String;
379 }
380 export interface DisassociateResourceShareResponse {
381 /**
382 * Information about the associations.
383 */
384 resourceShareAssociations?: ResourceShareAssociationList;
385 /**
386 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
387 */
388 clientToken?: String;
389 }
390 export interface EnableSharingWithAwsOrganizationRequest {
391 }
392 export interface EnableSharingWithAwsOrganizationResponse {
393 /**
394 * Indicates whether the request succeeded.
395 */
396 returnValue?: Boolean;
397 }
398 export interface GetPermissionRequest {
399 /**
400 * The ARN of the permission.
401 */
402 permissionArn: String;
403 /**
404 * The identifier for the version of the permission.
405 */
406 permissionVersion?: Integer;
407 }
408 export interface GetPermissionResponse {
409 /**
410 * Information about the permission.
411 */
412 permission?: ResourceSharePermissionDetail;
413 }
414 export interface GetResourcePoliciesRequest {
415 /**
416 * The Amazon Resource Names (ARN) of the resources.
417 */
418 resourceArns: ResourceArnList;
419 /**
420 * The principal.
421 */
422 principal?: String;
423 /**
424 * The token for the next page of results.
425 */
426 nextToken?: String;
427 /**
428 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
429 */
430 maxResults?: MaxResults;
431 }
432 export interface GetResourcePoliciesResponse {
433 /**
434 * A key policy document, in JSON format.
435 */
436 policies?: PolicyList;
437 /**
438 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
439 */
440 nextToken?: String;
441 }
442 export interface GetResourceShareAssociationsRequest {
443 /**
444 * The association type. Specify PRINCIPAL to list the principals that are associated with the specified resource share. Specify RESOURCE to list the resources that are associated with the specified resource share.
445 */
446 associationType: ResourceShareAssociationType;
447 /**
448 * The Amazon Resource Names (ARN) of the resource shares.
449 */
450 resourceShareArns?: ResourceShareArnList;
451 /**
452 * The Amazon Resource Name (ARN) of the resource. You cannot specify this parameter if the association type is PRINCIPAL.
453 */
454 resourceArn?: String;
455 /**
456 * The principal. You cannot specify this parameter if the association type is RESOURCE.
457 */
458 principal?: String;
459 /**
460 * The association status.
461 */
462 associationStatus?: ResourceShareAssociationStatus;
463 /**
464 * The token for the next page of results.
465 */
466 nextToken?: String;
467 /**
468 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
469 */
470 maxResults?: MaxResults;
471 }
472 export interface GetResourceShareAssociationsResponse {
473 /**
474 * Information about the associations.
475 */
476 resourceShareAssociations?: ResourceShareAssociationList;
477 /**
478 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
479 */
480 nextToken?: String;
481 }
482 export interface GetResourceShareInvitationsRequest {
483 /**
484 * The Amazon Resource Names (ARN) of the invitations.
485 */
486 resourceShareInvitationArns?: ResourceShareInvitationArnList;
487 /**
488 * The Amazon Resource Names (ARN) of the resource shares.
489 */
490 resourceShareArns?: ResourceShareArnList;
491 /**
492 * The token for the next page of results.
493 */
494 nextToken?: String;
495 /**
496 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
497 */
498 maxResults?: MaxResults;
499 }
500 export interface GetResourceShareInvitationsResponse {
501 /**
502 * Information about the invitations.
503 */
504 resourceShareInvitations?: ResourceShareInvitationList;
505 /**
506 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
507 */
508 nextToken?: String;
509 }
510 export interface GetResourceSharesRequest {
511 /**
512 * The Amazon Resource Names (ARN) of the resource shares.
513 */
514 resourceShareArns?: ResourceShareArnList;
515 /**
516 * The status of the resource share.
517 */
518 resourceShareStatus?: ResourceShareStatus;
519 /**
520 * The type of owner.
521 */
522 resourceOwner: ResourceOwner;
523 /**
524 * The name of the resource share.
525 */
526 name?: String;
527 /**
528 * One or more tag filters.
529 */
530 tagFilters?: TagFilters;
531 /**
532 * The token for the next page of results.
533 */
534 nextToken?: String;
535 /**
536 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
537 */
538 maxResults?: MaxResults;
539 }
540 export interface GetResourceSharesResponse {
541 /**
542 * Information about the resource shares.
543 */
544 resourceShares?: ResourceShareList;
545 /**
546 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
547 */
548 nextToken?: String;
549 }
550 export type Integer = number;
551 export interface ListPendingInvitationResourcesRequest {
552 /**
553 * The Amazon Resource Name (ARN) of the invitation.
554 */
555 resourceShareInvitationArn: String;
556 /**
557 * The token for the next page of results.
558 */
559 nextToken?: String;
560 /**
561 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
562 */
563 maxResults?: MaxResults;
564 }
565 export interface ListPendingInvitationResourcesResponse {
566 /**
567 * Information about the resources included the resource share.
568 */
569 resources?: ResourceList;
570 /**
571 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
572 */
573 nextToken?: String;
574 }
575 export interface ListPermissionsRequest {
576 /**
577 * Specifies the resource type for which to list permissions. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet.
578 */
579 resourceType?: String;
580 /**
581 * The token for the next page of results.
582 */
583 nextToken?: String;
584 /**
585 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
586 */
587 maxResults?: MaxResults;
588 }
589 export interface ListPermissionsResponse {
590 /**
591 * Information about the permissions.
592 */
593 permissions?: ResourceSharePermissionList;
594 /**
595 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
596 */
597 nextToken?: String;
598 }
599 export interface ListPrincipalsRequest {
600 /**
601 * The type of owner.
602 */
603 resourceOwner: ResourceOwner;
604 /**
605 * The Amazon Resource Name (ARN) of the resource.
606 */
607 resourceArn?: String;
608 /**
609 * The principals.
610 */
611 principals?: PrincipalArnOrIdList;
612 /**
613 * The resource type. Valid values: ec2:CapacityReservation | ec2:Subnet | ec2:TrafficMirrorTarget | ec2:TransitGateway | license-manager:LicenseConfiguration | rds:Cluster | route53resolver:ResolverRule I resource-groups:Group
614 */
615 resourceType?: String;
616 /**
617 * The Amazon Resource Names (ARN) of the resource shares.
618 */
619 resourceShareArns?: ResourceShareArnList;
620 /**
621 * The token for the next page of results.
622 */
623 nextToken?: String;
624 /**
625 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
626 */
627 maxResults?: MaxResults;
628 }
629 export interface ListPrincipalsResponse {
630 /**
631 * The principals.
632 */
633 principals?: PrincipalList;
634 /**
635 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
636 */
637 nextToken?: String;
638 }
639 export interface ListResourceSharePermissionsRequest {
640 /**
641 * The Amazon Resource Name (ARN) of the resource share.
642 */
643 resourceShareArn: String;
644 /**
645 * The token for the next page of results.
646 */
647 nextToken?: String;
648 /**
649 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
650 */
651 maxResults?: MaxResults;
652 }
653 export interface ListResourceSharePermissionsResponse {
654 /**
655 * The permissions associated with the resource share.
656 */
657 permissions?: ResourceSharePermissionList;
658 /**
659 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
660 */
661 nextToken?: String;
662 }
663 export interface ListResourcesRequest {
664 /**
665 * The type of owner.
666 */
667 resourceOwner: ResourceOwner;
668 /**
669 * The principal.
670 */
671 principal?: String;
672 /**
673 * The resource type. Valid values: ec2:CapacityReservation | ec2:Subnet | ec2:TrafficMirrorTarget | ec2:TransitGateway | license-manager:LicenseConfiguration | rds:Cluster | route53resolver:ResolverRule | resource-groups:Group
674 */
675 resourceType?: String;
676 /**
677 * The Amazon Resource Names (ARN) of the resources.
678 */
679 resourceArns?: ResourceArnList;
680 /**
681 * The Amazon Resource Names (ARN) of the resource shares.
682 */
683 resourceShareArns?: ResourceShareArnList;
684 /**
685 * The token for the next page of results.
686 */
687 nextToken?: String;
688 /**
689 * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
690 */
691 maxResults?: MaxResults;
692 }
693 export interface ListResourcesResponse {
694 /**
695 * Information about the resources.
696 */
697 resources?: ResourceList;
698 /**
699 * The token to use to retrieve the next page of results. This value is null when there are no more results to return.
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 * The ID of the principal.
710 */
711 id?: String;
712 /**
713 * The Amazon Resource Name (ARN) of the resource share.
714 */
715 resourceShareArn?: String;
716 /**
717 * The time when the principal was associated with the resource share.
718 */
719 creationTime?: DateTime;
720 /**
721 * The time when the association was last updated.
722 */
723 lastUpdatedTime?: DateTime;
724 /**
725 * Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource share.
726 */
727 external?: Boolean;
728 }
729 export type PrincipalArnOrIdList = String[];
730 export type PrincipalList = Principal[];
731 export interface PromoteResourceShareCreatedFromPolicyRequest {
732 /**
733 * The ARN of the resource share to promote.
734 */
735 resourceShareArn: String;
736 }
737 export interface PromoteResourceShareCreatedFromPolicyResponse {
738 /**
739 * Indicates whether the request succeeded.
740 */
741 returnValue?: Boolean;
742 }
743 export interface RejectResourceShareInvitationRequest {
744 /**
745 * The Amazon Resource Name (ARN) of the invitation.
746 */
747 resourceShareInvitationArn: String;
748 /**
749 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
750 */
751 clientToken?: String;
752 }
753 export interface RejectResourceShareInvitationResponse {
754 /**
755 * Information about the invitation.
756 */
757 resourceShareInvitation?: ResourceShareInvitation;
758 /**
759 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
760 */
761 clientToken?: String;
762 }
763 export interface Resource {
764 /**
765 * The Amazon Resource Name (ARN) of the resource.
766 */
767 arn?: String;
768 /**
769 * The resource type.
770 */
771 type?: String;
772 /**
773 * The Amazon Resource Name (ARN) of the resource share.
774 */
775 resourceShareArn?: String;
776 /**
777 * The ARN of the resource group. This value is returned only if the resource is a resource group.
778 */
779 resourceGroupArn?: String;
780 /**
781 * The status of the resource.
782 */
783 status?: ResourceStatus;
784 /**
785 * A message about the status of the resource.
786 */
787 statusMessage?: String;
788 /**
789 * The time when the resource was associated with the resource share.
790 */
791 creationTime?: DateTime;
792 /**
793 * The time when the association was last updated.
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 * The Amazon Resource Name (ARN) of the resource share.
803 */
804 resourceShareArn?: String;
805 /**
806 * The name of the resource share.
807 */
808 name?: String;
809 /**
810 * The ID of the AWS account that owns the resource share.
811 */
812 owningAccountId?: String;
813 /**
814 * Indicates whether principals outside your AWS organization can be associated with a resource share.
815 */
816 allowExternalPrincipals?: Boolean;
817 /**
818 * The status of the resource share.
819 */
820 status?: ResourceShareStatus;
821 /**
822 * A message about the status of the resource share.
823 */
824 statusMessage?: String;
825 /**
826 * The tags for the resource share.
827 */
828 tags?: TagList;
829 /**
830 * The time when the resource share was created.
831 */
832 creationTime?: DateTime;
833 /**
834 * The time when the resource share was last updated.
835 */
836 lastUpdatedTime?: DateTime;
837 /**
838 * Indicates how the resource share was created. Possible values include: CREATED_FROM_POLICY - Indicates that the resource share was created from an AWS Identity and Access Management (AWS IAM) policy attached to a resource. These resource shares are visible only to the AWS account that created it. They cannot be modified in AWS RAM. PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more information, see PromoteResourceShareCreatedFromPolicy. STANDARD - Indicates that the resource share was created in AWS RAM using the console or APIs. These resource shares are visible to all principals. They can be modified in AWS RAM.
839 */
840 featureSet?: ResourceShareFeatureSet;
841 }
842 export type ResourceShareArnList = String[];
843 export interface ResourceShareAssociation {
844 /**
845 * The Amazon Resource Name (ARN) of the resource share.
846 */
847 resourceShareArn?: String;
848 /**
849 * The name of the resource share.
850 */
851 resourceShareName?: String;
852 /**
853 * 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.
854 */
855 associatedEntity?: String;
856 /**
857 * The association type.
858 */
859 associationType?: ResourceShareAssociationType;
860 /**
861 * The status of the association.
862 */
863 status?: ResourceShareAssociationStatus;
864 /**
865 * A message about the status of the association.
866 */
867 statusMessage?: String;
868 /**
869 * The time when the association was created.
870 */
871 creationTime?: DateTime;
872 /**
873 * The time when the association was last updated.
874 */
875 lastUpdatedTime?: DateTime;
876 /**
877 * Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource share.
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 * The Amazon Resource Name (ARN) of the invitation.
888 */
889 resourceShareInvitationArn?: String;
890 /**
891 * The name of the resource share.
892 */
893 resourceShareName?: String;
894 /**
895 * The Amazon Resource Name (ARN) of the resource share.
896 */
897 resourceShareArn?: String;
898 /**
899 * The ID of the AWS account that sent the invitation.
900 */
901 senderAccountId?: String;
902 /**
903 * The ID of the AWS account that received the invitation.
904 */
905 receiverAccountId?: String;
906 /**
907 * The date and time when the invitation was sent.
908 */
909 invitationTimestamp?: DateTime;
910 /**
911 * The status of the invitation.
912 */
913 status?: ResourceShareInvitationStatus;
914 /**
915 * To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
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 * The ARN of the permission.
926 */
927 arn?: String;
928 /**
929 * The identifier for the version of the permission.
930 */
931 version?: String;
932 /**
933 * The identifier for the version of the permission that is set as the default version.
934 */
935 defaultVersion?: Boolean;
936 /**
937 * The name of the permission.
938 */
939 name?: String;
940 /**
941 * The resource type to which the permission applies.
942 */
943 resourceType?: String;
944 /**
945 * The permission's effect and actions in JSON format. The effect indicates whether the actions are allowed or denied. The actions list the API actions to which the principal is granted or denied access.
946 */
947 permission?: String;
948 /**
949 * The date and time when the permission was created.
950 */
951 creationTime?: DateTime;
952 /**
953 * The date and time when the permission was last updated.
954 */
955 lastUpdatedTime?: DateTime;
956 }
957 export type ResourceSharePermissionList = ResourceSharePermissionSummary[];
958 export interface ResourceSharePermissionSummary {
959 /**
960 * The ARN of the permission.
961 */
962 arn?: String;
963 /**
964 * The identifier for the version of the permission.
965 */
966 version?: String;
967 /**
968 * The identifier for the version of the permission that is set as the default version.
969 */
970 defaultVersion?: Boolean;
971 /**
972 * The name of the permission.
973 */
974 name?: String;
975 /**
976 * The type of resource to which the permission applies.
977 */
978 resourceType?: String;
979 /**
980 * The current status of the permission.
981 */
982 status?: String;
983 /**
984 * The date and time when the permission was created.
985 */
986 creationTime?: DateTime;
987 /**
988 * The date and time when the permission was last updated.
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 * The key of the tag.
998 */
999 key?: TagKey;
1000 /**
1001 * The value of the tag.
1002 */
1003 value?: TagValue;
1004 }
1005 export interface TagFilter {
1006 /**
1007 * The tag key.
1008 */
1009 tagKey?: TagKey;
1010 /**
1011 * The tag values.
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 * The Amazon Resource Name (ARN) of the resource share.
1022 */
1023 resourceShareArn: String;
1024 /**
1025 * One or more tags.
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 * The Amazon Resource Name (ARN) of the resource share.
1036 */
1037 resourceShareArn: String;
1038 /**
1039 * The tag keys of the tags to remove.
1040 */
1041 tagKeys: TagKeyList;
1042 }
1043 export interface UntagResourceResponse {
1044 }
1045 export interface UpdateResourceShareRequest {
1046 /**
1047 * The Amazon Resource Name (ARN) of the resource share.
1048 */
1049 resourceShareArn: String;
1050 /**
1051 * The name of the resource share.
1052 */
1053 name?: String;
1054 /**
1055 * Indicates whether principals outside your AWS organization can be associated with a resource share.
1056 */
1057 allowExternalPrincipals?: Boolean;
1058 /**
1059 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
1060 */
1061 clientToken?: String;
1062 }
1063 export interface UpdateResourceShareResponse {
1064 /**
1065 * Information about the resource share.
1066 */
1067 resourceShare?: ResourceShare;
1068 /**
1069 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
1070 */
1071 clientToken?: String;
1072 }
1073 /**
1074 * 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.
1075 */
1076 export type apiVersion = "2018-01-04"|"latest"|string;
1077 export interface ClientApiVersions {
1078 /**
1079 * 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.
1080 */
1081 apiVersion?: apiVersion;
1082 }
1083 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1084 /**
1085 * Contains interfaces for use with the RAM client.
1086 */
1087 export import Types = RAM;
1088}
1089export = RAM;