pulumi-alicloud 3.59.0__py3-none-any.whl → 3.59.0a1720502311__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-alicloud might be problematic. Click here for more details.

Files changed (30) hide show
  1. pulumi_alicloud/__init__.py +0 -48
  2. pulumi_alicloud/adb/resource_group.py +119 -115
  3. pulumi_alicloud/clickhouse/get_regions.py +2 -2
  4. pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +27 -150
  5. pulumi_alicloud/dfs/file_system.py +19 -52
  6. pulumi_alicloud/ecs/_inputs.py +8 -132
  7. pulumi_alicloud/ecs/image.py +121 -607
  8. pulumi_alicloud/ecs/outputs.py +8 -131
  9. pulumi_alicloud/emrv2/_inputs.py +0 -490
  10. pulumi_alicloud/emrv2/cluster.py +14 -14
  11. pulumi_alicloud/emrv2/outputs.py +0 -500
  12. pulumi_alicloud/ens/__init__.py +0 -2
  13. pulumi_alicloud/ens/instance.py +17 -16
  14. pulumi_alicloud/ess/eci_scaling_configuration.py +0 -94
  15. pulumi_alicloud/ess/scaling_group.py +0 -94
  16. pulumi_alicloud/ga/bandwidth_package_attachment.py +34 -34
  17. pulumi_alicloud/ga/listener.py +0 -122
  18. pulumi_alicloud/gpdb/__init__.py +0 -4
  19. pulumi_alicloud/pulumi-plugin.json +1 -1
  20. pulumi_alicloud/redis/tair_instance.py +67 -161
  21. {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/METADATA +1 -1
  22. {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/RECORD +24 -30
  23. {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/WHEEL +1 -1
  24. pulumi_alicloud/ens/eip_instance_attachment.py +0 -480
  25. pulumi_alicloud/ens/nat_gateway.py +0 -458
  26. pulumi_alicloud/gpdb/external_data_service.py +0 -485
  27. pulumi_alicloud/gpdb/remote_adb_data_source.py +0 -763
  28. pulumi_alicloud/gpdb/streaming_data_service.py +0 -481
  29. pulumi_alicloud/gpdb/streaming_data_source.py +0 -645
  30. {pulumi_alicloud-3.59.0.dist-info → pulumi_alicloud-3.59.0a1720502311.dist-info}/top_level.txt +0 -0
@@ -17,18 +17,12 @@ __all__ = ['ImageArgs', 'Image']
17
17
  class ImageArgs:
18
18
  def __init__(__self__, *,
19
19
  architecture: Optional[pulumi.Input[str]] = None,
20
- boot_mode: Optional[pulumi.Input[str]] = None,
21
20
  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
22
21
  description: Optional[pulumi.Input[str]] = None,
23
- detection_strategy: Optional[pulumi.Input[str]] = None,
24
22
  disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]] = None,
25
- features: Optional[pulumi.Input['ImageFeaturesArgs']] = None,
26
23
  force: Optional[pulumi.Input[bool]] = None,
27
- image_family: Optional[pulumi.Input[str]] = None,
28
24
  image_name: Optional[pulumi.Input[str]] = None,
29
- image_version: Optional[pulumi.Input[str]] = None,
30
25
  instance_id: Optional[pulumi.Input[str]] = None,
31
- license_type: Optional[pulumi.Input[str]] = None,
32
26
  name: Optional[pulumi.Input[str]] = None,
33
27
  platform: Optional[pulumi.Input[str]] = None,
34
28
  resource_group_id: Optional[pulumi.Input[str]] = None,
@@ -36,76 +30,40 @@ class ImageArgs:
36
30
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
37
31
  """
38
32
  The set of arguments for constructing a Image resource.
39
- :param pulumi.Input[str] architecture: The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
40
- :param pulumi.Input[str] boot_mode: The new boot mode of the image. Valid values:
41
-
42
- * BIOS: Basic Input/Output System (BIOS)
43
-
44
- * UEFI: Unified Extensible Firmware Interface (UEFI)
45
-
46
- * UEFI-Preferred: BIOS and UEFI
47
-
48
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
49
-
50
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
51
- :param pulumi.Input[bool] delete_auto_snapshot: Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
52
- :param pulumi.Input[str] description: The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
53
- :param pulumi.Input[str] detection_strategy: The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
54
-
55
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
56
- :param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Snapshot information for the image See `disk_device_mapping` below.
57
- :param pulumi.Input['ImageFeaturesArgs'] features: Features See `features` below.
58
- :param pulumi.Input[bool] force: Whether to perform forced deletion. Value range:
59
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
60
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
61
-
62
- Default value: false
63
- :param pulumi.Input[str] image_family: The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
64
- :param pulumi.Input[str] image_name: The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
65
- :param pulumi.Input[str] image_version: The image version.
66
-
67
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
33
+ :param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
34
+ :param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
35
+ :param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Description of the system with disks and snapshots under the image.
36
+ :param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
37
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
38
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
39
+ :param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
68
40
  :param pulumi.Input[str] instance_id: The instance ID.
69
- :param pulumi.Input[str] license_type: The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
70
- :param pulumi.Input[str] name: . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
71
- :param pulumi.Input[str] platform: The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
72
- :param pulumi.Input[str] resource_group_id: The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
73
-
74
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
75
- :param pulumi.Input[str] snapshot_id: The ID of the snapshot that you want to use to create the custom image.
76
- :param pulumi.Input[Mapping[str, Any]] tags: The tag
77
-
78
- The following arguments will be discarded. Please use new fields as soon as possible:
41
+ :param pulumi.Input[str] platform: The distribution of the operating system for the system disk in the custom image.
42
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
43
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
44
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
45
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
46
+ :param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
47
+ :param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a custom image.
48
+ :param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
79
49
  """
80
50
  if architecture is not None:
81
51
  pulumi.set(__self__, "architecture", architecture)
82
- if boot_mode is not None:
83
- pulumi.set(__self__, "boot_mode", boot_mode)
84
52
  if delete_auto_snapshot is not None:
85
53
  pulumi.set(__self__, "delete_auto_snapshot", delete_auto_snapshot)
86
54
  if description is not None:
87
55
  pulumi.set(__self__, "description", description)
88
- if detection_strategy is not None:
89
- pulumi.set(__self__, "detection_strategy", detection_strategy)
90
56
  if disk_device_mappings is not None:
91
57
  pulumi.set(__self__, "disk_device_mappings", disk_device_mappings)
92
- if features is not None:
93
- pulumi.set(__self__, "features", features)
94
58
  if force is not None:
95
59
  pulumi.set(__self__, "force", force)
96
- if image_family is not None:
97
- pulumi.set(__self__, "image_family", image_family)
98
60
  if image_name is not None:
99
61
  pulumi.set(__self__, "image_name", image_name)
100
- if image_version is not None:
101
- pulumi.set(__self__, "image_version", image_version)
102
62
  if instance_id is not None:
103
63
  pulumi.set(__self__, "instance_id", instance_id)
104
- if license_type is not None:
105
- pulumi.set(__self__, "license_type", license_type)
106
64
  if name is not None:
107
- warnings.warn("""Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""", DeprecationWarning)
108
- pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""")
65
+ warnings.warn("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""", DeprecationWarning)
66
+ pulumi.log.warn("""name is deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
109
67
  if name is not None:
110
68
  pulumi.set(__self__, "name", name)
111
69
  if platform is not None:
@@ -121,7 +79,7 @@ class ImageArgs:
121
79
  @pulumi.getter
122
80
  def architecture(self) -> Optional[pulumi.Input[str]]:
123
81
  """
124
- The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
82
+ Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
125
83
  """
126
84
  return pulumi.get(self, "architecture")
127
85
 
@@ -129,34 +87,9 @@ class ImageArgs:
129
87
  def architecture(self, value: Optional[pulumi.Input[str]]):
130
88
  pulumi.set(self, "architecture", value)
131
89
 
132
- @property
133
- @pulumi.getter(name="bootMode")
134
- def boot_mode(self) -> Optional[pulumi.Input[str]]:
135
- """
136
- The new boot mode of the image. Valid values:
137
-
138
- * BIOS: Basic Input/Output System (BIOS)
139
-
140
- * UEFI: Unified Extensible Firmware Interface (UEFI)
141
-
142
- * UEFI-Preferred: BIOS and UEFI
143
-
144
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
145
-
146
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
147
- """
148
- return pulumi.get(self, "boot_mode")
149
-
150
- @boot_mode.setter
151
- def boot_mode(self, value: Optional[pulumi.Input[str]]):
152
- pulumi.set(self, "boot_mode", value)
153
-
154
90
  @property
155
91
  @pulumi.getter(name="deleteAutoSnapshot")
156
92
  def delete_auto_snapshot(self) -> Optional[pulumi.Input[bool]]:
157
- """
158
- Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
159
- """
160
93
  return pulumi.get(self, "delete_auto_snapshot")
161
94
 
162
95
  @delete_auto_snapshot.setter
@@ -167,7 +100,7 @@ class ImageArgs:
167
100
  @pulumi.getter
168
101
  def description(self) -> Optional[pulumi.Input[str]]:
169
102
  """
170
- The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
103
+ The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
171
104
  """
172
105
  return pulumi.get(self, "description")
173
106
 
@@ -175,25 +108,11 @@ class ImageArgs:
175
108
  def description(self, value: Optional[pulumi.Input[str]]):
176
109
  pulumi.set(self, "description", value)
177
110
 
178
- @property
179
- @pulumi.getter(name="detectionStrategy")
180
- def detection_strategy(self) -> Optional[pulumi.Input[str]]:
181
- """
182
- The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
183
-
184
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
185
- """
186
- return pulumi.get(self, "detection_strategy")
187
-
188
- @detection_strategy.setter
189
- def detection_strategy(self, value: Optional[pulumi.Input[str]]):
190
- pulumi.set(self, "detection_strategy", value)
191
-
192
111
  @property
193
112
  @pulumi.getter(name="diskDeviceMappings")
194
113
  def disk_device_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]:
195
114
  """
196
- Snapshot information for the image See `disk_device_mapping` below.
115
+ Description of the system with disks and snapshots under the image.
197
116
  """
198
117
  return pulumi.get(self, "disk_device_mappings")
199
118
 
@@ -201,27 +120,13 @@ class ImageArgs:
201
120
  def disk_device_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]):
202
121
  pulumi.set(self, "disk_device_mappings", value)
203
122
 
204
- @property
205
- @pulumi.getter
206
- def features(self) -> Optional[pulumi.Input['ImageFeaturesArgs']]:
207
- """
208
- Features See `features` below.
209
- """
210
- return pulumi.get(self, "features")
211
-
212
- @features.setter
213
- def features(self, value: Optional[pulumi.Input['ImageFeaturesArgs']]):
214
- pulumi.set(self, "features", value)
215
-
216
123
  @property
217
124
  @pulumi.getter
218
125
  def force(self) -> Optional[pulumi.Input[bool]]:
219
126
  """
220
- Whether to perform forced deletion. Value range:
221
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
222
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
223
-
224
- Default value: false
127
+ Indicates whether to force delete the custom image, Default is `false`.
128
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
129
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
225
130
  """
226
131
  return pulumi.get(self, "force")
227
132
 
@@ -229,23 +134,11 @@ class ImageArgs:
229
134
  def force(self, value: Optional[pulumi.Input[bool]]):
230
135
  pulumi.set(self, "force", value)
231
136
 
232
- @property
233
- @pulumi.getter(name="imageFamily")
234
- def image_family(self) -> Optional[pulumi.Input[str]]:
235
- """
236
- The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
237
- """
238
- return pulumi.get(self, "image_family")
239
-
240
- @image_family.setter
241
- def image_family(self, value: Optional[pulumi.Input[str]]):
242
- pulumi.set(self, "image_family", value)
243
-
244
137
  @property
245
138
  @pulumi.getter(name="imageName")
246
139
  def image_name(self) -> Optional[pulumi.Input[str]]:
247
140
  """
248
- The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
141
+ The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
249
142
  """
250
143
  return pulumi.get(self, "image_name")
251
144
 
@@ -253,20 +146,6 @@ class ImageArgs:
253
146
  def image_name(self, value: Optional[pulumi.Input[str]]):
254
147
  pulumi.set(self, "image_name", value)
255
148
 
256
- @property
257
- @pulumi.getter(name="imageVersion")
258
- def image_version(self) -> Optional[pulumi.Input[str]]:
259
- """
260
- The image version.
261
-
262
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
263
- """
264
- return pulumi.get(self, "image_version")
265
-
266
- @image_version.setter
267
- def image_version(self, value: Optional[pulumi.Input[str]]):
268
- pulumi.set(self, "image_version", value)
269
-
270
149
  @property
271
150
  @pulumi.getter(name="instanceId")
272
151
  def instance_id(self) -> Optional[pulumi.Input[str]]:
@@ -279,25 +158,10 @@ class ImageArgs:
279
158
  def instance_id(self, value: Optional[pulumi.Input[str]]):
280
159
  pulumi.set(self, "instance_id", value)
281
160
 
282
- @property
283
- @pulumi.getter(name="licenseType")
284
- def license_type(self) -> Optional[pulumi.Input[str]]:
285
- """
286
- The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
287
- """
288
- return pulumi.get(self, "license_type")
289
-
290
- @license_type.setter
291
- def license_type(self, value: Optional[pulumi.Input[str]]):
292
- pulumi.set(self, "license_type", value)
293
-
294
161
  @property
295
162
  @pulumi.getter
296
- @_utilities.deprecated("""Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""")
163
+ @_utilities.deprecated("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
297
164
  def name(self) -> Optional[pulumi.Input[str]]:
298
- """
299
- . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
300
- """
301
165
  return pulumi.get(self, "name")
302
166
 
303
167
  @name.setter
@@ -308,7 +172,11 @@ class ImageArgs:
308
172
  @pulumi.getter
309
173
  def platform(self) -> Optional[pulumi.Input[str]]:
310
174
  """
311
- The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
175
+ The distribution of the operating system for the system disk in the custom image.
176
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
177
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
178
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
179
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
312
180
  """
313
181
  return pulumi.get(self, "platform")
314
182
 
@@ -320,9 +188,7 @@ class ImageArgs:
320
188
  @pulumi.getter(name="resourceGroupId")
321
189
  def resource_group_id(self) -> Optional[pulumi.Input[str]]:
322
190
  """
323
- The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
324
-
325
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
191
+ The ID of the enterprise resource group to which a custom image belongs
326
192
  """
327
193
  return pulumi.get(self, "resource_group_id")
328
194
 
@@ -334,7 +200,7 @@ class ImageArgs:
334
200
  @pulumi.getter(name="snapshotId")
335
201
  def snapshot_id(self) -> Optional[pulumi.Input[str]]:
336
202
  """
337
- The ID of the snapshot that you want to use to create the custom image.
203
+ Specifies a snapshot that is used to create a custom image.
338
204
  """
339
205
  return pulumi.get(self, "snapshot_id")
340
206
 
@@ -346,9 +212,7 @@ class ImageArgs:
346
212
  @pulumi.getter
347
213
  def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
348
214
  """
349
- The tag
350
-
351
- The following arguments will be discarded. Please use new fields as soon as possible:
215
+ The tag value of an image. The value of N ranges from 1 to 20.
352
216
  """
353
217
  return pulumi.get(self, "tags")
354
218
 
@@ -361,101 +225,53 @@ class ImageArgs:
361
225
  class _ImageState:
362
226
  def __init__(__self__, *,
363
227
  architecture: Optional[pulumi.Input[str]] = None,
364
- boot_mode: Optional[pulumi.Input[str]] = None,
365
- create_time: Optional[pulumi.Input[str]] = None,
366
228
  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
367
229
  description: Optional[pulumi.Input[str]] = None,
368
- detection_strategy: Optional[pulumi.Input[str]] = None,
369
230
  disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]] = None,
370
- features: Optional[pulumi.Input['ImageFeaturesArgs']] = None,
371
231
  force: Optional[pulumi.Input[bool]] = None,
372
- image_family: Optional[pulumi.Input[str]] = None,
373
232
  image_name: Optional[pulumi.Input[str]] = None,
374
- image_version: Optional[pulumi.Input[str]] = None,
375
233
  instance_id: Optional[pulumi.Input[str]] = None,
376
- license_type: Optional[pulumi.Input[str]] = None,
377
234
  name: Optional[pulumi.Input[str]] = None,
378
235
  platform: Optional[pulumi.Input[str]] = None,
379
236
  resource_group_id: Optional[pulumi.Input[str]] = None,
380
237
  snapshot_id: Optional[pulumi.Input[str]] = None,
381
- status: Optional[pulumi.Input[str]] = None,
382
238
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
383
239
  """
384
240
  Input properties used for looking up and filtering Image resources.
385
- :param pulumi.Input[str] architecture: The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
386
- :param pulumi.Input[str] boot_mode: The new boot mode of the image. Valid values:
387
-
388
- * BIOS: Basic Input/Output System (BIOS)
389
-
390
- * UEFI: Unified Extensible Firmware Interface (UEFI)
391
-
392
- * UEFI-Preferred: BIOS and UEFI
393
-
394
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
395
-
396
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
397
- :param pulumi.Input[str] create_time: The create time
398
- :param pulumi.Input[bool] delete_auto_snapshot: Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
399
- :param pulumi.Input[str] description: The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
400
- :param pulumi.Input[str] detection_strategy: The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
401
-
402
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
403
- :param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Snapshot information for the image See `disk_device_mapping` below.
404
- :param pulumi.Input['ImageFeaturesArgs'] features: Features See `features` below.
405
- :param pulumi.Input[bool] force: Whether to perform forced deletion. Value range:
406
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
407
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
408
-
409
- Default value: false
410
- :param pulumi.Input[str] image_family: The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
411
- :param pulumi.Input[str] image_name: The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
412
- :param pulumi.Input[str] image_version: The image version.
413
-
414
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
241
+ :param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
242
+ :param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
243
+ :param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Description of the system with disks and snapshots under the image.
244
+ :param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
245
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
246
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
247
+ :param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
415
248
  :param pulumi.Input[str] instance_id: The instance ID.
416
- :param pulumi.Input[str] license_type: The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
417
- :param pulumi.Input[str] name: . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
418
- :param pulumi.Input[str] platform: The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
419
- :param pulumi.Input[str] resource_group_id: The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
420
-
421
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
422
- :param pulumi.Input[str] snapshot_id: The ID of the snapshot that you want to use to create the custom image.
423
- :param pulumi.Input[str] status: The status of the image. By default, if you do not specify this parameter, only images in the Available state are returned.
424
- :param pulumi.Input[Mapping[str, Any]] tags: The tag
425
-
426
- The following arguments will be discarded. Please use new fields as soon as possible:
249
+ :param pulumi.Input[str] platform: The distribution of the operating system for the system disk in the custom image.
250
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
251
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
252
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
253
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
254
+ :param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
255
+ :param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a custom image.
256
+ :param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
427
257
  """
428
258
  if architecture is not None:
429
259
  pulumi.set(__self__, "architecture", architecture)
430
- if boot_mode is not None:
431
- pulumi.set(__self__, "boot_mode", boot_mode)
432
- if create_time is not None:
433
- pulumi.set(__self__, "create_time", create_time)
434
260
  if delete_auto_snapshot is not None:
435
261
  pulumi.set(__self__, "delete_auto_snapshot", delete_auto_snapshot)
436
262
  if description is not None:
437
263
  pulumi.set(__self__, "description", description)
438
- if detection_strategy is not None:
439
- pulumi.set(__self__, "detection_strategy", detection_strategy)
440
264
  if disk_device_mappings is not None:
441
265
  pulumi.set(__self__, "disk_device_mappings", disk_device_mappings)
442
- if features is not None:
443
- pulumi.set(__self__, "features", features)
444
266
  if force is not None:
445
267
  pulumi.set(__self__, "force", force)
446
- if image_family is not None:
447
- pulumi.set(__self__, "image_family", image_family)
448
268
  if image_name is not None:
449
269
  pulumi.set(__self__, "image_name", image_name)
450
- if image_version is not None:
451
- pulumi.set(__self__, "image_version", image_version)
452
270
  if instance_id is not None:
453
271
  pulumi.set(__self__, "instance_id", instance_id)
454
- if license_type is not None:
455
- pulumi.set(__self__, "license_type", license_type)
456
272
  if name is not None:
457
- warnings.warn("""Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""", DeprecationWarning)
458
- pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""")
273
+ warnings.warn("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""", DeprecationWarning)
274
+ pulumi.log.warn("""name is deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
459
275
  if name is not None:
460
276
  pulumi.set(__self__, "name", name)
461
277
  if platform is not None:
@@ -464,8 +280,6 @@ class _ImageState:
464
280
  pulumi.set(__self__, "resource_group_id", resource_group_id)
465
281
  if snapshot_id is not None:
466
282
  pulumi.set(__self__, "snapshot_id", snapshot_id)
467
- if status is not None:
468
- pulumi.set(__self__, "status", status)
469
283
  if tags is not None:
470
284
  pulumi.set(__self__, "tags", tags)
471
285
 
@@ -473,7 +287,7 @@ class _ImageState:
473
287
  @pulumi.getter
474
288
  def architecture(self) -> Optional[pulumi.Input[str]]:
475
289
  """
476
- The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
290
+ Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
477
291
  """
478
292
  return pulumi.get(self, "architecture")
479
293
 
@@ -481,46 +295,9 @@ class _ImageState:
481
295
  def architecture(self, value: Optional[pulumi.Input[str]]):
482
296
  pulumi.set(self, "architecture", value)
483
297
 
484
- @property
485
- @pulumi.getter(name="bootMode")
486
- def boot_mode(self) -> Optional[pulumi.Input[str]]:
487
- """
488
- The new boot mode of the image. Valid values:
489
-
490
- * BIOS: Basic Input/Output System (BIOS)
491
-
492
- * UEFI: Unified Extensible Firmware Interface (UEFI)
493
-
494
- * UEFI-Preferred: BIOS and UEFI
495
-
496
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
497
-
498
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
499
- """
500
- return pulumi.get(self, "boot_mode")
501
-
502
- @boot_mode.setter
503
- def boot_mode(self, value: Optional[pulumi.Input[str]]):
504
- pulumi.set(self, "boot_mode", value)
505
-
506
- @property
507
- @pulumi.getter(name="createTime")
508
- def create_time(self) -> Optional[pulumi.Input[str]]:
509
- """
510
- The create time
511
- """
512
- return pulumi.get(self, "create_time")
513
-
514
- @create_time.setter
515
- def create_time(self, value: Optional[pulumi.Input[str]]):
516
- pulumi.set(self, "create_time", value)
517
-
518
298
  @property
519
299
  @pulumi.getter(name="deleteAutoSnapshot")
520
300
  def delete_auto_snapshot(self) -> Optional[pulumi.Input[bool]]:
521
- """
522
- Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
523
- """
524
301
  return pulumi.get(self, "delete_auto_snapshot")
525
302
 
526
303
  @delete_auto_snapshot.setter
@@ -531,7 +308,7 @@ class _ImageState:
531
308
  @pulumi.getter
532
309
  def description(self) -> Optional[pulumi.Input[str]]:
533
310
  """
534
- The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
311
+ The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
535
312
  """
536
313
  return pulumi.get(self, "description")
537
314
 
@@ -539,25 +316,11 @@ class _ImageState:
539
316
  def description(self, value: Optional[pulumi.Input[str]]):
540
317
  pulumi.set(self, "description", value)
541
318
 
542
- @property
543
- @pulumi.getter(name="detectionStrategy")
544
- def detection_strategy(self) -> Optional[pulumi.Input[str]]:
545
- """
546
- The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
547
-
548
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
549
- """
550
- return pulumi.get(self, "detection_strategy")
551
-
552
- @detection_strategy.setter
553
- def detection_strategy(self, value: Optional[pulumi.Input[str]]):
554
- pulumi.set(self, "detection_strategy", value)
555
-
556
319
  @property
557
320
  @pulumi.getter(name="diskDeviceMappings")
558
321
  def disk_device_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]:
559
322
  """
560
- Snapshot information for the image See `disk_device_mapping` below.
323
+ Description of the system with disks and snapshots under the image.
561
324
  """
562
325
  return pulumi.get(self, "disk_device_mappings")
563
326
 
@@ -565,27 +328,13 @@ class _ImageState:
565
328
  def disk_device_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]):
566
329
  pulumi.set(self, "disk_device_mappings", value)
567
330
 
568
- @property
569
- @pulumi.getter
570
- def features(self) -> Optional[pulumi.Input['ImageFeaturesArgs']]:
571
- """
572
- Features See `features` below.
573
- """
574
- return pulumi.get(self, "features")
575
-
576
- @features.setter
577
- def features(self, value: Optional[pulumi.Input['ImageFeaturesArgs']]):
578
- pulumi.set(self, "features", value)
579
-
580
331
  @property
581
332
  @pulumi.getter
582
333
  def force(self) -> Optional[pulumi.Input[bool]]:
583
334
  """
584
- Whether to perform forced deletion. Value range:
585
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
586
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
587
-
588
- Default value: false
335
+ Indicates whether to force delete the custom image, Default is `false`.
336
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
337
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
589
338
  """
590
339
  return pulumi.get(self, "force")
591
340
 
@@ -593,23 +342,11 @@ class _ImageState:
593
342
  def force(self, value: Optional[pulumi.Input[bool]]):
594
343
  pulumi.set(self, "force", value)
595
344
 
596
- @property
597
- @pulumi.getter(name="imageFamily")
598
- def image_family(self) -> Optional[pulumi.Input[str]]:
599
- """
600
- The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
601
- """
602
- return pulumi.get(self, "image_family")
603
-
604
- @image_family.setter
605
- def image_family(self, value: Optional[pulumi.Input[str]]):
606
- pulumi.set(self, "image_family", value)
607
-
608
345
  @property
609
346
  @pulumi.getter(name="imageName")
610
347
  def image_name(self) -> Optional[pulumi.Input[str]]:
611
348
  """
612
- The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
349
+ The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
613
350
  """
614
351
  return pulumi.get(self, "image_name")
615
352
 
@@ -617,20 +354,6 @@ class _ImageState:
617
354
  def image_name(self, value: Optional[pulumi.Input[str]]):
618
355
  pulumi.set(self, "image_name", value)
619
356
 
620
- @property
621
- @pulumi.getter(name="imageVersion")
622
- def image_version(self) -> Optional[pulumi.Input[str]]:
623
- """
624
- The image version.
625
-
626
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
627
- """
628
- return pulumi.get(self, "image_version")
629
-
630
- @image_version.setter
631
- def image_version(self, value: Optional[pulumi.Input[str]]):
632
- pulumi.set(self, "image_version", value)
633
-
634
357
  @property
635
358
  @pulumi.getter(name="instanceId")
636
359
  def instance_id(self) -> Optional[pulumi.Input[str]]:
@@ -643,25 +366,10 @@ class _ImageState:
643
366
  def instance_id(self, value: Optional[pulumi.Input[str]]):
644
367
  pulumi.set(self, "instance_id", value)
645
368
 
646
- @property
647
- @pulumi.getter(name="licenseType")
648
- def license_type(self) -> Optional[pulumi.Input[str]]:
649
- """
650
- The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
651
- """
652
- return pulumi.get(self, "license_type")
653
-
654
- @license_type.setter
655
- def license_type(self, value: Optional[pulumi.Input[str]]):
656
- pulumi.set(self, "license_type", value)
657
-
658
369
  @property
659
370
  @pulumi.getter
660
- @_utilities.deprecated("""Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""")
371
+ @_utilities.deprecated("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
661
372
  def name(self) -> Optional[pulumi.Input[str]]:
662
- """
663
- . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
664
- """
665
373
  return pulumi.get(self, "name")
666
374
 
667
375
  @name.setter
@@ -672,7 +380,11 @@ class _ImageState:
672
380
  @pulumi.getter
673
381
  def platform(self) -> Optional[pulumi.Input[str]]:
674
382
  """
675
- The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
383
+ The distribution of the operating system for the system disk in the custom image.
384
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
385
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
386
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
387
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
676
388
  """
677
389
  return pulumi.get(self, "platform")
678
390
 
@@ -684,9 +396,7 @@ class _ImageState:
684
396
  @pulumi.getter(name="resourceGroupId")
685
397
  def resource_group_id(self) -> Optional[pulumi.Input[str]]:
686
398
  """
687
- The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
688
-
689
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
399
+ The ID of the enterprise resource group to which a custom image belongs
690
400
  """
691
401
  return pulumi.get(self, "resource_group_id")
692
402
 
@@ -698,7 +408,7 @@ class _ImageState:
698
408
  @pulumi.getter(name="snapshotId")
699
409
  def snapshot_id(self) -> Optional[pulumi.Input[str]]:
700
410
  """
701
- The ID of the snapshot that you want to use to create the custom image.
411
+ Specifies a snapshot that is used to create a custom image.
702
412
  """
703
413
  return pulumi.get(self, "snapshot_id")
704
414
 
@@ -706,25 +416,11 @@ class _ImageState:
706
416
  def snapshot_id(self, value: Optional[pulumi.Input[str]]):
707
417
  pulumi.set(self, "snapshot_id", value)
708
418
 
709
- @property
710
- @pulumi.getter
711
- def status(self) -> Optional[pulumi.Input[str]]:
712
- """
713
- The status of the image. By default, if you do not specify this parameter, only images in the Available state are returned.
714
- """
715
- return pulumi.get(self, "status")
716
-
717
- @status.setter
718
- def status(self, value: Optional[pulumi.Input[str]]):
719
- pulumi.set(self, "status", value)
720
-
721
419
  @property
722
420
  @pulumi.getter
723
421
  def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
724
422
  """
725
- The tag
726
-
727
- The following arguments will be discarded. Please use new fields as soon as possible:
423
+ The tag value of an image. The value of N ranges from 1 to 20.
728
424
  """
729
425
  return pulumi.get(self, "tags")
730
426
 
@@ -739,18 +435,12 @@ class Image(pulumi.CustomResource):
739
435
  resource_name: str,
740
436
  opts: Optional[pulumi.ResourceOptions] = None,
741
437
  architecture: Optional[pulumi.Input[str]] = None,
742
- boot_mode: Optional[pulumi.Input[str]] = None,
743
438
  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
744
439
  description: Optional[pulumi.Input[str]] = None,
745
- detection_strategy: Optional[pulumi.Input[str]] = None,
746
440
  disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
747
- features: Optional[pulumi.Input[pulumi.InputType['ImageFeaturesArgs']]] = None,
748
441
  force: Optional[pulumi.Input[bool]] = None,
749
- image_family: Optional[pulumi.Input[str]] = None,
750
442
  image_name: Optional[pulumi.Input[str]] = None,
751
- image_version: Optional[pulumi.Input[str]] = None,
752
443
  instance_id: Optional[pulumi.Input[str]] = None,
753
- license_type: Optional[pulumi.Input[str]] = None,
754
444
  name: Optional[pulumi.Input[str]] = None,
755
445
  platform: Optional[pulumi.Input[str]] = None,
756
446
  resource_group_id: Optional[pulumi.Input[str]] = None,
@@ -758,7 +448,7 @@ class Image(pulumi.CustomResource):
758
448
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
759
449
  __props__=None):
760
450
  """
761
- Provides a ECS Image resource.
451
+ Creates a custom image. You can then use a custom image to create ECS instances (RunInstances) or change the system disk for an existing instance (ReplaceSystemDisk).
762
452
 
763
453
  > **NOTE:** If you want to create a template from an ECS instance, you can specify the instance ID (InstanceId) to create a custom image. You must make sure that the status of the specified instance is Running or Stopped. After a successful invocation, each disk of the specified instance has a new snapshot created.
764
454
 
@@ -766,14 +456,10 @@ class Image(pulumi.CustomResource):
766
456
 
767
457
  > **NOTE:** If you want to combine snapshots of multiple disks into an image template, you can specify DiskDeviceMapping to create a custom image.
768
458
 
769
- For information about ECS Image and how to use it, see [What is Image](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-ecs-2014-05-26-createimage).
770
-
771
459
  > **NOTE:** Available since v1.64.0.
772
460
 
773
461
  ## Example Usage
774
462
 
775
- Basic Usage
776
-
777
463
  ```python
778
464
  import pulumi
779
465
  import pulumi_alicloud as alicloud
@@ -782,8 +468,7 @@ class Image(pulumi.CustomResource):
782
468
  default = alicloud.get_zones(available_resource_creation="Instance")
783
469
  default_get_instance_types = alicloud.ecs.get_instance_types(instance_type_family="ecs.sn1ne")
784
470
  default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
785
- owners="system",
786
- instance_type=default_get_instance_types.ids[0])
471
+ owners="system")
787
472
  default_network = alicloud.vpc.Network("default",
788
473
  vpc_name="terraform-example",
789
474
  cidr_block="172.17.3.0/24")
@@ -820,54 +505,30 @@ class Image(pulumi.CustomResource):
820
505
 
821
506
  ## Import
822
507
 
823
- ECS Image can be imported using the id, e.g.
508
+ image can be imported using the id, e.g.
824
509
 
825
510
  ```sh
826
- $ pulumi import alicloud:ecs/image:Image example <id>
511
+ $ pulumi import alicloud:ecs/image:Image default m-uf66871ape***yg1q***
827
512
  ```
828
513
 
829
514
  :param str resource_name: The name of the resource.
830
515
  :param pulumi.ResourceOptions opts: Options for the resource.
831
- :param pulumi.Input[str] architecture: The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
832
- :param pulumi.Input[str] boot_mode: The new boot mode of the image. Valid values:
833
-
834
- * BIOS: Basic Input/Output System (BIOS)
835
-
836
- * UEFI: Unified Extensible Firmware Interface (UEFI)
837
-
838
- * UEFI-Preferred: BIOS and UEFI
839
-
840
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
841
-
842
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
843
- :param pulumi.Input[bool] delete_auto_snapshot: Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
844
- :param pulumi.Input[str] description: The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
845
- :param pulumi.Input[str] detection_strategy: The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
846
-
847
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
848
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Snapshot information for the image See `disk_device_mapping` below.
849
- :param pulumi.Input[pulumi.InputType['ImageFeaturesArgs']] features: Features See `features` below.
850
- :param pulumi.Input[bool] force: Whether to perform forced deletion. Value range:
851
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
852
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
853
-
854
- Default value: false
855
- :param pulumi.Input[str] image_family: The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
856
- :param pulumi.Input[str] image_name: The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
857
- :param pulumi.Input[str] image_version: The image version.
858
-
859
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
516
+ :param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
517
+ :param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
518
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Description of the system with disks and snapshots under the image.
519
+ :param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
520
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
521
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
522
+ :param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
860
523
  :param pulumi.Input[str] instance_id: The instance ID.
861
- :param pulumi.Input[str] license_type: The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
862
- :param pulumi.Input[str] name: . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
863
- :param pulumi.Input[str] platform: The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
864
- :param pulumi.Input[str] resource_group_id: The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
865
-
866
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
867
- :param pulumi.Input[str] snapshot_id: The ID of the snapshot that you want to use to create the custom image.
868
- :param pulumi.Input[Mapping[str, Any]] tags: The tag
869
-
870
- The following arguments will be discarded. Please use new fields as soon as possible:
524
+ :param pulumi.Input[str] platform: The distribution of the operating system for the system disk in the custom image.
525
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
526
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
527
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
528
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
529
+ :param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
530
+ :param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a custom image.
531
+ :param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
871
532
  """
872
533
  ...
873
534
  @overload
@@ -876,7 +537,7 @@ class Image(pulumi.CustomResource):
876
537
  args: Optional[ImageArgs] = None,
877
538
  opts: Optional[pulumi.ResourceOptions] = None):
878
539
  """
879
- Provides a ECS Image resource.
540
+ Creates a custom image. You can then use a custom image to create ECS instances (RunInstances) or change the system disk for an existing instance (ReplaceSystemDisk).
880
541
 
881
542
  > **NOTE:** If you want to create a template from an ECS instance, you can specify the instance ID (InstanceId) to create a custom image. You must make sure that the status of the specified instance is Running or Stopped. After a successful invocation, each disk of the specified instance has a new snapshot created.
882
543
 
@@ -884,14 +545,10 @@ class Image(pulumi.CustomResource):
884
545
 
885
546
  > **NOTE:** If you want to combine snapshots of multiple disks into an image template, you can specify DiskDeviceMapping to create a custom image.
886
547
 
887
- For information about ECS Image and how to use it, see [What is Image](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-ecs-2014-05-26-createimage).
888
-
889
548
  > **NOTE:** Available since v1.64.0.
890
549
 
891
550
  ## Example Usage
892
551
 
893
- Basic Usage
894
-
895
552
  ```python
896
553
  import pulumi
897
554
  import pulumi_alicloud as alicloud
@@ -900,8 +557,7 @@ class Image(pulumi.CustomResource):
900
557
  default = alicloud.get_zones(available_resource_creation="Instance")
901
558
  default_get_instance_types = alicloud.ecs.get_instance_types(instance_type_family="ecs.sn1ne")
902
559
  default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
903
- owners="system",
904
- instance_type=default_get_instance_types.ids[0])
560
+ owners="system")
905
561
  default_network = alicloud.vpc.Network("default",
906
562
  vpc_name="terraform-example",
907
563
  cidr_block="172.17.3.0/24")
@@ -938,10 +594,10 @@ class Image(pulumi.CustomResource):
938
594
 
939
595
  ## Import
940
596
 
941
- ECS Image can be imported using the id, e.g.
597
+ image can be imported using the id, e.g.
942
598
 
943
599
  ```sh
944
- $ pulumi import alicloud:ecs/image:Image example <id>
600
+ $ pulumi import alicloud:ecs/image:Image default m-uf66871ape***yg1q***
945
601
  ```
946
602
 
947
603
  :param str resource_name: The name of the resource.
@@ -960,18 +616,12 @@ class Image(pulumi.CustomResource):
960
616
  resource_name: str,
961
617
  opts: Optional[pulumi.ResourceOptions] = None,
962
618
  architecture: Optional[pulumi.Input[str]] = None,
963
- boot_mode: Optional[pulumi.Input[str]] = None,
964
619
  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
965
620
  description: Optional[pulumi.Input[str]] = None,
966
- detection_strategy: Optional[pulumi.Input[str]] = None,
967
621
  disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
968
- features: Optional[pulumi.Input[pulumi.InputType['ImageFeaturesArgs']]] = None,
969
622
  force: Optional[pulumi.Input[bool]] = None,
970
- image_family: Optional[pulumi.Input[str]] = None,
971
623
  image_name: Optional[pulumi.Input[str]] = None,
972
- image_version: Optional[pulumi.Input[str]] = None,
973
624
  instance_id: Optional[pulumi.Input[str]] = None,
974
- license_type: Optional[pulumi.Input[str]] = None,
975
625
  name: Optional[pulumi.Input[str]] = None,
976
626
  platform: Optional[pulumi.Input[str]] = None,
977
627
  resource_group_id: Optional[pulumi.Input[str]] = None,
@@ -987,25 +637,17 @@ class Image(pulumi.CustomResource):
987
637
  __props__ = ImageArgs.__new__(ImageArgs)
988
638
 
989
639
  __props__.__dict__["architecture"] = architecture
990
- __props__.__dict__["boot_mode"] = boot_mode
991
640
  __props__.__dict__["delete_auto_snapshot"] = delete_auto_snapshot
992
641
  __props__.__dict__["description"] = description
993
- __props__.__dict__["detection_strategy"] = detection_strategy
994
642
  __props__.__dict__["disk_device_mappings"] = disk_device_mappings
995
- __props__.__dict__["features"] = features
996
643
  __props__.__dict__["force"] = force
997
- __props__.__dict__["image_family"] = image_family
998
644
  __props__.__dict__["image_name"] = image_name
999
- __props__.__dict__["image_version"] = image_version
1000
645
  __props__.__dict__["instance_id"] = instance_id
1001
- __props__.__dict__["license_type"] = license_type
1002
646
  __props__.__dict__["name"] = name
1003
647
  __props__.__dict__["platform"] = platform
1004
648
  __props__.__dict__["resource_group_id"] = resource_group_id
1005
649
  __props__.__dict__["snapshot_id"] = snapshot_id
1006
650
  __props__.__dict__["tags"] = tags
1007
- __props__.__dict__["create_time"] = None
1008
- __props__.__dict__["status"] = None
1009
651
  super(Image, __self__).__init__(
1010
652
  'alicloud:ecs/image:Image',
1011
653
  resource_name,
@@ -1017,24 +659,16 @@ class Image(pulumi.CustomResource):
1017
659
  id: pulumi.Input[str],
1018
660
  opts: Optional[pulumi.ResourceOptions] = None,
1019
661
  architecture: Optional[pulumi.Input[str]] = None,
1020
- boot_mode: Optional[pulumi.Input[str]] = None,
1021
- create_time: Optional[pulumi.Input[str]] = None,
1022
662
  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
1023
663
  description: Optional[pulumi.Input[str]] = None,
1024
- detection_strategy: Optional[pulumi.Input[str]] = None,
1025
664
  disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
1026
- features: Optional[pulumi.Input[pulumi.InputType['ImageFeaturesArgs']]] = None,
1027
665
  force: Optional[pulumi.Input[bool]] = None,
1028
- image_family: Optional[pulumi.Input[str]] = None,
1029
666
  image_name: Optional[pulumi.Input[str]] = None,
1030
- image_version: Optional[pulumi.Input[str]] = None,
1031
667
  instance_id: Optional[pulumi.Input[str]] = None,
1032
- license_type: Optional[pulumi.Input[str]] = None,
1033
668
  name: Optional[pulumi.Input[str]] = None,
1034
669
  platform: Optional[pulumi.Input[str]] = None,
1035
670
  resource_group_id: Optional[pulumi.Input[str]] = None,
1036
671
  snapshot_id: Optional[pulumi.Input[str]] = None,
1037
- status: Optional[pulumi.Input[str]] = None,
1038
672
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None) -> 'Image':
1039
673
  """
1040
674
  Get an existing Image resource's state with the given name, id, and optional extra
@@ -1043,72 +677,38 @@ class Image(pulumi.CustomResource):
1043
677
  :param str resource_name: The unique name of the resulting resource.
1044
678
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1045
679
  :param pulumi.ResourceOptions opts: Options for the resource.
1046
- :param pulumi.Input[str] architecture: The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
1047
- :param pulumi.Input[str] boot_mode: The new boot mode of the image. Valid values:
1048
-
1049
- * BIOS: Basic Input/Output System (BIOS)
1050
-
1051
- * UEFI: Unified Extensible Firmware Interface (UEFI)
1052
-
1053
- * UEFI-Preferred: BIOS and UEFI
1054
-
1055
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
1056
-
1057
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
1058
- :param pulumi.Input[str] create_time: The create time
1059
- :param pulumi.Input[bool] delete_auto_snapshot: Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
1060
- :param pulumi.Input[str] description: The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
1061
- :param pulumi.Input[str] detection_strategy: The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
1062
-
1063
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
1064
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Snapshot information for the image See `disk_device_mapping` below.
1065
- :param pulumi.Input[pulumi.InputType['ImageFeaturesArgs']] features: Features See `features` below.
1066
- :param pulumi.Input[bool] force: Whether to perform forced deletion. Value range:
1067
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
1068
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
1069
-
1070
- Default value: false
1071
- :param pulumi.Input[str] image_family: The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
1072
- :param pulumi.Input[str] image_name: The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
1073
- :param pulumi.Input[str] image_version: The image version.
1074
-
1075
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
680
+ :param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
681
+ :param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
682
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Description of the system with disks and snapshots under the image.
683
+ :param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
684
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
685
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
686
+ :param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
1076
687
  :param pulumi.Input[str] instance_id: The instance ID.
1077
- :param pulumi.Input[str] license_type: The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
1078
- :param pulumi.Input[str] name: . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
1079
- :param pulumi.Input[str] platform: The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
1080
- :param pulumi.Input[str] resource_group_id: The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
1081
-
1082
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
1083
- :param pulumi.Input[str] snapshot_id: The ID of the snapshot that you want to use to create the custom image.
1084
- :param pulumi.Input[str] status: The status of the image. By default, if you do not specify this parameter, only images in the Available state are returned.
1085
- :param pulumi.Input[Mapping[str, Any]] tags: The tag
1086
-
1087
- The following arguments will be discarded. Please use new fields as soon as possible:
688
+ :param pulumi.Input[str] platform: The distribution of the operating system for the system disk in the custom image.
689
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
690
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
691
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
692
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
693
+ :param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
694
+ :param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a custom image.
695
+ :param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
1088
696
  """
1089
697
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1090
698
 
1091
699
  __props__ = _ImageState.__new__(_ImageState)
1092
700
 
1093
701
  __props__.__dict__["architecture"] = architecture
1094
- __props__.__dict__["boot_mode"] = boot_mode
1095
- __props__.__dict__["create_time"] = create_time
1096
702
  __props__.__dict__["delete_auto_snapshot"] = delete_auto_snapshot
1097
703
  __props__.__dict__["description"] = description
1098
- __props__.__dict__["detection_strategy"] = detection_strategy
1099
704
  __props__.__dict__["disk_device_mappings"] = disk_device_mappings
1100
- __props__.__dict__["features"] = features
1101
705
  __props__.__dict__["force"] = force
1102
- __props__.__dict__["image_family"] = image_family
1103
706
  __props__.__dict__["image_name"] = image_name
1104
- __props__.__dict__["image_version"] = image_version
1105
707
  __props__.__dict__["instance_id"] = instance_id
1106
- __props__.__dict__["license_type"] = license_type
1107
708
  __props__.__dict__["name"] = name
1108
709
  __props__.__dict__["platform"] = platform
1109
710
  __props__.__dict__["resource_group_id"] = resource_group_id
1110
711
  __props__.__dict__["snapshot_id"] = snapshot_id
1111
- __props__.__dict__["status"] = status
1112
712
  __props__.__dict__["tags"] = tags
1113
713
  return Image(resource_name, opts=opts, __props__=__props__)
1114
714
 
@@ -1116,116 +716,49 @@ class Image(pulumi.CustomResource):
1116
716
  @pulumi.getter
1117
717
  def architecture(self) -> pulumi.Output[Optional[str]]:
1118
718
  """
1119
- The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: `i386`, `x86\\_64`, `arm64`. Default value: `x86\\_64`.
719
+ Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
1120
720
  """
1121
721
  return pulumi.get(self, "architecture")
1122
722
 
1123
- @property
1124
- @pulumi.getter(name="bootMode")
1125
- def boot_mode(self) -> pulumi.Output[str]:
1126
- """
1127
- The new boot mode of the image. Valid values:
1128
-
1129
- * BIOS: Basic Input/Output System (BIOS)
1130
-
1131
- * UEFI: Unified Extensible Firmware Interface (UEFI)
1132
-
1133
- * UEFI-Preferred: BIOS and UEFI
1134
-
1135
- > **NOTE:** Before you change the boot mode, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview](https://www.alibabacloud.com/help/en/doc-detail/439819.html).
1136
-
1137
- > **NOTE:** For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](https://www.alibabacloud.com/help/en/doc-detail/2244655.html).
1138
- """
1139
- return pulumi.get(self, "boot_mode")
1140
-
1141
- @property
1142
- @pulumi.getter(name="createTime")
1143
- def create_time(self) -> pulumi.Output[str]:
1144
- """
1145
- The create time
1146
- """
1147
- return pulumi.get(self, "create_time")
1148
-
1149
723
  @property
1150
724
  @pulumi.getter(name="deleteAutoSnapshot")
1151
725
  def delete_auto_snapshot(self) -> pulumi.Output[Optional[bool]]:
1152
- """
1153
- Not the public attribute and it used to automatically delete dependence snapshots while deleting the image.
1154
- """
1155
726
  return pulumi.get(self, "delete_auto_snapshot")
1156
727
 
1157
728
  @property
1158
729
  @pulumi.getter
1159
730
  def description(self) -> pulumi.Output[Optional[str]]:
1160
731
  """
1161
- The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with `http://` or `https://`. This parameter is empty by default, which specifies that the original description is retained.
732
+ The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
1162
733
  """
1163
734
  return pulumi.get(self, "description")
1164
735
 
1165
- @property
1166
- @pulumi.getter(name="detectionStrategy")
1167
- def detection_strategy(self) -> pulumi.Output[Optional[str]]:
1168
- """
1169
- The mode in which to check the custom image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported.
1170
-
1171
- > **NOTE:** This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](https://www.alibabacloud.com/help/en/doc-detail/439819.html) and [Operating system limits for image check](https://www.alibabacloud.com/help/en/doc-detail/475800.html).
1172
- """
1173
- return pulumi.get(self, "detection_strategy")
1174
-
1175
736
  @property
1176
737
  @pulumi.getter(name="diskDeviceMappings")
1177
738
  def disk_device_mappings(self) -> pulumi.Output[Sequence['outputs.ImageDiskDeviceMapping']]:
1178
739
  """
1179
- Snapshot information for the image See `disk_device_mapping` below.
740
+ Description of the system with disks and snapshots under the image.
1180
741
  """
1181
742
  return pulumi.get(self, "disk_device_mappings")
1182
743
 
1183
- @property
1184
- @pulumi.getter
1185
- def features(self) -> pulumi.Output['outputs.ImageFeatures']:
1186
- """
1187
- Features See `features` below.
1188
- """
1189
- return pulumi.get(self, "features")
1190
-
1191
744
  @property
1192
745
  @pulumi.getter
1193
746
  def force(self) -> pulumi.Output[Optional[bool]]:
1194
747
  """
1195
- Whether to perform forced deletion. Value range:
1196
- - true: forcibly deletes the custom image, ignoring whether the current image is used by other instances.
1197
- - false: The custom image is deleted normally. Before deleting the custom image, check whether the current image is used by other instances.
1198
-
1199
- Default value: false
748
+ Indicates whether to force delete the custom image, Default is `false`.
749
+ - true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
750
+ - false:Verifies that the image is not currently in use by any other instances before deleting the image.
1200
751
  """
1201
752
  return pulumi.get(self, "force")
1202
753
 
1203
- @property
1204
- @pulumi.getter(name="imageFamily")
1205
- def image_family(self) -> pulumi.Output[Optional[str]]:
1206
- """
1207
- The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty.
1208
- """
1209
- return pulumi.get(self, "image_family")
1210
-
1211
754
  @property
1212
755
  @pulumi.getter(name="imageName")
1213
756
  def image_name(self) -> pulumi.Output[str]:
1214
757
  """
1215
- The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (\\_), and hyphens (-). By default, this parameter is empty. In this case, the original name is retained.
758
+ The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
1216
759
  """
1217
760
  return pulumi.get(self, "image_name")
1218
761
 
1219
- @property
1220
- @pulumi.getter(name="imageVersion")
1221
- def image_version(self) -> pulumi.Output[Optional[str]]:
1222
- """
1223
- The image version.
1224
-
1225
- > **NOTE:** If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
1226
- """
1227
- return pulumi.get(self, "image_version")
1228
-
1229
762
  @property
1230
763
  @pulumi.getter(name="instanceId")
1231
764
  def instance_id(self) -> pulumi.Output[Optional[str]]:
@@ -1234,38 +767,29 @@ class Image(pulumi.CustomResource):
1234
767
  """
1235
768
  return pulumi.get(self, "instance_id")
1236
769
 
1237
- @property
1238
- @pulumi.getter(name="licenseType")
1239
- def license_type(self) -> pulumi.Output[Optional[str]]:
1240
- """
1241
- The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL. BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
1242
- """
1243
- return pulumi.get(self, "license_type")
1244
-
1245
770
  @property
1246
771
  @pulumi.getter
1247
- @_utilities.deprecated("""Field 'name' has been deprecated since provider version 1.227.0. New field 'image_name' instead.""")
772
+ @_utilities.deprecated("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
1248
773
  def name(self) -> pulumi.Output[str]:
1249
- """
1250
- . Field 'name' has been deprecated from provider version 1.227.0. New field 'image_name' instead.
1251
- """
1252
774
  return pulumi.get(self, "name")
1253
775
 
1254
776
  @property
1255
777
  @pulumi.getter
1256
778
  def platform(self) -> pulumi.Output[str]:
1257
779
  """
1258
- The operating system distribution for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, use Platform to specify the operating system distribution for the system disk. Valid values: `Aliyun`, `Anolis`, `CentOS`, `Ubuntu`, `CoreOS`, `SUSE`, `Debian`, `OpenSUSE`, `FreeBSD`, `RedHat`, `Kylin`, `UOS`, `Fedora`, `Fedora CoreOS`, `CentOS Stream`, `AlmaLinux`, `Rocky Linux`, `Gentoo`, `Customized Linux`, `Others Linux`, `Windows Server 2022`, `Windows Server 2019`, `Windows Server 2016`, `Windows Server 2012`, `Windows Server 2008`, `Windows Server 2003`. Default value: `Others Linux`.
780
+ The distribution of the operating system for the system disk in the custom image.
781
+ If you specify a data disk snapshot to create the system disk of the custom image, you must use the Platform parameter
782
+ to specify the distribution of the operating system for the system disk. Default value: Others Linux.
783
+ More valid values refer to [CreateImage OpenAPI](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/createimage)
784
+ **NOTE**: It's default value is Ubuntu before version 1.197.0.
1259
785
  """
1260
786
  return pulumi.get(self, "platform")
1261
787
 
1262
788
  @property
1263
789
  @pulumi.getter(name="resourceGroupId")
1264
- def resource_group_id(self) -> pulumi.Output[str]:
790
+ def resource_group_id(self) -> pulumi.Output[Optional[str]]:
1265
791
  """
1266
- The ID of the resource group to which to assign the custom image. If you do not specify this parameter, the image is assigned to the default resource group.
1267
-
1268
- > **NOTE:** If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
792
+ The ID of the enterprise resource group to which a custom image belongs
1269
793
  """
1270
794
  return pulumi.get(self, "resource_group_id")
1271
795
 
@@ -1273,25 +797,15 @@ class Image(pulumi.CustomResource):
1273
797
  @pulumi.getter(name="snapshotId")
1274
798
  def snapshot_id(self) -> pulumi.Output[Optional[str]]:
1275
799
  """
1276
- The ID of the snapshot that you want to use to create the custom image.
800
+ Specifies a snapshot that is used to create a custom image.
1277
801
  """
1278
802
  return pulumi.get(self, "snapshot_id")
1279
803
 
1280
- @property
1281
- @pulumi.getter
1282
- def status(self) -> pulumi.Output[str]:
1283
- """
1284
- The status of the image. By default, if you do not specify this parameter, only images in the Available state are returned.
1285
- """
1286
- return pulumi.get(self, "status")
1287
-
1288
804
  @property
1289
805
  @pulumi.getter
1290
806
  def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
1291
807
  """
1292
- The tag
1293
-
1294
- The following arguments will be discarded. Please use new fields as soon as possible:
808
+ The tag value of an image. The value of N ranges from 1 to 20.
1295
809
  """
1296
810
  return pulumi.get(self, "tags")
1297
811