ImageSharePermissionProps
Properties for defining a ImageSharePermission.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-imagesharepermission
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.ImageSharePermissionProps {
ImageId: interface{},
Accounts: interface{},
IsPublic: interface{},
KeepPermission: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
ImageId | interface{} | Property imageId: The ID of the custom image. |
Accounts | interface{} | Property accounts: Alibaba Cloud account IDs authorized to share the image. |
IsPublic | interface{} | Property isPublic: Specifies whether to publish or unpublish the community image. |
KeepPermission | interface{} | Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set. |
ImageIdRequired
ImageId interface{}
- Type: interface{}
Property imageId: The ID of the custom image.
You can no longer share images that are encrypted by using a service key. You can share only images that are encrypted by using a customer managed key (CMK). If you attempt to share an image that is encrypted by using a service key, the request fails.
AccountsOptional
Accounts interface{}
- Type: interface{}
Property accounts: Alibaba Cloud account IDs authorized to share the image.
IsPublicOptional
IsPublic interface{}
- Type: interface{}
Property isPublic: Specifies whether to publish or unpublish the community image.
Valid values:
- true: publishes the image as a community image.
- false: unpublishes the community image. The image becomes a custom image. If the image is a custom image, this setting has no effect. Default value: false.
KeepPermissionOptional
KeepPermission interface{}
- Type: interface{}
Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set.