CustomImageProps
Properties for defining a CustomImage
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-customimage
Initializer
import com.aliyun.ros.cdk.ecs.CustomImageProps;
CustomImageProps.builder()
// .architecture(java.lang.String)
// .architecture(IResolvable)
// .bootMode(java.lang.String)
// .bootMode(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .detectionStrategy(java.lang.String)
// .detectionStrategy(IResolvable)
// .diskDeviceMapping(IResolvable)
// .diskDeviceMapping(java.util.List<IResolvable)
// .diskDeviceMapping(DiskDeviceMappingProperty>)
// .imageFamily(java.lang.String)
// .imageFamily(IResolvable)
// .imageName(java.lang.String)
// .imageName(IResolvable)
// .imageVersion(java.lang.String)
// .imageVersion(IResolvable)
// .instanceId(java.lang.String)
// .instanceId(IResolvable)
// .platform(java.lang.String)
// .platform(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .snapshotId(java.lang.String)
// .snapshotId(IResolvable)
// .sourceRegionId(java.lang.String)
// .sourceRegionId(IResolvable)
// .tag(IResolvable)
// .tag(java.util.List<IResolvable)
// .tag(RosTag>)
.build();
Properties
Name | Type | Description |
---|---|---|
architecture |
java.lang.String OR com.aliyun.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. |
bootMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property bootMode: Modify the startup mode of the image. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of the image. |
detectionStrategy |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property detectionStrategy: Image detection policy. |
diskDeviceMapping |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property diskDeviceMapping:. |
imageFamily |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageFamily: The name of the image family of the image. |
imageName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageName: Image name. |
imageVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageVersion: Image version. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: Instance ID. |
platform |
java.lang.String OR com.aliyun.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. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group to which to assign the custom image. |
snapshotId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property snapshotId: The snapshot ID. |
sourceRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceRegionId: ID of the region to where the instance\/snapshot belongs. |
tag |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property tag:. |
architecture
Optional
public java.lang.Object getArchitecture();
- Type: java.lang.String OR com.aliyun.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)
bootMode
Optional
public java.lang.Object getBootMode();
- Type: java.lang.String OR com.aliyun.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.
description
Optional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.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.
detectionStrategy
Optional
public java.lang.Object getDetectionStrategy();
- Type: java.lang.String OR com.aliyun.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.
diskDeviceMapping
Optional
public java.lang.Object getDiskDeviceMapping();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DiskDeviceMappingProperty>
Property diskDeviceMapping:.
imageFamily
Optional
public java.lang.Object getImageFamily();
- Type: java.lang.String OR com.aliyun.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.
imageName
Optional
public java.lang.Object getImageName();
- Type: java.lang.String OR com.aliyun.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://.
imageVersion
Optional
public java.lang.Object getImageVersion();
- Type: java.lang.String OR com.aliyun.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.
instanceId
Optional
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: Instance ID.
platform
Optional
public java.lang.Object getPlatform();
- Type: java.lang.String OR com.aliyun.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.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group to which to assign the custom image.
snapshotId
Optional
public java.lang.Object getSnapshotId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property snapshotId: The snapshot ID.
A custom image is created from the specified snapshot.
sourceRegionId
Optional
public java.lang.Object getSourceRegionId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceRegionId: ID of the region to where the instance\/snapshot belongs.
Default is current region ID.
tag
Optional
public java.lang.Object getTag();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property tag:.