ALIYUN::ECS::ImageSharePermission is used to manage the share permissions on a custom image.
Syntax
{
"Type": "ALIYUN::ECS::ImageSharePermission",
"Properties": {
"KeepPermission": Boolean,
"IsPublic": Boolean,
"ImageId": String,
"Accounts": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
KeepPermission | Boolean | No | Yes | Specifies whether to retain the original share permissions when you delete resources. | Valid values:
|
IsPublic | Boolean | No | Yes | Specifies whether to publish or unpublish a community image. | Valid values:
|
ImageId | String | Yes | No | The ID of the custom image. | None |
Accounts | List | No | Yes | The IDs of Alibaba Cloud accounts with which you want to share the custom image. | You can specify up to 10 accounts. If the number of accounts is greater than 10, this property is ignored. |
Return values
Fn::GetAtt
ImageId: the ID of the custom image.