pulumi-alicloud 3.65.0__py3-none-any.whl → 3.65.0a1730385290__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.

@@ -105,8 +105,8 @@ class ClusterArgs:
105
105
  > **NOTE:** When the value of db_type is not MySQL, the value of creation_option is neither empty nor Normal, and the value of storage_type is not PSL4, this field will be ignored.
106
106
  :param pulumi.Input[str] creation_category: The edition of the PolarDB service. Valid values are `Normal`,`Basic`,`ArchiveNormal`,`NormalMultimaster`,`SENormal`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationCategory`.
107
107
  > **NOTE:** You can set this parameter to Basic only when DBType is set to MySQL and DBVersion is set to 5.6, 5.7, or 8.0. You can set this parameter to Archive only when DBType is set to MySQL and DBVersion is set to 8.0. From version 1.188.0, `creation_category` can be set to `NormalMultimaster`. From version 1.203.0, `creation_category` can be set to `SENormal`.
108
- :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
109
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
108
+ :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
109
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
110
110
  :param pulumi.Input[Sequence[pulumi.Input['ClusterDbClusterIpArrayArgs']]] db_cluster_ip_arrays: db_cluster_ip_array defines how users can send requests to your API. See `db_cluster_ip_array` below.
111
111
  :param pulumi.Input[int] db_node_count: Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
112
112
  > **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
@@ -450,8 +450,8 @@ class ClusterArgs:
450
450
  @pulumi.getter(name="creationOption")
451
451
  def creation_option(self) -> Optional[pulumi.Input[str]]:
452
452
  """
453
- The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
454
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
453
+ The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
454
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
455
455
  """
456
456
  return pulumi.get(self, "creation_option")
457
457
 
@@ -1236,8 +1236,8 @@ class _ClusterState:
1236
1236
  :param pulumi.Input[str] create_time: (Available since 1.204.1) PolarDB cluster creation time.
1237
1237
  :param pulumi.Input[str] creation_category: The edition of the PolarDB service. Valid values are `Normal`,`Basic`,`ArchiveNormal`,`NormalMultimaster`,`SENormal`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationCategory`.
1238
1238
  > **NOTE:** You can set this parameter to Basic only when DBType is set to MySQL and DBVersion is set to 5.6, 5.7, or 8.0. You can set this parameter to Archive only when DBType is set to MySQL and DBVersion is set to 8.0. From version 1.188.0, `creation_category` can be set to `NormalMultimaster`. From version 1.203.0, `creation_category` can be set to `SENormal`.
1239
- :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
1240
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
1239
+ :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
1240
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
1241
1241
  :param pulumi.Input[Sequence[pulumi.Input['ClusterDbClusterIpArrayArgs']]] db_cluster_ip_arrays: db_cluster_ip_array defines how users can send requests to your API. See `db_cluster_ip_array` below.
1242
1242
  :param pulumi.Input[str] db_node_class: The db_node_class of cluster node.
1243
1243
  > **NOTE:** Node specifications are divided into cluster version, single node version and History Library version. They can't change each other, but the general specification and exclusive specification of cluster version can be changed.
@@ -1593,8 +1593,8 @@ class _ClusterState:
1593
1593
  @pulumi.getter(name="creationOption")
1594
1594
  def creation_option(self) -> Optional[pulumi.Input[str]]:
1595
1595
  """
1596
- The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
1597
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
1596
+ The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
1597
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
1598
1598
  """
1599
1599
  return pulumi.get(self, "creation_option")
1600
1600
 
@@ -2472,8 +2472,8 @@ class Cluster(pulumi.CustomResource):
2472
2472
  > **NOTE:** When the value of db_type is not MySQL, the value of creation_option is neither empty nor Normal, and the value of storage_type is not PSL4, this field will be ignored.
2473
2473
  :param pulumi.Input[str] creation_category: The edition of the PolarDB service. Valid values are `Normal`,`Basic`,`ArchiveNormal`,`NormalMultimaster`,`SENormal`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationCategory`.
2474
2474
  > **NOTE:** You can set this parameter to Basic only when DBType is set to MySQL and DBVersion is set to 5.6, 5.7, or 8.0. You can set this parameter to Archive only when DBType is set to MySQL and DBVersion is set to 8.0. From version 1.188.0, `creation_category` can be set to `NormalMultimaster`. From version 1.203.0, `creation_category` can be set to `SENormal`.
2475
- :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
2476
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
2475
+ :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
2476
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
2477
2477
  :param pulumi.Input[Sequence[pulumi.Input[Union['ClusterDbClusterIpArrayArgs', 'ClusterDbClusterIpArrayArgsDict']]]] db_cluster_ip_arrays: db_cluster_ip_array defines how users can send requests to your API. See `db_cluster_ip_array` below.
2478
2478
  :param pulumi.Input[str] db_node_class: The db_node_class of cluster node.
2479
2479
  > **NOTE:** Node specifications are divided into cluster version, single node version and History Library version. They can't change each other, but the general specification and exclusive specification of cluster version can be changed.
@@ -2847,8 +2847,8 @@ class Cluster(pulumi.CustomResource):
2847
2847
  :param pulumi.Input[str] create_time: (Available since 1.204.1) PolarDB cluster creation time.
2848
2848
  :param pulumi.Input[str] creation_category: The edition of the PolarDB service. Valid values are `Normal`,`Basic`,`ArchiveNormal`,`NormalMultimaster`,`SENormal`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationCategory`.
2849
2849
  > **NOTE:** You can set this parameter to Basic only when DBType is set to MySQL and DBVersion is set to 5.6, 5.7, or 8.0. You can set this parameter to Archive only when DBType is set to MySQL and DBVersion is set to 8.0. From version 1.188.0, `creation_category` can be set to `NormalMultimaster`. From version 1.203.0, `creation_category` can be set to `SENormal`.
2850
- :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
2851
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
2850
+ :param pulumi.Input[str] creation_option: The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
2851
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
2852
2852
  :param pulumi.Input[Sequence[pulumi.Input[Union['ClusterDbClusterIpArrayArgs', 'ClusterDbClusterIpArrayArgsDict']]]] db_cluster_ip_arrays: db_cluster_ip_array defines how users can send requests to your API. See `db_cluster_ip_array` below.
2853
2853
  :param pulumi.Input[str] db_node_class: The db_node_class of cluster node.
2854
2854
  > **NOTE:** Node specifications are divided into cluster version, single node version and History Library version. They can't change each other, but the general specification and exclusive specification of cluster version can be changed.
@@ -3101,8 +3101,8 @@ class Cluster(pulumi.CustomResource):
3101
3101
  @pulumi.getter(name="creationOption")
3102
3102
  def creation_option(self) -> pulumi.Output[str]:
3103
3103
  """
3104
- The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`,`RecoverFromRecyclebin`. **NOTE:** From version 1.233.0, `creation_option` can be set to `RecoverFromRecyclebin`. Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
3105
- * > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby. If `creation_option` is RecoverFromRecyclebin, you need to pass in the released source PolarDB cluster ID for this parameter. The DBType of the cluster recovered from the recycle bin and the source cluster must be consistent. For example, if the source cluster is MySQL 8.0, the cluster recovered from the recycle bin also needs to have its DBType set to MySQL and DBVersion set to 8.0.
3104
+ The method that is used to create a cluster. Valid values are `Normal`,`CloneFromPolarDB`,`CloneFromRDS`,`MigrationFromRDS`,`CreateGdnStandby`.Value options can refer to the latest docs [CreateDBCluster](https://www.alibabacloud.com/help/en/polardb/latest/createdbcluster-1) `CreationOption`.
3105
+ > **NOTE:** The default value is Normal. If DBType is set to MySQL and DBVersion is set to 5.6 or 5.7, this parameter can be set to CloneFromRDS or MigrationFromRDS. If DBType is set to MySQL and DBVersion is set to 8.0, this parameter can be set to CreateGdnStandby.
3106
3106
  """
3107
3107
  return pulumi.get(self, "creation_option")
3108
3108
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "alicloud",
4
- "version": "3.65.0"
4
+ "version": "3.65.0-alpha.1730385290"
5
5
  }
@@ -19,35 +19,32 @@ __all__ = ['SubnetArgs', 'Subnet']
19
19
  @pulumi.input_type
20
20
  class SubnetArgs:
21
21
  def __init__(__self__, *,
22
+ cidr_block: pulumi.Input[str],
23
+ vpc_id: pulumi.Input[str],
22
24
  availability_zone: Optional[pulumi.Input[str]] = None,
23
- cidr_block: Optional[pulumi.Input[str]] = None,
24
25
  description: Optional[pulumi.Input[str]] = None,
25
26
  enable_ipv6: Optional[pulumi.Input[bool]] = None,
26
27
  ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
27
- is_default: Optional[pulumi.Input[bool]] = None,
28
28
  name: Optional[pulumi.Input[str]] = None,
29
29
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
30
- vpc_id: Optional[pulumi.Input[str]] = None,
31
30
  vswitch_name: Optional[pulumi.Input[str]] = None,
32
31
  zone_id: Optional[pulumi.Input[str]] = None):
33
32
  """
34
33
  The set of arguments for constructing a Subnet resource.
35
34
  """
35
+ pulumi.set(__self__, "cidr_block", cidr_block)
36
+ pulumi.set(__self__, "vpc_id", vpc_id)
36
37
  if availability_zone is not None:
37
38
  warnings.warn("""Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""", DeprecationWarning)
38
39
  pulumi.log.warn("""availability_zone is deprecated: Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""")
39
40
  if availability_zone is not None:
40
41
  pulumi.set(__self__, "availability_zone", availability_zone)
41
- if cidr_block is not None:
42
- pulumi.set(__self__, "cidr_block", cidr_block)
43
42
  if description is not None:
44
43
  pulumi.set(__self__, "description", description)
45
44
  if enable_ipv6 is not None:
46
45
  pulumi.set(__self__, "enable_ipv6", enable_ipv6)
47
46
  if ipv6_cidr_block_mask is not None:
48
47
  pulumi.set(__self__, "ipv6_cidr_block_mask", ipv6_cidr_block_mask)
49
- if is_default is not None:
50
- pulumi.set(__self__, "is_default", is_default)
51
48
  if name is not None:
52
49
  warnings.warn("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""", DeprecationWarning)
53
50
  pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
@@ -55,13 +52,29 @@ class SubnetArgs:
55
52
  pulumi.set(__self__, "name", name)
56
53
  if tags is not None:
57
54
  pulumi.set(__self__, "tags", tags)
58
- if vpc_id is not None:
59
- pulumi.set(__self__, "vpc_id", vpc_id)
60
55
  if vswitch_name is not None:
61
56
  pulumi.set(__self__, "vswitch_name", vswitch_name)
62
57
  if zone_id is not None:
63
58
  pulumi.set(__self__, "zone_id", zone_id)
64
59
 
60
+ @property
61
+ @pulumi.getter(name="cidrBlock")
62
+ def cidr_block(self) -> pulumi.Input[str]:
63
+ return pulumi.get(self, "cidr_block")
64
+
65
+ @cidr_block.setter
66
+ def cidr_block(self, value: pulumi.Input[str]):
67
+ pulumi.set(self, "cidr_block", value)
68
+
69
+ @property
70
+ @pulumi.getter(name="vpcId")
71
+ def vpc_id(self) -> pulumi.Input[str]:
72
+ return pulumi.get(self, "vpc_id")
73
+
74
+ @vpc_id.setter
75
+ def vpc_id(self, value: pulumi.Input[str]):
76
+ pulumi.set(self, "vpc_id", value)
77
+
65
78
  @property
66
79
  @pulumi.getter(name="availabilityZone")
67
80
  @_utilities.deprecated("""Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""")
@@ -72,15 +85,6 @@ class SubnetArgs:
72
85
  def availability_zone(self, value: Optional[pulumi.Input[str]]):
73
86
  pulumi.set(self, "availability_zone", value)
74
87
 
75
- @property
76
- @pulumi.getter(name="cidrBlock")
77
- def cidr_block(self) -> Optional[pulumi.Input[str]]:
78
- return pulumi.get(self, "cidr_block")
79
-
80
- @cidr_block.setter
81
- def cidr_block(self, value: Optional[pulumi.Input[str]]):
82
- pulumi.set(self, "cidr_block", value)
83
-
84
88
  @property
85
89
  @pulumi.getter
86
90
  def description(self) -> Optional[pulumi.Input[str]]:
@@ -108,15 +112,6 @@ class SubnetArgs:
108
112
  def ipv6_cidr_block_mask(self, value: Optional[pulumi.Input[int]]):
109
113
  pulumi.set(self, "ipv6_cidr_block_mask", value)
110
114
 
111
- @property
112
- @pulumi.getter(name="isDefault")
113
- def is_default(self) -> Optional[pulumi.Input[bool]]:
114
- return pulumi.get(self, "is_default")
115
-
116
- @is_default.setter
117
- def is_default(self, value: Optional[pulumi.Input[bool]]):
118
- pulumi.set(self, "is_default", value)
119
-
120
115
  @property
121
116
  @pulumi.getter
122
117
  @_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
@@ -136,15 +131,6 @@ class SubnetArgs:
136
131
  def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
137
132
  pulumi.set(self, "tags", value)
138
133
 
139
- @property
140
- @pulumi.getter(name="vpcId")
141
- def vpc_id(self) -> Optional[pulumi.Input[str]]:
142
- return pulumi.get(self, "vpc_id")
143
-
144
- @vpc_id.setter
145
- def vpc_id(self, value: Optional[pulumi.Input[str]]):
146
- pulumi.set(self, "vpc_id", value)
147
-
148
134
  @property
149
135
  @pulumi.getter(name="vswitchName")
150
136
  def vswitch_name(self) -> Optional[pulumi.Input[str]]:
@@ -174,7 +160,6 @@ class _SubnetState:
174
160
  enable_ipv6: Optional[pulumi.Input[bool]] = None,
175
161
  ipv6_cidr_block: Optional[pulumi.Input[str]] = None,
176
162
  ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
177
- is_default: Optional[pulumi.Input[bool]] = None,
178
163
  name: Optional[pulumi.Input[str]] = None,
179
164
  status: Optional[pulumi.Input[str]] = None,
180
165
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -201,8 +186,6 @@ class _SubnetState:
201
186
  pulumi.set(__self__, "ipv6_cidr_block", ipv6_cidr_block)
202
187
  if ipv6_cidr_block_mask is not None:
203
188
  pulumi.set(__self__, "ipv6_cidr_block_mask", ipv6_cidr_block_mask)
204
- if is_default is not None:
205
- pulumi.set(__self__, "is_default", is_default)
206
189
  if name is not None:
207
190
  warnings.warn("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""", DeprecationWarning)
208
191
  pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
@@ -283,15 +266,6 @@ class _SubnetState:
283
266
  def ipv6_cidr_block_mask(self, value: Optional[pulumi.Input[int]]):
284
267
  pulumi.set(self, "ipv6_cidr_block_mask", value)
285
268
 
286
- @property
287
- @pulumi.getter(name="isDefault")
288
- def is_default(self) -> Optional[pulumi.Input[bool]]:
289
- return pulumi.get(self, "is_default")
290
-
291
- @is_default.setter
292
- def is_default(self, value: Optional[pulumi.Input[bool]]):
293
- pulumi.set(self, "is_default", value)
294
-
295
269
  @property
296
270
  @pulumi.getter
297
271
  @_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
@@ -363,7 +337,6 @@ class Subnet(pulumi.CustomResource):
363
337
  description: Optional[pulumi.Input[str]] = None,
364
338
  enable_ipv6: Optional[pulumi.Input[bool]] = None,
365
339
  ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
366
- is_default: Optional[pulumi.Input[bool]] = None,
367
340
  name: Optional[pulumi.Input[str]] = None,
368
341
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
369
342
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -379,7 +352,7 @@ class Subnet(pulumi.CustomResource):
379
352
  @overload
380
353
  def __init__(__self__,
381
354
  resource_name: str,
382
- args: Optional[SubnetArgs] = None,
355
+ args: SubnetArgs,
383
356
  opts: Optional[pulumi.ResourceOptions] = None):
384
357
  """
385
358
  Create a Subnet resource with the given unique name, props, and options.
@@ -403,7 +376,6 @@ class Subnet(pulumi.CustomResource):
403
376
  description: Optional[pulumi.Input[str]] = None,
404
377
  enable_ipv6: Optional[pulumi.Input[bool]] = None,
405
378
  ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
406
- is_default: Optional[pulumi.Input[bool]] = None,
407
379
  name: Optional[pulumi.Input[str]] = None,
408
380
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
409
381
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -420,13 +392,16 @@ class Subnet(pulumi.CustomResource):
420
392
  __props__ = SubnetArgs.__new__(SubnetArgs)
421
393
 
422
394
  __props__.__dict__["availability_zone"] = availability_zone
395
+ if cidr_block is None and not opts.urn:
396
+ raise TypeError("Missing required property 'cidr_block'")
423
397
  __props__.__dict__["cidr_block"] = cidr_block
424
398
  __props__.__dict__["description"] = description
425
399
  __props__.__dict__["enable_ipv6"] = enable_ipv6
426
400
  __props__.__dict__["ipv6_cidr_block_mask"] = ipv6_cidr_block_mask
427
- __props__.__dict__["is_default"] = is_default
428
401
  __props__.__dict__["name"] = name
429
402
  __props__.__dict__["tags"] = tags
403
+ if vpc_id is None and not opts.urn:
404
+ raise TypeError("Missing required property 'vpc_id'")
430
405
  __props__.__dict__["vpc_id"] = vpc_id
431
406
  __props__.__dict__["vswitch_name"] = vswitch_name
432
407
  __props__.__dict__["zone_id"] = zone_id
@@ -450,7 +425,6 @@ class Subnet(pulumi.CustomResource):
450
425
  enable_ipv6: Optional[pulumi.Input[bool]] = None,
451
426
  ipv6_cidr_block: Optional[pulumi.Input[str]] = None,
452
427
  ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
453
- is_default: Optional[pulumi.Input[bool]] = None,
454
428
  name: Optional[pulumi.Input[str]] = None,
455
429
  status: Optional[pulumi.Input[str]] = None,
456
430
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -476,7 +450,6 @@ class Subnet(pulumi.CustomResource):
476
450
  __props__.__dict__["enable_ipv6"] = enable_ipv6
477
451
  __props__.__dict__["ipv6_cidr_block"] = ipv6_cidr_block
478
452
  __props__.__dict__["ipv6_cidr_block_mask"] = ipv6_cidr_block_mask
479
- __props__.__dict__["is_default"] = is_default
480
453
  __props__.__dict__["name"] = name
481
454
  __props__.__dict__["status"] = status
482
455
  __props__.__dict__["tags"] = tags
@@ -521,11 +494,6 @@ class Subnet(pulumi.CustomResource):
521
494
  def ipv6_cidr_block_mask(self) -> pulumi.Output[int]:
522
495
  return pulumi.get(self, "ipv6_cidr_block_mask")
523
496
 
524
- @property
525
- @pulumi.getter(name="isDefault")
526
- def is_default(self) -> pulumi.Output[Optional[bool]]:
527
- return pulumi.get(self, "is_default")
528
-
529
497
  @property
530
498
  @pulumi.getter
531
499
  @_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")