constructs 10.3.1__tar.gz → 10.4.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.3.1
3
+ Version: 10.4.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>
@@ -21,9 +21,9 @@ Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: NOTICE
24
- Requires-Dist: jsii<2.0.0,>=1.103.1
24
+ Requires-Dist: jsii<2.0.0,>=1.102.0
25
25
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard<5.0.0,>=2.13.3
26
+ Requires-Dist: typeguard~=2.13.3
27
27
 
28
28
  # Constructs
29
29
 
@@ -41,6 +41,10 @@ Constructs are classes which define a "piece of system state". Constructs can be
41
41
 
42
42
  Constructs are often used to represent the *desired state* of cloud applications. For example, in the AWS CDK, which is used to define the desired state for AWS infrastructure using CloudFormation, the lowest-level construct represents a *resource definition* in a CloudFormation template. These resources are composed to represent higher-level logical units of a cloud application, etc.
43
43
 
44
+ ## Support policy
45
+
46
+ All [maintained Node.js versions](https://nodejs.org/en/about/previous-releases#release-schedule) are supported by this package.
47
+
44
48
  ## Contributing
45
49
 
46
50
  This project has adopted the [Amazon Open Source Code of
@@ -14,6 +14,10 @@ Constructs are classes which define a "piece of system state". Constructs can be
14
14
 
15
15
  Constructs are often used to represent the *desired state* of cloud applications. For example, in the AWS CDK, which is used to define the desired state for AWS infrastructure using CloudFormation, the lowest-level construct represents a *resource definition* in a CloudFormation template. These resources are composed to represent higher-level logical units of a cloud application, etc.
16
16
 
17
+ ## Support policy
18
+
19
+ All [maintained Node.js versions](https://nodejs.org/en/about/previous-releases#release-schedule) are supported by this package.
20
+
17
21
  ## Contributing
18
22
 
19
23
  This project has adopted the [Amazon Open Source Code of
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "constructs",
8
- "version": "10.3.1",
8
+ "version": "10.4.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.3.1.jsii.tgz"
29
+ "constructs@10.4.0.jsii.tgz"
30
30
  ],
31
31
  "constructs": [
32
32
  "py.typed"
@@ -34,9 +34,9 @@ kwargs = json.loads(
34
34
  },
35
35
  "python_requires": "~=3.8",
36
36
  "install_requires": [
37
- "jsii>=1.103.1, <2.0.0",
37
+ "jsii>=1.102.0, <2.0.0",
38
38
  "publication>=0.0.3",
39
- "typeguard>=2.13.3,<5.0.0"
39
+ "typeguard~=2.13.3"
40
40
  ],
41
41
  "classifiers": [
42
42
  "Intended Audience :: Developers",
@@ -15,6 +15,10 @@ Constructs are classes which define a "piece of system state". Constructs can be
15
15
 
16
16
  Constructs are often used to represent the *desired state* of cloud applications. For example, in the AWS CDK, which is used to define the desired state for AWS infrastructure using CloudFormation, the lowest-level construct represents a *resource definition* in a CloudFormation template. These resources are composed to represent higher-level logical units of a cloud application, etc.
17
17
 
18
+ ## Support policy
19
+
20
+ All [maintained Node.js versions](https://nodejs.org/en/about/previous-releases#release-schedule) are supported by this package.
21
+
18
22
  ## Contributing
19
23
 
20
24
  This project has adopted the [Amazon Open Source Code of
@@ -41,22 +45,7 @@ import jsii
41
45
  import publication
42
46
  import typing_extensions
43
47
 
44
- import typeguard
45
- from importlib.metadata import version as _metadata_package_version
46
- TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
47
-
48
- def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
49
- if TYPEGUARD_MAJOR_VERSION <= 2:
50
- return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
51
- else:
52
- if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
53
- pass
54
- else:
55
- if TYPEGUARD_MAJOR_VERSION == 3:
56
- typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
57
- typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
58
- else:
59
- typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
48
+ from typeguard import check_type
60
49
 
61
50
  from ._jsii import *
62
51
 
@@ -72,7 +61,7 @@ class ConstructOrder(enum.Enum):
72
61
 
73
62
 
74
63
  class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependable"):
75
- '''(experimental) Trait for IDependable.
64
+ '''Trait for IDependable.
76
65
 
77
66
  Traits are interfaces that are privately implemented by objects. Instead of
78
67
  showing up in the public interface of a class, they need to be queried
@@ -80,8 +69,6 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
80
69
  not intended to be used by Construct consumers, and so should be hidden
81
70
  from accidental use.
82
71
 
83
- :stability: experimental
84
-
85
72
  Example::
86
73
 
87
74
  // Usage
@@ -115,12 +102,10 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
115
102
  @jsii.member(jsii_name="implement")
116
103
  @builtins.classmethod
117
104
  def implement(cls, instance: "IDependable", trait: "Dependable") -> None:
118
- '''(experimental) Turn any object into an IDependable.
105
+ '''Turn any object into an IDependable.
119
106
 
120
107
  :param instance: -
121
108
  :param trait: -
122
-
123
- :stability: experimental
124
109
  '''
125
110
  if __debug__:
126
111
  type_hints = typing.get_type_hints(_typecheckingstub__fccfa163f8f38b89195d804e18f7122f2b59a7ba7b57ea51cf581e4ae5719bf9)
@@ -131,11 +116,9 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
131
116
  @jsii.member(jsii_name="of")
132
117
  @builtins.classmethod
133
118
  def of(cls, instance: "IDependable") -> "Dependable":
134
- '''(experimental) Return the matching Dependable for the given class instance.
119
+ '''Return the matching Dependable for the given class instance.
135
120
 
136
121
  :param instance: -
137
-
138
- :stability: experimental
139
122
  '''
140
123
  if __debug__:
141
124
  type_hints = typing.get_type_hints(_typecheckingstub__54a9441299838c86c77ad919b31ab158da6bd872c3bf8bf55f147c17abeea083)
@@ -146,12 +129,10 @@ class Dependable(metaclass=jsii.JSIIAbstractClass, jsii_type="constructs.Dependa
146
129
  @jsii.member(jsii_name="dependencyRoots")
147
130
  @abc.abstractmethod
148
131
  def dependency_roots(self) -> typing.List["IConstruct"]:
149
- '''(experimental) The set of constructs that form the root of this dependable.
132
+ '''The set of constructs that form the root of this dependable.
150
133
 
151
134
  All resources under all returned constructs are included in the ordering
152
135
  dependency.
153
-
154
- :stability: experimental
155
136
  '''
156
137
  ...
157
138
 
@@ -160,12 +141,10 @@ class _DependableProxy(Dependable):
160
141
  @builtins.property
161
142
  @jsii.member(jsii_name="dependencyRoots")
162
143
  def dependency_roots(self) -> typing.List["IConstruct"]:
163
- '''(experimental) The set of constructs that form the root of this dependable.
144
+ '''The set of constructs that form the root of this dependable.
164
145
 
165
146
  All resources under all returned constructs are included in the ordering
166
147
  dependency.
167
-
168
- :stability: experimental
169
148
  '''
170
149
  return typing.cast(typing.List["IConstruct"], jsii.get(self, "dependencyRoots"))
171
150
 
@@ -587,13 +566,11 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
587
566
 
588
567
  @jsii.member(jsii_name="tryRemoveChild")
589
568
  def try_remove_child(self, child_name: builtins.str) -> builtins.bool:
590
- '''(experimental) Remove the child with the given name, if present.
569
+ '''Remove the child with the given name, if present.
591
570
 
592
571
  :param child_name: -
593
572
 
594
573
  :return: Whether a child with the given name was deleted.
595
-
596
- :stability: experimental
597
574
  '''
598
575
  if __debug__:
599
576
  type_hints = typing.get_type_hints(_typecheckingstub__0cebd94ba5b2c7d277443dcec352c8c4c87ccbf209e78088ca08a915eb956e36)
@@ -631,9 +608,9 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
631
608
  Addresses are calculated using a SHA-1 of the components of the construct
632
609
  path.
633
610
 
634
- To enable refactorings of construct trees, constructs with the ID ``Default``
611
+ To enable refactoring of construct trees, constructs with the ID ``Default``
635
612
  will be excluded from the calculation. In those cases constructs in the
636
- same tree may have the same addreess.
613
+ same tree may have the same address.
637
614
 
638
615
  Example::
639
616
 
@@ -749,19 +726,15 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
749
726
 
750
727
  @jsii.implements(IDependable)
751
728
  class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyGroup"):
752
- '''(experimental) A set of constructs to be used as a dependable.
729
+ '''A set of constructs to be used as a dependable.
753
730
 
754
731
  This class can be used when a set of constructs which are disjoint in the
755
732
  construct tree needs to be combined to be used as a single dependable.
756
-
757
- :stability: experimental
758
733
  '''
759
734
 
760
735
  def __init__(self, *deps: IDependable) -> None:
761
736
  '''
762
737
  :param deps: -
763
-
764
- :stability: experimental
765
738
  '''
766
739
  if __debug__:
767
740
  type_hints = typing.get_type_hints(_typecheckingstub__352fc9ab190809e73b4fcb80cbc3398602d98955aad9386dfbc7162176aa6cbc)
@@ -770,11 +743,9 @@ class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyG
770
743
 
771
744
  @jsii.member(jsii_name="add")
772
745
  def add(self, *scopes: IDependable) -> None:
773
- '''(experimental) Add a construct to the dependency roots.
746
+ '''Add a construct to the dependency roots.
774
747
 
775
748
  :param scopes: -
776
-
777
- :stability: experimental
778
749
  '''
779
750
  if __debug__:
780
751
  type_hints = typing.get_type_hints(_typecheckingstub__b0e6908dfe4df8e9318ecca332ccd3a1a3e28fcf76f414daa5a764cba186ef02)
@@ -830,6 +801,18 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
830
801
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
831
802
  jsii.create(self.__class__, self, [scope, id])
832
803
 
804
+ @jsii.member(jsii_name="createRoot")
805
+ @builtins.classmethod
806
+ def create_root(cls, id: typing.Optional[builtins.str] = None) -> "Construct":
807
+ '''Creates a new root construct node.
808
+
809
+ :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 ``--``.
810
+ '''
811
+ if __debug__:
812
+ type_hints = typing.get_type_hints(_typecheckingstub__6977719c6b0c33e0c0a5ab31ece9bd2640b7d89d14eac5c29d4c0e4c558cdf70)
813
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
814
+ return typing.cast("Construct", jsii.sinvoke(cls, "createRoot", [id]))
815
+
833
816
  @jsii.member(jsii_name="isConstruct")
834
817
  @builtins.classmethod
835
818
  def is_construct(cls, x: typing.Any) -> builtins.bool:
@@ -1031,6 +1014,12 @@ def _typecheckingstub__020ca90e326a91c7b0f70a5c5df3471c78175b709d5adcbee2cb463d0
1031
1014
  """Type checking stubs"""
1032
1015
  pass
1033
1016
 
1017
+ def _typecheckingstub__6977719c6b0c33e0c0a5ab31ece9bd2640b7d89d14eac5c29d4c0e4c558cdf70(
1018
+ id: typing.Optional[builtins.str] = None,
1019
+ ) -> None:
1020
+ """Type checking stubs"""
1021
+ pass
1022
+
1034
1023
  def _typecheckingstub__fd6a4114560af835bb1c07485e906499cadbf16cf78d7e344bc100586fce523f(
1035
1024
  x: typing.Any,
1036
1025
  ) -> None:
@@ -0,0 +1,24 @@
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 typeguard import check_type
15
+
16
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
17
+ "constructs", "10.4.0", __name__[0:-6], "constructs@10.4.0.jsii.tgz"
18
+ )
19
+
20
+ __all__ = [
21
+ "__jsii_assembly__",
22
+ ]
23
+
24
+ publication.publish()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: constructs
3
- Version: 10.3.1
3
+ Version: 10.4.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>
@@ -21,9 +21,9 @@ Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: NOTICE
24
- Requires-Dist: jsii<2.0.0,>=1.103.1
24
+ Requires-Dist: jsii<2.0.0,>=1.102.0
25
25
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard<5.0.0,>=2.13.3
26
+ Requires-Dist: typeguard~=2.13.3
27
27
 
28
28
  # Constructs
29
29
 
@@ -41,6 +41,10 @@ Constructs are classes which define a "piece of system state". Constructs can be
41
41
 
42
42
  Constructs are often used to represent the *desired state* of cloud applications. For example, in the AWS CDK, which is used to define the desired state for AWS infrastructure using CloudFormation, the lowest-level construct represents a *resource definition* in a CloudFormation template. These resources are composed to represent higher-level logical units of a cloud application, etc.
43
43
 
44
+ ## Support policy
45
+
46
+ All [maintained Node.js versions](https://nodejs.org/en/about/previous-releases#release-schedule) are supported by this package.
47
+
44
48
  ## Contributing
45
49
 
46
50
  This project has adopted the [Amazon Open Source Code of
@@ -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.3.1.jsii.tgz
15
+ src/constructs/_jsii/constructs@10.4.0.jsii.tgz
@@ -0,0 +1,3 @@
1
+ jsii<2.0.0,>=1.102.0
2
+ publication>=0.0.3
3
+ typeguard~=2.13.3
@@ -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.3.1", __name__[0:-6], "constructs@10.3.1.jsii.tgz"
33
- )
34
-
35
- __all__ = [
36
- "__jsii_assembly__",
37
- ]
38
-
39
- publication.publish()
@@ -1,3 +0,0 @@
1
- jsii<2.0.0,>=1.103.1
2
- publication>=0.0.3
3
- typeguard<5.0.0,>=2.13.3
File without changes
File without changes
File without changes
File without changes
File without changes