ImageProps
Properties for defining a Image
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-image
Initializer
import ros_cdk_ens
ros_cdk_ens.ImageProps(
image_name: typing.Union[str, IResolvable],
delete_after_image_upload: typing.Union[bool, IResolvable] = None,
instance_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
image_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property imageName: The name of the image. |
delete_after_image_upload |
typing.Union[bool, 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. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: The ID of the instance corresponding to the image. |
image_name
Required
image_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 (-).
delete_after_image_upload
Optional
delete_after_image_upload: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, 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.
instance_id
Optional
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: The ID of the instance corresponding to the image.