cdk-code-server 0.0.5__tar.gz → 0.0.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-code-server
3
- Version: 0.0.5
3
+ Version: 0.0.7
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>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cdk-code-server",
8
- "version": "0.0.5",
8
+ "version": "0.0.7",
9
9
  "description": "CDK Construct for a VSCode Server development environment on EC2",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/badmintoncryer/cdk-code-server.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "cdk_code-server._jsii": [
29
- "cdk-code-server@0.0.5.jsii.tgz"
29
+ "cdk-code-server@0.0.7.jsii.tgz"
30
30
  ],
31
31
  "cdk_code-server": [
32
32
  "py.typed"
@@ -155,6 +155,7 @@ class CodeServer(
155
155
  cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
156
156
  instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
157
157
  policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
158
+ user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
158
159
  volume_size: typing.Optional[jsii.Number] = None,
159
160
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
160
161
  ) -> None:
@@ -164,6 +165,7 @@ class CodeServer(
164
165
  :param cpu_type: The CPU type. Default: - ARM_64
165
166
  :param instance_type: The instance type. Default: - C7g.2xlarge
166
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
167
169
  :param volume_size: The size of the root volume in GiB. Default: 30
168
170
  :param vpc: The VPC where the instance will be deployed. Default: - A new VPC will be created
169
171
  '''
@@ -175,6 +177,7 @@ class CodeServer(
175
177
  cpu_type=cpu_type,
176
178
  instance_type=instance_type,
177
179
  policy=policy,
180
+ user_data=user_data,
178
181
  volume_size=volume_size,
179
182
  vpc=vpc,
180
183
  )
@@ -189,6 +192,7 @@ class CodeServer(
189
192
  "cpu_type": "cpuType",
190
193
  "instance_type": "instanceType",
191
194
  "policy": "policy",
195
+ "user_data": "userData",
192
196
  "volume_size": "volumeSize",
193
197
  "vpc": "vpc",
194
198
  },
@@ -200,6 +204,7 @@ class CodeServerProps:
200
204
  cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
201
205
  instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
202
206
  policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
207
+ user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
203
208
  volume_size: typing.Optional[jsii.Number] = None,
204
209
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
205
210
  ) -> None:
@@ -208,6 +213,7 @@ class CodeServerProps:
208
213
  :param cpu_type: The CPU type. Default: - ARM_64
209
214
  :param instance_type: The instance type. Default: - C7g.2xlarge
210
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
211
217
  :param volume_size: The size of the root volume in GiB. Default: 30
212
218
  :param vpc: The VPC where the instance will be deployed. Default: - A new VPC will be created
213
219
  '''
@@ -216,6 +222,7 @@ class CodeServerProps:
216
222
  check_type(argname="argument cpu_type", value=cpu_type, expected_type=type_hints["cpu_type"])
217
223
  check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
218
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"])
219
226
  check_type(argname="argument volume_size", value=volume_size, expected_type=type_hints["volume_size"])
220
227
  check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
221
228
  self._values: typing.Dict[builtins.str, typing.Any] = {}
@@ -225,6 +232,8 @@ class CodeServerProps:
225
232
  self._values["instance_type"] = instance_type
226
233
  if policy is not None:
227
234
  self._values["policy"] = policy
235
+ if user_data is not None:
236
+ self._values["user_data"] = user_data
228
237
  if volume_size is not None:
229
238
  self._values["volume_size"] = volume_size
230
239
  if vpc is not None:
@@ -257,6 +266,15 @@ class CodeServerProps:
257
266
  result = self._values.get("policy")
258
267
  return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement], result)
259
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
+
260
278
  @builtins.property
261
279
  def volume_size(self) -> typing.Optional[jsii.Number]:
262
280
  '''The size of the root volume in GiB.
@@ -301,6 +319,7 @@ def _typecheckingstub__a3dc073ef85aeeab8ffd2fe5c32c737ce76d0e4197f8d84ff2cfe4d4a
301
319
  cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
302
320
  instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
303
321
  policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
322
+ user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
304
323
  volume_size: typing.Optional[jsii.Number] = None,
305
324
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
306
325
  ) -> None:
@@ -312,6 +331,7 @@ def _typecheckingstub__fb583e2cef71433ccfaa187bf48195bf7085ded509b20a2c01dc80cff
312
331
  cpu_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.AmazonLinuxCpuType] = None,
313
332
  instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
314
333
  policy: typing.Optional[_aws_cdk_aws_iam_ceddda9d.PolicyStatement] = None,
334
+ user_data: typing.Optional[typing.Sequence[builtins.str]] = None,
315
335
  volume_size: typing.Optional[jsii.Number] = None,
316
336
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
317
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.5", __name__[0:-6], "cdk-code-server@0.0.5.jsii.tgz"
22
+ "cdk-code-server", "0.0.7", __name__[0:-6], "cdk-code-server@0.0.7.jsii.tgz"
23
23
  )
24
24
 
25
25
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-code-server
3
- Version: 0.0.5
3
+ Version: 0.0.7
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>
@@ -6,7 +6,7 @@ setup.py
6
6
  src/cdk_code-server/__init__.py
7
7
  src/cdk_code-server/py.typed
8
8
  src/cdk_code-server/_jsii/__init__.py
9
- src/cdk_code-server/_jsii/cdk-code-server@0.0.5.jsii.tgz
9
+ src/cdk_code-server/_jsii/cdk-code-server@0.0.7.jsii.tgz
10
10
  src/cdk_code_server.egg-info/PKG-INFO
11
11
  src/cdk_code_server.egg-info/SOURCES.txt
12
12
  src/cdk_code_server.egg-info/dependency_links.txt
File without changes