pulumi-alicloud 3.65.0a1730524658__py3-none-any.whl → 3.65.0a1730759410__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.
- pulumi_alicloud/__init__.py +19 -0
- pulumi_alicloud/cen/transit_router_route_table_association.py +72 -68
- pulumi_alicloud/cloudstoragegateway/gateway.py +134 -58
- pulumi_alicloud/cs/_inputs.py +6 -6
- pulumi_alicloud/cs/outputs.py +4 -4
- pulumi_alicloud/ess/scaling_configuration.py +1 -1
- pulumi_alicloud/ess/scaling_group.py +54 -7
- pulumi_alicloud/fc/_inputs.py +3 -3
- pulumi_alicloud/fc/outputs.py +2 -2
- pulumi_alicloud/kms/get_secrets.py +5 -5
- pulumi_alicloud/kms/outputs.py +18 -18
- pulumi_alicloud/mse/__init__.py +2 -0
- pulumi_alicloud/mse/get_nacos_configs.py +394 -0
- pulumi_alicloud/mse/nacos_config.py +762 -0
- pulumi_alicloud/mse/outputs.py +129 -0
- pulumi_alicloud/ocean/base_instance.py +2 -2
- pulumi_alicloud/pai/__init__.py +8 -0
- pulumi_alicloud/pai/workspace_workspace.py +447 -0
- pulumi_alicloud/polardb/cluster.py +14 -14
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/vpc/subnet.py +59 -27
- pulumi_alicloud/vpc/switch.py +104 -87
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/RECORD +26 -22
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.65.0a1730524658.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/top_level.txt +0 -0
|
@@ -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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
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`.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.
|
|
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.
|
|
3106
3106
|
"""
|
|
3107
3107
|
return pulumi.get(self, "creation_option")
|
|
3108
3108
|
|
pulumi_alicloud/vpc/subnet.py
CHANGED
|
@@ -19,32 +19,35 @@ __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],
|
|
24
22
|
availability_zone: Optional[pulumi.Input[str]] = None,
|
|
23
|
+
cidr_block: Optional[pulumi.Input[str]] = None,
|
|
25
24
|
description: Optional[pulumi.Input[str]] = None,
|
|
26
25
|
enable_ipv6: Optional[pulumi.Input[bool]] = None,
|
|
27
26
|
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,
|
|
30
31
|
vswitch_name: Optional[pulumi.Input[str]] = None,
|
|
31
32
|
zone_id: Optional[pulumi.Input[str]] = None):
|
|
32
33
|
"""
|
|
33
34
|
The set of arguments for constructing a Subnet resource.
|
|
34
35
|
"""
|
|
35
|
-
pulumi.set(__self__, "cidr_block", cidr_block)
|
|
36
|
-
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
37
36
|
if availability_zone is not None:
|
|
38
37
|
warnings.warn("""Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""", DeprecationWarning)
|
|
39
38
|
pulumi.log.warn("""availability_zone is deprecated: Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""")
|
|
40
39
|
if availability_zone is not None:
|
|
41
40
|
pulumi.set(__self__, "availability_zone", availability_zone)
|
|
41
|
+
if cidr_block is not None:
|
|
42
|
+
pulumi.set(__self__, "cidr_block", cidr_block)
|
|
42
43
|
if description is not None:
|
|
43
44
|
pulumi.set(__self__, "description", description)
|
|
44
45
|
if enable_ipv6 is not None:
|
|
45
46
|
pulumi.set(__self__, "enable_ipv6", enable_ipv6)
|
|
46
47
|
if ipv6_cidr_block_mask is not None:
|
|
47
48
|
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)
|
|
48
51
|
if name is not None:
|
|
49
52
|
warnings.warn("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""", DeprecationWarning)
|
|
50
53
|
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
|
|
@@ -52,29 +55,13 @@ class SubnetArgs:
|
|
|
52
55
|
pulumi.set(__self__, "name", name)
|
|
53
56
|
if tags is not None:
|
|
54
57
|
pulumi.set(__self__, "tags", tags)
|
|
58
|
+
if vpc_id is not None:
|
|
59
|
+
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
55
60
|
if vswitch_name is not None:
|
|
56
61
|
pulumi.set(__self__, "vswitch_name", vswitch_name)
|
|
57
62
|
if zone_id is not None:
|
|
58
63
|
pulumi.set(__self__, "zone_id", zone_id)
|
|
59
64
|
|
|
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
|
-
|
|
78
65
|
@property
|
|
79
66
|
@pulumi.getter(name="availabilityZone")
|
|
80
67
|
@_utilities.deprecated("""Field 'availability_zone' has been deprecated from provider version 1.119.0. New field 'zone_id' instead.""")
|
|
@@ -85,6 +72,15 @@ class SubnetArgs:
|
|
|
85
72
|
def availability_zone(self, value: Optional[pulumi.Input[str]]):
|
|
86
73
|
pulumi.set(self, "availability_zone", value)
|
|
87
74
|
|
|
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
|
+
|
|
88
84
|
@property
|
|
89
85
|
@pulumi.getter
|
|
90
86
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -112,6 +108,15 @@ class SubnetArgs:
|
|
|
112
108
|
def ipv6_cidr_block_mask(self, value: Optional[pulumi.Input[int]]):
|
|
113
109
|
pulumi.set(self, "ipv6_cidr_block_mask", value)
|
|
114
110
|
|
|
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
|
+
|
|
115
120
|
@property
|
|
116
121
|
@pulumi.getter
|
|
117
122
|
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
|
|
@@ -131,6 +136,15 @@ class SubnetArgs:
|
|
|
131
136
|
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
132
137
|
pulumi.set(self, "tags", value)
|
|
133
138
|
|
|
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
|
+
|
|
134
148
|
@property
|
|
135
149
|
@pulumi.getter(name="vswitchName")
|
|
136
150
|
def vswitch_name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -160,6 +174,7 @@ class _SubnetState:
|
|
|
160
174
|
enable_ipv6: Optional[pulumi.Input[bool]] = None,
|
|
161
175
|
ipv6_cidr_block: Optional[pulumi.Input[str]] = None,
|
|
162
176
|
ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
|
|
177
|
+
is_default: Optional[pulumi.Input[bool]] = None,
|
|
163
178
|
name: Optional[pulumi.Input[str]] = None,
|
|
164
179
|
status: Optional[pulumi.Input[str]] = None,
|
|
165
180
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
@@ -186,6 +201,8 @@ class _SubnetState:
|
|
|
186
201
|
pulumi.set(__self__, "ipv6_cidr_block", ipv6_cidr_block)
|
|
187
202
|
if ipv6_cidr_block_mask is not None:
|
|
188
203
|
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)
|
|
189
206
|
if name is not None:
|
|
190
207
|
warnings.warn("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""", DeprecationWarning)
|
|
191
208
|
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
|
|
@@ -266,6 +283,15 @@ class _SubnetState:
|
|
|
266
283
|
def ipv6_cidr_block_mask(self, value: Optional[pulumi.Input[int]]):
|
|
267
284
|
pulumi.set(self, "ipv6_cidr_block_mask", value)
|
|
268
285
|
|
|
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
|
+
|
|
269
295
|
@property
|
|
270
296
|
@pulumi.getter
|
|
271
297
|
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
|
|
@@ -337,6 +363,7 @@ class Subnet(pulumi.CustomResource):
|
|
|
337
363
|
description: Optional[pulumi.Input[str]] = None,
|
|
338
364
|
enable_ipv6: Optional[pulumi.Input[bool]] = None,
|
|
339
365
|
ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
|
|
366
|
+
is_default: Optional[pulumi.Input[bool]] = None,
|
|
340
367
|
name: Optional[pulumi.Input[str]] = None,
|
|
341
368
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
342
369
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -352,7 +379,7 @@ class Subnet(pulumi.CustomResource):
|
|
|
352
379
|
@overload
|
|
353
380
|
def __init__(__self__,
|
|
354
381
|
resource_name: str,
|
|
355
|
-
args: SubnetArgs,
|
|
382
|
+
args: Optional[SubnetArgs] = None,
|
|
356
383
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
357
384
|
"""
|
|
358
385
|
Create a Subnet resource with the given unique name, props, and options.
|
|
@@ -376,6 +403,7 @@ class Subnet(pulumi.CustomResource):
|
|
|
376
403
|
description: Optional[pulumi.Input[str]] = None,
|
|
377
404
|
enable_ipv6: Optional[pulumi.Input[bool]] = None,
|
|
378
405
|
ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
|
|
406
|
+
is_default: Optional[pulumi.Input[bool]] = None,
|
|
379
407
|
name: Optional[pulumi.Input[str]] = None,
|
|
380
408
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
381
409
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -392,16 +420,13 @@ class Subnet(pulumi.CustomResource):
|
|
|
392
420
|
__props__ = SubnetArgs.__new__(SubnetArgs)
|
|
393
421
|
|
|
394
422
|
__props__.__dict__["availability_zone"] = availability_zone
|
|
395
|
-
if cidr_block is None and not opts.urn:
|
|
396
|
-
raise TypeError("Missing required property 'cidr_block'")
|
|
397
423
|
__props__.__dict__["cidr_block"] = cidr_block
|
|
398
424
|
__props__.__dict__["description"] = description
|
|
399
425
|
__props__.__dict__["enable_ipv6"] = enable_ipv6
|
|
400
426
|
__props__.__dict__["ipv6_cidr_block_mask"] = ipv6_cidr_block_mask
|
|
427
|
+
__props__.__dict__["is_default"] = is_default
|
|
401
428
|
__props__.__dict__["name"] = name
|
|
402
429
|
__props__.__dict__["tags"] = tags
|
|
403
|
-
if vpc_id is None and not opts.urn:
|
|
404
|
-
raise TypeError("Missing required property 'vpc_id'")
|
|
405
430
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
406
431
|
__props__.__dict__["vswitch_name"] = vswitch_name
|
|
407
432
|
__props__.__dict__["zone_id"] = zone_id
|
|
@@ -425,6 +450,7 @@ class Subnet(pulumi.CustomResource):
|
|
|
425
450
|
enable_ipv6: Optional[pulumi.Input[bool]] = None,
|
|
426
451
|
ipv6_cidr_block: Optional[pulumi.Input[str]] = None,
|
|
427
452
|
ipv6_cidr_block_mask: Optional[pulumi.Input[int]] = None,
|
|
453
|
+
is_default: Optional[pulumi.Input[bool]] = None,
|
|
428
454
|
name: Optional[pulumi.Input[str]] = None,
|
|
429
455
|
status: Optional[pulumi.Input[str]] = None,
|
|
430
456
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
@@ -450,6 +476,7 @@ class Subnet(pulumi.CustomResource):
|
|
|
450
476
|
__props__.__dict__["enable_ipv6"] = enable_ipv6
|
|
451
477
|
__props__.__dict__["ipv6_cidr_block"] = ipv6_cidr_block
|
|
452
478
|
__props__.__dict__["ipv6_cidr_block_mask"] = ipv6_cidr_block_mask
|
|
479
|
+
__props__.__dict__["is_default"] = is_default
|
|
453
480
|
__props__.__dict__["name"] = name
|
|
454
481
|
__props__.__dict__["status"] = status
|
|
455
482
|
__props__.__dict__["tags"] = tags
|
|
@@ -494,6 +521,11 @@ class Subnet(pulumi.CustomResource):
|
|
|
494
521
|
def ipv6_cidr_block_mask(self) -> pulumi.Output[int]:
|
|
495
522
|
return pulumi.get(self, "ipv6_cidr_block_mask")
|
|
496
523
|
|
|
524
|
+
@property
|
|
525
|
+
@pulumi.getter(name="isDefault")
|
|
526
|
+
def is_default(self) -> pulumi.Output[Optional[bool]]:
|
|
527
|
+
return pulumi.get(self, "is_default")
|
|
528
|
+
|
|
497
529
|
@property
|
|
498
530
|
@pulumi.getter
|
|
499
531
|
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.119.0. New field 'vswitch_name' instead.""")
|