constructs 10.5.0__tar.gz → 10.6.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: constructs
3
- Version: 10.5.0
3
+ Version: 10.6.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>
@@ -20,7 +20,7 @@ Requires-Python: ~=3.9
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
- Requires-Dist: jsii<2.0.0,>=1.126.0
23
+ Requires-Dist: jsii<2.0.0,>=1.127.0
24
24
  Requires-Dist: publication>=0.0.3
25
25
  Requires-Dist: typeguard==2.13.3
26
26
 
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "constructs",
8
- "version": "10.5.0",
8
+ "version": "10.6.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,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "constructs._jsii": [
29
- "constructs@10.5.0.jsii.tgz"
29
+ "constructs@10.6.0.jsii.tgz"
30
30
  ],
31
31
  "constructs": [
32
32
  "py.typed"
@@ -34,7 +34,7 @@ kwargs = json.loads(
34
34
  },
35
35
  "python_requires": "~=3.9",
36
36
  "install_requires": [
37
- "jsii>=1.126.0, <2.0.0",
37
+ "jsii>=1.127.0, <2.0.0",
38
38
  "publication>=0.0.3",
39
39
  "typeguard==2.13.3"
40
40
  ],
@@ -363,6 +363,7 @@ class MetadataEntry:
363
363
  jsii_struct_bases=[],
364
364
  name_mapping={
365
365
  "stack_trace": "stackTrace",
366
+ "stack_trace_override": "stackTraceOverride",
366
367
  "trace_from_function": "traceFromFunction",
367
368
  },
368
369
  )
@@ -371,20 +372,25 @@ class MetadataOptions:
371
372
  self,
372
373
  *,
373
374
  stack_trace: typing.Optional[builtins.bool] = None,
375
+ stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
374
376
  trace_from_function: typing.Any = None,
375
377
  ) -> None:
376
378
  '''Options for ``construct.addMetadata()``.
377
379
 
378
380
  :param stack_trace: Include stack trace with metadata entry. Default: false
381
+ :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
382
  :param trace_from_function: A JavaScript function to begin tracing from. This option is ignored unless ``stackTrace`` is ``true``. Default: addMetadata()
380
383
  '''
381
384
  if __debug__:
382
385
  type_hints = typing.get_type_hints(_typecheckingstub__75d38f18f5b98ff8e52a193cc40da1d25ab1a4740362b86cea0782ada618178b)
383
386
  check_type(argname="argument stack_trace", value=stack_trace, expected_type=type_hints["stack_trace"])
387
+ check_type(argname="argument stack_trace_override", value=stack_trace_override, expected_type=type_hints["stack_trace_override"])
384
388
  check_type(argname="argument trace_from_function", value=trace_from_function, expected_type=type_hints["trace_from_function"])
385
389
  self._values: typing.Dict[builtins.str, typing.Any] = {}
386
390
  if stack_trace is not None:
387
391
  self._values["stack_trace"] = stack_trace
392
+ if stack_trace_override is not None:
393
+ self._values["stack_trace_override"] = stack_trace_override
388
394
  if trace_from_function is not None:
389
395
  self._values["trace_from_function"] = trace_from_function
390
396
 
@@ -397,6 +403,16 @@ class MetadataOptions:
397
403
  result = self._values.get("stack_trace")
398
404
  return typing.cast(typing.Optional[builtins.bool], result)
399
405
 
406
+ @builtins.property
407
+ def stack_trace_override(self) -> typing.Optional[typing.List[builtins.str]]:
408
+ '''The actual stack trace to be added to the metadata.
409
+
410
+ If this
411
+ parameter is passed, the stackTrace parameter is ignored.
412
+ '''
413
+ result = self._values.get("stack_trace_override")
414
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
415
+
400
416
  @builtins.property
401
417
  def trace_from_function(self) -> typing.Any:
402
418
  '''A JavaScript function to begin tracing from.
@@ -477,6 +493,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
477
493
  data: typing.Any,
478
494
  *,
479
495
  stack_trace: typing.Optional[builtins.bool] = None,
496
+ stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
480
497
  trace_from_function: typing.Any = None,
481
498
  ) -> None:
482
499
  '''Adds a metadata entry to this construct.
@@ -490,6 +507,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
490
507
  :param type: a string denoting the type of metadata.
491
508
  :param data: the value of the metadata (can be a Token). If null/undefined, metadata will not be added.
492
509
  :param stack_trace: Include stack trace with metadata entry. Default: false
510
+ :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
511
  :param trace_from_function: A JavaScript function to begin tracing from. This option is ignored unless ``stackTrace`` is ``true``. Default: addMetadata()
494
512
  '''
495
513
  if __debug__:
@@ -497,7 +515,9 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
497
515
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
498
516
  check_type(argname="argument data", value=data, expected_type=type_hints["data"])
499
517
  options = MetadataOptions(
500
- stack_trace=stack_trace, trace_from_function=trace_from_function
518
+ stack_trace=stack_trace,
519
+ stack_trace_override=stack_trace_override,
520
+ trace_from_function=trace_from_function,
501
521
  )
502
522
 
503
523
  return typing.cast(None, jsii.invoke(self, "addMetadata", [type, data, options]))
@@ -658,6 +678,24 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
658
678
  '''
659
679
  return typing.cast(typing.List[builtins.str], jsii.invoke(self, "validate", []))
660
680
 
681
+ @jsii.member(jsii_name="with")
682
+ def with_(self, *mixins: "IMixin") -> "IConstruct":
683
+ '''Applies one or more mixins to this construct.
684
+
685
+ Mixins are applied in order. The list of constructs is captured at the
686
+ start of the call, so constructs added by a mixin will not be visited.
687
+ Use multiple ``with()`` calls if subsequent mixins should apply to added
688
+ constructs.
689
+
690
+ :param mixins: The mixins to apply.
691
+
692
+ :return: This construct for chaining
693
+ '''
694
+ if __debug__:
695
+ type_hints = typing.get_type_hints(_typecheckingstub__08017fffbec51308314e453ccc5dcda053ba7a1a5d6079525d13922f66480b0b)
696
+ check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
697
+ return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
698
+
661
699
  @jsii.python.classproperty
662
700
  @jsii.member(jsii_name="PATH_SEP")
663
701
  def PATH_SEP(cls) -> builtins.str:
@@ -1037,6 +1075,7 @@ def _typecheckingstub__ac0c2f394c95b32376bd2487bfa65b455507f8363a71e56bbcfef3a69
1037
1075
  def _typecheckingstub__75d38f18f5b98ff8e52a193cc40da1d25ab1a4740362b86cea0782ada618178b(
1038
1076
  *,
1039
1077
  stack_trace: typing.Optional[builtins.bool] = None,
1078
+ stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
1040
1079
  trace_from_function: typing.Any = None,
1041
1080
  ) -> None:
1042
1081
  """Type checking stubs"""
@@ -1067,6 +1106,7 @@ def _typecheckingstub__023b8c3b11b2c1279fbfa8d54f858cec54fb8d9621c584addfbcccc63
1067
1106
  data: typing.Any,
1068
1107
  *,
1069
1108
  stack_trace: typing.Optional[builtins.bool] = None,
1109
+ stack_trace_override: typing.Optional[typing.Sequence[builtins.str]] = None,
1070
1110
  trace_from_function: typing.Any = None,
1071
1111
  ) -> None:
1072
1112
  """Type checking stubs"""
@@ -1127,6 +1167,12 @@ def _typecheckingstub__0cebd94ba5b2c7d277443dcec352c8c4c87ccbf209e78088ca08a915e
1127
1167
  """Type checking stubs"""
1128
1168
  pass
1129
1169
 
1170
+ def _typecheckingstub__08017fffbec51308314e453ccc5dcda053ba7a1a5d6079525d13922f66480b0b(
1171
+ *mixins: IMixin,
1172
+ ) -> None:
1173
+ """Type checking stubs"""
1174
+ pass
1175
+
1130
1176
  def _typecheckingstub__4bbcfb9c1c2a97493a49545b146e41d7f6c46f63ff45f96526d7abf737620ea6(
1131
1177
  value: typing.Optional[IConstruct],
1132
1178
  ) -> None:
@@ -29,7 +29,7 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
29
29
  typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
30
30
 
31
31
  __jsii_assembly__ = jsii.JSIIAssembly.load(
32
- "constructs", "10.5.0", __name__[0:-6], "constructs@10.5.0.jsii.tgz"
32
+ "constructs", "10.6.0", __name__[0:-6], "constructs@10.6.0.jsii.tgz"
33
33
  )
34
34
 
35
35
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: constructs
3
- Version: 10.5.0
3
+ Version: 10.6.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>
@@ -20,7 +20,7 @@ Requires-Python: ~=3.9
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
- Requires-Dist: jsii<2.0.0,>=1.126.0
23
+ Requires-Dist: jsii<2.0.0,>=1.127.0
24
24
  Requires-Dist: publication>=0.0.3
25
25
  Requires-Dist: typeguard==2.13.3
26
26
 
@@ -12,4 +12,4 @@ src/constructs.egg-info/dependency_links.txt
12
12
  src/constructs.egg-info/requires.txt
13
13
  src/constructs.egg-info/top_level.txt
14
14
  src/constructs/_jsii/__init__.py
15
- src/constructs/_jsii/constructs@10.5.0.jsii.tgz
15
+ src/constructs/_jsii/constructs@10.6.0.jsii.tgz
@@ -1,3 +1,3 @@
1
- jsii<2.0.0,>=1.126.0
1
+ jsii<2.0.0,>=1.127.0
2
2
  publication>=0.0.3
3
3
  typeguard==2.13.3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes