ImageSharePermissionProps
Properties for defining a ImageSharePermission.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-imagesharepermission
Initializer
import { ImageSharePermissionProps } from '@alicloud/ros-cdk-ecs'
const imageSharePermissionProps: ImageSharePermissionProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
imageId | string | @alicloud/ros-cdk-core.IResolvable | Property imageId: The ID of the custom image. |
accounts | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property accounts: Alibaba Cloud account IDs authorized to share the image. |
isPublic | boolean | @alicloud/ros-cdk-core.IResolvable | Property isPublic: Specifies whether to publish or unpublish the community image. |
keepPermission | boolean | @alicloud/ros-cdk-core.IResolvable | 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
public readonly imageId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
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. <\/notice>
accountsOptional
public readonly accounts: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property accounts: Alibaba Cloud account IDs authorized to share the image.
isPublicOptional
public readonly isPublic: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
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
public readonly keepPermission: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
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.