pulumi-alicloud 3.62.0__py3-none-any.whl → 3.62.0a1724476801__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (119) hide show
  1. pulumi_alicloud/__init__.py +0 -80
  2. pulumi_alicloud/actiontrail/trail.py +2 -2
  3. pulumi_alicloud/adb/cluster.py +0 -34
  4. pulumi_alicloud/adb/db_cluster.py +0 -47
  5. pulumi_alicloud/amqp/static_account.py +12 -12
  6. pulumi_alicloud/brain/get_industrial_pid_loops.py +2 -18
  7. pulumi_alicloud/brain/get_industrial_pid_organizations.py +2 -12
  8. pulumi_alicloud/brain/get_industrial_pid_projects.py +2 -18
  9. pulumi_alicloud/brain/get_industrial_serice.py +2 -6
  10. pulumi_alicloud/brain/industrial_pid_loop.py +2 -6
  11. pulumi_alicloud/brain/industrial_pid_organization.py +4 -4
  12. pulumi_alicloud/brain/industrial_pid_project.py +4 -4
  13. pulumi_alicloud/cas/certificate.py +13 -155
  14. pulumi_alicloud/cas/service_certificate.py +30 -9
  15. pulumi_alicloud/cdn/real_time_log_delivery.py +2 -2
  16. pulumi_alicloud/cen/get_transit_router_route_tables.py +14 -81
  17. pulumi_alicloud/cen/outputs.py +2 -6
  18. pulumi_alicloud/cen/transit_router_peer_attachment.py +20 -38
  19. pulumi_alicloud/cen/transit_router_vpn_attachment.py +2 -2
  20. pulumi_alicloud/cfg/remediation.py +2 -6
  21. pulumi_alicloud/clickhouse/account.py +2 -2
  22. pulumi_alicloud/clickhouse/backup_policy.py +2 -2
  23. pulumi_alicloud/cloudfirewall/instance.py +0 -2
  24. pulumi_alicloud/cs/_inputs.py +21 -141
  25. pulumi_alicloud/cs/kubernetes.py +7 -7
  26. pulumi_alicloud/cs/kubernetes_addon.py +8 -4
  27. pulumi_alicloud/cs/managed_kubernetes.py +45 -506
  28. pulumi_alicloud/cs/outputs.py +21 -148
  29. pulumi_alicloud/cs/registry_enterprise_namespace.py +72 -92
  30. pulumi_alicloud/cs/registry_enterprise_repo.py +74 -96
  31. pulumi_alicloud/cs/registry_enterprise_sync_rule.py +101 -105
  32. pulumi_alicloud/cs/serverless_kubernetes.py +206 -174
  33. pulumi_alicloud/databasefilesystem/instance.py +2 -2
  34. pulumi_alicloud/ddos/_inputs.py +0 -24
  35. pulumi_alicloud/ddos/outputs.py +0 -37
  36. pulumi_alicloud/ddos/port.py +40 -110
  37. pulumi_alicloud/dts/consumer_channel.py +2 -2
  38. pulumi_alicloud/dts/subscription_job.py +2 -2
  39. pulumi_alicloud/ecs/auto_provisioning_group.py +2 -2
  40. pulumi_alicloud/ehpc/get_clusters.py +2 -11
  41. pulumi_alicloud/ehpc/get_job_templates.py +2 -5
  42. pulumi_alicloud/ehpc/job_template.py +2 -2
  43. pulumi_alicloud/ehpc/outputs.py +2 -34
  44. pulumi_alicloud/emrv2/_inputs.py +8 -8
  45. pulumi_alicloud/emrv2/get_clusters.py +4 -25
  46. pulumi_alicloud/emrv2/outputs.py +12 -12
  47. pulumi_alicloud/ens/_inputs.py +0 -87
  48. pulumi_alicloud/ens/load_balancer.py +25 -74
  49. pulumi_alicloud/ens/outputs.py +0 -84
  50. pulumi_alicloud/fc/__init__.py +0 -3
  51. pulumi_alicloud/fc/_inputs.py +8 -320
  52. pulumi_alicloud/fc/function.py +6 -6
  53. pulumi_alicloud/fc/function_async_invoke_config.py +2 -2
  54. pulumi_alicloud/fc/outputs.py +8 -321
  55. pulumi_alicloud/fc/trigger.py +2 -2
  56. pulumi_alicloud/ga/get_endpoint_group_ip_address_cidr_blocks.py +3 -18
  57. pulumi_alicloud/gpdb/__init__.py +0 -2
  58. pulumi_alicloud/gpdb/account.py +87 -172
  59. pulumi_alicloud/gpdb/connection.py +4 -0
  60. pulumi_alicloud/gpdb/db_resource_group.py +9 -54
  61. pulumi_alicloud/hbr/_inputs.py +14 -14
  62. pulumi_alicloud/hbr/outputs.py +14 -14
  63. pulumi_alicloud/hbr/policy.py +18 -18
  64. pulumi_alicloud/hbr/policy_binding.py +62 -203
  65. pulumi_alicloud/log/alert.py +28 -30
  66. pulumi_alicloud/log/audit.py +0 -2
  67. pulumi_alicloud/log/dashboard.py +8 -8
  68. pulumi_alicloud/log/etl.py +26 -26
  69. pulumi_alicloud/log/ingestion.py +10 -10
  70. pulumi_alicloud/log/log_tail_attachment.py +14 -14
  71. pulumi_alicloud/log/log_tail_config.py +10 -10
  72. pulumi_alicloud/log/machine_group.py +4 -4
  73. pulumi_alicloud/log/oss_export.py +10 -10
  74. pulumi_alicloud/log/project.py +4 -4
  75. pulumi_alicloud/log/store_index.py +10 -10
  76. pulumi_alicloud/nlb/server_group.py +2 -2
  77. pulumi_alicloud/oos/service_setting.py +8 -10
  78. pulumi_alicloud/oss/bucket.py +10 -18
  79. pulumi_alicloud/oss/bucket_object.py +8 -12
  80. pulumi_alicloud/oss/bucket_replication.py +2 -2
  81. pulumi_alicloud/polardb/cluster.py +21 -75
  82. pulumi_alicloud/pulumi-plugin.json +1 -1
  83. pulumi_alicloud/pvtz/zone_record.py +2 -2
  84. pulumi_alicloud/quotas/__init__.py +0 -1
  85. pulumi_alicloud/ram/access_key.py +0 -4
  86. pulumi_alicloud/rds/account_privilege.py +2 -2
  87. pulumi_alicloud/rds/backup_policy.py +12 -270
  88. pulumi_alicloud/rds/database.py +7 -49
  89. pulumi_alicloud/rds/get_instance_class_infos.py +0 -20
  90. pulumi_alicloud/rds/get_instance_classes.py +0 -22
  91. pulumi_alicloud/rds/get_instance_engines.py +0 -22
  92. pulumi_alicloud/rds/instance.py +2 -4
  93. pulumi_alicloud/rds/rds_db_proxy.py +0 -61
  94. pulumi_alicloud/rocketmq/group.py +2 -2
  95. pulumi_alicloud/rocketmq/topic.py +2 -2
  96. pulumi_alicloud/servicecatalog/__init__.py +0 -4
  97. pulumi_alicloud/servicecatalog/portfolio.py +31 -31
  98. pulumi_alicloud/sls/alert.py +6 -6
  99. pulumi_alicloud/sls/scheduled_sql.py +10 -10
  100. pulumi_alicloud/vpc/get_route_tables.py +5 -28
  101. pulumi_alicloud/vpc/ha_vip_attachment.py +2 -2
  102. pulumi_alicloud/vpc/ipv6_internet_bandwidth.py +4 -4
  103. pulumi_alicloud/vpc/outputs.py +2 -2
  104. pulumi_alicloud/vpc/route_table_attachment.py +4 -4
  105. pulumi_alicloud/vpc/traffic_mirror_filter_ingress_rule.py +2 -2
  106. {pulumi_alicloud-3.62.0.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/METADATA +1 -1
  107. {pulumi_alicloud-3.62.0.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/RECORD +109 -119
  108. {pulumi_alicloud-3.62.0.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/WHEEL +1 -1
  109. pulumi_alicloud/fc/v3_layer_version.py +0 -511
  110. pulumi_alicloud/fc/v3_provision_config.py +0 -676
  111. pulumi_alicloud/fc/v3_vpc_binding.py +0 -283
  112. pulumi_alicloud/gpdb/hadoop_data_source.py +0 -1135
  113. pulumi_alicloud/gpdb/jdbc_data_source.py +0 -643
  114. pulumi_alicloud/quotas/template_service.py +0 -165
  115. pulumi_alicloud/servicecatalog/principal_portfolio_association.py +0 -354
  116. pulumi_alicloud/servicecatalog/product.py +0 -383
  117. pulumi_alicloud/servicecatalog/product_portfolio_association.py +0 -222
  118. pulumi_alicloud/servicecatalog/product_version.py +0 -539
  119. {pulumi_alicloud-3.62.0.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/top_level.txt +0 -0
@@ -16,16 +16,17 @@ __all__ = ['ServerlessKubernetesArgs', 'ServerlessKubernetes']
16
16
  @pulumi.input_type
17
17
  class ServerlessKubernetesArgs:
18
18
  def __init__(__self__, *,
19
+ vpc_id: pulumi.Input[str],
19
20
  addons: Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]]] = None,
20
21
  client_cert: Optional[pulumi.Input[str]] = None,
21
22
  client_key: Optional[pulumi.Input[str]] = None,
22
23
  cluster_ca_cert: Optional[pulumi.Input[str]] = None,
23
24
  cluster_spec: Optional[pulumi.Input[str]] = None,
24
- custom_san: Optional[pulumi.Input[str]] = None,
25
- delete_options: Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]] = None,
25
+ create_v2_cluster: Optional[pulumi.Input[bool]] = None,
26
26
  deletion_protection: Optional[pulumi.Input[bool]] = None,
27
27
  enable_rrsa: Optional[pulumi.Input[bool]] = None,
28
28
  endpoint_public_access_enabled: Optional[pulumi.Input[bool]] = None,
29
+ force_update: Optional[pulumi.Input[bool]] = None,
29
30
  kube_config: Optional[pulumi.Input[str]] = None,
30
31
  load_balancer_spec: Optional[pulumi.Input[str]] = None,
31
32
  logging_type: Optional[pulumi.Input[str]] = None,
@@ -35,6 +36,7 @@ class ServerlessKubernetesArgs:
35
36
  private_zone: Optional[pulumi.Input[bool]] = None,
36
37
  resource_group_id: Optional[pulumi.Input[str]] = None,
37
38
  retain_resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
39
+ rrsa_metadata: Optional[pulumi.Input['ServerlessKubernetesRrsaMetadataArgs']] = None,
38
40
  security_group_id: Optional[pulumi.Input[str]] = None,
39
41
  service_cidr: Optional[pulumi.Input[str]] = None,
40
42
  service_discovery_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -42,28 +44,28 @@ class ServerlessKubernetesArgs:
42
44
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
43
45
  time_zone: Optional[pulumi.Input[str]] = None,
44
46
  version: Optional[pulumi.Input[str]] = None,
45
- vpc_id: Optional[pulumi.Input[str]] = None,
47
+ vswitch_id: Optional[pulumi.Input[str]] = None,
46
48
  vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
47
49
  zone_id: Optional[pulumi.Input[str]] = None):
48
50
  """
49
51
  The set of arguments for constructing a ServerlessKubernetes resource.
50
- :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]] addons: You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
52
+ :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
53
+ :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]] addons: You can specific network plugin,log component,ingress component and so on. See `addons` below.
51
54
  :param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
52
55
  :param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
53
56
  :param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
54
57
  :param pulumi.Input[str] cluster_spec: The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
55
58
  - ack.standard: Standard serverless clusters.
56
59
  - ack.pro.small: Professional serverless clusters.
57
- :param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
58
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
60
+ :param pulumi.Input[bool] create_v2_cluster: whether to create a v2 version cluster.
59
61
 
60
62
  *Removed params*
61
- :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
62
63
  :param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not.
63
64
  - true: Enable deletion protection.
64
65
  - false: Disable deletion protection.
65
66
  :param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
66
- :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
67
+ :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
68
+ :param pulumi.Input[bool] force_update: Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
67
69
  :param pulumi.Input[str] kube_config: The path of kube config, like `~/.kube/config`.
68
70
  :param pulumi.Input[str] load_balancer_spec: The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
69
71
  :param pulumi.Input[str] logging_type: Enable log service, Valid value `SLS`.
@@ -71,17 +73,19 @@ class ServerlessKubernetesArgs:
71
73
  :param pulumi.Input[bool] new_nat_gateway: Whether to create a new nat gateway while creating kubernetes cluster. SNAT must be configured when a new VPC is automatically created. Default is `true`.
72
74
  :param pulumi.Input[bool] private_zone: Has been deprecated from provider version 1.123.1. `PrivateZone` is used as the enumeration value of `service_discovery_types`.
73
75
  :param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
76
+ :param pulumi.Input['ServerlessKubernetesRrsaMetadataArgs'] rrsa_metadata: Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
74
77
  :param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
75
78
  :param pulumi.Input[str] service_cidr: CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
76
- :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
79
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
77
80
  :param pulumi.Input[str] sls_project_name: If you use an existing SLS project, you must specify `sls_project_name`.
78
81
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
79
82
  :param pulumi.Input[str] time_zone: The time zone of the cluster.
80
83
  :param pulumi.Input[str] version: Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
81
- :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
84
+ :param pulumi.Input[str] vswitch_id: The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
82
85
  :param pulumi.Input[Sequence[pulumi.Input[str]]] vswitch_ids: The vswitches where new kubernetes cluster will be located.
83
86
  :param pulumi.Input[str] zone_id: When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
84
87
  """
88
+ pulumi.set(__self__, "vpc_id", vpc_id)
85
89
  if addons is not None:
86
90
  pulumi.set(__self__, "addons", addons)
87
91
  if client_cert is not None:
@@ -92,29 +96,23 @@ class ServerlessKubernetesArgs:
92
96
  pulumi.set(__self__, "cluster_ca_cert", cluster_ca_cert)
93
97
  if cluster_spec is not None:
94
98
  pulumi.set(__self__, "cluster_spec", cluster_spec)
95
- if custom_san is not None:
96
- pulumi.set(__self__, "custom_san", custom_san)
97
- if delete_options is not None:
98
- pulumi.set(__self__, "delete_options", delete_options)
99
+ if create_v2_cluster is not None:
100
+ pulumi.set(__self__, "create_v2_cluster", create_v2_cluster)
99
101
  if deletion_protection is not None:
100
102
  pulumi.set(__self__, "deletion_protection", deletion_protection)
101
103
  if enable_rrsa is not None:
102
104
  pulumi.set(__self__, "enable_rrsa", enable_rrsa)
103
105
  if endpoint_public_access_enabled is not None:
104
106
  pulumi.set(__self__, "endpoint_public_access_enabled", endpoint_public_access_enabled)
107
+ if force_update is not None:
108
+ pulumi.set(__self__, "force_update", force_update)
105
109
  if kube_config is not None:
106
110
  warnings.warn("""Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""", DeprecationWarning)
107
111
  pulumi.log.warn("""kube_config is deprecated: Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""")
108
112
  if kube_config is not None:
109
113
  pulumi.set(__self__, "kube_config", kube_config)
110
- if load_balancer_spec is not None:
111
- warnings.warn("""Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""", DeprecationWarning)
112
- pulumi.log.warn("""load_balancer_spec is deprecated: Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""")
113
114
  if load_balancer_spec is not None:
114
115
  pulumi.set(__self__, "load_balancer_spec", load_balancer_spec)
115
- if logging_type is not None:
116
- warnings.warn("""Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""", DeprecationWarning)
117
- pulumi.log.warn("""logging_type is deprecated: Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""")
118
116
  if logging_type is not None:
119
117
  pulumi.set(__self__, "logging_type", logging_type)
120
118
  if name is not None:
@@ -132,15 +130,14 @@ class ServerlessKubernetesArgs:
132
130
  pulumi.set(__self__, "resource_group_id", resource_group_id)
133
131
  if retain_resources is not None:
134
132
  pulumi.set(__self__, "retain_resources", retain_resources)
133
+ if rrsa_metadata is not None:
134
+ pulumi.set(__self__, "rrsa_metadata", rrsa_metadata)
135
135
  if security_group_id is not None:
136
136
  pulumi.set(__self__, "security_group_id", security_group_id)
137
137
  if service_cidr is not None:
138
138
  pulumi.set(__self__, "service_cidr", service_cidr)
139
139
  if service_discovery_types is not None:
140
140
  pulumi.set(__self__, "service_discovery_types", service_discovery_types)
141
- if sls_project_name is not None:
142
- warnings.warn("""Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""", DeprecationWarning)
143
- pulumi.log.warn("""sls_project_name is deprecated: Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""")
144
141
  if sls_project_name is not None:
145
142
  pulumi.set(__self__, "sls_project_name", sls_project_name)
146
143
  if tags is not None:
@@ -149,18 +146,33 @@ class ServerlessKubernetesArgs:
149
146
  pulumi.set(__self__, "time_zone", time_zone)
150
147
  if version is not None:
151
148
  pulumi.set(__self__, "version", version)
152
- if vpc_id is not None:
153
- pulumi.set(__self__, "vpc_id", vpc_id)
149
+ if vswitch_id is not None:
150
+ warnings.warn("""Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""", DeprecationWarning)
151
+ pulumi.log.warn("""vswitch_id is deprecated: Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""")
152
+ if vswitch_id is not None:
153
+ pulumi.set(__self__, "vswitch_id", vswitch_id)
154
154
  if vswitch_ids is not None:
155
155
  pulumi.set(__self__, "vswitch_ids", vswitch_ids)
156
156
  if zone_id is not None:
157
157
  pulumi.set(__self__, "zone_id", zone_id)
158
158
 
159
+ @property
160
+ @pulumi.getter(name="vpcId")
161
+ def vpc_id(self) -> pulumi.Input[str]:
162
+ """
163
+ The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
164
+ """
165
+ return pulumi.get(self, "vpc_id")
166
+
167
+ @vpc_id.setter
168
+ def vpc_id(self, value: pulumi.Input[str]):
169
+ pulumi.set(self, "vpc_id", value)
170
+
159
171
  @property
160
172
  @pulumi.getter
161
173
  def addons(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]]]:
162
174
  """
163
- You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
175
+ You can specific network plugin,log component,ingress component and so on. See `addons` below.
164
176
  """
165
177
  return pulumi.get(self, "addons")
166
178
 
@@ -219,31 +231,18 @@ class ServerlessKubernetesArgs:
219
231
  pulumi.set(self, "cluster_spec", value)
220
232
 
221
233
  @property
222
- @pulumi.getter(name="customSan")
223
- def custom_san(self) -> Optional[pulumi.Input[str]]:
234
+ @pulumi.getter(name="createV2Cluster")
235
+ def create_v2_cluster(self) -> Optional[pulumi.Input[bool]]:
224
236
  """
225
- Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
226
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
237
+ whether to create a v2 version cluster.
227
238
 
228
239
  *Removed params*
229
240
  """
230
- return pulumi.get(self, "custom_san")
241
+ return pulumi.get(self, "create_v2_cluster")
231
242
 
232
- @custom_san.setter
233
- def custom_san(self, value: Optional[pulumi.Input[str]]):
234
- pulumi.set(self, "custom_san", value)
235
-
236
- @property
237
- @pulumi.getter(name="deleteOptions")
238
- def delete_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]]:
239
- """
240
- Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
241
- """
242
- return pulumi.get(self, "delete_options")
243
-
244
- @delete_options.setter
245
- def delete_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]]):
246
- pulumi.set(self, "delete_options", value)
243
+ @create_v2_cluster.setter
244
+ def create_v2_cluster(self, value: Optional[pulumi.Input[bool]]):
245
+ pulumi.set(self, "create_v2_cluster", value)
247
246
 
248
247
  @property
249
248
  @pulumi.getter(name="deletionProtection")
@@ -275,7 +274,7 @@ class ServerlessKubernetesArgs:
275
274
  @pulumi.getter(name="endpointPublicAccessEnabled")
276
275
  def endpoint_public_access_enabled(self) -> Optional[pulumi.Input[bool]]:
277
276
  """
278
- Whether to create internet eip for API Server. Default to false.
277
+ Whether to create internet eip for API Server. Default to false.
279
278
  """
280
279
  return pulumi.get(self, "endpoint_public_access_enabled")
281
280
 
@@ -283,6 +282,18 @@ class ServerlessKubernetesArgs:
283
282
  def endpoint_public_access_enabled(self, value: Optional[pulumi.Input[bool]]):
284
283
  pulumi.set(self, "endpoint_public_access_enabled", value)
285
284
 
285
+ @property
286
+ @pulumi.getter(name="forceUpdate")
287
+ def force_update(self) -> Optional[pulumi.Input[bool]]:
288
+ """
289
+ Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
290
+ """
291
+ return pulumi.get(self, "force_update")
292
+
293
+ @force_update.setter
294
+ def force_update(self, value: Optional[pulumi.Input[bool]]):
295
+ pulumi.set(self, "force_update", value)
296
+
286
297
  @property
287
298
  @pulumi.getter(name="kubeConfig")
288
299
  @_utilities.deprecated("""Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""")
@@ -298,7 +309,6 @@ class ServerlessKubernetesArgs:
298
309
 
299
310
  @property
300
311
  @pulumi.getter(name="loadBalancerSpec")
301
- @_utilities.deprecated("""Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""")
302
312
  def load_balancer_spec(self) -> Optional[pulumi.Input[str]]:
303
313
  """
304
314
  The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
@@ -311,7 +321,6 @@ class ServerlessKubernetesArgs:
311
321
 
312
322
  @property
313
323
  @pulumi.getter(name="loggingType")
314
- @_utilities.deprecated("""Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""")
315
324
  def logging_type(self) -> Optional[pulumi.Input[str]]:
316
325
  """
317
326
  Enable log service, Valid value `SLS`.
@@ -389,6 +398,18 @@ class ServerlessKubernetesArgs:
389
398
  def retain_resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
390
399
  pulumi.set(self, "retain_resources", value)
391
400
 
401
+ @property
402
+ @pulumi.getter(name="rrsaMetadata")
403
+ def rrsa_metadata(self) -> Optional[pulumi.Input['ServerlessKubernetesRrsaMetadataArgs']]:
404
+ """
405
+ Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
406
+ """
407
+ return pulumi.get(self, "rrsa_metadata")
408
+
409
+ @rrsa_metadata.setter
410
+ def rrsa_metadata(self, value: Optional[pulumi.Input['ServerlessKubernetesRrsaMetadataArgs']]):
411
+ pulumi.set(self, "rrsa_metadata", value)
412
+
392
413
  @property
393
414
  @pulumi.getter(name="securityGroupId")
394
415
  def security_group_id(self) -> Optional[pulumi.Input[str]]:
@@ -417,7 +438,7 @@ class ServerlessKubernetesArgs:
417
438
  @pulumi.getter(name="serviceDiscoveryTypes")
418
439
  def service_discovery_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
419
440
  """
420
- Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
441
+ Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
421
442
  """
422
443
  return pulumi.get(self, "service_discovery_types")
423
444
 
@@ -427,7 +448,6 @@ class ServerlessKubernetesArgs:
427
448
 
428
449
  @property
429
450
  @pulumi.getter(name="slsProjectName")
430
- @_utilities.deprecated("""Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""")
431
451
  def sls_project_name(self) -> Optional[pulumi.Input[str]]:
432
452
  """
433
453
  If you use an existing SLS project, you must specify `sls_project_name`.
@@ -475,16 +495,17 @@ class ServerlessKubernetesArgs:
475
495
  pulumi.set(self, "version", value)
476
496
 
477
497
  @property
478
- @pulumi.getter(name="vpcId")
479
- def vpc_id(self) -> Optional[pulumi.Input[str]]:
498
+ @pulumi.getter(name="vswitchId")
499
+ @_utilities.deprecated("""Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""")
500
+ def vswitch_id(self) -> Optional[pulumi.Input[str]]:
480
501
  """
481
- The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
502
+ The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
482
503
  """
483
- return pulumi.get(self, "vpc_id")
504
+ return pulumi.get(self, "vswitch_id")
484
505
 
485
- @vpc_id.setter
486
- def vpc_id(self, value: Optional[pulumi.Input[str]]):
487
- pulumi.set(self, "vpc_id", value)
506
+ @vswitch_id.setter
507
+ def vswitch_id(self, value: Optional[pulumi.Input[str]]):
508
+ pulumi.set(self, "vswitch_id", value)
488
509
 
489
510
  @property
490
511
  @pulumi.getter(name="vswitchIds")
@@ -519,11 +540,11 @@ class _ServerlessKubernetesState:
519
540
  client_key: Optional[pulumi.Input[str]] = None,
520
541
  cluster_ca_cert: Optional[pulumi.Input[str]] = None,
521
542
  cluster_spec: Optional[pulumi.Input[str]] = None,
522
- custom_san: Optional[pulumi.Input[str]] = None,
523
- delete_options: Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]] = None,
543
+ create_v2_cluster: Optional[pulumi.Input[bool]] = None,
524
544
  deletion_protection: Optional[pulumi.Input[bool]] = None,
525
545
  enable_rrsa: Optional[pulumi.Input[bool]] = None,
526
546
  endpoint_public_access_enabled: Optional[pulumi.Input[bool]] = None,
547
+ force_update: Optional[pulumi.Input[bool]] = None,
527
548
  kube_config: Optional[pulumi.Input[str]] = None,
528
549
  load_balancer_spec: Optional[pulumi.Input[str]] = None,
529
550
  logging_type: Optional[pulumi.Input[str]] = None,
@@ -542,27 +563,27 @@ class _ServerlessKubernetesState:
542
563
  time_zone: Optional[pulumi.Input[str]] = None,
543
564
  version: Optional[pulumi.Input[str]] = None,
544
565
  vpc_id: Optional[pulumi.Input[str]] = None,
566
+ vswitch_id: Optional[pulumi.Input[str]] = None,
545
567
  vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
546
568
  zone_id: Optional[pulumi.Input[str]] = None):
547
569
  """
548
570
  Input properties used for looking up and filtering ServerlessKubernetes resources.
549
- :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]] addons: You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
571
+ :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]] addons: You can specific network plugin,log component,ingress component and so on. See `addons` below.
550
572
  :param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
551
573
  :param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
552
574
  :param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
553
575
  :param pulumi.Input[str] cluster_spec: The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
554
576
  - ack.standard: Standard serverless clusters.
555
577
  - ack.pro.small: Professional serverless clusters.
556
- :param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
557
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
578
+ :param pulumi.Input[bool] create_v2_cluster: whether to create a v2 version cluster.
558
579
 
559
580
  *Removed params*
560
- :param pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
561
581
  :param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not.
562
582
  - true: Enable deletion protection.
563
583
  - false: Disable deletion protection.
564
584
  :param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
565
- :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
585
+ :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
586
+ :param pulumi.Input[bool] force_update: Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
566
587
  :param pulumi.Input[str] kube_config: The path of kube config, like `~/.kube/config`.
567
588
  :param pulumi.Input[str] load_balancer_spec: The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
568
589
  :param pulumi.Input[str] logging_type: Enable log service, Valid value `SLS`.
@@ -570,15 +591,16 @@ class _ServerlessKubernetesState:
570
591
  :param pulumi.Input[bool] new_nat_gateway: Whether to create a new nat gateway while creating kubernetes cluster. SNAT must be configured when a new VPC is automatically created. Default is `true`.
571
592
  :param pulumi.Input[bool] private_zone: Has been deprecated from provider version 1.123.1. `PrivateZone` is used as the enumeration value of `service_discovery_types`.
572
593
  :param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
573
- :param pulumi.Input['ServerlessKubernetesRrsaMetadataArgs'] rrsa_metadata: Nested attribute containing RRSA related data for your cluster.
594
+ :param pulumi.Input['ServerlessKubernetesRrsaMetadataArgs'] rrsa_metadata: Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
574
595
  :param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
575
596
  :param pulumi.Input[str] service_cidr: CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
576
- :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
597
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
577
598
  :param pulumi.Input[str] sls_project_name: If you use an existing SLS project, you must specify `sls_project_name`.
578
599
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
579
600
  :param pulumi.Input[str] time_zone: The time zone of the cluster.
580
601
  :param pulumi.Input[str] version: Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
581
- :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
602
+ :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
603
+ :param pulumi.Input[str] vswitch_id: The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
582
604
  :param pulumi.Input[Sequence[pulumi.Input[str]]] vswitch_ids: The vswitches where new kubernetes cluster will be located.
583
605
  :param pulumi.Input[str] zone_id: When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
584
606
  """
@@ -592,29 +614,23 @@ class _ServerlessKubernetesState:
592
614
  pulumi.set(__self__, "cluster_ca_cert", cluster_ca_cert)
593
615
  if cluster_spec is not None:
594
616
  pulumi.set(__self__, "cluster_spec", cluster_spec)
595
- if custom_san is not None:
596
- pulumi.set(__self__, "custom_san", custom_san)
597
- if delete_options is not None:
598
- pulumi.set(__self__, "delete_options", delete_options)
617
+ if create_v2_cluster is not None:
618
+ pulumi.set(__self__, "create_v2_cluster", create_v2_cluster)
599
619
  if deletion_protection is not None:
600
620
  pulumi.set(__self__, "deletion_protection", deletion_protection)
601
621
  if enable_rrsa is not None:
602
622
  pulumi.set(__self__, "enable_rrsa", enable_rrsa)
603
623
  if endpoint_public_access_enabled is not None:
604
624
  pulumi.set(__self__, "endpoint_public_access_enabled", endpoint_public_access_enabled)
625
+ if force_update is not None:
626
+ pulumi.set(__self__, "force_update", force_update)
605
627
  if kube_config is not None:
606
628
  warnings.warn("""Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""", DeprecationWarning)
607
629
  pulumi.log.warn("""kube_config is deprecated: Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""")
608
630
  if kube_config is not None:
609
631
  pulumi.set(__self__, "kube_config", kube_config)
610
- if load_balancer_spec is not None:
611
- warnings.warn("""Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""", DeprecationWarning)
612
- pulumi.log.warn("""load_balancer_spec is deprecated: Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""")
613
632
  if load_balancer_spec is not None:
614
633
  pulumi.set(__self__, "load_balancer_spec", load_balancer_spec)
615
- if logging_type is not None:
616
- warnings.warn("""Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""", DeprecationWarning)
617
- pulumi.log.warn("""logging_type is deprecated: Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""")
618
634
  if logging_type is not None:
619
635
  pulumi.set(__self__, "logging_type", logging_type)
620
636
  if name is not None:
@@ -640,9 +656,6 @@ class _ServerlessKubernetesState:
640
656
  pulumi.set(__self__, "service_cidr", service_cidr)
641
657
  if service_discovery_types is not None:
642
658
  pulumi.set(__self__, "service_discovery_types", service_discovery_types)
643
- if sls_project_name is not None:
644
- warnings.warn("""Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""", DeprecationWarning)
645
- pulumi.log.warn("""sls_project_name is deprecated: Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""")
646
659
  if sls_project_name is not None:
647
660
  pulumi.set(__self__, "sls_project_name", sls_project_name)
648
661
  if tags is not None:
@@ -653,6 +666,11 @@ class _ServerlessKubernetesState:
653
666
  pulumi.set(__self__, "version", version)
654
667
  if vpc_id is not None:
655
668
  pulumi.set(__self__, "vpc_id", vpc_id)
669
+ if vswitch_id is not None:
670
+ warnings.warn("""Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""", DeprecationWarning)
671
+ pulumi.log.warn("""vswitch_id is deprecated: Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""")
672
+ if vswitch_id is not None:
673
+ pulumi.set(__self__, "vswitch_id", vswitch_id)
656
674
  if vswitch_ids is not None:
657
675
  pulumi.set(__self__, "vswitch_ids", vswitch_ids)
658
676
  if zone_id is not None:
@@ -662,7 +680,7 @@ class _ServerlessKubernetesState:
662
680
  @pulumi.getter
663
681
  def addons(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesAddonArgs']]]]:
664
682
  """
665
- You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
683
+ You can specific network plugin,log component,ingress component and so on. See `addons` below.
666
684
  """
667
685
  return pulumi.get(self, "addons")
668
686
 
@@ -721,31 +739,18 @@ class _ServerlessKubernetesState:
721
739
  pulumi.set(self, "cluster_spec", value)
722
740
 
723
741
  @property
724
- @pulumi.getter(name="customSan")
725
- def custom_san(self) -> Optional[pulumi.Input[str]]:
742
+ @pulumi.getter(name="createV2Cluster")
743
+ def create_v2_cluster(self) -> Optional[pulumi.Input[bool]]:
726
744
  """
727
- Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
728
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
745
+ whether to create a v2 version cluster.
729
746
 
730
747
  *Removed params*
731
748
  """
732
- return pulumi.get(self, "custom_san")
733
-
734
- @custom_san.setter
735
- def custom_san(self, value: Optional[pulumi.Input[str]]):
736
- pulumi.set(self, "custom_san", value)
737
-
738
- @property
739
- @pulumi.getter(name="deleteOptions")
740
- def delete_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]]:
741
- """
742
- Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
743
- """
744
- return pulumi.get(self, "delete_options")
749
+ return pulumi.get(self, "create_v2_cluster")
745
750
 
746
- @delete_options.setter
747
- def delete_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerlessKubernetesDeleteOptionArgs']]]]):
748
- pulumi.set(self, "delete_options", value)
751
+ @create_v2_cluster.setter
752
+ def create_v2_cluster(self, value: Optional[pulumi.Input[bool]]):
753
+ pulumi.set(self, "create_v2_cluster", value)
749
754
 
750
755
  @property
751
756
  @pulumi.getter(name="deletionProtection")
@@ -777,7 +782,7 @@ class _ServerlessKubernetesState:
777
782
  @pulumi.getter(name="endpointPublicAccessEnabled")
778
783
  def endpoint_public_access_enabled(self) -> Optional[pulumi.Input[bool]]:
779
784
  """
780
- Whether to create internet eip for API Server. Default to false.
785
+ Whether to create internet eip for API Server. Default to false.
781
786
  """
782
787
  return pulumi.get(self, "endpoint_public_access_enabled")
783
788
 
@@ -785,6 +790,18 @@ class _ServerlessKubernetesState:
785
790
  def endpoint_public_access_enabled(self, value: Optional[pulumi.Input[bool]]):
786
791
  pulumi.set(self, "endpoint_public_access_enabled", value)
787
792
 
793
+ @property
794
+ @pulumi.getter(name="forceUpdate")
795
+ def force_update(self) -> Optional[pulumi.Input[bool]]:
796
+ """
797
+ Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
798
+ """
799
+ return pulumi.get(self, "force_update")
800
+
801
+ @force_update.setter
802
+ def force_update(self, value: Optional[pulumi.Input[bool]]):
803
+ pulumi.set(self, "force_update", value)
804
+
788
805
  @property
789
806
  @pulumi.getter(name="kubeConfig")
790
807
  @_utilities.deprecated("""Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""")
@@ -800,7 +817,6 @@ class _ServerlessKubernetesState:
800
817
 
801
818
  @property
802
819
  @pulumi.getter(name="loadBalancerSpec")
803
- @_utilities.deprecated("""Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""")
804
820
  def load_balancer_spec(self) -> Optional[pulumi.Input[str]]:
805
821
  """
806
822
  The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
@@ -813,7 +829,6 @@ class _ServerlessKubernetesState:
813
829
 
814
830
  @property
815
831
  @pulumi.getter(name="loggingType")
816
- @_utilities.deprecated("""Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""")
817
832
  def logging_type(self) -> Optional[pulumi.Input[str]]:
818
833
  """
819
834
  Enable log service, Valid value `SLS`.
@@ -895,7 +910,7 @@ class _ServerlessKubernetesState:
895
910
  @pulumi.getter(name="rrsaMetadata")
896
911
  def rrsa_metadata(self) -> Optional[pulumi.Input['ServerlessKubernetesRrsaMetadataArgs']]:
897
912
  """
898
- Nested attribute containing RRSA related data for your cluster.
913
+ Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
899
914
  """
900
915
  return pulumi.get(self, "rrsa_metadata")
901
916
 
@@ -931,7 +946,7 @@ class _ServerlessKubernetesState:
931
946
  @pulumi.getter(name="serviceDiscoveryTypes")
932
947
  def service_discovery_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
933
948
  """
934
- Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
949
+ Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
935
950
  """
936
951
  return pulumi.get(self, "service_discovery_types")
937
952
 
@@ -941,7 +956,6 @@ class _ServerlessKubernetesState:
941
956
 
942
957
  @property
943
958
  @pulumi.getter(name="slsProjectName")
944
- @_utilities.deprecated("""Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""")
945
959
  def sls_project_name(self) -> Optional[pulumi.Input[str]]:
946
960
  """
947
961
  If you use an existing SLS project, you must specify `sls_project_name`.
@@ -992,7 +1006,7 @@ class _ServerlessKubernetesState:
992
1006
  @pulumi.getter(name="vpcId")
993
1007
  def vpc_id(self) -> Optional[pulumi.Input[str]]:
994
1008
  """
995
- The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1009
+ The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
996
1010
  """
997
1011
  return pulumi.get(self, "vpc_id")
998
1012
 
@@ -1000,6 +1014,19 @@ class _ServerlessKubernetesState:
1000
1014
  def vpc_id(self, value: Optional[pulumi.Input[str]]):
1001
1015
  pulumi.set(self, "vpc_id", value)
1002
1016
 
1017
+ @property
1018
+ @pulumi.getter(name="vswitchId")
1019
+ @_utilities.deprecated("""Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""")
1020
+ def vswitch_id(self) -> Optional[pulumi.Input[str]]:
1021
+ """
1022
+ The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
1023
+ """
1024
+ return pulumi.get(self, "vswitch_id")
1025
+
1026
+ @vswitch_id.setter
1027
+ def vswitch_id(self, value: Optional[pulumi.Input[str]]):
1028
+ pulumi.set(self, "vswitch_id", value)
1029
+
1003
1030
  @property
1004
1031
  @pulumi.getter(name="vswitchIds")
1005
1032
  def vswitch_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -1035,11 +1062,11 @@ class ServerlessKubernetes(pulumi.CustomResource):
1035
1062
  client_key: Optional[pulumi.Input[str]] = None,
1036
1063
  cluster_ca_cert: Optional[pulumi.Input[str]] = None,
1037
1064
  cluster_spec: Optional[pulumi.Input[str]] = None,
1038
- custom_san: Optional[pulumi.Input[str]] = None,
1039
- delete_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesDeleteOptionArgs', 'ServerlessKubernetesDeleteOptionArgsDict']]]]] = None,
1065
+ create_v2_cluster: Optional[pulumi.Input[bool]] = None,
1040
1066
  deletion_protection: Optional[pulumi.Input[bool]] = None,
1041
1067
  enable_rrsa: Optional[pulumi.Input[bool]] = None,
1042
1068
  endpoint_public_access_enabled: Optional[pulumi.Input[bool]] = None,
1069
+ force_update: Optional[pulumi.Input[bool]] = None,
1043
1070
  kube_config: Optional[pulumi.Input[str]] = None,
1044
1071
  load_balancer_spec: Optional[pulumi.Input[str]] = None,
1045
1072
  logging_type: Optional[pulumi.Input[str]] = None,
@@ -1049,6 +1076,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1049
1076
  private_zone: Optional[pulumi.Input[bool]] = None,
1050
1077
  resource_group_id: Optional[pulumi.Input[str]] = None,
1051
1078
  retain_resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1079
+ rrsa_metadata: Optional[pulumi.Input[Union['ServerlessKubernetesRrsaMetadataArgs', 'ServerlessKubernetesRrsaMetadataArgsDict']]] = None,
1052
1080
  security_group_id: Optional[pulumi.Input[str]] = None,
1053
1081
  service_cidr: Optional[pulumi.Input[str]] = None,
1054
1082
  service_discovery_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -1057,6 +1085,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1057
1085
  time_zone: Optional[pulumi.Input[str]] = None,
1058
1086
  version: Optional[pulumi.Input[str]] = None,
1059
1087
  vpc_id: Optional[pulumi.Input[str]] = None,
1088
+ vswitch_id: Optional[pulumi.Input[str]] = None,
1060
1089
  vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1061
1090
  zone_id: Optional[pulumi.Input[str]] = None,
1062
1091
  __props__=None):
@@ -1081,8 +1110,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1081
1110
 
1082
1111
  > **NOTE:** From version 1.162.0, support for creating professional serverless cluster.
1083
1112
 
1084
- > **NOTE:** From version 1.229.1, support to migrate basic serverless cluster to professional serverless cluster.
1085
-
1086
1113
  ## Example Usage
1087
1114
 
1088
1115
  Basic Usage
@@ -1094,15 +1121,15 @@ class ServerlessKubernetes(pulumi.CustomResource):
1094
1121
  config = pulumi.Config()
1095
1122
  name = config.get("name")
1096
1123
  if name is None:
1097
- name = "ask-example-pro"
1124
+ name = "ask-example"
1098
1125
  default = alicloud.get_zones(available_resource_creation="VSwitch")
1099
1126
  default_network = alicloud.vpc.Network("default",
1100
1127
  vpc_name=name,
1101
- cidr_block="10.2.0.0/21")
1128
+ cidr_block="10.1.0.0/21")
1102
1129
  default_switch = alicloud.vpc.Switch("default",
1103
1130
  vswitch_name=name,
1104
1131
  vpc_id=default_network.id,
1105
- cidr_block="10.2.1.0/24",
1132
+ cidr_block="10.1.1.0/24",
1106
1133
  zone_id=default.zones[0].id)
1107
1134
  serverless = alicloud.cs.ServerlessKubernetes("serverless",
1108
1135
  name_prefix=name,
@@ -1131,9 +1158,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1131
1158
  {
1132
1159
  "name": "knative",
1133
1160
  },
1134
- {
1135
- "name": "arms-prometheus",
1136
- },
1137
1161
  ])
1138
1162
  ```
1139
1163
 
@@ -1147,23 +1171,22 @@ class ServerlessKubernetes(pulumi.CustomResource):
1147
1171
 
1148
1172
  :param str resource_name: The name of the resource.
1149
1173
  :param pulumi.ResourceOptions opts: Options for the resource.
1150
- :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesAddonArgs', 'ServerlessKubernetesAddonArgsDict']]]] addons: You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
1174
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesAddonArgs', 'ServerlessKubernetesAddonArgsDict']]]] addons: You can specific network plugin,log component,ingress component and so on. See `addons` below.
1151
1175
  :param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
1152
1176
  :param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
1153
1177
  :param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
1154
1178
  :param pulumi.Input[str] cluster_spec: The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
1155
1179
  - ack.standard: Standard serverless clusters.
1156
1180
  - ack.pro.small: Professional serverless clusters.
1157
- :param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
1158
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
1181
+ :param pulumi.Input[bool] create_v2_cluster: whether to create a v2 version cluster.
1159
1182
 
1160
1183
  *Removed params*
1161
- :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesDeleteOptionArgs', 'ServerlessKubernetesDeleteOptionArgsDict']]]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
1162
1184
  :param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not.
1163
1185
  - true: Enable deletion protection.
1164
1186
  - false: Disable deletion protection.
1165
1187
  :param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
1166
- :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
1188
+ :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
1189
+ :param pulumi.Input[bool] force_update: Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
1167
1190
  :param pulumi.Input[str] kube_config: The path of kube config, like `~/.kube/config`.
1168
1191
  :param pulumi.Input[str] load_balancer_spec: The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
1169
1192
  :param pulumi.Input[str] logging_type: Enable log service, Valid value `SLS`.
@@ -1171,14 +1194,16 @@ class ServerlessKubernetes(pulumi.CustomResource):
1171
1194
  :param pulumi.Input[bool] new_nat_gateway: Whether to create a new nat gateway while creating kubernetes cluster. SNAT must be configured when a new VPC is automatically created. Default is `true`.
1172
1195
  :param pulumi.Input[bool] private_zone: Has been deprecated from provider version 1.123.1. `PrivateZone` is used as the enumeration value of `service_discovery_types`.
1173
1196
  :param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
1197
+ :param pulumi.Input[Union['ServerlessKubernetesRrsaMetadataArgs', 'ServerlessKubernetesRrsaMetadataArgsDict']] rrsa_metadata: Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
1174
1198
  :param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
1175
1199
  :param pulumi.Input[str] service_cidr: CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
1176
- :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1200
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1177
1201
  :param pulumi.Input[str] sls_project_name: If you use an existing SLS project, you must specify `sls_project_name`.
1178
1202
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
1179
1203
  :param pulumi.Input[str] time_zone: The time zone of the cluster.
1180
1204
  :param pulumi.Input[str] version: Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
1181
- :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1205
+ :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1206
+ :param pulumi.Input[str] vswitch_id: The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
1182
1207
  :param pulumi.Input[Sequence[pulumi.Input[str]]] vswitch_ids: The vswitches where new kubernetes cluster will be located.
1183
1208
  :param pulumi.Input[str] zone_id: When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
1184
1209
  """
@@ -1186,7 +1211,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1186
1211
  @overload
1187
1212
  def __init__(__self__,
1188
1213
  resource_name: str,
1189
- args: Optional[ServerlessKubernetesArgs] = None,
1214
+ args: ServerlessKubernetesArgs,
1190
1215
  opts: Optional[pulumi.ResourceOptions] = None):
1191
1216
  """
1192
1217
  This resource will help you to manager a Serverless Kubernetes Cluster, see [What is serverless kubernetes](https://www.alibabacloud.com/help/en/ack/ack-managed-and-ack-dedicated/developer-reference/create-a-dedicated-kubernetes-cluster-that-supports-sandboxed-containers). The cluster is same as container service created by web console.
@@ -1209,8 +1234,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1209
1234
 
1210
1235
  > **NOTE:** From version 1.162.0, support for creating professional serverless cluster.
1211
1236
 
1212
- > **NOTE:** From version 1.229.1, support to migrate basic serverless cluster to professional serverless cluster.
1213
-
1214
1237
  ## Example Usage
1215
1238
 
1216
1239
  Basic Usage
@@ -1222,15 +1245,15 @@ class ServerlessKubernetes(pulumi.CustomResource):
1222
1245
  config = pulumi.Config()
1223
1246
  name = config.get("name")
1224
1247
  if name is None:
1225
- name = "ask-example-pro"
1248
+ name = "ask-example"
1226
1249
  default = alicloud.get_zones(available_resource_creation="VSwitch")
1227
1250
  default_network = alicloud.vpc.Network("default",
1228
1251
  vpc_name=name,
1229
- cidr_block="10.2.0.0/21")
1252
+ cidr_block="10.1.0.0/21")
1230
1253
  default_switch = alicloud.vpc.Switch("default",
1231
1254
  vswitch_name=name,
1232
1255
  vpc_id=default_network.id,
1233
- cidr_block="10.2.1.0/24",
1256
+ cidr_block="10.1.1.0/24",
1234
1257
  zone_id=default.zones[0].id)
1235
1258
  serverless = alicloud.cs.ServerlessKubernetes("serverless",
1236
1259
  name_prefix=name,
@@ -1259,9 +1282,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1259
1282
  {
1260
1283
  "name": "knative",
1261
1284
  },
1262
- {
1263
- "name": "arms-prometheus",
1264
- },
1265
1285
  ])
1266
1286
  ```
1267
1287
 
@@ -1293,11 +1313,11 @@ class ServerlessKubernetes(pulumi.CustomResource):
1293
1313
  client_key: Optional[pulumi.Input[str]] = None,
1294
1314
  cluster_ca_cert: Optional[pulumi.Input[str]] = None,
1295
1315
  cluster_spec: Optional[pulumi.Input[str]] = None,
1296
- custom_san: Optional[pulumi.Input[str]] = None,
1297
- delete_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesDeleteOptionArgs', 'ServerlessKubernetesDeleteOptionArgsDict']]]]] = None,
1316
+ create_v2_cluster: Optional[pulumi.Input[bool]] = None,
1298
1317
  deletion_protection: Optional[pulumi.Input[bool]] = None,
1299
1318
  enable_rrsa: Optional[pulumi.Input[bool]] = None,
1300
1319
  endpoint_public_access_enabled: Optional[pulumi.Input[bool]] = None,
1320
+ force_update: Optional[pulumi.Input[bool]] = None,
1301
1321
  kube_config: Optional[pulumi.Input[str]] = None,
1302
1322
  load_balancer_spec: Optional[pulumi.Input[str]] = None,
1303
1323
  logging_type: Optional[pulumi.Input[str]] = None,
@@ -1307,6 +1327,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1307
1327
  private_zone: Optional[pulumi.Input[bool]] = None,
1308
1328
  resource_group_id: Optional[pulumi.Input[str]] = None,
1309
1329
  retain_resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1330
+ rrsa_metadata: Optional[pulumi.Input[Union['ServerlessKubernetesRrsaMetadataArgs', 'ServerlessKubernetesRrsaMetadataArgsDict']]] = None,
1310
1331
  security_group_id: Optional[pulumi.Input[str]] = None,
1311
1332
  service_cidr: Optional[pulumi.Input[str]] = None,
1312
1333
  service_discovery_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -1315,6 +1336,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1315
1336
  time_zone: Optional[pulumi.Input[str]] = None,
1316
1337
  version: Optional[pulumi.Input[str]] = None,
1317
1338
  vpc_id: Optional[pulumi.Input[str]] = None,
1339
+ vswitch_id: Optional[pulumi.Input[str]] = None,
1318
1340
  vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1319
1341
  zone_id: Optional[pulumi.Input[str]] = None,
1320
1342
  __props__=None):
@@ -1331,11 +1353,11 @@ class ServerlessKubernetes(pulumi.CustomResource):
1331
1353
  __props__.__dict__["client_key"] = client_key
1332
1354
  __props__.__dict__["cluster_ca_cert"] = cluster_ca_cert
1333
1355
  __props__.__dict__["cluster_spec"] = cluster_spec
1334
- __props__.__dict__["custom_san"] = custom_san
1335
- __props__.__dict__["delete_options"] = delete_options
1356
+ __props__.__dict__["create_v2_cluster"] = create_v2_cluster
1336
1357
  __props__.__dict__["deletion_protection"] = deletion_protection
1337
1358
  __props__.__dict__["enable_rrsa"] = enable_rrsa
1338
1359
  __props__.__dict__["endpoint_public_access_enabled"] = endpoint_public_access_enabled
1360
+ __props__.__dict__["force_update"] = force_update
1339
1361
  __props__.__dict__["kube_config"] = kube_config
1340
1362
  __props__.__dict__["load_balancer_spec"] = load_balancer_spec
1341
1363
  __props__.__dict__["logging_type"] = logging_type
@@ -1345,6 +1367,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1345
1367
  __props__.__dict__["private_zone"] = private_zone
1346
1368
  __props__.__dict__["resource_group_id"] = resource_group_id
1347
1369
  __props__.__dict__["retain_resources"] = retain_resources
1370
+ __props__.__dict__["rrsa_metadata"] = rrsa_metadata
1348
1371
  __props__.__dict__["security_group_id"] = security_group_id
1349
1372
  __props__.__dict__["service_cidr"] = service_cidr
1350
1373
  __props__.__dict__["service_discovery_types"] = service_discovery_types
@@ -1352,10 +1375,12 @@ class ServerlessKubernetes(pulumi.CustomResource):
1352
1375
  __props__.__dict__["tags"] = tags
1353
1376
  __props__.__dict__["time_zone"] = time_zone
1354
1377
  __props__.__dict__["version"] = version
1378
+ if vpc_id is None and not opts.urn:
1379
+ raise TypeError("Missing required property 'vpc_id'")
1355
1380
  __props__.__dict__["vpc_id"] = vpc_id
1381
+ __props__.__dict__["vswitch_id"] = vswitch_id
1356
1382
  __props__.__dict__["vswitch_ids"] = vswitch_ids
1357
1383
  __props__.__dict__["zone_id"] = zone_id
1358
- __props__.__dict__["rrsa_metadata"] = None
1359
1384
  super(ServerlessKubernetes, __self__).__init__(
1360
1385
  'alicloud:cs/serverlessKubernetes:ServerlessKubernetes',
1361
1386
  resource_name,
@@ -1371,11 +1396,11 @@ class ServerlessKubernetes(pulumi.CustomResource):
1371
1396
  client_key: Optional[pulumi.Input[str]] = None,
1372
1397
  cluster_ca_cert: Optional[pulumi.Input[str]] = None,
1373
1398
  cluster_spec: Optional[pulumi.Input[str]] = None,
1374
- custom_san: Optional[pulumi.Input[str]] = None,
1375
- delete_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesDeleteOptionArgs', 'ServerlessKubernetesDeleteOptionArgsDict']]]]] = None,
1399
+ create_v2_cluster: Optional[pulumi.Input[bool]] = None,
1376
1400
  deletion_protection: Optional[pulumi.Input[bool]] = None,
1377
1401
  enable_rrsa: Optional[pulumi.Input[bool]] = None,
1378
1402
  endpoint_public_access_enabled: Optional[pulumi.Input[bool]] = None,
1403
+ force_update: Optional[pulumi.Input[bool]] = None,
1379
1404
  kube_config: Optional[pulumi.Input[str]] = None,
1380
1405
  load_balancer_spec: Optional[pulumi.Input[str]] = None,
1381
1406
  logging_type: Optional[pulumi.Input[str]] = None,
@@ -1394,6 +1419,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1394
1419
  time_zone: Optional[pulumi.Input[str]] = None,
1395
1420
  version: Optional[pulumi.Input[str]] = None,
1396
1421
  vpc_id: Optional[pulumi.Input[str]] = None,
1422
+ vswitch_id: Optional[pulumi.Input[str]] = None,
1397
1423
  vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1398
1424
  zone_id: Optional[pulumi.Input[str]] = None) -> 'ServerlessKubernetes':
1399
1425
  """
@@ -1403,23 +1429,22 @@ class ServerlessKubernetes(pulumi.CustomResource):
1403
1429
  :param str resource_name: The unique name of the resulting resource.
1404
1430
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1405
1431
  :param pulumi.ResourceOptions opts: Options for the resource.
1406
- :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesAddonArgs', 'ServerlessKubernetesAddonArgsDict']]]] addons: You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
1432
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesAddonArgs', 'ServerlessKubernetesAddonArgsDict']]]] addons: You can specific network plugin,log component,ingress component and so on. See `addons` below.
1407
1433
  :param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
1408
1434
  :param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
1409
1435
  :param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
1410
1436
  :param pulumi.Input[str] cluster_spec: The cluster specifications of serverless kubernetes cluster, which can be empty. Valid values:
1411
1437
  - ack.standard: Standard serverless clusters.
1412
1438
  - ack.pro.small: Professional serverless clusters.
1413
- :param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
1414
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
1439
+ :param pulumi.Input[bool] create_v2_cluster: whether to create a v2 version cluster.
1415
1440
 
1416
1441
  *Removed params*
1417
- :param pulumi.Input[Sequence[pulumi.Input[Union['ServerlessKubernetesDeleteOptionArgs', 'ServerlessKubernetesDeleteOptionArgsDict']]]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
1418
1442
  :param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not.
1419
1443
  - true: Enable deletion protection.
1420
1444
  - false: Disable deletion protection.
1421
1445
  :param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
1422
- :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
1446
+ :param pulumi.Input[bool] endpoint_public_access_enabled: Whether to create internet eip for API Server. Default to false.
1447
+ :param pulumi.Input[bool] force_update: Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
1423
1448
  :param pulumi.Input[str] kube_config: The path of kube config, like `~/.kube/config`.
1424
1449
  :param pulumi.Input[str] load_balancer_spec: The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
1425
1450
  :param pulumi.Input[str] logging_type: Enable log service, Valid value `SLS`.
@@ -1427,15 +1452,16 @@ class ServerlessKubernetes(pulumi.CustomResource):
1427
1452
  :param pulumi.Input[bool] new_nat_gateway: Whether to create a new nat gateway while creating kubernetes cluster. SNAT must be configured when a new VPC is automatically created. Default is `true`.
1428
1453
  :param pulumi.Input[bool] private_zone: Has been deprecated from provider version 1.123.1. `PrivateZone` is used as the enumeration value of `service_discovery_types`.
1429
1454
  :param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
1430
- :param pulumi.Input[Union['ServerlessKubernetesRrsaMetadataArgs', 'ServerlessKubernetesRrsaMetadataArgsDict']] rrsa_metadata: Nested attribute containing RRSA related data for your cluster.
1455
+ :param pulumi.Input[Union['ServerlessKubernetesRrsaMetadataArgs', 'ServerlessKubernetesRrsaMetadataArgsDict']] rrsa_metadata: Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
1431
1456
  :param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
1432
1457
  :param pulumi.Input[str] service_cidr: CIDR block of the service network. The specified CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. The CIDR block cannot be modified after the cluster is created.
1433
- :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1458
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] service_discovery_types: Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1434
1459
  :param pulumi.Input[str] sls_project_name: If you use an existing SLS project, you must specify `sls_project_name`.
1435
1460
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes.
1436
1461
  :param pulumi.Input[str] time_zone: The time zone of the cluster.
1437
1462
  :param pulumi.Input[str] version: Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used.
1438
- :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1463
+ :param pulumi.Input[str] vpc_id: The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1464
+ :param pulumi.Input[str] vswitch_id: The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
1439
1465
  :param pulumi.Input[Sequence[pulumi.Input[str]]] vswitch_ids: The vswitches where new kubernetes cluster will be located.
1440
1466
  :param pulumi.Input[str] zone_id: When creating a cluster using automatic VPC creation, you need to specify the zone where the VPC is located.
1441
1467
  """
@@ -1448,11 +1474,11 @@ class ServerlessKubernetes(pulumi.CustomResource):
1448
1474
  __props__.__dict__["client_key"] = client_key
1449
1475
  __props__.__dict__["cluster_ca_cert"] = cluster_ca_cert
1450
1476
  __props__.__dict__["cluster_spec"] = cluster_spec
1451
- __props__.__dict__["custom_san"] = custom_san
1452
- __props__.__dict__["delete_options"] = delete_options
1477
+ __props__.__dict__["create_v2_cluster"] = create_v2_cluster
1453
1478
  __props__.__dict__["deletion_protection"] = deletion_protection
1454
1479
  __props__.__dict__["enable_rrsa"] = enable_rrsa
1455
1480
  __props__.__dict__["endpoint_public_access_enabled"] = endpoint_public_access_enabled
1481
+ __props__.__dict__["force_update"] = force_update
1456
1482
  __props__.__dict__["kube_config"] = kube_config
1457
1483
  __props__.__dict__["load_balancer_spec"] = load_balancer_spec
1458
1484
  __props__.__dict__["logging_type"] = logging_type
@@ -1471,15 +1497,16 @@ class ServerlessKubernetes(pulumi.CustomResource):
1471
1497
  __props__.__dict__["time_zone"] = time_zone
1472
1498
  __props__.__dict__["version"] = version
1473
1499
  __props__.__dict__["vpc_id"] = vpc_id
1500
+ __props__.__dict__["vswitch_id"] = vswitch_id
1474
1501
  __props__.__dict__["vswitch_ids"] = vswitch_ids
1475
1502
  __props__.__dict__["zone_id"] = zone_id
1476
1503
  return ServerlessKubernetes(resource_name, opts=opts, __props__=__props__)
1477
1504
 
1478
1505
  @property
1479
1506
  @pulumi.getter
1480
- def addons(self) -> pulumi.Output[Optional[Sequence['outputs.ServerlessKubernetesAddon']]]:
1507
+ def addons(self) -> pulumi.Output[Sequence['outputs.ServerlessKubernetesAddon']]:
1481
1508
  """
1482
- You can specific network plugin, log component, ingress component and so on. See `addons` below. Only works for **Create** Operation, use resource cs_kubernetes_addon to manage addons if cluster is created.
1509
+ You can specific network plugin,log component,ingress component and so on. See `addons` below.
1483
1510
  """
1484
1511
  return pulumi.get(self, "addons")
1485
1512
 
@@ -1518,23 +1545,14 @@ class ServerlessKubernetes(pulumi.CustomResource):
1518
1545
  return pulumi.get(self, "cluster_spec")
1519
1546
 
1520
1547
  @property
1521
- @pulumi.getter(name="customSan")
1522
- def custom_san(self) -> pulumi.Output[Optional[str]]:
1548
+ @pulumi.getter(name="createV2Cluster")
1549
+ def create_v2_cluster(self) -> pulumi.Output[bool]:
1523
1550
  """
1524
- Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
1525
- > **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
1551
+ whether to create a v2 version cluster.
1526
1552
 
1527
1553
  *Removed params*
1528
1554
  """
1529
- return pulumi.get(self, "custom_san")
1530
-
1531
- @property
1532
- @pulumi.getter(name="deleteOptions")
1533
- def delete_options(self) -> pulumi.Output[Optional[Sequence['outputs.ServerlessKubernetesDeleteOption']]]:
1534
- """
1535
- Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
1536
- """
1537
- return pulumi.get(self, "delete_options")
1555
+ return pulumi.get(self, "create_v2_cluster")
1538
1556
 
1539
1557
  @property
1540
1558
  @pulumi.getter(name="deletionProtection")
@@ -1558,10 +1576,18 @@ class ServerlessKubernetes(pulumi.CustomResource):
1558
1576
  @pulumi.getter(name="endpointPublicAccessEnabled")
1559
1577
  def endpoint_public_access_enabled(self) -> pulumi.Output[Optional[bool]]:
1560
1578
  """
1561
- Whether to create internet eip for API Server. Default to false.
1579
+ Whether to create internet eip for API Server. Default to false.
1562
1580
  """
1563
1581
  return pulumi.get(self, "endpoint_public_access_enabled")
1564
1582
 
1583
+ @property
1584
+ @pulumi.getter(name="forceUpdate")
1585
+ def force_update(self) -> pulumi.Output[Optional[bool]]:
1586
+ """
1587
+ Default false, when you want to change `vpc_id` and `vswitch_id`, you have to set this field to true, then the cluster will be recreated.
1588
+ """
1589
+ return pulumi.get(self, "force_update")
1590
+
1565
1591
  @property
1566
1592
  @pulumi.getter(name="kubeConfig")
1567
1593
  @_utilities.deprecated("""Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.""")
@@ -1573,7 +1599,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1573
1599
 
1574
1600
  @property
1575
1601
  @pulumi.getter(name="loadBalancerSpec")
1576
- @_utilities.deprecated("""Field 'load_balancer_spec' has been deprecated from provider version 1.229.1. The load balancer has been changed to PayByCLCU so that no spec is need anymore.""")
1577
1602
  def load_balancer_spec(self) -> pulumi.Output[str]:
1578
1603
  """
1579
1604
  The cluster api server load balance instance specification, default `slb.s2.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
@@ -1582,7 +1607,6 @@ class ServerlessKubernetes(pulumi.CustomResource):
1582
1607
 
1583
1608
  @property
1584
1609
  @pulumi.getter(name="loggingType")
1585
- @_utilities.deprecated("""Field 'logging_type' has been deprecated from provider version 1.229.1. Please use addons `alibaba-log-controller` to enable logging.""")
1586
1610
  def logging_type(self) -> pulumi.Output[Optional[str]]:
1587
1611
  """
1588
1612
  Enable log service, Valid value `SLS`.
@@ -1636,7 +1660,7 @@ class ServerlessKubernetes(pulumi.CustomResource):
1636
1660
  @pulumi.getter(name="rrsaMetadata")
1637
1661
  def rrsa_metadata(self) -> pulumi.Output['outputs.ServerlessKubernetesRrsaMetadata']:
1638
1662
  """
1639
- Nested attribute containing RRSA related data for your cluster.
1663
+ Nested attribute containing RRSA related data for your cluster. See `rrsa_metadata` below.
1640
1664
  """
1641
1665
  return pulumi.get(self, "rrsa_metadata")
1642
1666
 
@@ -1660,13 +1684,12 @@ class ServerlessKubernetes(pulumi.CustomResource):
1660
1684
  @pulumi.getter(name="serviceDiscoveryTypes")
1661
1685
  def service_discovery_types(self) -> pulumi.Output[Optional[Sequence[str]]]:
1662
1686
  """
1663
- Service discovery type. Only works for **Create** Operation. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1687
+ Service discovery type. If the value is empty, it means that service discovery is not enabled. Valid values are `CoreDNS` and `PrivateZone`.
1664
1688
  """
1665
1689
  return pulumi.get(self, "service_discovery_types")
1666
1690
 
1667
1691
  @property
1668
1692
  @pulumi.getter(name="slsProjectName")
1669
- @_utilities.deprecated("""Field 'sls_project_name' has been deprecated from provider version 1.229.1. Please use the field `config` of addons `alibaba-log-controller` to specify log project name.""")
1670
1693
  def sls_project_name(self) -> pulumi.Output[str]:
1671
1694
  """
1672
1695
  If you use an existing SLS project, you must specify `sls_project_name`.
@@ -1701,10 +1724,19 @@ class ServerlessKubernetes(pulumi.CustomResource):
1701
1724
  @pulumi.getter(name="vpcId")
1702
1725
  def vpc_id(self) -> pulumi.Output[str]:
1703
1726
  """
1704
- The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1727
+ The vpc where new kubernetes cluster will be located. Specify one vpc's id, if it is not specified, a new VPC will be built.
1705
1728
  """
1706
1729
  return pulumi.get(self, "vpc_id")
1707
1730
 
1731
+ @property
1732
+ @pulumi.getter(name="vswitchId")
1733
+ @_utilities.deprecated("""Field 'vswitch_id' has been deprecated from provider version 1.91.0. New field 'vswitch_ids' replace it.""")
1734
+ def vswitch_id(self) -> pulumi.Output[str]:
1735
+ """
1736
+ The vswitch where new kubernetes cluster will be located. Specify one vswitch's id, if it is not specified, a new VPC and VSwicth will be built. It must be in the zone which `availability_zone` specified.
1737
+ """
1738
+ return pulumi.get(self, "vswitch_id")
1739
+
1708
1740
  @property
1709
1741
  @pulumi.getter(name="vswitchIds")
1710
1742
  def vswitch_ids(self) -> pulumi.Output[Sequence[str]]: