1---2name: aws-resource-access-manager3description: AWS Resource Access Manager API skill. Use when working with AWS Resource Access Manager for acceptresourceshareinvitation, associateresourceshare, associateresourcesharepermission. Covers 34 endpoints.4---5
6# AWS Resource Access Manager
7API version: 2018-01-04
8
9## Auth
10AWS SigV4
11
12## Base URL
13Not specified.
14
15## Setup
161. Configure auth: AWS SigV4
173. POST /acceptresourceshareinvitation -- create first acceptresourceshareinvitation
18
19## Endpoints
20
2134 endpoints across 34 groups. See references/api-spec.lap for full details.
22
23### acceptresourceshareinvitation
24| Method | Path | Description |
25|--------|------|-------------|
26| POST | /acceptresourceshareinvitation | Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools. |
27
28### associateresourceshare
29| Method | Path | Description |
30|--------|------|-------------|
31| POST | /associateresourceshare | Adds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share. |
32
33### associateresourcesharepermission
34| Method | Path | Description |
35|--------|------|-------------|
36| POST | /associateresourcesharepermission | Adds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the resource share. |
37
38### createpermission
39| Method | Path | Description |
40|--------|------|-------------|
41| POST | /createpermission | Creates a customer managed permission for a specified resource type that you can attach to resource shares. It is created in the Amazon Web Services Region in which you call the operation. |
42
43### createpermissionversion
44| Method | Path | Description |
45|--------|------|-------------|
46| POST | /createpermissionversion | Creates a new version of the specified customer managed permission. The new version is automatically set as the default version of the customer managed permission. New resource shares automatically use the default permission. Existing resource shares continue to use their original permission versions, but you can use ReplacePermissionAssociations to update them. If the specified customer managed permission already has the maximum of 5 versions, then you must delete one of the existing versions before you can create a new one. |
47
48### createresourceshare
49| Method | Path | Description |
50|--------|------|-------------|
51| POST | /createresourceshare | Creates a resource share. You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals. Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it. |
52
53### deletepermission
54| Method | Path | Description |
55|--------|------|-------------|
56| DELETE | /deletepermission | Deletes the specified customer managed permission in the Amazon Web Services Region in which you call this operation. You can delete a customer managed permission only if it isn't attached to any resource share. The operation deletes all versions associated with the customer managed permission. |
57
58### deletepermissionversion
59| Method | Path | Description |
60|--------|------|-------------|
61| DELETE | /deletepermissionversion | Deletes one version of a customer managed permission. The version you specify must not be attached to any resource share and must not be the default version for the permission. If a customer managed permission has the maximum of 5 versions, then you must delete at least one version before you can create another. |
62
63### deleteresourceshare
64| Method | Path | Description |
65|--------|------|-------------|
66| DELETE | /deleteresourceshare | Deletes the specified resource share. This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources through this resource share. |
67
68### disassociateresourceshare
69| Method | Path | Description |
70|--------|------|-------------|
71| POST | /disassociateresourceshare | Removes the specified principals or resources from participating in the specified resource share. |
72
73### disassociateresourcesharepermission
74| Method | Path | Description |
75|--------|------|-------------|
76| POST | /disassociateresourcesharepermission | Removes a managed permission from a resource share. Permission changes take effect immediately. You can remove a managed permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share. |
77
78### enablesharingwithawsorganization
79| Method | Path | Description |
80|--------|------|-------------|
81| POST | /enablesharingwithawsorganization | Enables resource sharing within your organization in Organizations. This operation creates a service-linked role called AWSServiceRoleForResourceAccessManager that has the IAM managed policy named AWSResourceAccessManagerServiceRolePolicy attached. This role permits RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in the calling account's organization by specifying the organization ID, or all of the accounts in an organizational unit (OU) by specifying the OU ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM roles and users. You must call this operation from an IAM role or user in the organization's management account. |
82
83### getpermission
84| Method | Path | Description |
85|--------|------|-------------|
86| POST | /getpermission | Retrieves the contents of a managed permission in JSON format. |
87
88### getresourcepolicies
89| Method | Path | Description |
90|--------|------|-------------|
91| POST | /getresourcepolicies | Retrieves the resource policies for the specified resources that you own and have shared. |
92
93### getresourceshareassociations
94| Method | Path | Description |
95|--------|------|-------------|
96| POST | /getresourceshareassociations | Retrieves the lists of resources and principals that associated for resource shares that you own. |
97
98### getresourceshareinvitations
99| Method | Path | Description |
100|--------|------|-------------|
101| POST | /getresourceshareinvitations | Retrieves details about invitations that you have received for resource shares. |
102
103### getresourceshares
104| Method | Path | Description |
105|--------|------|-------------|
106| POST | /getresourceshares | Retrieves details about the resource shares that you own or that are shared with you. |
107
108### listpendinginvitationresources
109| Method | Path | Description |
110|--------|------|-------------|
111| POST | /listpendinginvitationresources | Lists the resources in a resource share that is shared with you but for which the invitation is still PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't expired. |
112
113### listpermissionassociations
114| Method | Path | Description |
115|--------|------|-------------|
116| POST | /listpermissionassociations | Lists information about the managed permission and its associations to any resource shares that use this managed permission. This lets you see which resource shares use which versions of the specified managed permission. |
117
118### listpermissionversions
119| Method | Path | Description |
120|--------|------|-------------|
121| POST | /listpermissionversions | Lists the available versions of the specified RAM permission. |
122
123### listpermissions
124| Method | Path | Description |
125|--------|------|-------------|
126| POST | /listpermissions | Retrieves a list of available RAM permissions that you can use for the supported resource types. |
127
128### listprincipals
129| Method | Path | Description |
130|--------|------|-------------|
131| POST | /listprincipals | Lists the principals that you are sharing resources with or that are sharing resources with you. |
132
133### listreplacepermissionassociationswork
134| Method | Path | Description |
135|--------|------|-------------|
136| POST | /listreplacepermissionassociationswork | Retrieves the current status of the asynchronous tasks performed by RAM when you perform the ReplacePermissionAssociationsWork operation. |
137
138### listresourcesharepermissions
139| Method | Path | Description |
140|--------|------|-------------|
141| POST | /listresourcesharepermissions | Lists the RAM permissions that are associated with a resource share. |
142
143### listresourcetypes
144| Method | Path | Description |
145|--------|------|-------------|
146| POST | /listresourcetypes | Lists the resource types that can be shared by RAM. |
147
148### listresources
149| Method | Path | Description |
150|--------|------|-------------|
151| POST | /listresources | Lists the resources that you added to a resource share or the resources that are shared with you. |
152
153### promotepermissioncreatedfrompolicy
154| Method | Path | Description |
155|--------|------|-------------|
156| POST | /promotepermissioncreatedfrompolicy | When you attach a resource-based policy to a resource, RAM automatically creates a resource share of featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM permissions as the original resource-based policy. However, this type of managed permission is visible to only the resource share owner, and the associated resource share can't be modified by using RAM. This operation creates a separate, fully manageable customer managed permission that has the same IAM permissions as the original resource-based policy. You can associate this customer managed permission to any resource shares. Before you use PromoteResourceShareCreatedFromPolicy, you should first run this operation to ensure that you have an appropriate customer managed permission that can be associated with the promoted resource share. The original CREATED_FROM_POLICY policy isn't deleted, and resource shares using that original policy aren't automatically updated. You can't modify a CREATED_FROM_POLICY resource share so you can't associate the new customer managed permission by using ReplacePermsissionAssociations. However, if you use PromoteResourceShareCreatedFromPolicy, that operation automatically associates the fully manageable customer managed permission to the newly promoted STANDARD resource share. After you promote a resource share, if the original CREATED_FROM_POLICY managed permission has no other associations to A resource share, then RAM automatically deletes it. |
157
158### promoteresourcesharecreatedfrompolicy
159| Method | Path | Description |
160|--------|------|-------------|
161| POST | /promoteresourcesharecreatedfrompolicy | When you attach a resource-based policy to a resource, RAM automatically creates a resource share of featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM permissions as the original resource-based policy. However, this type of managed permission is visible to only the resource share owner, and the associated resource share can't be modified by using RAM. This operation promotes the resource share to a STANDARD resource share that is fully manageable in RAM. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to all of the principals you shared it with. Before you perform this operation, you should first run PromotePermissionCreatedFromPolicyto ensure that you have an appropriate customer managed permission that can be associated with this resource share after its is promoted. If this operation can't find a managed permission that exactly matches the existing CREATED_FROM_POLICY permission, then this operation fails. |
162
163### rejectresourceshareinvitation
164| Method | Path | Description |
165|--------|------|-------------|
166| POST | /rejectresourceshareinvitation | Rejects an invitation to a resource share from another Amazon Web Services account. |
167
168### replacepermissionassociations
169| Method | Path | Description |
170|--------|------|-------------|
171| POST | /replacepermissionassociations | Updates all resource shares that use a managed permission to a different managed permission. This operation always applies the default version of the target managed permission. You can optionally specify that the update applies to only resource shares that currently use a specified version. This enables you to update to the latest version, without changing the which managed permission is used. You can use this operation to update all of your resource shares to use the current default version of the permission by specifying the same value for the fromPermissionArn and toPermissionArn parameters. You can use the optional fromPermissionVersion parameter to update only those resources that use a specified version of the managed permission to the new managed permission. To successfully perform this operation, you must have permission to update the resource-based policy on all affected resource types. |
172
173### setdefaultpermissionversion
174| Method | Path | Description |
175|--------|------|-------------|
176| POST | /setdefaultpermissionversion | Designates the specified version number as the default version for the specified customer managed permission. New resource shares automatically use this new default permission. Existing resource shares continue to use their original permission version, but you can use ReplacePermissionAssociations to update them. |
177
178### tagresource
179| Method | Path | Description |
180|--------|------|-------------|
181| POST | /tagresource | Adds the specified tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share. The tags on a managed permission are the same for all versions of the managed permission. |
182
183### untagresource
184| Method | Path | Description |
185|--------|------|-------------|
186| POST | /untagresource | Removes the specified tag key and value pairs from the specified resource share or managed permission. |
187
188### updateresourceshare
189| Method | Path | Description |
190|--------|------|-------------|
191| POST | /updateresourceshare | Modifies some of the properties of the specified resource share. |
192
193## Common Questions
194
195Match user requests to endpoints in references/api-spec.lap. Key patterns:
196- "Create a acceptresourceshareinvitation?" -> POST /acceptresourceshareinvitation
197- "Create a associateresourceshare?" -> POST /associateresourceshare
198- "Create a associateresourcesharepermission?" -> POST /associateresourcesharepermission
199- "Create a createpermission?" -> POST /createpermission
200- "Create a createpermissionversion?" -> POST /createpermissionversion
201- "Create a createresourceshare?" -> POST /createresourceshare
202- "Create a disassociateresourceshare?" -> POST /disassociateresourceshare
203- "Create a disassociateresourcesharepermission?" -> POST /disassociateresourcesharepermission
204- "Create a enablesharingwithawsorganization?" -> POST /enablesharingwithawsorganization
205- "Create a getpermission?" -> POST /getpermission
206- "Create a getresourcepolicy?" -> POST /getresourcepolicies
207- "Create a getresourceshareassociation?" -> POST /getresourceshareassociations
208- "Create a getresourceshareinvitation?" -> POST /getresourceshareinvitations
209- "Create a getresourceshare?" -> POST /getresourceshares
210- "Create a listpendinginvitationresource?" -> POST /listpendinginvitationresources
211- "Create a listpermissionassociation?" -> POST /listpermissionassociations
212- "Create a listpermissionversion?" -> POST /listpermissionversions
213- "Create a listpermission?" -> POST /listpermissions
214- "Create a listprincipal?" -> POST /listprincipals
215- "Create a listreplacepermissionassociationswork?" -> POST /listreplacepermissionassociationswork
216- "Create a listresourcesharepermission?" -> POST /listresourcesharepermissions
217- "Create a listresourcetype?" -> POST /listresourcetypes
218- "Create a listresource?" -> POST /listresources
219- "Create a promotepermissioncreatedfrompolicy?" -> POST /promotepermissioncreatedfrompolicy
220- "Create a promoteresourcesharecreatedfrompolicy?" -> POST /promoteresourcesharecreatedfrompolicy
221- "Create a rejectresourceshareinvitation?" -> POST /rejectresourceshareinvitation
222- "Create a replacepermissionassociation?" -> POST /replacepermissionassociations
223- "Create a setdefaultpermissionversion?" -> POST /setdefaultpermissionversion
224- "Create a tagresource?" -> POST /tagresource
225- "Create a untagresource?" -> POST /untagresource
226- "Create a updateresourceshare?" -> POST /updateresourceshare
227- "How to authenticate?" -> See Auth section
228
229## Response Tips
230- Check response schemas in references/api-spec.lap for field details
231- Create/update endpoints typically return the created/updated object
232
233## References
234- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas
235
236> Generated from the official API spec by [LAP](https://lap.sh)