Skip to content

CustomImageProps

Properties for defining a CustomImage.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-customimage

Initializer

import ros_cdk_ecs
ros_cdk_ecs.CustomImageProps(
  architecture: typing.Union[str, IResolvable] = None,
  boot_mode: typing.Union[str, IResolvable] = None,
  description: typing.Union[str, IResolvable] = None,
  detection_strategy: typing.Union[str, IResolvable] = None,
  disk_device_mapping: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DiskDeviceMappingProperty]]] = None,
  image_family: typing.Union[str, IResolvable] = None,
  image_name: typing.Union[str, IResolvable] = None,
  image_version: typing.Union[str, IResolvable] = None,
  instance_id: typing.Union[str, IResolvable] = None,
  platform: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  snapshot_id: typing.Union[str, IResolvable] = None,
  source_region_id: typing.Union[str, IResolvable] = None,
  tag: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RosTag]]] = None
)

Properties

Name Type Description
architecture typing.Union[str, ros_cdk_core.IResolvable] Property architecture: After specifying the data disk snapshot as the mirrored system disk, you need to determine the system architecture of the system disk through Architecture.
boot_mode typing.Union[str, ros_cdk_core.IResolvable] Property bootMode: Modify the startup mode of the image.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the image.
detection_strategy typing.Union[str, ros_cdk_core.IResolvable] Property detectionStrategy: Image detection policy.
disk_device_mapping typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DiskDeviceMappingProperty]]] Property diskDeviceMapping:.
image_family typing.Union[str, ros_cdk_core.IResolvable] Property imageFamily: The name of the image family of the image.
image_name typing.Union[str, ros_cdk_core.IResolvable] Property imageName: Image name.
image_version typing.Union[str, ros_cdk_core.IResolvable] Property imageVersion: Image version.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: Instance ID.
platform typing.Union[str, ros_cdk_core.IResolvable] Property platform: After specifying the data disk snapshot as the mirrored system disk, you need to determine the operating system release of the system disk through Platform.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group to which to assign the custom image.
snapshot_id typing.Union[str, ros_cdk_core.IResolvable] Property snapshotId: The snapshot ID.
source_region_id typing.Union[str, ros_cdk_core.IResolvable] Property sourceRegionId: ID of the region to where the instance\/snapshot belongs.
tag typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ros_cdk_core.RosTag]]] Property tag:.

architectureOptional

architecture: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property architecture: After specifying the data disk snapshot as the mirrored system disk, you need to determine the system architecture of the system disk through Architecture.

Ranges: I386 X86_64 (default)


boot_modeOptional

boot_mode: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property bootMode: Modify the startup mode of the image.

Ranges: BIOS: BIOS boot mode. UEFI: UEFI boot mode. You need to know the startup mode supported by the specified image. After modifying the startup mode through this parameter, it must match the startup mode supported by the image itself so that the instance can start normally.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the image.

It can be [0, 256] letters in length. It cannot begin with http:// or https://. Default value: null.


detection_strategyOptional

detection_strategy: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property detectionStrategy: Image detection policy.

If this parameter is not configured, detection will not be triggered. Only Standard detection mode is supported.Currently, most Linux/Windows versions are supported.


disk_device_mappingOptional

disk_device_mapping: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DiskDeviceMappingProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DiskDeviceMappingProperty]]]

Property diskDeviceMapping:.


image_familyOptional

image_family: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property imageFamily: The name of the image family of the image.

The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It cannot contain http:// or https://. It must start with a letter and cannot start with acs: or aliyun.This parameter is empty by default.


image_nameOptional

image_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property imageName: Image name.

Can contain [2, 128] characters in length. Must begin with an English letter or Chinese character. Can contain digits, colons (:), underscores (_), or hyphens (-). Cannot begin with http:// or https://.


image_versionOptional

image_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property imageVersion: Image version.

When you specify an instance ID (InstanceId) and the image of the instance is a cloud market image or a custom image created from a cloud market image. This parameter must be the same as the ImageVersion of the current instance image or set to empty.


instance_idOptional

instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: Instance ID.


platformOptional

platform: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property platform: After specifying the data disk snapshot as the mirrored system disk, you need to determine the operating system release of the system disk through Platform.


resource_group_idOptional

resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


snapshot_idOptional

snapshot_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property snapshotId: The snapshot ID.

A custom image is created from the specified snapshot.


source_region_idOptional

source_region_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property sourceRegionId: ID of the region to where the instance\/snapshot belongs.

Default is current region ID.


tagOptional

tag: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RosTag]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ros_cdk_core.RosTag]]]

Property tag:.