constructs 10.4.5__tar.gz → 10.5.1__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.4.5
3
+ Version: 10.5.1
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.125.0
23
+ Requires-Dist: jsii<2.0.0,>=1.126.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.4.5",
8
+ "version": "10.5.1",
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.4.5.jsii.tgz"
29
+ "constructs@10.5.1.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.125.0, <2.0.0",
37
+ "jsii>=1.126.0, <2.0.0",
38
38
  "publication>=0.0.3",
39
39
  "typeguard==2.13.3"
40
40
  ],
@@ -202,6 +202,58 @@ class _IDependableProxy:
202
202
  typing.cast(typing.Any, IDependable).__jsii_proxy_class__ = lambda : _IDependableProxy
203
203
 
204
204
 
205
+ @jsii.interface(jsii_type="constructs.IMixin")
206
+ class IMixin(typing_extensions.Protocol):
207
+ '''A mixin is a reusable piece of functionality that can be applied to constructs to add behavior, properties, or modify existing functionality without inheritance.'''
208
+
209
+ @jsii.member(jsii_name="applyTo")
210
+ def apply_to(self, construct: "IConstruct") -> None:
211
+ '''Applies the mixin functionality to the target construct.
212
+
213
+ :param construct: -
214
+ '''
215
+ ...
216
+
217
+ @jsii.member(jsii_name="supports")
218
+ def supports(self, construct: "IConstruct") -> builtins.bool:
219
+ '''Determines whether this mixin can be applied to the given construct.
220
+
221
+ :param construct: -
222
+ '''
223
+ ...
224
+
225
+
226
+ class _IMixinProxy:
227
+ '''A mixin is a reusable piece of functionality that can be applied to constructs to add behavior, properties, or modify existing functionality without inheritance.'''
228
+
229
+ __jsii_type__: typing.ClassVar[str] = "constructs.IMixin"
230
+
231
+ @jsii.member(jsii_name="applyTo")
232
+ def apply_to(self, construct: "IConstruct") -> None:
233
+ '''Applies the mixin functionality to the target construct.
234
+
235
+ :param construct: -
236
+ '''
237
+ if __debug__:
238
+ type_hints = typing.get_type_hints(_typecheckingstub__ef3057d7b2239a822adb30db5073786298478cd3fa000528394c84d1aeecee1f)
239
+ check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
240
+ return typing.cast(None, jsii.invoke(self, "applyTo", [construct]))
241
+
242
+ @jsii.member(jsii_name="supports")
243
+ def supports(self, construct: "IConstruct") -> builtins.bool:
244
+ '''Determines whether this mixin can be applied to the given construct.
245
+
246
+ :param construct: -
247
+ '''
248
+ if __debug__:
249
+ type_hints = typing.get_type_hints(_typecheckingstub__55ea6788f825fe03077ad971427d715ae61f5ac50df36f708925449c85f4b3b6)
250
+ check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
251
+ return typing.cast(builtins.bool, jsii.invoke(self, "supports", [construct]))
252
+
253
+ # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
254
+ typing.cast(typing.Any, IMixin).__jsii_proxy_class__ = lambda : _IMixinProxy
255
+
256
+
205
257
  @jsii.interface(jsii_type="constructs.IValidation")
206
258
  class IValidation(typing_extensions.Protocol):
207
259
  '''Implement this interface in order for the construct to be able to validate itself.'''
@@ -606,6 +658,24 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
606
658
  '''
607
659
  return typing.cast(typing.List[builtins.str], jsii.invoke(self, "validate", []))
608
660
 
661
+ @jsii.member(jsii_name="with")
662
+ def with_(self, *mixins: "IMixin") -> "IConstruct":
663
+ '''Applies one or more mixins to this construct.
664
+
665
+ Mixins are applied in order. The list of constructs is captured at the
666
+ start of the call, so constructs added by a mixin will not be visited.
667
+ Use multiple ``with()`` calls if subsequent mixins should apply to added
668
+ constructs.
669
+
670
+ :param mixins: The mixins to apply.
671
+
672
+ :return: This construct for chaining
673
+ '''
674
+ if __debug__:
675
+ type_hints = typing.get_type_hints(_typecheckingstub__08017fffbec51308314e453ccc5dcda053ba7a1a5d6079525d13922f66480b0b)
676
+ check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
677
+ return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
678
+
609
679
  @jsii.python.classproperty
610
680
  @jsii.member(jsii_name="PATH_SEP")
611
681
  def PATH_SEP(cls) -> builtins.str:
@@ -778,6 +848,19 @@ class IConstruct(IDependable, typing_extensions.Protocol):
778
848
  '''The tree node.'''
779
849
  ...
780
850
 
851
+ @jsii.member(jsii_name="with")
852
+ def with_(self, *mixins: "IMixin") -> "IConstruct":
853
+ '''Applies one or more mixins to this construct.
854
+
855
+ Mixins are applied in order. The list of constructs is captured at the
856
+ start of the call, so constructs added by a mixin will not be visited.
857
+
858
+ :param mixins: The mixins to apply.
859
+
860
+ :return: This construct for chaining
861
+ '''
862
+ ...
863
+
781
864
 
782
865
  class _IConstructProxy(
783
866
  jsii.proxy_for(IDependable), # type: ignore[misc]
@@ -792,6 +875,22 @@ class _IConstructProxy(
792
875
  '''The tree node.'''
793
876
  return typing.cast("Node", jsii.get(self, "node"))
794
877
 
878
+ @jsii.member(jsii_name="with")
879
+ def with_(self, *mixins: "IMixin") -> "IConstruct":
880
+ '''Applies one or more mixins to this construct.
881
+
882
+ Mixins are applied in order. The list of constructs is captured at the
883
+ start of the call, so constructs added by a mixin will not be visited.
884
+
885
+ :param mixins: The mixins to apply.
886
+
887
+ :return: This construct for chaining
888
+ '''
889
+ if __debug__:
890
+ type_hints = typing.get_type_hints(_typecheckingstub__46ffe71712de730652fef13db2a6a7bf3168d82f7537656ad03e0ad2b5db5b61)
891
+ check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
892
+ return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
893
+
795
894
  # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
796
895
  typing.cast(typing.Any, IConstruct).__jsii_proxy_class__ = lambda : _IConstructProxy
797
896
 
@@ -849,6 +948,24 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
849
948
  '''Returns a string representation of this construct.'''
850
949
  return typing.cast(builtins.str, jsii.invoke(self, "toString", []))
851
950
 
951
+ @jsii.member(jsii_name="with")
952
+ def with_(self, *mixins: "IMixin") -> "IConstruct":
953
+ '''Applies one or more mixins to this construct.
954
+
955
+ Mixins are applied in order. The list of constructs is captured at the
956
+ start of the call, so constructs added by a mixin will not be visited.
957
+ Use multiple ``with()`` calls if subsequent mixins should apply to added
958
+ constructs.
959
+
960
+ :param mixins: The mixins to apply.
961
+
962
+ :return: This construct for chaining
963
+ '''
964
+ if __debug__:
965
+ type_hints = typing.get_type_hints(_typecheckingstub__dcdf5ec1470924572ba805d2d121897d3ef8160905bcb57bc551eb0b9e2e35a7)
966
+ check_type(argname="argument mixins", value=mixins, expected_type=typing.Tuple[type_hints["mixins"], ...]) # pyright: ignore [reportGeneralTypeIssues]
967
+ return typing.cast("IConstruct", jsii.invoke(self, "with", [*mixins]))
968
+
852
969
  @builtins.property
853
970
  @jsii.member(jsii_name="node")
854
971
  def node(self) -> "Node":
@@ -885,6 +1002,7 @@ __all__ = [
885
1002
  "DependencyGroup",
886
1003
  "IConstruct",
887
1004
  "IDependable",
1005
+ "IMixin",
888
1006
  "IValidation",
889
1007
  "MetadataEntry",
890
1008
  "MetadataOptions",
@@ -913,6 +1031,18 @@ def _typecheckingstub__54a9441299838c86c77ad919b31ab158da6bd872c3bf8bf55f147c17a
913
1031
  """Type checking stubs"""
914
1032
  pass
915
1033
 
1034
+ def _typecheckingstub__ef3057d7b2239a822adb30db5073786298478cd3fa000528394c84d1aeecee1f(
1035
+ construct: IConstruct,
1036
+ ) -> None:
1037
+ """Type checking stubs"""
1038
+ pass
1039
+
1040
+ def _typecheckingstub__55ea6788f825fe03077ad971427d715ae61f5ac50df36f708925449c85f4b3b6(
1041
+ construct: IConstruct,
1042
+ ) -> None:
1043
+ """Type checking stubs"""
1044
+ pass
1045
+
916
1046
  def _typecheckingstub__ac0c2f394c95b32376bd2487bfa65b455507f8363a71e56bbcfef3a690552658(
917
1047
  *,
918
1048
  data: typing.Any,
@@ -1015,6 +1145,12 @@ def _typecheckingstub__0cebd94ba5b2c7d277443dcec352c8c4c87ccbf209e78088ca08a915e
1015
1145
  """Type checking stubs"""
1016
1146
  pass
1017
1147
 
1148
+ def _typecheckingstub__08017fffbec51308314e453ccc5dcda053ba7a1a5d6079525d13922f66480b0b(
1149
+ *mixins: IMixin,
1150
+ ) -> None:
1151
+ """Type checking stubs"""
1152
+ pass
1153
+
1018
1154
  def _typecheckingstub__4bbcfb9c1c2a97493a49545b146e41d7f6c46f63ff45f96526d7abf737620ea6(
1019
1155
  value: typing.Optional[IConstruct],
1020
1156
  ) -> None:
@@ -1033,6 +1169,12 @@ def _typecheckingstub__b0e6908dfe4df8e9318ecca332ccd3a1a3e28fcf76f414daa5a764cba
1033
1169
  """Type checking stubs"""
1034
1170
  pass
1035
1171
 
1172
+ def _typecheckingstub__46ffe71712de730652fef13db2a6a7bf3168d82f7537656ad03e0ad2b5db5b61(
1173
+ *mixins: IMixin,
1174
+ ) -> None:
1175
+ """Type checking stubs"""
1176
+ pass
1177
+
1036
1178
  def _typecheckingstub__020ca90e326a91c7b0f70a5c5df3471c78175b709d5adcbee2cb463d0367e387(
1037
1179
  scope: Construct,
1038
1180
  id: builtins.str,
@@ -1046,11 +1188,17 @@ def _typecheckingstub__fd6a4114560af835bb1c07485e906499cadbf16cf78d7e344bc100586
1046
1188
  """Type checking stubs"""
1047
1189
  pass
1048
1190
 
1191
+ def _typecheckingstub__dcdf5ec1470924572ba805d2d121897d3ef8160905bcb57bc551eb0b9e2e35a7(
1192
+ *mixins: IMixin,
1193
+ ) -> None:
1194
+ """Type checking stubs"""
1195
+ pass
1196
+
1049
1197
  def _typecheckingstub__43869d89939a2770444321abd60b2fdb0daaa395e2fa7d025fe7acd93e2d4dc3(
1050
1198
  id: typing.Optional[builtins.str] = None,
1051
1199
  ) -> None:
1052
1200
  """Type checking stubs"""
1053
1201
  pass
1054
1202
 
1055
- for cls in [IConstruct, IDependable, IValidation]:
1203
+ for cls in [IConstruct, IDependable, IMixin, IValidation]:
1056
1204
  typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
@@ -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.4.5", __name__[0:-6], "constructs@10.4.5.jsii.tgz"
32
+ "constructs", "10.5.1", __name__[0:-6], "constructs@10.5.1.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.4.5
3
+ Version: 10.5.1
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.125.0
23
+ Requires-Dist: jsii<2.0.0,>=1.126.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.4.5.jsii.tgz
15
+ src/constructs/_jsii/constructs@10.5.1.jsii.tgz
@@ -1,3 +1,3 @@
1
- jsii<2.0.0,>=1.125.0
1
+ jsii<2.0.0,>=1.126.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