pulumi-alicloud 3.65.0__py3-none-any.whl → 3.65.0a1730179089__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 +0 -19
- pulumi_alicloud/cen/transit_router_route_table_association.py +68 -72
- pulumi_alicloud/cloudstoragegateway/gateway.py +58 -134
- 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 +7 -54
- pulumi_alicloud/fc/_inputs.py +3 -3
- pulumi_alicloud/fc/outputs.py +2 -2
- pulumi_alicloud/governance/baseline.py +18 -18
- pulumi_alicloud/governance/get_baselines.py +18 -18
- pulumi_alicloud/kms/get_secrets.py +5 -5
- pulumi_alicloud/kms/outputs.py +18 -18
- pulumi_alicloud/log/alert.py +14 -14
- pulumi_alicloud/mse/__init__.py +0 -2
- pulumi_alicloud/mse/outputs.py +0 -129
- pulumi_alicloud/ocean/base_instance.py +2 -2
- pulumi_alicloud/polardb/cluster.py +14 -14
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/vpc/subnet.py +27 -59
- pulumi_alicloud/vpc/switch.py +87 -104
- {pulumi_alicloud-3.65.0.dist-info → pulumi_alicloud-3.65.0a1730179089.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.0.dist-info → pulumi_alicloud-3.65.0a1730179089.dist-info}/RECORD +25 -29
- {pulumi_alicloud-3.65.0.dist-info → pulumi_alicloud-3.65.0a1730179089.dist-info}/WHEEL +1 -1
- pulumi_alicloud/mse/get_nacos_configs.py +0 -394
- pulumi_alicloud/mse/nacos_config.py +0 -762
- pulumi_alicloud/pai/__init__.py +0 -8
- pulumi_alicloud/pai/workspace_workspace.py +0 -447
- {pulumi_alicloud-3.65.0.dist-info → pulumi_alicloud-3.65.0a1730179089.dist-info}/top_level.txt +0 -0
pulumi_alicloud/mse/outputs.py
CHANGED
|
@@ -22,7 +22,6 @@ __all__ = [
|
|
|
22
22
|
'GetEngineNamespacesNamespaceResult',
|
|
23
23
|
'GetGatewaysGatewayResult',
|
|
24
24
|
'GetGatewaysGatewaySlbListResult',
|
|
25
|
-
'GetNacosConfigsConfigResult',
|
|
26
25
|
'GetZnodesZnodeResult',
|
|
27
26
|
]
|
|
28
27
|
|
|
@@ -826,134 +825,6 @@ class GetGatewaysGatewaySlbListResult(dict):
|
|
|
826
825
|
return pulumi.get(self, "type")
|
|
827
826
|
|
|
828
827
|
|
|
829
|
-
@pulumi.output_type
|
|
830
|
-
class GetNacosConfigsConfigResult(dict):
|
|
831
|
-
def __init__(__self__, *,
|
|
832
|
-
app_name: str,
|
|
833
|
-
beta_ips: str,
|
|
834
|
-
content: str,
|
|
835
|
-
data_id: str,
|
|
836
|
-
desc: str,
|
|
837
|
-
encrypted_data_key: str,
|
|
838
|
-
group: str,
|
|
839
|
-
id: str,
|
|
840
|
-
md5: str,
|
|
841
|
-
tags: str,
|
|
842
|
-
type: str):
|
|
843
|
-
"""
|
|
844
|
-
:param str app_name: The name of the application.
|
|
845
|
-
:param str beta_ips: The list of IP addresses where the beta release of the configuration is performed.
|
|
846
|
-
:param str content: The content of the configuration.
|
|
847
|
-
:param str data_id: The ID of the data.
|
|
848
|
-
:param str desc: The description of the configuration.
|
|
849
|
-
:param str encrypted_data_key: The encryption key.
|
|
850
|
-
:param str group: The ID of the group.
|
|
851
|
-
:param str id: The ID of the Nacos Config. It is formatted to `<instance_id>:<namespace_id>:<data_id>:<group>`.
|
|
852
|
-
:param str md5: The message digest of the configuration.
|
|
853
|
-
:param str tags: The tags of the configuration.
|
|
854
|
-
:param str type: The format of the configuration. Supported formats include TEXT, JSON, and XML.
|
|
855
|
-
"""
|
|
856
|
-
pulumi.set(__self__, "app_name", app_name)
|
|
857
|
-
pulumi.set(__self__, "beta_ips", beta_ips)
|
|
858
|
-
pulumi.set(__self__, "content", content)
|
|
859
|
-
pulumi.set(__self__, "data_id", data_id)
|
|
860
|
-
pulumi.set(__self__, "desc", desc)
|
|
861
|
-
pulumi.set(__self__, "encrypted_data_key", encrypted_data_key)
|
|
862
|
-
pulumi.set(__self__, "group", group)
|
|
863
|
-
pulumi.set(__self__, "id", id)
|
|
864
|
-
pulumi.set(__self__, "md5", md5)
|
|
865
|
-
pulumi.set(__self__, "tags", tags)
|
|
866
|
-
pulumi.set(__self__, "type", type)
|
|
867
|
-
|
|
868
|
-
@property
|
|
869
|
-
@pulumi.getter(name="appName")
|
|
870
|
-
def app_name(self) -> str:
|
|
871
|
-
"""
|
|
872
|
-
The name of the application.
|
|
873
|
-
"""
|
|
874
|
-
return pulumi.get(self, "app_name")
|
|
875
|
-
|
|
876
|
-
@property
|
|
877
|
-
@pulumi.getter(name="betaIps")
|
|
878
|
-
def beta_ips(self) -> str:
|
|
879
|
-
"""
|
|
880
|
-
The list of IP addresses where the beta release of the configuration is performed.
|
|
881
|
-
"""
|
|
882
|
-
return pulumi.get(self, "beta_ips")
|
|
883
|
-
|
|
884
|
-
@property
|
|
885
|
-
@pulumi.getter
|
|
886
|
-
def content(self) -> str:
|
|
887
|
-
"""
|
|
888
|
-
The content of the configuration.
|
|
889
|
-
"""
|
|
890
|
-
return pulumi.get(self, "content")
|
|
891
|
-
|
|
892
|
-
@property
|
|
893
|
-
@pulumi.getter(name="dataId")
|
|
894
|
-
def data_id(self) -> str:
|
|
895
|
-
"""
|
|
896
|
-
The ID of the data.
|
|
897
|
-
"""
|
|
898
|
-
return pulumi.get(self, "data_id")
|
|
899
|
-
|
|
900
|
-
@property
|
|
901
|
-
@pulumi.getter
|
|
902
|
-
def desc(self) -> str:
|
|
903
|
-
"""
|
|
904
|
-
The description of the configuration.
|
|
905
|
-
"""
|
|
906
|
-
return pulumi.get(self, "desc")
|
|
907
|
-
|
|
908
|
-
@property
|
|
909
|
-
@pulumi.getter(name="encryptedDataKey")
|
|
910
|
-
def encrypted_data_key(self) -> str:
|
|
911
|
-
"""
|
|
912
|
-
The encryption key.
|
|
913
|
-
"""
|
|
914
|
-
return pulumi.get(self, "encrypted_data_key")
|
|
915
|
-
|
|
916
|
-
@property
|
|
917
|
-
@pulumi.getter
|
|
918
|
-
def group(self) -> str:
|
|
919
|
-
"""
|
|
920
|
-
The ID of the group.
|
|
921
|
-
"""
|
|
922
|
-
return pulumi.get(self, "group")
|
|
923
|
-
|
|
924
|
-
@property
|
|
925
|
-
@pulumi.getter
|
|
926
|
-
def id(self) -> str:
|
|
927
|
-
"""
|
|
928
|
-
The ID of the Nacos Config. It is formatted to `<instance_id>:<namespace_id>:<data_id>:<group>`.
|
|
929
|
-
"""
|
|
930
|
-
return pulumi.get(self, "id")
|
|
931
|
-
|
|
932
|
-
@property
|
|
933
|
-
@pulumi.getter
|
|
934
|
-
def md5(self) -> str:
|
|
935
|
-
"""
|
|
936
|
-
The message digest of the configuration.
|
|
937
|
-
"""
|
|
938
|
-
return pulumi.get(self, "md5")
|
|
939
|
-
|
|
940
|
-
@property
|
|
941
|
-
@pulumi.getter
|
|
942
|
-
def tags(self) -> str:
|
|
943
|
-
"""
|
|
944
|
-
The tags of the configuration.
|
|
945
|
-
"""
|
|
946
|
-
return pulumi.get(self, "tags")
|
|
947
|
-
|
|
948
|
-
@property
|
|
949
|
-
@pulumi.getter
|
|
950
|
-
def type(self) -> str:
|
|
951
|
-
"""
|
|
952
|
-
The format of the configuration. Supported formats include TEXT, JSON, and XML.
|
|
953
|
-
"""
|
|
954
|
-
return pulumi.get(self, "type")
|
|
955
|
-
|
|
956
|
-
|
|
957
828
|
@pulumi.output_type
|
|
958
829
|
class GetZnodesZnodeResult(dict):
|
|
959
830
|
def __init__(__self__, *,
|
|
@@ -991,7 +991,7 @@ class BaseInstance(pulumi.CustomResource):
|
|
|
991
991
|
auto_renew=False,
|
|
992
992
|
disk_size=100,
|
|
993
993
|
payment_type="PayAsYouGo",
|
|
994
|
-
instance_class="
|
|
994
|
+
instance_class="8C32GB",
|
|
995
995
|
backup_retain_mode="delete_all",
|
|
996
996
|
series="normal",
|
|
997
997
|
instance_name=name)
|
|
@@ -1123,7 +1123,7 @@ class BaseInstance(pulumi.CustomResource):
|
|
|
1123
1123
|
auto_renew=False,
|
|
1124
1124
|
disk_size=100,
|
|
1125
1125
|
payment_type="PayAsYouGo",
|
|
1126
|
-
instance_class="
|
|
1126
|
+
instance_class="8C32GB",
|
|
1127
1127
|
backup_retain_mode="delete_all",
|
|
1128
1128
|
series="normal",
|
|
1129
1129
|
instance_name=name)
|
|
@@ -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
|
|
109
|
-
|
|
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
|
|
454
|
-
|
|
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
|
|
1240
|
-
|
|
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
|
|
1597
|
-
|
|
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
|
|
2476
|
-
|
|
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
|
|
2851
|
-
|
|
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
|
|
3105
|
-
|
|
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
|
|
pulumi_alicloud/vpc/subnet.py
CHANGED
|
@@ -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:
|
|
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.""")
|