cloudsnorkel.cdk-turbo-layers 0.2.3__py3-none-any.whl → 0.3.1__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.
- cloudsnorkel/cdk_turbo_layers/__init__.py +116 -98
- cloudsnorkel/cdk_turbo_layers/_jsii/__init__.py +21 -3
- cloudsnorkel/cdk_turbo_layers/_jsii/cdk-turbo-layers@0.3.1.jsii.tgz +0 -0
- {cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info → cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info}/METADATA +5 -6
- cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/RECORD +9 -0
- {cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info → cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info}/WHEEL +1 -1
- cloudsnorkel/cdk_turbo_layers/_jsii/cdk-turbo-layers@0.2.3.jsii.tgz +0 -0
- cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/RECORD +0 -9
- {cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info → cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info}/LICENSE +0 -0
- {cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info → cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'''
|
|
1
|
+
r'''
|
|
2
2
|
# Turbo Layers for CDK
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@cloudsnorkel/cdk-turbo-layers)
|
|
@@ -176,6 +176,9 @@ All these examples are for Python, but the same API is available for Node.js, Ru
|
|
|
176
176
|
* [lovage](https://github.com/CloudSnorkel/lovage): standalone Python framework that uses the same trick to deploy decorated functions to AWS
|
|
177
177
|
* [serverless-pydeps](https://github.com/CloudSnorkel/serverless-pydeps): plugin for [Serverless Framework](https://www.serverless.com/) that speeds up deployment
|
|
178
178
|
'''
|
|
179
|
+
from pkgutil import extend_path
|
|
180
|
+
__path__ = extend_path(__path__, __name__)
|
|
181
|
+
|
|
179
182
|
import abc
|
|
180
183
|
import builtins
|
|
181
184
|
import datetime
|
|
@@ -186,7 +189,22 @@ import jsii
|
|
|
186
189
|
import publication
|
|
187
190
|
import typing_extensions
|
|
188
191
|
|
|
189
|
-
|
|
192
|
+
import typeguard
|
|
193
|
+
from importlib.metadata import version as _metadata_package_version
|
|
194
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
195
|
+
|
|
196
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
197
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
198
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
199
|
+
else:
|
|
200
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
201
|
+
pass
|
|
202
|
+
else:
|
|
203
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
204
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
205
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
206
|
+
else:
|
|
207
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
190
208
|
|
|
191
209
|
from ._jsii import *
|
|
192
210
|
|
|
@@ -216,23 +234,23 @@ class DependencyPackagerProps:
|
|
|
216
234
|
def __init__(
|
|
217
235
|
self,
|
|
218
236
|
*,
|
|
219
|
-
architecture: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture] = None,
|
|
220
|
-
log_removal_policy: typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy] = None,
|
|
221
|
-
log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
|
|
237
|
+
architecture: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"] = None,
|
|
238
|
+
log_removal_policy: typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"] = None,
|
|
239
|
+
log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
|
|
222
240
|
preinstall_commands: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
223
|
-
runtime: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime] = None,
|
|
224
|
-
subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
241
|
+
runtime: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"] = None,
|
|
242
|
+
subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
225
243
|
type: typing.Optional["DependencyPackagerType"] = None,
|
|
226
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
244
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
227
245
|
) -> None:
|
|
228
246
|
'''
|
|
229
247
|
:param architecture: (experimental) Target Lambda architecture. Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
230
|
-
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
248
|
+
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed. We try to not leave anything behind when removed. But sometimes a log staying behind is useful. Default: RemovalPolicy.DESTROY
|
|
231
249
|
:param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
|
|
232
250
|
:param preinstall_commands: (experimental) Additional commands to run before installing packages. Use this to authenticate your package repositories like CodeArtifact. Default: []
|
|
233
251
|
:param runtime: (experimental) Target Lambda runtime. Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
234
252
|
:param subnet_selection: (experimental) VPC subnets used for packager. Default: default subnets, if VPC is used
|
|
235
|
-
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA}
|
|
253
|
+
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA }
|
|
236
254
|
:param vpc: (experimental) VPC used for packager. Use this if your package repositories are only available from within a VPC. Default: no VPC
|
|
237
255
|
|
|
238
256
|
:stability: experimental
|
|
@@ -270,7 +288,7 @@ class DependencyPackagerProps:
|
|
|
270
288
|
@builtins.property
|
|
271
289
|
def architecture(
|
|
272
290
|
self,
|
|
273
|
-
) -> typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture]:
|
|
291
|
+
) -> typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"]:
|
|
274
292
|
'''(experimental) Target Lambda architecture.
|
|
275
293
|
|
|
276
294
|
Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
@@ -278,13 +296,13 @@ class DependencyPackagerProps:
|
|
|
278
296
|
:stability: experimental
|
|
279
297
|
'''
|
|
280
298
|
result = self._values.get("architecture")
|
|
281
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture], result)
|
|
299
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"], result)
|
|
282
300
|
|
|
283
301
|
@builtins.property
|
|
284
|
-
def log_removal_policy(self) -> typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy]:
|
|
302
|
+
def log_removal_policy(self) -> typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"]:
|
|
285
303
|
'''(experimental) Removal policy for logs of image builds.
|
|
286
304
|
|
|
287
|
-
If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
305
|
+
If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed.
|
|
288
306
|
|
|
289
307
|
We try to not leave anything behind when removed. But sometimes a log staying behind is useful.
|
|
290
308
|
|
|
@@ -293,12 +311,12 @@ class DependencyPackagerProps:
|
|
|
293
311
|
:stability: experimental
|
|
294
312
|
'''
|
|
295
313
|
result = self._values.get("log_removal_policy")
|
|
296
|
-
return typing.cast(typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy], result)
|
|
314
|
+
return typing.cast(typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"], result)
|
|
297
315
|
|
|
298
316
|
@builtins.property
|
|
299
317
|
def log_retention(
|
|
300
318
|
self,
|
|
301
|
-
) -> typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays]:
|
|
319
|
+
) -> typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"]:
|
|
302
320
|
'''(experimental) The number of days log events are kept in CloudWatch Logs.
|
|
303
321
|
|
|
304
322
|
When updating
|
|
@@ -310,7 +328,7 @@ class DependencyPackagerProps:
|
|
|
310
328
|
:stability: experimental
|
|
311
329
|
'''
|
|
312
330
|
result = self._values.get("log_retention")
|
|
313
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays], result)
|
|
331
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"], result)
|
|
314
332
|
|
|
315
333
|
@builtins.property
|
|
316
334
|
def preinstall_commands(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
@@ -326,7 +344,7 @@ class DependencyPackagerProps:
|
|
|
326
344
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
327
345
|
|
|
328
346
|
@builtins.property
|
|
329
|
-
def runtime(self) -> typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime]:
|
|
347
|
+
def runtime(self) -> typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"]:
|
|
330
348
|
'''(experimental) Target Lambda runtime.
|
|
331
349
|
|
|
332
350
|
Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
@@ -334,12 +352,12 @@ class DependencyPackagerProps:
|
|
|
334
352
|
:stability: experimental
|
|
335
353
|
'''
|
|
336
354
|
result = self._values.get("runtime")
|
|
337
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime], result)
|
|
355
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"], result)
|
|
338
356
|
|
|
339
357
|
@builtins.property
|
|
340
358
|
def subnet_selection(
|
|
341
359
|
self,
|
|
342
|
-
) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection]:
|
|
360
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"]:
|
|
343
361
|
'''(experimental) VPC subnets used for packager.
|
|
344
362
|
|
|
345
363
|
:default: default subnets, if VPC is used
|
|
@@ -347,7 +365,7 @@ class DependencyPackagerProps:
|
|
|
347
365
|
:stability: experimental
|
|
348
366
|
'''
|
|
349
367
|
result = self._values.get("subnet_selection")
|
|
350
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection], result)
|
|
368
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"], result)
|
|
351
369
|
|
|
352
370
|
@builtins.property
|
|
353
371
|
def type(self) -> typing.Optional["DependencyPackagerType"]:
|
|
@@ -355,7 +373,7 @@ class DependencyPackagerProps:
|
|
|
355
373
|
|
|
356
374
|
Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions.
|
|
357
375
|
|
|
358
|
-
:default: {@link DependencyPackagerType.LAMBDA}
|
|
376
|
+
:default: {@link DependencyPackagerType.LAMBDA }
|
|
359
377
|
|
|
360
378
|
:stability: experimental
|
|
361
379
|
'''
|
|
@@ -363,7 +381,7 @@ class DependencyPackagerProps:
|
|
|
363
381
|
return typing.cast(typing.Optional["DependencyPackagerType"], result)
|
|
364
382
|
|
|
365
383
|
@builtins.property
|
|
366
|
-
def vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
|
384
|
+
def vpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
|
|
367
385
|
'''(experimental) VPC used for packager.
|
|
368
386
|
|
|
369
387
|
Use this if your package repositories are only available from within a VPC.
|
|
@@ -373,7 +391,7 @@ class DependencyPackagerProps:
|
|
|
373
391
|
:stability: experimental
|
|
374
392
|
'''
|
|
375
393
|
result = self._values.get("vpc")
|
|
376
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], result)
|
|
394
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"], result)
|
|
377
395
|
|
|
378
396
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
379
397
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -427,28 +445,28 @@ class JavaDependencyPackager(
|
|
|
427
445
|
|
|
428
446
|
def __init__(
|
|
429
447
|
self,
|
|
430
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
448
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
431
449
|
id: builtins.str,
|
|
432
450
|
*,
|
|
433
|
-
architecture: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture] = None,
|
|
434
|
-
log_removal_policy: typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy] = None,
|
|
435
|
-
log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
|
|
451
|
+
architecture: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"] = None,
|
|
452
|
+
log_removal_policy: typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"] = None,
|
|
453
|
+
log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
|
|
436
454
|
preinstall_commands: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
437
|
-
runtime: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime] = None,
|
|
438
|
-
subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
439
|
-
type: typing.Optional[DependencyPackagerType] = None,
|
|
440
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
455
|
+
runtime: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"] = None,
|
|
456
|
+
subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
457
|
+
type: typing.Optional["DependencyPackagerType"] = None,
|
|
458
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
441
459
|
) -> None:
|
|
442
460
|
'''
|
|
443
461
|
:param scope: -
|
|
444
462
|
:param id: -
|
|
445
463
|
:param architecture: (experimental) Target Lambda architecture. Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
446
|
-
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
464
|
+
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed. We try to not leave anything behind when removed. But sometimes a log staying behind is useful. Default: RemovalPolicy.DESTROY
|
|
447
465
|
:param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
|
|
448
466
|
:param preinstall_commands: (experimental) Additional commands to run before installing packages. Use this to authenticate your package repositories like CodeArtifact. Default: []
|
|
449
467
|
:param runtime: (experimental) Target Lambda runtime. Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
450
468
|
:param subnet_selection: (experimental) VPC subnets used for packager. Default: default subnets, if VPC is used
|
|
451
|
-
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA}
|
|
469
|
+
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA }
|
|
452
470
|
:param vpc: (experimental) VPC used for packager. Use this if your package repositories are only available from within a VPC. Default: no VPC
|
|
453
471
|
|
|
454
472
|
:stability: experimental
|
|
@@ -477,7 +495,7 @@ class JavaDependencyPackager(
|
|
|
477
495
|
path: builtins.str,
|
|
478
496
|
*,
|
|
479
497
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
480
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
498
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
481
499
|
'''(experimental) Create a layer for dependencies defined in pom.xml installed with Maven.
|
|
482
500
|
|
|
483
501
|
:param id: -
|
|
@@ -492,25 +510,25 @@ class JavaDependencyPackager(
|
|
|
492
510
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
493
511
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
494
512
|
|
|
495
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromMaven", [id, path, props]))
|
|
513
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromMaven", [id, path, props]))
|
|
496
514
|
|
|
497
515
|
@builtins.property
|
|
498
516
|
@jsii.member(jsii_name="connections")
|
|
499
|
-
def connections(self) -> _aws_cdk_aws_ec2_ceddda9d.Connections:
|
|
517
|
+
def connections(self) -> "_aws_cdk_aws_ec2_ceddda9d.Connections":
|
|
500
518
|
'''(experimental) The network connections associated with this resource.
|
|
501
519
|
|
|
502
520
|
:stability: experimental
|
|
503
521
|
'''
|
|
504
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.Connections, jsii.get(self, "connections"))
|
|
522
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.Connections", jsii.get(self, "connections"))
|
|
505
523
|
|
|
506
524
|
@builtins.property
|
|
507
525
|
@jsii.member(jsii_name="grantPrincipal")
|
|
508
|
-
def grant_principal(self) -> _aws_cdk_aws_iam_ceddda9d.IPrincipal:
|
|
526
|
+
def grant_principal(self) -> "_aws_cdk_aws_iam_ceddda9d.IPrincipal":
|
|
509
527
|
'''(experimental) The principal to grant permissions to.
|
|
510
528
|
|
|
511
529
|
:stability: experimental
|
|
512
530
|
'''
|
|
513
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IPrincipal, jsii.get(self, "grantPrincipal"))
|
|
531
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IPrincipal", jsii.get(self, "grantPrincipal"))
|
|
514
532
|
|
|
515
533
|
|
|
516
534
|
@jsii.data_type(
|
|
@@ -572,28 +590,28 @@ class NodejsDependencyPackager(
|
|
|
572
590
|
|
|
573
591
|
def __init__(
|
|
574
592
|
self,
|
|
575
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
593
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
576
594
|
id: builtins.str,
|
|
577
595
|
*,
|
|
578
|
-
architecture: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture] = None,
|
|
579
|
-
log_removal_policy: typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy] = None,
|
|
580
|
-
log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
|
|
596
|
+
architecture: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"] = None,
|
|
597
|
+
log_removal_policy: typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"] = None,
|
|
598
|
+
log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
|
|
581
599
|
preinstall_commands: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
582
|
-
runtime: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime] = None,
|
|
583
|
-
subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
584
|
-
type: typing.Optional[DependencyPackagerType] = None,
|
|
585
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
600
|
+
runtime: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"] = None,
|
|
601
|
+
subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
602
|
+
type: typing.Optional["DependencyPackagerType"] = None,
|
|
603
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
586
604
|
) -> None:
|
|
587
605
|
'''
|
|
588
606
|
:param scope: -
|
|
589
607
|
:param id: -
|
|
590
608
|
:param architecture: (experimental) Target Lambda architecture. Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
591
|
-
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
609
|
+
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed. We try to not leave anything behind when removed. But sometimes a log staying behind is useful. Default: RemovalPolicy.DESTROY
|
|
592
610
|
:param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
|
|
593
611
|
:param preinstall_commands: (experimental) Additional commands to run before installing packages. Use this to authenticate your package repositories like CodeArtifact. Default: []
|
|
594
612
|
:param runtime: (experimental) Target Lambda runtime. Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
595
613
|
:param subnet_selection: (experimental) VPC subnets used for packager. Default: default subnets, if VPC is used
|
|
596
|
-
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA}
|
|
614
|
+
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA }
|
|
597
615
|
:param vpc: (experimental) VPC used for packager. Use this if your package repositories are only available from within a VPC. Default: no VPC
|
|
598
616
|
|
|
599
617
|
:stability: experimental
|
|
@@ -622,7 +640,7 @@ class NodejsDependencyPackager(
|
|
|
622
640
|
libraries: typing.Sequence[builtins.str],
|
|
623
641
|
*,
|
|
624
642
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
625
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
643
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
626
644
|
'''(experimental) Create a layer for dependencies passed as an argument and installed with npm.
|
|
627
645
|
|
|
628
646
|
:param id: -
|
|
@@ -637,7 +655,7 @@ class NodejsDependencyPackager(
|
|
|
637
655
|
check_type(argname="argument libraries", value=libraries, expected_type=type_hints["libraries"])
|
|
638
656
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
639
657
|
|
|
640
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromInline", [id, libraries, props]))
|
|
658
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromInline", [id, libraries, props]))
|
|
641
659
|
|
|
642
660
|
@jsii.member(jsii_name="layerFromPackageJson")
|
|
643
661
|
def layer_from_package_json(
|
|
@@ -646,7 +664,7 @@ class NodejsDependencyPackager(
|
|
|
646
664
|
path: builtins.str,
|
|
647
665
|
*,
|
|
648
666
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
649
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
667
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
650
668
|
'''(experimental) Create a layer for dependencies defined in package.json and (optionally) package-lock.json and installed with npm.
|
|
651
669
|
|
|
652
670
|
:param id: -
|
|
@@ -661,7 +679,7 @@ class NodejsDependencyPackager(
|
|
|
661
679
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
662
680
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
663
681
|
|
|
664
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromPackageJson", [id, path, props]))
|
|
682
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromPackageJson", [id, path, props]))
|
|
665
683
|
|
|
666
684
|
@jsii.member(jsii_name="layerFromYarn")
|
|
667
685
|
def layer_from_yarn(
|
|
@@ -670,7 +688,7 @@ class NodejsDependencyPackager(
|
|
|
670
688
|
path: builtins.str,
|
|
671
689
|
*,
|
|
672
690
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
673
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
691
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
674
692
|
'''(experimental) Create a layer for dependencies defined in package.json and yarn.lock and installed with yarn.
|
|
675
693
|
|
|
676
694
|
:param id: -
|
|
@@ -685,25 +703,25 @@ class NodejsDependencyPackager(
|
|
|
685
703
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
686
704
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
687
705
|
|
|
688
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromYarn", [id, path, props]))
|
|
706
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromYarn", [id, path, props]))
|
|
689
707
|
|
|
690
708
|
@builtins.property
|
|
691
709
|
@jsii.member(jsii_name="connections")
|
|
692
|
-
def connections(self) -> _aws_cdk_aws_ec2_ceddda9d.Connections:
|
|
710
|
+
def connections(self) -> "_aws_cdk_aws_ec2_ceddda9d.Connections":
|
|
693
711
|
'''(experimental) The network connections associated with this resource.
|
|
694
712
|
|
|
695
713
|
:stability: experimental
|
|
696
714
|
'''
|
|
697
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.Connections, jsii.get(self, "connections"))
|
|
715
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.Connections", jsii.get(self, "connections"))
|
|
698
716
|
|
|
699
717
|
@builtins.property
|
|
700
718
|
@jsii.member(jsii_name="grantPrincipal")
|
|
701
|
-
def grant_principal(self) -> _aws_cdk_aws_iam_ceddda9d.IPrincipal:
|
|
719
|
+
def grant_principal(self) -> "_aws_cdk_aws_iam_ceddda9d.IPrincipal":
|
|
702
720
|
'''(experimental) The principal to grant permissions to.
|
|
703
721
|
|
|
704
722
|
:stability: experimental
|
|
705
723
|
'''
|
|
706
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IPrincipal, jsii.get(self, "grantPrincipal"))
|
|
724
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IPrincipal", jsii.get(self, "grantPrincipal"))
|
|
707
725
|
|
|
708
726
|
|
|
709
727
|
@jsii.implements(_aws_cdk_aws_iam_ceddda9d.IGrantable, _aws_cdk_aws_ec2_ceddda9d.IConnectable)
|
|
@@ -721,28 +739,28 @@ class PythonDependencyPackager(
|
|
|
721
739
|
|
|
722
740
|
def __init__(
|
|
723
741
|
self,
|
|
724
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
742
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
725
743
|
id: builtins.str,
|
|
726
744
|
*,
|
|
727
|
-
architecture: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture] = None,
|
|
728
|
-
log_removal_policy: typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy] = None,
|
|
729
|
-
log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
|
|
745
|
+
architecture: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"] = None,
|
|
746
|
+
log_removal_policy: typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"] = None,
|
|
747
|
+
log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
|
|
730
748
|
preinstall_commands: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
731
|
-
runtime: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime] = None,
|
|
732
|
-
subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
733
|
-
type: typing.Optional[DependencyPackagerType] = None,
|
|
734
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
749
|
+
runtime: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"] = None,
|
|
750
|
+
subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
751
|
+
type: typing.Optional["DependencyPackagerType"] = None,
|
|
752
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
735
753
|
) -> None:
|
|
736
754
|
'''
|
|
737
755
|
:param scope: -
|
|
738
756
|
:param id: -
|
|
739
757
|
:param architecture: (experimental) Target Lambda architecture. Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
740
|
-
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
758
|
+
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed. We try to not leave anything behind when removed. But sometimes a log staying behind is useful. Default: RemovalPolicy.DESTROY
|
|
741
759
|
:param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
|
|
742
760
|
:param preinstall_commands: (experimental) Additional commands to run before installing packages. Use this to authenticate your package repositories like CodeArtifact. Default: []
|
|
743
761
|
:param runtime: (experimental) Target Lambda runtime. Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
744
762
|
:param subnet_selection: (experimental) VPC subnets used for packager. Default: default subnets, if VPC is used
|
|
745
|
-
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA}
|
|
763
|
+
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA }
|
|
746
764
|
:param vpc: (experimental) VPC used for packager. Use this if your package repositories are only available from within a VPC. Default: no VPC
|
|
747
765
|
|
|
748
766
|
:stability: experimental
|
|
@@ -771,7 +789,7 @@ class PythonDependencyPackager(
|
|
|
771
789
|
requirements: typing.Sequence[builtins.str],
|
|
772
790
|
*,
|
|
773
791
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
774
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
792
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
775
793
|
'''(experimental) Create a layer for dependencies passed as an argument and installed with pip.
|
|
776
794
|
|
|
777
795
|
:param id: -
|
|
@@ -786,7 +804,7 @@ class PythonDependencyPackager(
|
|
|
786
804
|
check_type(argname="argument requirements", value=requirements, expected_type=type_hints["requirements"])
|
|
787
805
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
788
806
|
|
|
789
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromInline", [id, requirements, props]))
|
|
807
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromInline", [id, requirements, props]))
|
|
790
808
|
|
|
791
809
|
@jsii.member(jsii_name="layerFromPipenv")
|
|
792
810
|
def layer_from_pipenv(
|
|
@@ -795,7 +813,7 @@ class PythonDependencyPackager(
|
|
|
795
813
|
path: builtins.str,
|
|
796
814
|
*,
|
|
797
815
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
798
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
816
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
799
817
|
'''(experimental) Create a layer for dependencies defined in Pipfile and (optionally) Pipfile.lock and installed with pipenv.
|
|
800
818
|
|
|
801
819
|
:param id: -
|
|
@@ -810,7 +828,7 @@ class PythonDependencyPackager(
|
|
|
810
828
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
811
829
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
812
830
|
|
|
813
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromPipenv", [id, path, props]))
|
|
831
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromPipenv", [id, path, props]))
|
|
814
832
|
|
|
815
833
|
@jsii.member(jsii_name="layerFromPoetry")
|
|
816
834
|
def layer_from_poetry(
|
|
@@ -819,7 +837,7 @@ class PythonDependencyPackager(
|
|
|
819
837
|
path: builtins.str,
|
|
820
838
|
*,
|
|
821
839
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
822
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
840
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
823
841
|
'''(experimental) Create a layer for dependencies defined in pyproject.toml and (optionally) poetry.lock and installed with poetry.
|
|
824
842
|
|
|
825
843
|
:param id: -
|
|
@@ -834,7 +852,7 @@ class PythonDependencyPackager(
|
|
|
834
852
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
835
853
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
836
854
|
|
|
837
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromPoetry", [id, path, props]))
|
|
855
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromPoetry", [id, path, props]))
|
|
838
856
|
|
|
839
857
|
@jsii.member(jsii_name="layerFromRequirementsTxt")
|
|
840
858
|
def layer_from_requirements_txt(
|
|
@@ -843,7 +861,7 @@ class PythonDependencyPackager(
|
|
|
843
861
|
path: builtins.str,
|
|
844
862
|
*,
|
|
845
863
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
846
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
864
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
847
865
|
'''(experimental) Create a layer for dependencies defined in requirements.txt and installed with pip.
|
|
848
866
|
|
|
849
867
|
:param id: -
|
|
@@ -858,25 +876,25 @@ class PythonDependencyPackager(
|
|
|
858
876
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
859
877
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
860
878
|
|
|
861
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromRequirementsTxt", [id, path, props]))
|
|
879
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromRequirementsTxt", [id, path, props]))
|
|
862
880
|
|
|
863
881
|
@builtins.property
|
|
864
882
|
@jsii.member(jsii_name="connections")
|
|
865
|
-
def connections(self) -> _aws_cdk_aws_ec2_ceddda9d.Connections:
|
|
883
|
+
def connections(self) -> "_aws_cdk_aws_ec2_ceddda9d.Connections":
|
|
866
884
|
'''(experimental) The network connections associated with this resource.
|
|
867
885
|
|
|
868
886
|
:stability: experimental
|
|
869
887
|
'''
|
|
870
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.Connections, jsii.get(self, "connections"))
|
|
888
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.Connections", jsii.get(self, "connections"))
|
|
871
889
|
|
|
872
890
|
@builtins.property
|
|
873
891
|
@jsii.member(jsii_name="grantPrincipal")
|
|
874
|
-
def grant_principal(self) -> _aws_cdk_aws_iam_ceddda9d.IPrincipal:
|
|
892
|
+
def grant_principal(self) -> "_aws_cdk_aws_iam_ceddda9d.IPrincipal":
|
|
875
893
|
'''(experimental) The principal to grant permissions to.
|
|
876
894
|
|
|
877
895
|
:stability: experimental
|
|
878
896
|
'''
|
|
879
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IPrincipal, jsii.get(self, "grantPrincipal"))
|
|
897
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IPrincipal", jsii.get(self, "grantPrincipal"))
|
|
880
898
|
|
|
881
899
|
|
|
882
900
|
@jsii.implements(_aws_cdk_aws_iam_ceddda9d.IGrantable, _aws_cdk_aws_ec2_ceddda9d.IConnectable)
|
|
@@ -894,28 +912,28 @@ class RubyDependencyPackager(
|
|
|
894
912
|
|
|
895
913
|
def __init__(
|
|
896
914
|
self,
|
|
897
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
915
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
898
916
|
id: builtins.str,
|
|
899
917
|
*,
|
|
900
|
-
architecture: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Architecture] = None,
|
|
901
|
-
log_removal_policy: typing.Optional[_aws_cdk_ceddda9d.RemovalPolicy] = None,
|
|
902
|
-
log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
|
|
918
|
+
architecture: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Architecture"] = None,
|
|
919
|
+
log_removal_policy: typing.Optional["_aws_cdk_ceddda9d.RemovalPolicy"] = None,
|
|
920
|
+
log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
|
|
903
921
|
preinstall_commands: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
904
|
-
runtime: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Runtime] = None,
|
|
905
|
-
subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
906
|
-
type: typing.Optional[DependencyPackagerType] = None,
|
|
907
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
922
|
+
runtime: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.Runtime"] = None,
|
|
923
|
+
subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
924
|
+
type: typing.Optional["DependencyPackagerType"] = None,
|
|
925
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
908
926
|
) -> None:
|
|
909
927
|
'''
|
|
910
928
|
:param scope: -
|
|
911
929
|
:param id: -
|
|
912
930
|
:param architecture: (experimental) Target Lambda architecture. Packages will be installed for this architecture so make sure it fits your Lambda functions.
|
|
913
|
-
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way
|
|
931
|
+
:param log_removal_policy: (experimental) Removal policy for logs of image builds. If deployment fails on the custom resource, try setting this to ``RemovalPolicy.RETAIN``. This way logs can still be viewed, and you can see why the build failed. We try to not leave anything behind when removed. But sometimes a log staying behind is useful. Default: RemovalPolicy.DESTROY
|
|
914
932
|
:param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
|
|
915
933
|
:param preinstall_commands: (experimental) Additional commands to run before installing packages. Use this to authenticate your package repositories like CodeArtifact. Default: []
|
|
916
934
|
:param runtime: (experimental) Target Lambda runtime. Packages will be installed for this runtime so make sure it fits your Lambda functions.
|
|
917
935
|
:param subnet_selection: (experimental) VPC subnets used for packager. Default: default subnets, if VPC is used
|
|
918
|
-
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA}
|
|
936
|
+
:param type: (experimental) Type of dependency packager. Use Lambda for speed and CodeBuild for complex dependencies that require building native extensions. Default: {@link DependencyPackagerType.LAMBDA }
|
|
919
937
|
:param vpc: (experimental) VPC used for packager. Use this if your package repositories are only available from within a VPC. Default: no VPC
|
|
920
938
|
|
|
921
939
|
:stability: experimental
|
|
@@ -944,7 +962,7 @@ class RubyDependencyPackager(
|
|
|
944
962
|
path: builtins.str,
|
|
945
963
|
*,
|
|
946
964
|
always_rebuild: typing.Optional[builtins.bool] = None,
|
|
947
|
-
) -> _aws_cdk_aws_lambda_ceddda9d.LayerVersion:
|
|
965
|
+
) -> "_aws_cdk_aws_lambda_ceddda9d.LayerVersion":
|
|
948
966
|
'''(experimental) Create a layer for dependencies defined in Gemfile and (optionally) Gemfile.lock and installed with Bundler.
|
|
949
967
|
|
|
950
968
|
:param id: -
|
|
@@ -959,25 +977,25 @@ class RubyDependencyPackager(
|
|
|
959
977
|
check_type(argname="argument path", value=path, expected_type=type_hints["path"])
|
|
960
978
|
props = LayerProps(always_rebuild=always_rebuild)
|
|
961
979
|
|
|
962
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.LayerVersion, jsii.invoke(self, "layerFromBundler", [id, path, props]))
|
|
980
|
+
return typing.cast("_aws_cdk_aws_lambda_ceddda9d.LayerVersion", jsii.invoke(self, "layerFromBundler", [id, path, props]))
|
|
963
981
|
|
|
964
982
|
@builtins.property
|
|
965
983
|
@jsii.member(jsii_name="connections")
|
|
966
|
-
def connections(self) -> _aws_cdk_aws_ec2_ceddda9d.Connections:
|
|
984
|
+
def connections(self) -> "_aws_cdk_aws_ec2_ceddda9d.Connections":
|
|
967
985
|
'''(experimental) The network connections associated with this resource.
|
|
968
986
|
|
|
969
987
|
:stability: experimental
|
|
970
988
|
'''
|
|
971
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.Connections, jsii.get(self, "connections"))
|
|
989
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.Connections", jsii.get(self, "connections"))
|
|
972
990
|
|
|
973
991
|
@builtins.property
|
|
974
992
|
@jsii.member(jsii_name="grantPrincipal")
|
|
975
|
-
def grant_principal(self) -> _aws_cdk_aws_iam_ceddda9d.IPrincipal:
|
|
993
|
+
def grant_principal(self) -> "_aws_cdk_aws_iam_ceddda9d.IPrincipal":
|
|
976
994
|
'''(experimental) The principal to grant permissions to.
|
|
977
995
|
|
|
978
996
|
:stability: experimental
|
|
979
997
|
'''
|
|
980
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IPrincipal, jsii.get(self, "grantPrincipal"))
|
|
998
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IPrincipal", jsii.get(self, "grantPrincipal"))
|
|
981
999
|
|
|
982
1000
|
|
|
983
1001
|
__all__ = [
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
|
3
|
+
|
|
1
4
|
import abc
|
|
2
5
|
import builtins
|
|
3
6
|
import datetime
|
|
@@ -8,16 +11,31 @@ import jsii
|
|
|
8
11
|
import publication
|
|
9
12
|
import typing_extensions
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
import typeguard
|
|
15
|
+
from importlib.metadata import version as _metadata_package_version
|
|
16
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
17
|
+
|
|
18
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
19
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
20
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
21
|
+
else:
|
|
22
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
23
|
+
pass
|
|
24
|
+
else:
|
|
25
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
26
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
27
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
28
|
+
else:
|
|
29
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
12
30
|
|
|
13
31
|
import aws_cdk._jsii
|
|
14
32
|
import constructs._jsii
|
|
15
33
|
|
|
16
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
17
35
|
"@cloudsnorkel/cdk-turbo-layers",
|
|
18
|
-
"0.
|
|
36
|
+
"0.3.1",
|
|
19
37
|
__name__[0:-6],
|
|
20
|
-
"cdk-turbo-layers@0.
|
|
38
|
+
"cdk-turbo-layers@0.3.1.jsii.tgz",
|
|
21
39
|
)
|
|
22
40
|
|
|
23
41
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudsnorkel.cdk-turbo-layers
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Speed-up Lambda function deployment with dependency layers built in AWS
|
|
5
5
|
Home-page: https://github.com/CloudSnorkel/cdk-turbo-layers.git
|
|
6
6
|
Author: Amir Szekely<amir@cloudsnorkel.com>
|
|
@@ -10,21 +10,20 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
16
|
Classifier: Typing :: Typed
|
|
18
17
|
Classifier: Development Status :: 4 - Beta
|
|
19
18
|
Classifier: License :: OSI Approved
|
|
20
|
-
Requires-Python: ~=3.
|
|
19
|
+
Requires-Python: ~=3.9
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: aws-cdk-lib <3.0.0,>=2.
|
|
22
|
+
Requires-Dist: aws-cdk-lib <3.0.0,>=2.146.0
|
|
24
23
|
Requires-Dist: constructs <11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii <2.0.0,>=1.
|
|
24
|
+
Requires-Dist: jsii <2.0.0,>=1.126.0
|
|
26
25
|
Requires-Dist: publication >=0.0.3
|
|
27
|
-
Requires-Dist: typeguard
|
|
26
|
+
Requires-Dist: typeguard ==2.13.3
|
|
28
27
|
|
|
29
28
|
# Turbo Layers for CDK
|
|
30
29
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cloudsnorkel/cdk_turbo_layers/__init__.py,sha256=sSw7jAbNssqSmYWD4P6HPLH8aialFR3aIA9HAdDKtvs,58000
|
|
2
|
+
cloudsnorkel/cdk_turbo_layers/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
cloudsnorkel/cdk_turbo_layers/_jsii/__init__.py,sha256=0vrgcrjZrE3BWIjOlJVyGAs1XouhdPXUGVIxiQqt0sE,1470
|
|
4
|
+
cloudsnorkel/cdk_turbo_layers/_jsii/cdk-turbo-layers@0.3.1.jsii.tgz,sha256=Gpe_lBGakFHUUSyl-G_y4uMiWC7gzD2JvBelHbTKHfA,363572
|
|
5
|
+
cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
+
cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/METADATA,sha256=Ww5opwsios0k--shQLkhG6mFw4wr9oTcAPliqkMRxRA,9648
|
|
7
|
+
cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
|
|
8
|
+
cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
|
|
9
|
+
cloudsnorkel_cdk_turbo_layers-0.3.1.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cloudsnorkel/cdk_turbo_layers/__init__.py,sha256=JZVvuz5qSTJqRoLsLaKd10OkC296AjSrNZJ3C7s0-v0,56865
|
|
2
|
-
cloudsnorkel/cdk_turbo_layers/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
cloudsnorkel/cdk_turbo_layers/_jsii/__init__.py,sha256=2auhlOSepce8Aj2f8A850bJLJyMQCiqLyQX6FYLM1Yg,426
|
|
4
|
-
cloudsnorkel/cdk_turbo_layers/_jsii/cdk-turbo-layers@0.2.3.jsii.tgz,sha256=2AxWc6Bhw1noJWxPbdiqCNaoPGmQe-8cJC9dzGtWCWM,321136
|
|
5
|
-
cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
-
cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/METADATA,sha256=wzMu4UCFc4lSicMiuSWv9zjsvYrrAYWw6vHQ03xjf9w,9696
|
|
7
|
-
cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
8
|
-
cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
|
|
9
|
-
cloudsnorkel.cdk_turbo_layers-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|