Function
This API is used to modify the properties of a resource share.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
| ram:resourceShares:update | Write | resourceShare * | | - | - |
| - | ram:RequestedAllowExternalPrincipals |
URI
PUT /v1/resource-shares/{resource_share_id}
Table 1 Path Parameters | Parameter | Mandatory | Type | Description |
| resource_share_id | Yes | String | ID of the resource share. |
Request Parameters
Table 3 Request body parameters | Parameter | Mandatory | Type | Description |
| name | Yes | String | Name of the resource share. |
| description | No | String | Description of the resource share. |
| allow_external_principals | No | Boolean | Whether resources can be shared with any accounts outside the organization. |
Response Parameters
Status code: 200
Table 4 Response body parameters | Parameter | Type | Description |
| resource_share | ResourceShare object | Describes a resource share in RAM. |
Table 5 ResourceShare | Parameter | Type | Description |
| id | String | ID of the resource share. |
| name | String | Name of the resource share. |
| description | String | Description of the resource share. |
| allow_external_principals | Boolean | Whether resources can be shared with any accounts outside the organization. |
| owning_account_id | String | ID of the resource owner in a resource share. |
| status | String | Status of the resource share. |
| tags | Array of Tag objects | List of tags attached to the resource share. |
| created_at | String | Time when the resource share was created. |
| updated_at | String | Time when the resource share was last updated. |
Table 6 Tag | Parameter | Type | Description |
| key | String | Identifier or name of the tag key. |
| value | String | Value of the tag key. You can set the tag value to an empty string but not to null. |
Example Requests
Modifying the name or description of a resource share
PUT /v1/resource-shares/{resource_share_id}
{
"name" : "string",
"description" : "string"
} Example Responses
Status code: 200
Request succeeded.
{
"resource_share" : {
"id" : "string",
"name" : "string",
"description" : "string",
"allow_external_principals" : true,
"owning_account_id" : "string",
"status" : "string",
"tags" : [ {
"key" : "string",
"value" : "string"
} ],
"created_at" : "2023-01-30T11:29:17.578Z",
"updated_at" : "2023-01-30T11:29:17.578Z"
}
} Status Codes
| Status Code | Description |
| 200 | Request succeeded. |