cdk-code-server 0.0.4__py3-none-any.whl → 0.0.6__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.
- cdk_code-server/__init__.py +54 -11
- cdk_code-server/_jsii/__init__.py +1 -1
- cdk_code-server/_jsii/cdk-code-server@0.0.6.jsii.tgz +0 -0
- {cdk_code_server-0.0.4.dist-info → cdk_code_server-0.0.6.dist-info}/METADATA +1 -1
- cdk_code_server-0.0.6.dist-info/RECORD +9 -0
- cdk_code-server/_jsii/cdk-code-server@0.0.4.jsii.tgz +0 -0
- cdk_code_server-0.0.4.dist-info/RECORD +0 -9
- {cdk_code_server-0.0.4.dist-info → cdk_code_server-0.0.6.dist-info}/LICENSE +0 -0
- {cdk_code_server-0.0.4.dist-info → cdk_code_server-0.0.6.dist-info}/WHEEL +0 -0
- {cdk_code_server-0.0.4.dist-info → cdk_code_server-0.0.6.dist-info}/top_level.txt +0 -0
cdk_code-server/__init__.py
CHANGED
@@ -145,6 +145,8 @@ class CodeServer(
|
|
145
145
|
metaclass=jsii.JSIIMeta,
|
146
146
|
jsii_type="cdk-code-server.CodeServer",
|
147
147
|
):
|
148
|
+
'''A CodeServer Construct.'''
|
149
|
+
|
148
150
|
def __init__(
|
149
151
|
self,
|
150
152
|
scope: _constructs_77d1e7e8.Construct,
|
@@ -153,17 +155,19 @@ class CodeServer(
|
|
153
155
|
cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
|
154
156
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
155
157
|
policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
|
158
|
+
user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
|
156
159
|
volume_size: typing.Optional[jsii.Number] = None,
|
157
160
|
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
158
161
|
) -> None:
|
159
162
|
'''
|
160
163
|
:param scope: -
|
161
164
|
:param id: -
|
162
|
-
:param cpu_type:
|
163
|
-
:param instance_type:
|
164
|
-
:param policy:
|
165
|
-
:param
|
166
|
-
:param
|
165
|
+
:param cpu_type: The CPU type. Default: - ARM_64
|
166
|
+
:param instance_type: The instance type. Default: - C7g.2xlarge
|
167
|
+
:param policy: The IAM policy to attach to the instance role. Default: - Allow all actions on all resources
|
168
|
+
:param user_data: User data to run when launching the instance. Default: - No additional user data
|
169
|
+
:param volume_size: The size of the root volume in GiB. Default: 30
|
170
|
+
:param vpc: The VPC where the instance will be deployed. Default: - A new VPC will be created
|
167
171
|
'''
|
168
172
|
if __debug__:
|
169
173
|
type_hints = typing.get_type_hints(_typecheckingstub__a3dc073ef85aeeab8ffd2fe5c32c737ce76d0e4197f8d84ff2cfe4d4ae5bf187)
|
@@ -173,6 +177,7 @@ class CodeServer(
|
|
173
177
|
cpu_type=cpu_type,
|
174
178
|
instance_type=instance_type,
|
175
179
|
policy=policy,
|
180
|
+
user_data=user_data,
|
176
181
|
volume_size=volume_size,
|
177
182
|
vpc=vpc,
|
178
183
|
)
|
@@ -187,6 +192,7 @@ class CodeServer(
|
|
187
192
|
"cpu_type": "cpuType",
|
188
193
|
"instance_type": "instanceType",
|
189
194
|
"policy": "policy",
|
195
|
+
"user_data": "userData",
|
190
196
|
"volume_size": "volumeSize",
|
191
197
|
"vpc": "vpc",
|
192
198
|
},
|
@@ -198,21 +204,25 @@ class CodeServerProps:
|
|
198
204
|
cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
|
199
205
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
200
206
|
policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
|
207
|
+
user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
|
201
208
|
volume_size: typing.Optional[jsii.Number] = None,
|
202
209
|
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
203
210
|
) -> None:
|
204
|
-
'''
|
205
|
-
|
206
|
-
:param
|
207
|
-
:param
|
208
|
-
:param
|
209
|
-
:param
|
211
|
+
'''Properties for CodeServer construct.
|
212
|
+
|
213
|
+
:param cpu_type: The CPU type. Default: - ARM_64
|
214
|
+
:param instance_type: The instance type. Default: - C7g.2xlarge
|
215
|
+
:param policy: The IAM policy to attach to the instance role. Default: - Allow all actions on all resources
|
216
|
+
:param user_data: User data to run when launching the instance. Default: - No additional user data
|
217
|
+
:param volume_size: The size of the root volume in GiB. Default: 30
|
218
|
+
:param vpc: The VPC where the instance will be deployed. Default: - A new VPC will be created
|
210
219
|
'''
|
211
220
|
if __debug__:
|
212
221
|
type_hints = typing.get_type_hints(_typecheckingstub__fb583e2cef71433ccfaa187bf48195bf7085ded509b20a2c01dc80cffe3f0229)
|
213
222
|
check_type(argname="argument cpu_type", value=cpu_type, expected_type=type_hints["cpu_type"])
|
214
223
|
check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
|
215
224
|
check_type(argname="argument policy", value=policy, expected_type=type_hints["policy"])
|
225
|
+
check_type(argname="argument user_data", value=user_data, expected_type=type_hints["user_data"])
|
216
226
|
check_type(argname="argument volume_size", value=volume_size, expected_type=type_hints["volume_size"])
|
217
227
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
218
228
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
@@ -222,6 +232,8 @@ class CodeServerProps:
|
|
222
232
|
self._values["instance_type"] = instance_type
|
223
233
|
if policy is not None:
|
224
234
|
self._values["policy"] = policy
|
235
|
+
if user_data is not None:
|
236
|
+
self._values["user_data"] = user_data
|
225
237
|
if volume_size is not None:
|
226
238
|
self._values["volume_size"] = volume_size
|
227
239
|
if vpc is not None:
|
@@ -229,26 +241,55 @@ class CodeServerProps:
|
|
229
241
|
|
230
242
|
@builtins.property
|
231
243
|
def cpu_type(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType]:
|
244
|
+
'''The CPU type.
|
245
|
+
|
246
|
+
:default: - ARM_64
|
247
|
+
'''
|
232
248
|
result = self._values.get("cpu_type")
|
233
249
|
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType], result)
|
234
250
|
|
235
251
|
@builtins.property
|
236
252
|
def instance_type(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType]:
|
253
|
+
'''The instance type.
|
254
|
+
|
255
|
+
:default: - C7g.2xlarge
|
256
|
+
'''
|
237
257
|
result = self._values.get("instance_type")
|
238
258
|
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType], result)
|
239
259
|
|
240
260
|
@builtins.property
|
241
261
|
def policy(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement]:
|
262
|
+
'''The IAM policy to attach to the instance role.
|
263
|
+
|
264
|
+
:default: - Allow all actions on all resources
|
265
|
+
'''
|
242
266
|
result = self._values.get("policy")
|
243
267
|
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement], result)
|
244
268
|
|
269
|
+
@builtins.property
|
270
|
+
def user_data(self) -> typing.Optional[typing.List[builtins.str]]:
|
271
|
+
'''User data to run when launching the instance.
|
272
|
+
|
273
|
+
:default: - No additional user data
|
274
|
+
'''
|
275
|
+
result = self._values.get("user_data")
|
276
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
277
|
+
|
245
278
|
@builtins.property
|
246
279
|
def volume_size(self) -> typing.Optional[jsii.Number]:
|
280
|
+
'''The size of the root volume in GiB.
|
281
|
+
|
282
|
+
:default: 30
|
283
|
+
'''
|
247
284
|
result = self._values.get("volume_size")
|
248
285
|
return typing.cast(typing.Optional[jsii.Number], result)
|
249
286
|
|
250
287
|
@builtins.property
|
251
288
|
def vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
289
|
+
'''The VPC where the instance will be deployed.
|
290
|
+
|
291
|
+
:default: - A new VPC will be created
|
292
|
+
'''
|
252
293
|
result = self._values.get("vpc")
|
253
294
|
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], result)
|
254
295
|
|
@@ -278,6 +319,7 @@ def _typecheckingstub__a3dc073ef85aeeab8ffd2fe5c32c737ce76d0e4197f8d84ff2cfe4d4a
|
|
278
319
|
cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
|
279
320
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
280
321
|
policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
|
322
|
+
user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
|
281
323
|
volume_size: typing.Optional[jsii.Number] = None,
|
282
324
|
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
283
325
|
) -> None:
|
@@ -289,6 +331,7 @@ def _typecheckingstub__fb583e2cef71433ccfaa187bf48195bf7085ded509b20a2c01dc80cff
|
|
289
331
|
cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
|
290
332
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
291
333
|
policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
|
334
|
+
user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
|
292
335
|
volume_size: typing.Optional[jsii.Number] = None,
|
293
336
|
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
294
337
|
) -> None:
|
@@ -19,7 +19,7 @@ import constructs._jsii
|
|
19
19
|
import open_constructs_aws_cdk._jsii
|
20
20
|
|
21
21
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
22
|
-
"cdk-code-server", "0.0.
|
22
|
+
"cdk-code-server", "0.0.6", __name__[0:-6], "cdk-code-server@0.0.6.jsii.tgz"
|
23
23
|
)
|
24
24
|
|
25
25
|
__all__ = [
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cdk-code-server
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: CDK Construct for a VSCode Server development environment on EC2
|
5
5
|
Home-page: https://github.com/badmintoncryer/cdk-code-server.git
|
6
6
|
Author: Kazuho CryerShinozuka<malaysia.cryer@gmail.com>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
cdk_code-server/__init__.py,sha256=JhhlhZgZ1EqDJDN20bDFFdEy6lVjvvIYXsgwRjBYJdc,13848
|
2
|
+
cdk_code-server/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
cdk_code-server/_jsii/__init__.py,sha256=y7Y3X6bXYmwCqWYpnMaWqQV3Z9jeZQ0SuHtDCi81Mx4,557
|
4
|
+
cdk_code-server/_jsii/cdk-code-server@0.0.6.jsii.tgz,sha256=ybFCPowUa4RI6qXHrvPwMjzud4I_QMmejvCSW-I_m6s,1008612
|
5
|
+
cdk_code_server-0.0.6.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
+
cdk_code_server-0.0.6.dist-info/METADATA,sha256=xELgdCXmGlGpvrtgNWGT5j4bC15oBBk6GHZrrFdhWHA,6232
|
7
|
+
cdk_code_server-0.0.6.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
8
|
+
cdk_code_server-0.0.6.dist-info/top_level.txt,sha256=ddKd-JX0B1KojbTdHpuZbc_BFCtLovS3D6LCWZWnU7Y,16
|
9
|
+
cdk_code_server-0.0.6.dist-info/RECORD,,
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
cdk_code-server/__init__.py,sha256=JwN7YUZysWdJmABw8mGjB0n9EBGMaRiZwvkacqeDmAQ,11634
|
2
|
-
cdk_code-server/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
cdk_code-server/_jsii/__init__.py,sha256=61ntIW3gNV_AJNDTBbiWUXkmZgnkMKflf8HuSOGg0Vw,557
|
4
|
-
cdk_code-server/_jsii/cdk-code-server@0.0.4.jsii.tgz,sha256=yBaqnlEs3Du1GLN3S4tD61apGpVdxX--f5-P8v__zoc,1007389
|
5
|
-
cdk_code_server-0.0.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
-
cdk_code_server-0.0.4.dist-info/METADATA,sha256=kZPUI5m0OJ80BoxMSE2N0aQBDHJZFFMvCP3dnnxOd_k,6232
|
7
|
-
cdk_code_server-0.0.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
8
|
-
cdk_code_server-0.0.4.dist-info/top_level.txt,sha256=ddKd-JX0B1KojbTdHpuZbc_BFCtLovS3D6LCWZWnU7Y,16
|
9
|
-
cdk_code_server-0.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|