Skip to content

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 shared custom image ID.
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: Whether to publish or remove community mirrors.
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 shared custom image ID.


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: Whether to publish or remove community mirrors.

If this property is not set, no changes will be made to the community image


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.