pulumi-alicloud 3.65.0a1730385290__py3-none-any.whl → 3.65.0a1730759410__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +19 -0
- pulumi_alicloud/cen/transit_router_route_table_association.py +72 -68
- pulumi_alicloud/cloudstoragegateway/gateway.py +134 -58
- pulumi_alicloud/cs/_inputs.py +6 -6
- pulumi_alicloud/cs/outputs.py +4 -4
- pulumi_alicloud/ess/scaling_configuration.py +1 -1
- pulumi_alicloud/ess/scaling_group.py +54 -7
- pulumi_alicloud/fc/_inputs.py +3 -3
- pulumi_alicloud/fc/outputs.py +2 -2
- pulumi_alicloud/kms/get_secrets.py +5 -5
- pulumi_alicloud/kms/outputs.py +18 -18
- pulumi_alicloud/mse/__init__.py +2 -0
- pulumi_alicloud/mse/get_nacos_configs.py +394 -0
- pulumi_alicloud/mse/nacos_config.py +762 -0
- pulumi_alicloud/mse/outputs.py +129 -0
- pulumi_alicloud/ocean/base_instance.py +2 -2
- pulumi_alicloud/pai/__init__.py +8 -0
- pulumi_alicloud/pai/workspace_workspace.py +447 -0
- pulumi_alicloud/polardb/cluster.py +14 -14
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/vpc/subnet.py +59 -27
- pulumi_alicloud/vpc/switch.py +104 -87
- {pulumi_alicloud-3.65.0a1730385290.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.65.0a1730385290.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/RECORD +26 -22
- {pulumi_alicloud-3.65.0a1730385290.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.65.0a1730385290.dist-info → pulumi_alicloud-3.65.0a1730759410.dist-info}/top_level.txt +0 -0
pulumi_alicloud/mse/outputs.py
CHANGED
|
@@ -22,6 +22,7 @@ __all__ = [
|
|
|
22
22
|
'GetEngineNamespacesNamespaceResult',
|
|
23
23
|
'GetGatewaysGatewayResult',
|
|
24
24
|
'GetGatewaysGatewaySlbListResult',
|
|
25
|
+
'GetNacosConfigsConfigResult',
|
|
25
26
|
'GetZnodesZnodeResult',
|
|
26
27
|
]
|
|
27
28
|
|
|
@@ -825,6 +826,134 @@ class GetGatewaysGatewaySlbListResult(dict):
|
|
|
825
826
|
return pulumi.get(self, "type")
|
|
826
827
|
|
|
827
828
|
|
|
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
|
+
|
|
828
957
|
@pulumi.output_type
|
|
829
958
|
class GetZnodesZnodeResult(dict):
|
|
830
959
|
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="8C32G",
|
|
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="8C32G",
|
|
1127
1127
|
backup_retain_mode="delete_all",
|
|
1128
1128
|
series="normal",
|
|
1129
1129
|
instance_name=name)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
from .. import _utilities
|
|
6
|
+
import typing
|
|
7
|
+
# Export this package's modules as members:
|
|
8
|
+
from .workspace_workspace import *
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['WorkspaceWorkspaceArgs', 'WorkspaceWorkspace']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class WorkspaceWorkspaceArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
description: pulumi.Input[str],
|
|
23
|
+
env_types: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
24
|
+
workspace_name: pulumi.Input[str],
|
|
25
|
+
display_name: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a WorkspaceWorkspace resource.
|
|
28
|
+
:param pulumi.Input[str] description: Workspace description, no more than 80 characters.
|
|
29
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] env_types: Environments contained in the workspace:
|
|
30
|
+
- Simple mode only production environment (prod).
|
|
31
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
32
|
+
:param pulumi.Input[str] workspace_name: The workspace name. The format is as follows:
|
|
33
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
34
|
+
- Must start with a large or small letter.
|
|
35
|
+
- Unique in the current region.
|
|
36
|
+
:param pulumi.Input[str] display_name: It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "description", description)
|
|
39
|
+
pulumi.set(__self__, "env_types", env_types)
|
|
40
|
+
pulumi.set(__self__, "workspace_name", workspace_name)
|
|
41
|
+
if display_name is not None:
|
|
42
|
+
pulumi.set(__self__, "display_name", display_name)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def description(self) -> pulumi.Input[str]:
|
|
47
|
+
"""
|
|
48
|
+
Workspace description, no more than 80 characters.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "description")
|
|
51
|
+
|
|
52
|
+
@description.setter
|
|
53
|
+
def description(self, value: pulumi.Input[str]):
|
|
54
|
+
pulumi.set(self, "description", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="envTypes")
|
|
58
|
+
def env_types(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
59
|
+
"""
|
|
60
|
+
Environments contained in the workspace:
|
|
61
|
+
- Simple mode only production environment (prod).
|
|
62
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "env_types")
|
|
65
|
+
|
|
66
|
+
@env_types.setter
|
|
67
|
+
def env_types(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
68
|
+
pulumi.set(self, "env_types", value)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter(name="workspaceName")
|
|
72
|
+
def workspace_name(self) -> pulumi.Input[str]:
|
|
73
|
+
"""
|
|
74
|
+
The workspace name. The format is as follows:
|
|
75
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
76
|
+
- Must start with a large or small letter.
|
|
77
|
+
- Unique in the current region.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "workspace_name")
|
|
80
|
+
|
|
81
|
+
@workspace_name.setter
|
|
82
|
+
def workspace_name(self, value: pulumi.Input[str]):
|
|
83
|
+
pulumi.set(self, "workspace_name", value)
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="displayName")
|
|
87
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
|
88
|
+
"""
|
|
89
|
+
It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "display_name")
|
|
92
|
+
|
|
93
|
+
@display_name.setter
|
|
94
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
|
95
|
+
pulumi.set(self, "display_name", value)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@pulumi.input_type
|
|
99
|
+
class _WorkspaceWorkspaceState:
|
|
100
|
+
def __init__(__self__, *,
|
|
101
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
102
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
103
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
|
104
|
+
env_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
105
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
106
|
+
workspace_name: Optional[pulumi.Input[str]] = None):
|
|
107
|
+
"""
|
|
108
|
+
Input properties used for looking up and filtering WorkspaceWorkspace resources.
|
|
109
|
+
:param pulumi.Input[str] create_time: The UTC time when the workspace is created. The time format is ISO8601.
|
|
110
|
+
:param pulumi.Input[str] description: Workspace description, no more than 80 characters.
|
|
111
|
+
:param pulumi.Input[str] display_name: It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
112
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] env_types: Environments contained in the workspace:
|
|
113
|
+
- Simple mode only production environment (prod).
|
|
114
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
115
|
+
:param pulumi.Input[str] status: Workspace state, possible values:
|
|
116
|
+
:param pulumi.Input[str] workspace_name: The workspace name. The format is as follows:
|
|
117
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
118
|
+
- Must start with a large or small letter.
|
|
119
|
+
- Unique in the current region.
|
|
120
|
+
"""
|
|
121
|
+
if create_time is not None:
|
|
122
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
123
|
+
if description is not None:
|
|
124
|
+
pulumi.set(__self__, "description", description)
|
|
125
|
+
if display_name is not None:
|
|
126
|
+
pulumi.set(__self__, "display_name", display_name)
|
|
127
|
+
if env_types is not None:
|
|
128
|
+
pulumi.set(__self__, "env_types", env_types)
|
|
129
|
+
if status is not None:
|
|
130
|
+
pulumi.set(__self__, "status", status)
|
|
131
|
+
if workspace_name is not None:
|
|
132
|
+
pulumi.set(__self__, "workspace_name", workspace_name)
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
@pulumi.getter(name="createTime")
|
|
136
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
137
|
+
"""
|
|
138
|
+
The UTC time when the workspace is created. The time format is ISO8601.
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "create_time")
|
|
141
|
+
|
|
142
|
+
@create_time.setter
|
|
143
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
144
|
+
pulumi.set(self, "create_time", value)
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
@pulumi.getter
|
|
148
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
149
|
+
"""
|
|
150
|
+
Workspace description, no more than 80 characters.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "description")
|
|
153
|
+
|
|
154
|
+
@description.setter
|
|
155
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
156
|
+
pulumi.set(self, "description", value)
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
@pulumi.getter(name="displayName")
|
|
160
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
|
161
|
+
"""
|
|
162
|
+
It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "display_name")
|
|
165
|
+
|
|
166
|
+
@display_name.setter
|
|
167
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
|
168
|
+
pulumi.set(self, "display_name", value)
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
@pulumi.getter(name="envTypes")
|
|
172
|
+
def env_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
173
|
+
"""
|
|
174
|
+
Environments contained in the workspace:
|
|
175
|
+
- Simple mode only production environment (prod).
|
|
176
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
177
|
+
"""
|
|
178
|
+
return pulumi.get(self, "env_types")
|
|
179
|
+
|
|
180
|
+
@env_types.setter
|
|
181
|
+
def env_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
182
|
+
pulumi.set(self, "env_types", value)
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter
|
|
186
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
187
|
+
"""
|
|
188
|
+
Workspace state, possible values:
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "status")
|
|
191
|
+
|
|
192
|
+
@status.setter
|
|
193
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
194
|
+
pulumi.set(self, "status", value)
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
@pulumi.getter(name="workspaceName")
|
|
198
|
+
def workspace_name(self) -> Optional[pulumi.Input[str]]:
|
|
199
|
+
"""
|
|
200
|
+
The workspace name. The format is as follows:
|
|
201
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
202
|
+
- Must start with a large or small letter.
|
|
203
|
+
- Unique in the current region.
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "workspace_name")
|
|
206
|
+
|
|
207
|
+
@workspace_name.setter
|
|
208
|
+
def workspace_name(self, value: Optional[pulumi.Input[str]]):
|
|
209
|
+
pulumi.set(self, "workspace_name", value)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
class WorkspaceWorkspace(pulumi.CustomResource):
|
|
213
|
+
@overload
|
|
214
|
+
def __init__(__self__,
|
|
215
|
+
resource_name: str,
|
|
216
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
217
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
218
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
|
219
|
+
env_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
220
|
+
workspace_name: Optional[pulumi.Input[str]] = None,
|
|
221
|
+
__props__=None):
|
|
222
|
+
"""
|
|
223
|
+
Provides a P A I Workspace Workspace resource.
|
|
224
|
+
|
|
225
|
+
For information about P A I Workspace Workspace and how to use it, see [What is Workspace](https://www.alibabacloud.com/help/en/).
|
|
226
|
+
|
|
227
|
+
> **NOTE:** Available since v1.233.0.
|
|
228
|
+
|
|
229
|
+
## Example Usage
|
|
230
|
+
|
|
231
|
+
Basic Usage
|
|
232
|
+
|
|
233
|
+
```python
|
|
234
|
+
import pulumi
|
|
235
|
+
import pulumi_alicloud as alicloud
|
|
236
|
+
|
|
237
|
+
config = pulumi.Config()
|
|
238
|
+
name = config.get("name")
|
|
239
|
+
if name is None:
|
|
240
|
+
name = "terraform_example"
|
|
241
|
+
default = alicloud.pai.WorkspaceWorkspace("default",
|
|
242
|
+
description=name,
|
|
243
|
+
workspace_name=name,
|
|
244
|
+
display_name=name,
|
|
245
|
+
env_types=["prod"])
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Import
|
|
249
|
+
|
|
250
|
+
P A I Workspace Workspace can be imported using the id, e.g.
|
|
251
|
+
|
|
252
|
+
```sh
|
|
253
|
+
$ pulumi import alicloud:pai/workspaceWorkspace:WorkspaceWorkspace example <id>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
:param str resource_name: The name of the resource.
|
|
257
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
258
|
+
:param pulumi.Input[str] description: Workspace description, no more than 80 characters.
|
|
259
|
+
:param pulumi.Input[str] display_name: It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
260
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] env_types: Environments contained in the workspace:
|
|
261
|
+
- Simple mode only production environment (prod).
|
|
262
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
263
|
+
:param pulumi.Input[str] workspace_name: The workspace name. The format is as follows:
|
|
264
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
265
|
+
- Must start with a large or small letter.
|
|
266
|
+
- Unique in the current region.
|
|
267
|
+
"""
|
|
268
|
+
...
|
|
269
|
+
@overload
|
|
270
|
+
def __init__(__self__,
|
|
271
|
+
resource_name: str,
|
|
272
|
+
args: WorkspaceWorkspaceArgs,
|
|
273
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
274
|
+
"""
|
|
275
|
+
Provides a P A I Workspace Workspace resource.
|
|
276
|
+
|
|
277
|
+
For information about P A I Workspace Workspace and how to use it, see [What is Workspace](https://www.alibabacloud.com/help/en/).
|
|
278
|
+
|
|
279
|
+
> **NOTE:** Available since v1.233.0.
|
|
280
|
+
|
|
281
|
+
## Example Usage
|
|
282
|
+
|
|
283
|
+
Basic Usage
|
|
284
|
+
|
|
285
|
+
```python
|
|
286
|
+
import pulumi
|
|
287
|
+
import pulumi_alicloud as alicloud
|
|
288
|
+
|
|
289
|
+
config = pulumi.Config()
|
|
290
|
+
name = config.get("name")
|
|
291
|
+
if name is None:
|
|
292
|
+
name = "terraform_example"
|
|
293
|
+
default = alicloud.pai.WorkspaceWorkspace("default",
|
|
294
|
+
description=name,
|
|
295
|
+
workspace_name=name,
|
|
296
|
+
display_name=name,
|
|
297
|
+
env_types=["prod"])
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Import
|
|
301
|
+
|
|
302
|
+
P A I Workspace Workspace can be imported using the id, e.g.
|
|
303
|
+
|
|
304
|
+
```sh
|
|
305
|
+
$ pulumi import alicloud:pai/workspaceWorkspace:WorkspaceWorkspace example <id>
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
:param str resource_name: The name of the resource.
|
|
309
|
+
:param WorkspaceWorkspaceArgs args: The arguments to use to populate this resource's properties.
|
|
310
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
311
|
+
"""
|
|
312
|
+
...
|
|
313
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
314
|
+
resource_args, opts = _utilities.get_resource_args_opts(WorkspaceWorkspaceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
315
|
+
if resource_args is not None:
|
|
316
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
317
|
+
else:
|
|
318
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
319
|
+
|
|
320
|
+
def _internal_init(__self__,
|
|
321
|
+
resource_name: str,
|
|
322
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
323
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
324
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
|
325
|
+
env_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
326
|
+
workspace_name: Optional[pulumi.Input[str]] = None,
|
|
327
|
+
__props__=None):
|
|
328
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
329
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
330
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
331
|
+
if opts.id is None:
|
|
332
|
+
if __props__ is not None:
|
|
333
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
334
|
+
__props__ = WorkspaceWorkspaceArgs.__new__(WorkspaceWorkspaceArgs)
|
|
335
|
+
|
|
336
|
+
if description is None and not opts.urn:
|
|
337
|
+
raise TypeError("Missing required property 'description'")
|
|
338
|
+
__props__.__dict__["description"] = description
|
|
339
|
+
__props__.__dict__["display_name"] = display_name
|
|
340
|
+
if env_types is None and not opts.urn:
|
|
341
|
+
raise TypeError("Missing required property 'env_types'")
|
|
342
|
+
__props__.__dict__["env_types"] = env_types
|
|
343
|
+
if workspace_name is None and not opts.urn:
|
|
344
|
+
raise TypeError("Missing required property 'workspace_name'")
|
|
345
|
+
__props__.__dict__["workspace_name"] = workspace_name
|
|
346
|
+
__props__.__dict__["create_time"] = None
|
|
347
|
+
__props__.__dict__["status"] = None
|
|
348
|
+
super(WorkspaceWorkspace, __self__).__init__(
|
|
349
|
+
'alicloud:pai/workspaceWorkspace:WorkspaceWorkspace',
|
|
350
|
+
resource_name,
|
|
351
|
+
__props__,
|
|
352
|
+
opts)
|
|
353
|
+
|
|
354
|
+
@staticmethod
|
|
355
|
+
def get(resource_name: str,
|
|
356
|
+
id: pulumi.Input[str],
|
|
357
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
358
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
359
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
360
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
|
361
|
+
env_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
362
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
363
|
+
workspace_name: Optional[pulumi.Input[str]] = None) -> 'WorkspaceWorkspace':
|
|
364
|
+
"""
|
|
365
|
+
Get an existing WorkspaceWorkspace resource's state with the given name, id, and optional extra
|
|
366
|
+
properties used to qualify the lookup.
|
|
367
|
+
|
|
368
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
369
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
370
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
371
|
+
:param pulumi.Input[str] create_time: The UTC time when the workspace is created. The time format is ISO8601.
|
|
372
|
+
:param pulumi.Input[str] description: Workspace description, no more than 80 characters.
|
|
373
|
+
:param pulumi.Input[str] display_name: It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
374
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] env_types: Environments contained in the workspace:
|
|
375
|
+
- Simple mode only production environment (prod).
|
|
376
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
377
|
+
:param pulumi.Input[str] status: Workspace state, possible values:
|
|
378
|
+
:param pulumi.Input[str] workspace_name: The workspace name. The format is as follows:
|
|
379
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
380
|
+
- Must start with a large or small letter.
|
|
381
|
+
- Unique in the current region.
|
|
382
|
+
"""
|
|
383
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
384
|
+
|
|
385
|
+
__props__ = _WorkspaceWorkspaceState.__new__(_WorkspaceWorkspaceState)
|
|
386
|
+
|
|
387
|
+
__props__.__dict__["create_time"] = create_time
|
|
388
|
+
__props__.__dict__["description"] = description
|
|
389
|
+
__props__.__dict__["display_name"] = display_name
|
|
390
|
+
__props__.__dict__["env_types"] = env_types
|
|
391
|
+
__props__.__dict__["status"] = status
|
|
392
|
+
__props__.__dict__["workspace_name"] = workspace_name
|
|
393
|
+
return WorkspaceWorkspace(resource_name, opts=opts, __props__=__props__)
|
|
394
|
+
|
|
395
|
+
@property
|
|
396
|
+
@pulumi.getter(name="createTime")
|
|
397
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
398
|
+
"""
|
|
399
|
+
The UTC time when the workspace is created. The time format is ISO8601.
|
|
400
|
+
"""
|
|
401
|
+
return pulumi.get(self, "create_time")
|
|
402
|
+
|
|
403
|
+
@property
|
|
404
|
+
@pulumi.getter
|
|
405
|
+
def description(self) -> pulumi.Output[str]:
|
|
406
|
+
"""
|
|
407
|
+
Workspace description, no more than 80 characters.
|
|
408
|
+
"""
|
|
409
|
+
return pulumi.get(self, "description")
|
|
410
|
+
|
|
411
|
+
@property
|
|
412
|
+
@pulumi.getter(name="displayName")
|
|
413
|
+
def display_name(self) -> pulumi.Output[Optional[str]]:
|
|
414
|
+
"""
|
|
415
|
+
It is recommended that you name the workspace based on the business attribute to identify the purpose of the workspace. If not configured, the default value is the workspace name.
|
|
416
|
+
"""
|
|
417
|
+
return pulumi.get(self, "display_name")
|
|
418
|
+
|
|
419
|
+
@property
|
|
420
|
+
@pulumi.getter(name="envTypes")
|
|
421
|
+
def env_types(self) -> pulumi.Output[Sequence[str]]:
|
|
422
|
+
"""
|
|
423
|
+
Environments contained in the workspace:
|
|
424
|
+
- Simple mode only production environment (prod).
|
|
425
|
+
- Standard mode includes development environment (dev) and production environment (prod).
|
|
426
|
+
"""
|
|
427
|
+
return pulumi.get(self, "env_types")
|
|
428
|
+
|
|
429
|
+
@property
|
|
430
|
+
@pulumi.getter
|
|
431
|
+
def status(self) -> pulumi.Output[str]:
|
|
432
|
+
"""
|
|
433
|
+
Workspace state, possible values:
|
|
434
|
+
"""
|
|
435
|
+
return pulumi.get(self, "status")
|
|
436
|
+
|
|
437
|
+
@property
|
|
438
|
+
@pulumi.getter(name="workspaceName")
|
|
439
|
+
def workspace_name(self) -> pulumi.Output[str]:
|
|
440
|
+
"""
|
|
441
|
+
The workspace name. The format is as follows:
|
|
442
|
+
- 3 to 23 characters in length and can contain letters, underscores, or numbers.
|
|
443
|
+
- Must start with a large or small letter.
|
|
444
|
+
- Unique in the current region.
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "workspace_name")
|
|
447
|
+
|