constructs 10.5.1__tar.gz → 10.7.0__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.
- {constructs-10.5.1/src/constructs.egg-info → constructs-10.7.0}/PKG-INFO +6 -5
- {constructs-10.5.1 → constructs-10.7.0}/pyproject.toml +2 -2
- {constructs-10.5.1 → constructs-10.7.0}/setup.py +8 -7
- {constructs-10.5.1 → constructs-10.7.0}/src/constructs/__init__.py +94 -50
- constructs-10.7.0/src/constructs/_jsii/__init__.py +25 -0
- constructs-10.7.0/src/constructs/_jsii/constructs@10.7.0.jsii.tgz +0 -0
- {constructs-10.5.1 → constructs-10.7.0/src/constructs.egg-info}/PKG-INFO +6 -5
- {constructs-10.5.1 → constructs-10.7.0}/src/constructs.egg-info/SOURCES.txt +1 -1
- constructs-10.7.0/src/constructs.egg-info/requires.txt +2 -0
- constructs-10.5.1/src/constructs/_jsii/__init__.py +0 -39
- constructs-10.5.1/src/constructs/_jsii/constructs@10.5.1.jsii.tgz +0 -0
- constructs-10.5.1/src/constructs.egg-info/requires.txt +0 -3
- {constructs-10.5.1 → constructs-10.7.0}/LICENSE +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/MANIFEST.in +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/NOTICE +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/README.md +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/setup.cfg +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/src/constructs/py.typed +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/src/constructs.egg-info/dependency_links.txt +0 -0
- {constructs-10.5.1 → constructs-10.7.0}/src/constructs.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: constructs
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.7.0
|
|
4
4
|
Summary: A programming model for software-defined state
|
|
5
5
|
Home-page: https://github.com/aws/constructs
|
|
6
6
|
Author: Amazon Web Services<aws-cdk-dev@amazon.com>
|
|
@@ -10,19 +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.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
18
|
Classifier: Typing :: Typed
|
|
17
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
18
20
|
Classifier: License :: OSI Approved
|
|
19
|
-
Requires-Python:
|
|
21
|
+
Requires-Python: >=3.10
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
License-File: LICENSE
|
|
22
24
|
License-File: NOTICE
|
|
23
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.138.0
|
|
24
26
|
Requires-Dist: publication>=0.0.3
|
|
25
|
-
Requires-Dist: typeguard==2.13.3
|
|
26
27
|
|
|
27
28
|
# Constructs
|
|
28
29
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools~=75.3.2", "build~=1.
|
|
2
|
+
requires = ["setuptools~=75.3.2", "build~=1.5.0"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[tool.pyright]
|
|
6
6
|
defineConstant = { DEBUG = true }
|
|
7
|
-
pythonVersion = "3.
|
|
7
|
+
pythonVersion = "3.10"
|
|
8
8
|
pythonPlatform = "All"
|
|
9
9
|
reportSelfClsParameterName = false
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "constructs",
|
|
8
|
-
"version": "10.
|
|
8
|
+
"version": "10.7.0",
|
|
9
9
|
"description": "A programming model for software-defined state",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://github.com/aws/constructs",
|
|
@@ -26,26 +26,27 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"constructs._jsii": [
|
|
29
|
-
"constructs@10.
|
|
29
|
+
"constructs@10.7.0.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"constructs": [
|
|
32
32
|
"py.typed"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
-
"python_requires": "
|
|
35
|
+
"python_requires": ">=3.10",
|
|
36
36
|
"install_requires": [
|
|
37
|
-
"jsii>=1.
|
|
38
|
-
"publication>=0.0.3"
|
|
39
|
-
"typeguard==2.13.3"
|
|
37
|
+
"jsii>=1.138.0, <2.0.0",
|
|
38
|
+
"publication>=0.0.3"
|
|
40
39
|
],
|
|
41
40
|
"classifiers": [
|
|
42
41
|
"Intended Audience :: Developers",
|
|
43
42
|
"Operating System :: OS Independent",
|
|
44
43
|
"Programming Language :: JavaScript",
|
|
45
44
|
"Programming Language :: Python :: 3 :: Only",
|
|
46
|
-
"Programming Language :: Python :: 3.9",
|
|
47
45
|
"Programming Language :: Python :: 3.10",
|
|
48
46
|
"Programming Language :: Python :: 3.11",
|
|
47
|
+
"Programming Language :: Python :: 3.12",
|
|
48
|
+
"Programming Language :: Python :: 3.13",
|
|
49
|
+
"Programming Language :: Python :: 3.14",
|
|
49
50
|
"Typing :: Typed",
|
|
50
51
|
"Development Status :: 5 - Production/Stable",
|
|
51
52
|
"License :: OSI Approved"
|
|
@@ -45,22 +45,8 @@ import jsii
|
|
|
45
45
|
import publication
|
|
46
46
|
import typing_extensions
|
|
47
47
|
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
51
|
-
|
|
52
|
-
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
53
|
-
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
54
|
-
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
55
|
-
else:
|
|
56
|
-
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
57
|
-
pass
|
|
58
|
-
else:
|
|
59
|
-
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
60
|
-
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
61
|
-
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
62
|
-
else:
|
|
63
|
-
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
48
|
+
from jsii._type_checking import cached_type_hints, check_type
|
|
49
|
+
|
|
64
50
|
|
|
65
51
|
from ._jsii import *
|
|
66
52
|
|
|
@@ -110,7 +96,7 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
|
|
|
110
96
|
:stability: deprecated
|
|
111
97
|
'''
|
|
112
98
|
if __debug__:
|
|
113
|
-
type_hints =
|
|
99
|
+
type_hints = cached_type_hints(_typecheckingstub__679510e0e5074b5be594d161aaffe1bcbf759129512d69821982adde36fb905d)
|
|
114
100
|
check_type(argname="argument instance", value=instance, expected_type=type_hints["instance"])
|
|
115
101
|
return typing.cast("Dependable", jsii.sinvoke(cls, "get", [instance]))
|
|
116
102
|
|
|
@@ -123,7 +109,7 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
|
|
|
123
109
|
:param trait: -
|
|
124
110
|
'''
|
|
125
111
|
if __debug__:
|
|
126
|
-
type_hints =
|
|
112
|
+
type_hints = cached_type_hints(_typecheckingstub__fccfa163f8f38b89195d804e18f7122f2b59a7ba7b57ea51cf581e4ae5719bf9)
|
|
127
113
|
check_type(argname="argument instance", value=instance, expected_type=type_hints["instance"])
|
|
128
114
|
check_type(argname="argument trait", value=trait, expected_type=type_hints["trait"])
|
|
129
115
|
return typing.cast(None, jsii.sinvoke(cls, "implement", [instance, trait]))
|
|
@@ -136,7 +122,7 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
|
|
|
136
122
|
:param instance: -
|
|
137
123
|
'''
|
|
138
124
|
if __debug__:
|
|
139
|
-
type_hints =
|
|
125
|
+
type_hints = cached_type_hints(_typecheckingstub__54a9441299838c86c77ad919b31ab158da6bd872c3bf8bf55f147c17abeea083)
|
|
140
126
|
check_type(argname="argument instance", value=instance, expected_type=type_hints["instance"])
|
|
141
127
|
return typing.cast("Dependable", jsii.sinvoke(cls, "of", [instance]))
|
|
142
128
|
|
|
@@ -235,7 +221,7 @@ class _IMixinProxy:
|
|
|
235
221
|
:param construct: -
|
|
236
222
|
'''
|
|
237
223
|
if __debug__:
|
|
238
|
-
type_hints =
|
|
224
|
+
type_hints = cached_type_hints(_typecheckingstub__ef3057d7b2239a822adb30db5073786298478cd3fa000528394c84d1aeecee1f)
|
|
239
225
|
check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
|
|
240
226
|
return typing.cast(None, jsii.invoke(self, "applyTo", [construct]))
|
|
241
227
|
|
|
@@ -246,7 +232,7 @@ class _IMixinProxy:
|
|
|
246
232
|
:param construct: -
|
|
247
233
|
'''
|
|
248
234
|
if __debug__:
|
|
249
|
-
type_hints =
|
|
235
|
+
type_hints = cached_type_hints(_typecheckingstub__55ea6788f825fe03077ad971427d715ae61f5ac50df36f708925449c85f4b3b6)
|
|
250
236
|
check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
|
|
251
237
|
return typing.cast(builtins.bool, jsii.invoke(self, "supports", [construct]))
|
|
252
238
|
|
|
@@ -310,7 +296,7 @@ class MetadataEntry:
|
|
|
310
296
|
:param trace: Stack trace at the point of adding the metadata. Only available if ``addMetadata()`` is called with ``stackTrace: true``. Default: - no trace information
|
|
311
297
|
'''
|
|
312
298
|
if __debug__:
|
|
313
|
-
type_hints =
|
|
299
|
+
type_hints = cached_type_hints(_typecheckingstub__ac0c2f394c95b32376bd2487bfa65b455507f8363a71e56bbcfef3a690552658)
|
|
314
300
|
check_type(argname="argument data", value=data, expected_type=type_hints["data"])
|
|
315
301
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
316
302
|
check_type(argname="argument trace", value=trace, expected_type=type_hints["trace"])
|
|
@@ -363,6 +349,7 @@ class MetadataEntry:
|
|
|
363
349
|
jsii_struct_bases=[],
|
|
364
350
|
name_mapping={
|
|
365
351
|
"stack_trace": "stackTrace",
|
|
352
|
+
"stack_trace_override": "stackTraceOverride",
|
|
366
353
|
"trace_from_function": "traceFromFunction",
|
|
367
354
|
},
|
|
368
355
|
)
|
|
@@ -371,20 +358,25 @@ class MetadataOptions:
|
|
|
371
358
|
self,
|
|
372
359
|
*,
|
|
373
360
|
stack_trace: typing.Optional[builtins.bool] = None,
|
|
361
|
+
stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
374
362
|
trace_from_function: typing.Any = None,
|
|
375
363
|
) -> None:
|
|
376
364
|
'''Options for ``construct.addMetadata()``.
|
|
377
365
|
|
|
378
366
|
:param stack_trace: Include stack trace with metadata entry. Default: false
|
|
367
|
+
:param stack_trace_override: The actual stack trace to be added to the metadata. If this parameter is passed, the stackTrace parameter is ignored.
|
|
379
368
|
:param trace_from_function: A JavaScript function to begin tracing from. This option is ignored unless ``stackTrace`` is ``true``. Default: addMetadata()
|
|
380
369
|
'''
|
|
381
370
|
if __debug__:
|
|
382
|
-
type_hints =
|
|
371
|
+
type_hints = cached_type_hints(_typecheckingstub__75d38f18f5b98ff8e52a193cc40da1d25ab1a4740362b86cea0782ada618178b)
|
|
383
372
|
check_type(argname="argument stack_trace", value=stack_trace, expected_type=type_hints["stack_trace"])
|
|
373
|
+
check_type(argname="argument stack_trace_override", value=stack_trace_override, expected_type=type_hints["stack_trace_override"])
|
|
384
374
|
check_type(argname="argument trace_from_function", value=trace_from_function, expected_type=type_hints["trace_from_function"])
|
|
385
375
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
386
376
|
if stack_trace is not None:
|
|
387
377
|
self._values["stack_trace"] = stack_trace
|
|
378
|
+
if stack_trace_override is not None:
|
|
379
|
+
self._values["stack_trace_override"] = stack_trace_override
|
|
388
380
|
if trace_from_function is not None:
|
|
389
381
|
self._values["trace_from_function"] = trace_from_function
|
|
390
382
|
|
|
@@ -397,6 +389,16 @@ class MetadataOptions:
|
|
|
397
389
|
result = self._values.get("stack_trace")
|
|
398
390
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
399
391
|
|
|
392
|
+
@builtins.property
|
|
393
|
+
def stack_trace_override(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
394
|
+
'''The actual stack trace to be added to the metadata.
|
|
395
|
+
|
|
396
|
+
If this
|
|
397
|
+
parameter is passed, the stackTrace parameter is ignored.
|
|
398
|
+
'''
|
|
399
|
+
result = self._values.get("stack_trace_override")
|
|
400
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
401
|
+
|
|
400
402
|
@builtins.property
|
|
401
403
|
def trace_from_function(self) -> typing.Any:
|
|
402
404
|
'''A JavaScript function to begin tracing from.
|
|
@@ -435,7 +437,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
435
437
|
:param id: -
|
|
436
438
|
'''
|
|
437
439
|
if __debug__:
|
|
438
|
-
type_hints =
|
|
440
|
+
type_hints = cached_type_hints(_typecheckingstub__a3d6f98f49be8b52dd81458a10a699ba3c2baedf270e915aff9ad4a199629f16)
|
|
439
441
|
check_type(argname="argument host", value=host, expected_type=type_hints["host"])
|
|
440
442
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
441
443
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
@@ -453,20 +455,32 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
453
455
|
:stability: deprecated
|
|
454
456
|
'''
|
|
455
457
|
if __debug__:
|
|
456
|
-
type_hints =
|
|
458
|
+
type_hints = cached_type_hints(_typecheckingstub__6e976ef1a5da0fe82b55c8d7dec2b729e665c685a6fd4cf13e79d119b83e883b)
|
|
457
459
|
check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
|
|
458
460
|
return typing.cast("Node", jsii.sinvoke(cls, "of", [construct]))
|
|
459
461
|
|
|
460
462
|
@jsii.member(jsii_name="addDependency")
|
|
461
463
|
def add_dependency(self, *deps: "IDependable") -> None:
|
|
462
|
-
'''Add an ordering dependency on
|
|
463
|
-
|
|
464
|
-
|
|
464
|
+
'''Add an ordering dependency on a Dependable (a construct or set of constructs).
|
|
465
|
+
|
|
466
|
+
It is up to the target document language to decide what an ordering
|
|
467
|
+
relationship means and how it should be rendered; for example, in the AWS
|
|
468
|
+
CDK for CloudFormation it means a dependency from every resource in scope
|
|
469
|
+
of the current construct to every resource in scope of the target set
|
|
470
|
+
of constructs, that get realized as either stack dependencies or
|
|
471
|
+
``DependsOn`` relationships in the synthesized template.
|
|
472
|
+
|
|
473
|
+
``IDependable`` is a marker interface that indicates that a class has used
|
|
474
|
+
``Dependable.implement()`` to implement the ``IDependable`` interface. It
|
|
475
|
+
can be used to make the target object represent more than one set of
|
|
476
|
+
constructs at a time. For example, a ``DependencyGroup`` uses this
|
|
477
|
+
interface to represent an explicit list of 0 or more constructs that should
|
|
478
|
+
be involved in the dependency relationship.
|
|
465
479
|
|
|
466
480
|
:param deps: -
|
|
467
481
|
'''
|
|
468
482
|
if __debug__:
|
|
469
|
-
type_hints =
|
|
483
|
+
type_hints = cached_type_hints(_typecheckingstub__45cad7dd42c6c671e9f87ba7d66096044214dd8c5bfed807ecb8eee7b41edd21)
|
|
470
484
|
check_type(argname="argument deps", value=deps, expected_type=typing.Tuple[type_hints["deps"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
471
485
|
return typing.cast(None, jsii.invoke(self, "addDependency", [*deps]))
|
|
472
486
|
|
|
@@ -477,6 +491,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
477
491
|
data: typing.Any,
|
|
478
492
|
*,
|
|
479
493
|
stack_trace: typing.Optional[builtins.bool] = None,
|
|
494
|
+
stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
480
495
|
trace_from_function: typing.Any = None,
|
|
481
496
|
) -> None:
|
|
482
497
|
'''Adds a metadata entry to this construct.
|
|
@@ -490,14 +505,17 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
490
505
|
:param type: a string denoting the type of metadata.
|
|
491
506
|
:param data: the value of the metadata (can be a Token). If null/undefined, metadata will not be added.
|
|
492
507
|
:param stack_trace: Include stack trace with metadata entry. Default: false
|
|
508
|
+
:param stack_trace_override: The actual stack trace to be added to the metadata. If this parameter is passed, the stackTrace parameter is ignored.
|
|
493
509
|
:param trace_from_function: A JavaScript function to begin tracing from. This option is ignored unless ``stackTrace`` is ``true``. Default: addMetadata()
|
|
494
510
|
'''
|
|
495
511
|
if __debug__:
|
|
496
|
-
type_hints =
|
|
512
|
+
type_hints = cached_type_hints(_typecheckingstub__023b8c3b11b2c1279fbfa8d54f858cec54fb8d9621c584addfbcccc63dbce202)
|
|
497
513
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
498
514
|
check_type(argname="argument data", value=data, expected_type=type_hints["data"])
|
|
499
515
|
options = MetadataOptions(
|
|
500
|
-
stack_trace=stack_trace,
|
|
516
|
+
stack_trace=stack_trace,
|
|
517
|
+
stack_trace_override=stack_trace_override,
|
|
518
|
+
trace_from_function=trace_from_function,
|
|
501
519
|
)
|
|
502
520
|
|
|
503
521
|
return typing.cast(None, jsii.invoke(self, "addMetadata", [type, data, options]))
|
|
@@ -512,7 +530,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
512
530
|
:param validation: The validation object.
|
|
513
531
|
'''
|
|
514
532
|
if __debug__:
|
|
515
|
-
type_hints =
|
|
533
|
+
type_hints = cached_type_hints(_typecheckingstub__67eb37a7475000d487d8124e00d1a8f5c0da44f9b68527dd02d18a3a789e11a0)
|
|
516
534
|
check_type(argname="argument validation", value=validation, expected_type=type_hints["validation"])
|
|
517
535
|
return typing.cast(None, jsii.invoke(self, "addValidation", [validation]))
|
|
518
536
|
|
|
@@ -526,7 +544,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
526
544
|
:param order: -
|
|
527
545
|
'''
|
|
528
546
|
if __debug__:
|
|
529
|
-
type_hints =
|
|
547
|
+
type_hints = cached_type_hints(_typecheckingstub__bc361d795aa7b43307a9b4d8126549b970305e1487dfba0b95baabe4805e7c1b)
|
|
530
548
|
check_type(argname="argument order", value=order, expected_type=type_hints["order"])
|
|
531
549
|
return typing.cast(typing.List["IConstruct"], jsii.invoke(self, "findAll", [order]))
|
|
532
550
|
|
|
@@ -541,7 +559,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
541
559
|
:return: Child with the given id.
|
|
542
560
|
'''
|
|
543
561
|
if __debug__:
|
|
544
|
-
type_hints =
|
|
562
|
+
type_hints = cached_type_hints(_typecheckingstub__fad30dac2587986f1ad461ddbfadd8c7bdb66542692e2272c9ea5e2487f4fa5f)
|
|
545
563
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
546
564
|
return typing.cast("IConstruct", jsii.invoke(self, "findChild", [id]))
|
|
547
565
|
|
|
@@ -559,7 +577,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
559
577
|
:return: The context object or an empty object if there is discovered context
|
|
560
578
|
'''
|
|
561
579
|
if __debug__:
|
|
562
|
-
type_hints =
|
|
580
|
+
type_hints = cached_type_hints(_typecheckingstub__7b2abb9ce64f01035fe598b09baa8049b185b7c4ad02e47befe0c70908a1e000)
|
|
563
581
|
check_type(argname="argument defaults", value=defaults, expected_type=type_hints["defaults"])
|
|
564
582
|
return typing.cast(typing.Any, jsii.invoke(self, "getAllContext", [defaults]))
|
|
565
583
|
|
|
@@ -574,7 +592,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
574
592
|
:return: The context value or throws error if there is no context value for this key
|
|
575
593
|
'''
|
|
576
594
|
if __debug__:
|
|
577
|
-
type_hints =
|
|
595
|
+
type_hints = cached_type_hints(_typecheckingstub__1fdfdfb2b2e83a2845cb899305c37d4e37ae13634e2150fa9895e715f45e2752)
|
|
578
596
|
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
579
597
|
return typing.cast(typing.Any, jsii.invoke(self, "getContext", [key]))
|
|
580
598
|
|
|
@@ -587,6 +605,20 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
587
605
|
'''
|
|
588
606
|
return typing.cast(None, jsii.invoke(self, "lock", []))
|
|
589
607
|
|
|
608
|
+
@jsii.member(jsii_name="removeDependency")
|
|
609
|
+
def remove_dependency(self, *deps: "IDependable") -> None:
|
|
610
|
+
'''Remove an ordering dependency on a Dependenable (a construct or set of constructs).
|
|
611
|
+
|
|
612
|
+
This removes any dependency added using ``node.addDependency()``. It must
|
|
613
|
+
use the exact same object that was involved in the ``addDependency()`` call.
|
|
614
|
+
|
|
615
|
+
:param deps: -
|
|
616
|
+
'''
|
|
617
|
+
if __debug__:
|
|
618
|
+
type_hints = cached_type_hints(_typecheckingstub__f3fac4c2d303a634641712c3d8f9bc03e22fbacc698256977b80179762f660fd)
|
|
619
|
+
check_type(argname="argument deps", value=deps, expected_type=typing.Tuple[type_hints["deps"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
620
|
+
return typing.cast(None, jsii.invoke(self, "removeDependency", [*deps]))
|
|
621
|
+
|
|
590
622
|
@jsii.member(jsii_name="setContext")
|
|
591
623
|
def set_context(self, key: builtins.str, value: typing.Any) -> None:
|
|
592
624
|
'''This can be used to set contextual values.
|
|
@@ -598,7 +630,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
598
630
|
:param value: The context value.
|
|
599
631
|
'''
|
|
600
632
|
if __debug__:
|
|
601
|
-
type_hints =
|
|
633
|
+
type_hints = cached_type_hints(_typecheckingstub__f4c20143e21f2a664bb5dbe7722603b1619d511e670df423c20328efe6ebfea2)
|
|
602
634
|
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
603
635
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
604
636
|
return typing.cast(None, jsii.invoke(self, "setContext", [key, value]))
|
|
@@ -612,7 +644,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
612
644
|
:return: the child if found, or undefined
|
|
613
645
|
'''
|
|
614
646
|
if __debug__:
|
|
615
|
-
type_hints =
|
|
647
|
+
type_hints = cached_type_hints(_typecheckingstub__0dd332a688f70d4b16d58ad213f452996e4d14aa0f1ab9a377000ebd711a387e)
|
|
616
648
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
617
649
|
return typing.cast(typing.Optional["IConstruct"], jsii.invoke(self, "tryFindChild", [id]))
|
|
618
650
|
|
|
@@ -627,7 +659,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
627
659
|
:return: The context value or ``undefined`` if there is no context value for this key.
|
|
628
660
|
'''
|
|
629
661
|
if __debug__:
|
|
630
|
-
type_hints =
|
|
662
|
+
type_hints = cached_type_hints(_typecheckingstub__736aac5a797564303e88fbc9bbd5d9ec05b62a898284a05b7d16b1761c28b181)
|
|
631
663
|
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
632
664
|
return typing.cast(typing.Any, jsii.invoke(self, "tryGetContext", [key]))
|
|
633
665
|
|
|
@@ -640,7 +672,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
640
672
|
:return: Whether a child with the given name was deleted.
|
|
641
673
|
'''
|
|
642
674
|
if __debug__:
|
|
643
|
-
type_hints =
|
|
675
|
+
type_hints = cached_type_hints(_typecheckingstub__0cebd94ba5b2c7d277443dcec352c8c4c87ccbf209e78088ca08a915eb956e36)
|
|
644
676
|
check_type(argname="argument child_name", value=child_name, expected_type=type_hints["child_name"])
|
|
645
677
|
return typing.cast(builtins.bool, jsii.invoke(self, "tryRemoveChild", [child_name]))
|
|
646
678
|
|
|
@@ -672,7 +704,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
672
704
|
:return: This construct for chaining
|
|
673
705
|
'''
|
|
674
706
|
if __debug__:
|
|
675
|
-
type_hints =
|
|
707
|
+
type_hints = cached_type_hints(_typecheckingstub__08017fffbec51308314e453ccc5dcda053ba7a1a5d6079525d13922f66480b0b)
|
|
676
708
|
check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
677
709
|
return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
|
|
678
710
|
|
|
@@ -712,7 +744,11 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
712
744
|
@builtins.property
|
|
713
745
|
@jsii.member(jsii_name="dependencies")
|
|
714
746
|
def dependencies(self) -> typing.List["IConstruct"]:
|
|
715
|
-
'''
|
|
747
|
+
'''Constructs that this construct depends on directly.
|
|
748
|
+
|
|
749
|
+
This expands the sets of ``Dependables`` to the set of ``Constructs`` that they
|
|
750
|
+
represent.
|
|
751
|
+
'''
|
|
716
752
|
return typing.cast(typing.List["IConstruct"], jsii.get(self, "dependencies"))
|
|
717
753
|
|
|
718
754
|
@builtins.property
|
|
@@ -804,7 +840,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
|
|
|
804
840
|
@default_child.setter
|
|
805
841
|
def default_child(self, value: typing.Optional["IConstruct"]) -> None:
|
|
806
842
|
if __debug__:
|
|
807
|
-
type_hints =
|
|
843
|
+
type_hints = cached_type_hints(_typecheckingstub__4bbcfb9c1c2a97493a49545b146e41d7f6c46f63ff45f96526d7abf737620ea6)
|
|
808
844
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
809
845
|
jsii.set(self, "defaultChild", value) # pyright: ignore[reportArgumentType]
|
|
810
846
|
|
|
@@ -822,7 +858,7 @@ class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyG
|
|
|
822
858
|
:param deps: -
|
|
823
859
|
'''
|
|
824
860
|
if __debug__:
|
|
825
|
-
type_hints =
|
|
861
|
+
type_hints = cached_type_hints(_typecheckingstub__352fc9ab190809e73b4fcb80cbc3398602d98955aad9386dfbc7162176aa6cbc)
|
|
826
862
|
check_type(argname="argument deps", value=deps, expected_type=typing.Tuple[type_hints["deps"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
827
863
|
jsii.create(self.__class__, self, [*deps])
|
|
828
864
|
|
|
@@ -833,7 +869,7 @@ class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyG
|
|
|
833
869
|
:param scopes: -
|
|
834
870
|
'''
|
|
835
871
|
if __debug__:
|
|
836
|
-
type_hints =
|
|
872
|
+
type_hints = cached_type_hints(_typecheckingstub__b0e6908dfe4df8e9318ecca332ccd3a1a3e28fcf76f414daa5a764cba186ef02)
|
|
837
873
|
check_type(argname="argument scopes", value=scopes, expected_type=typing.Tuple[type_hints["scopes"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
838
874
|
return typing.cast(None, jsii.invoke(self, "add", [*scopes]))
|
|
839
875
|
|
|
@@ -887,7 +923,7 @@ class _IConstructProxy(
|
|
|
887
923
|
:return: This construct for chaining
|
|
888
924
|
'''
|
|
889
925
|
if __debug__:
|
|
890
|
-
type_hints =
|
|
926
|
+
type_hints = cached_type_hints(_typecheckingstub__46ffe71712de730652fef13db2a6a7bf3168d82f7537656ad03e0ad2b5db5b61)
|
|
891
927
|
check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
892
928
|
return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
|
|
893
929
|
|
|
@@ -910,7 +946,7 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
|
|
|
910
946
|
:param id: The scoped construct ID. Must be unique amongst siblings. If the ID includes a path separator (``/``), then it will be replaced by double dash ``--``.
|
|
911
947
|
'''
|
|
912
948
|
if __debug__:
|
|
913
|
-
type_hints =
|
|
949
|
+
type_hints = cached_type_hints(_typecheckingstub__020ca90e326a91c7b0f70a5c5df3471c78175b709d5adcbee2cb463d0367e387)
|
|
914
950
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
915
951
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
916
952
|
jsii.create(self.__class__, self, [scope, id])
|
|
@@ -939,7 +975,7 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
|
|
|
939
975
|
:return: true if ``x`` is an object created from a class which extends ``Construct``.
|
|
940
976
|
'''
|
|
941
977
|
if __debug__:
|
|
942
|
-
type_hints =
|
|
978
|
+
type_hints = cached_type_hints(_typecheckingstub__fd6a4114560af835bb1c07485e906499cadbf16cf78d7e344bc100586fce523f)
|
|
943
979
|
check_type(argname="argument x", value=x, expected_type=type_hints["x"])
|
|
944
980
|
return typing.cast(builtins.bool, jsii.sinvoke(cls, "isConstruct", [x]))
|
|
945
981
|
|
|
@@ -962,7 +998,7 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
|
|
|
962
998
|
:return: This construct for chaining
|
|
963
999
|
'''
|
|
964
1000
|
if __debug__:
|
|
965
|
-
type_hints =
|
|
1001
|
+
type_hints = cached_type_hints(_typecheckingstub__dcdf5ec1470924572ba805d2d121897d3ef8160905bcb57bc551eb0b9e2e35a7)
|
|
966
1002
|
check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
967
1003
|
return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
|
|
968
1004
|
|
|
@@ -990,7 +1026,7 @@ class RootConstruct(
|
|
|
990
1026
|
:param id: The scoped construct ID. Must be unique amongst siblings. If the ID includes a path separator (``/``), then it will be replaced by double dash ``--``.
|
|
991
1027
|
'''
|
|
992
1028
|
if __debug__:
|
|
993
|
-
type_hints =
|
|
1029
|
+
type_hints = cached_type_hints(_typecheckingstub__43869d89939a2770444321abd60b2fdb0daaa395e2fa7d025fe7acd93e2d4dc3)
|
|
994
1030
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
995
1031
|
jsii.create(self.__class__, self, [id])
|
|
996
1032
|
|
|
@@ -1055,6 +1091,7 @@ def _typecheckingstub__ac0c2f394c95b32376bd2487bfa65b455507f8363a71e56bbcfef3a69
|
|
|
1055
1091
|
def _typecheckingstub__75d38f18f5b98ff8e52a193cc40da1d25ab1a4740362b86cea0782ada618178b(
|
|
1056
1092
|
*,
|
|
1057
1093
|
stack_trace: typing.Optional[builtins.bool] = None,
|
|
1094
|
+
stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1058
1095
|
trace_from_function: typing.Any = None,
|
|
1059
1096
|
) -> None:
|
|
1060
1097
|
"""Type checking stubs"""
|
|
@@ -1085,6 +1122,7 @@ def _typecheckingstub__023b8c3b11b2c1279fbfa8d54f858cec54fb8d9621c584addfbcccc63
|
|
|
1085
1122
|
data: typing.Any,
|
|
1086
1123
|
*,
|
|
1087
1124
|
stack_trace: typing.Optional[builtins.bool] = None,
|
|
1125
|
+
stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1088
1126
|
trace_from_function: typing.Any = None,
|
|
1089
1127
|
) -> None:
|
|
1090
1128
|
"""Type checking stubs"""
|
|
@@ -1120,6 +1158,12 @@ def _typecheckingstub__1fdfdfb2b2e83a2845cb899305c37d4e37ae13634e2150fa9895e715f
|
|
|
1120
1158
|
"""Type checking stubs"""
|
|
1121
1159
|
pass
|
|
1122
1160
|
|
|
1161
|
+
def _typecheckingstub__f3fac4c2d303a634641712c3d8f9bc03e22fbacc698256977b80179762f660fd(
|
|
1162
|
+
*deps: IDependable,
|
|
1163
|
+
) -> None:
|
|
1164
|
+
"""Type checking stubs"""
|
|
1165
|
+
pass
|
|
1166
|
+
|
|
1123
1167
|
def _typecheckingstub__f4c20143e21f2a664bb5dbe7722603b1619d511e670df423c20328efe6ebfea2(
|
|
1124
1168
|
key: builtins.str,
|
|
1125
1169
|
value: typing.Any,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
|
3
|
+
|
|
4
|
+
import abc
|
|
5
|
+
import builtins
|
|
6
|
+
import datetime
|
|
7
|
+
import enum
|
|
8
|
+
import typing
|
|
9
|
+
|
|
10
|
+
import jsii
|
|
11
|
+
import publication
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
from jsii._type_checking import cached_type_hints, check_type
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
18
|
+
"constructs", "10.7.0", __name__[0:-6], "constructs@10.7.0.jsii.tgz"
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"__jsii_assembly__",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
publication.publish()
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: constructs
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.7.0
|
|
4
4
|
Summary: A programming model for software-defined state
|
|
5
5
|
Home-page: https://github.com/aws/constructs
|
|
6
6
|
Author: Amazon Web Services<aws-cdk-dev@amazon.com>
|
|
@@ -10,19 +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.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
18
|
Classifier: Typing :: Typed
|
|
17
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
18
20
|
Classifier: License :: OSI Approved
|
|
19
|
-
Requires-Python:
|
|
21
|
+
Requires-Python: >=3.10
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
License-File: LICENSE
|
|
22
24
|
License-File: NOTICE
|
|
23
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.138.0
|
|
24
26
|
Requires-Dist: publication>=0.0.3
|
|
25
|
-
Requires-Dist: typeguard==2.13.3
|
|
26
27
|
|
|
27
28
|
# Constructs
|
|
28
29
|
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
from pkgutil import extend_path
|
|
2
|
-
__path__ = extend_path(__path__, __name__)
|
|
3
|
-
|
|
4
|
-
import abc
|
|
5
|
-
import builtins
|
|
6
|
-
import datetime
|
|
7
|
-
import enum
|
|
8
|
-
import typing
|
|
9
|
-
|
|
10
|
-
import jsii
|
|
11
|
-
import publication
|
|
12
|
-
import typing_extensions
|
|
13
|
-
|
|
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
|
|
30
|
-
|
|
31
|
-
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
32
|
-
"constructs", "10.5.1", __name__[0:-6], "constructs@10.5.1.jsii.tgz"
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
__all__ = [
|
|
36
|
-
"__jsii_assembly__",
|
|
37
|
-
]
|
|
38
|
-
|
|
39
|
-
publication.publish()
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|