cdk-code-server 0.0.4__tar.gz → 0.0.6__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.4
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>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cdk-code-server",
8
- "version": "0.0.4",
8
+ "version": "0.0.6",
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.4.jsii.tgz"
29
+ "cdk-code-server@0.0.6.jsii.tgz"
30
30
  ],
31
31
  "cdk_code-server": [
32
32
  "py.typed"
@@ -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 volume_size:
166
- :param vpc:
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
- :param cpu_type:
206
- :param instance_type:
207
- :param policy:
208
- :param volume_size:
209
- :param vpc:
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.4", __name__[0:-6], "cdk-code-server@0.0.4.jsii.tgz"
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__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-code-server
3
- Version: 0.0.4
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>
@@ -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.4.jsii.tgz
9
+ src/cdk_code-server/_jsii/cdk-code-server@0.0.6.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