Skip to content

ImagesProps

Properties for defining a Images.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-images

Initializer

import { datasource } from '@alicloud/ros-cdk-ecs'
const imagesProps: datasource.ImagesProps = { ... }

Properties

Name Type Description
actionType string | @alicloud/ros-cdk-core.IResolvable Property actionType: The scenario in which the image is used.
architecture string | @alicloud/ros-cdk-core.IResolvable Property architecture: The image architecture.
imageFamily string | @alicloud/ros-cdk-core.IResolvable Property imageFamily: The name of the image family.
imageId string | @alicloud/ros-cdk-core.IResolvable Property imageId: The ID of the image.
imageName string | @alicloud/ros-cdk-core.IResolvable Property imageName: The name of the image.
imageOwnerAlias string | @alicloud/ros-cdk-core.IResolvable Property imageOwnerAlias: The source of the image.
instanceType string | @alicloud/ros-cdk-core.IResolvable Property instanceType: The instance type for which the image can be used.
isPublic boolean | @alicloud/ros-cdk-core.IResolvable Property isPublic: Specifies whether to query published community images.
isSupportCloudinit boolean | @alicloud/ros-cdk-core.IResolvable Property isSupportCloudinit: Specifies whether the image supports cloud-init.
isSupportIoOptimized boolean | @alicloud/ros-cdk-core.IResolvable Property isSupportIoOptimized: Specifies whether the image can be used on I\/O optimized instances.
osType string | @alicloud/ros-cdk-core.IResolvable Property osType: The operating system type of the image.
refreshOptions string | @alicloud/ros-cdk-core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group to which the custom image belongs.
snapshotId string | @alicloud/ros-cdk-core.IResolvable Property snapshotId: The ID of the snapshot used to create the custom image.
status string | @alicloud/ros-cdk-core.IResolvable Property status: The state of the image.
tags @alicloud/ros-cdk-ecs.datasource.RosImages.TagsProperty[] Property tags: Tags of image.
usage string | @alicloud/ros-cdk-core.IResolvable Property usage: Specifies whether the image is running on an Elastic Compute Service (ECS) instance.

actionTypeOptional

public readonly actionType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property actionType: The scenario in which the image is used.

Default value: CreateEcs. Valid values: CreateEcs: instance creation ChangeOS: replacement of the system disk or operating system


architectureOptional

public readonly architecture: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property architecture: The image architecture.

Valid values: i38 x86_64 arm64


imageFamilyOptional

public readonly imageFamily: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageFamily: The name of the image family.

You can set this parameter to query images of the specified image family. This parameter is empty by default.


imageIdOptional

public readonly imageId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageId: The ID of the image.


imageNameOptional

public readonly imageName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageName: The name of the image.

Support for fuzzy queries using *.


imageOwnerAliasOptional

public readonly imageOwnerAlias: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageOwnerAlias: The source of the image.

Valid values: system: public images provided by Alibaba Cloud. self: your custom images. others: shared images from other Alibaba Cloud accounts, or community images published by other Alibaba Cloud accounts. Take note of the following items: - To query community images, you must set IsPublic to true. To query shared images, you must set IsPublic to false or leave the IsPublic parameter empty. marketplace: Alibaba Cloud Marketplace images. If Alibaba Cloud Marketplace images are returned in the response, you can use the images without subscription. You must pay attention to the billing details of Alibaba Cloud Marketplace images. This parameter is empty by default, which indicates that the results that match system, self, and others are returned.


instanceTypeOptional

public readonly instanceType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceType: The instance type for which the image can be used.


isPublicOptional

public readonly isPublic: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property isPublic: Specifies whether to query published community images.

Valid values: true: queries published community images. When you set this parameter to true, you must set ImageOwnerAlias to others. false: queries other image types than community images. The specific image types to be queried are determined by the ImageOwnerAlias value. Default value: false.


isSupportCloudinitOptional

public readonly isSupportCloudinit: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property isSupportCloudinit: Specifies whether the image supports cloud-init.


isSupportIoOptimizedOptional

public readonly isSupportIoOptimized: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property isSupportIoOptimized: Specifies whether the image can be used on I\/O optimized instances.


osTypeOptional

public readonly osType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property osType: The operating system type of the image.

Valid values: windows linux


refreshOptionsOptional

public readonly refreshOptions: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values: - Never: Never refresh the datasource resource when the stack is updated. - Always: Always refresh the datasource resource when the stack is updated. Default is Never.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group to which the custom image belongs.

If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.


snapshotIdOptional

public readonly snapshotId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property snapshotId: The ID of the snapshot used to create the custom image.


statusOptional

public readonly status: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property status: The state of the image.

Default value: Available. Valid values: Creating: The image is being created. Waiting: The image is waiting to be processed. Available: The image is available. UnAvailable: The image is unavailable. CreateFailed: The image failed to be created. Deprecated: The image is discontinued. You can specify multiple values. Separate multiple values with commas (,).


tagsOptional

public readonly tags: TagsProperty[];
  • Type: @alicloud/ros-cdk-ecs.datasource.RosImages.TagsProperty[]

Property tags: Tags of image.


usageOptional

public readonly usage: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property usage: Specifies whether the image is running on an Elastic Compute Service (ECS) instance.

Valid values: instance: The image is already in use and running on an ECS instance. none: The image is not in use.