Skip to content

ImageProps

Properties for defining a Image.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-image

Initializer

import com.aliyun.ros.cdk.ens.ImageProps;
ImageProps.builder()
    .imageName(java.lang.String)
    .imageName(IResolvable)
//  .deleteAfterImageUpload(java.lang.Boolean)
//  .deleteAfterImageUpload(IResolvable)
//  .instanceId(java.lang.String)
//  .instanceId(IResolvable)
    .build();

Properties

Name Type Description
imageName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageName: The name of the image.
deleteAfterImageUpload java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deleteAfterImageUpload: Whether the instance is automatically released after the image is packaged and uploaded successfully, only the build machine is supported.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the instance corresponding to the image.

imageNameRequired

public java.lang.Object getImageName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imageName: The name of the image.

The name must be 2 to 128 characters in length. The name can contain letters, digits, colons (:), underscores (), and hyphens (-). It must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (), and hyphens (-).


deleteAfterImageUploadOptional

public java.lang.Object getDeleteAfterImageUpload();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property deleteAfterImageUpload: Whether the instance is automatically released after the image is packaged and uploaded successfully, only the build machine is supported.

Optional values: true: When the instance is released, the image is released together with the instance. false: When the instance is released, the image is retained and is not released together with the instance. Empty means false by default.


instanceIdOptional

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The ID of the instance corresponding to the image.