cdk-power-constructs 0.1.6__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.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and may
124
+ provide additional or different license terms and conditions for use,
125
+ reproduction, or distribution of Your modifications, or for any such
126
+ Derivative Works as a whole, provided Your use, reproduction, and
127
+ distribution of the Work otherwise complies with the conditions stated
128
+ in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Jérôme GUYON
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ include pyproject.toml
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.1
2
+ Name: cdk-power-constructs
3
+ Version: 0.1.6
4
+ Summary: Reusable AWS CDK constructs for common infrastructure patterns
5
+ Home-page: https://github.com/guyon-it-consulting/cdk-power-constructs.git
6
+ Author: Jérôme GUYON<jerome.guyon@guyon-it-consulting.com>
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/guyon-it-consulting/cdk-power-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: Development Status :: 4 - Beta
18
+ Classifier: License :: OSI Approved
19
+ Requires-Python: ~=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.0.0
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.126.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard==2.13.3
27
+
28
+ # CDK Power Constructs
29
+
30
+ A multi-language AWS CDK construct library providing reusable infrastructure patterns.
31
+
32
+ ## Installation
33
+
34
+ ### TypeScript/JavaScript
35
+
36
+ ```bash
37
+ npm install cdk-power-constructs
38
+ ```
39
+
40
+ ### Python
41
+
42
+ ```bash
43
+ pip install cdk-power-constructs
44
+ ```
45
+
46
+ ### Java
47
+
48
+ ```xml
49
+ <dependency>
50
+ <groupId>io.github.yourusername</groupId>
51
+ <artifactId>cdk-power-constructs</artifactId>
52
+ <version>0.1.0</version>
53
+ </dependency>
54
+ ```
55
+
56
+ ### Go
57
+
58
+ ```bash
59
+ go get github.com/yourusername/cdk-power-constructs-go
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ### TypeScript
65
+
66
+ ```python
67
+ import { CdkPowerConstructs } from 'cdk-power-constructs';
68
+ import { Duration, Stack } from 'aws-cdk-lib';
69
+
70
+ const construct = new CdkPowerConstructs(this, 'MyConstruct', {
71
+ visibilityTimeout: Duration.seconds(300),
72
+ });
73
+ ```
74
+
75
+ ### Python
76
+
77
+ ```python
78
+ from cdk_power_constructs import CdkPowerConstructs
79
+ from aws_cdk import Duration
80
+
81
+ construct = CdkPowerConstructs(self, "MyConstruct",
82
+ visibility_timeout=Duration.seconds(300)
83
+ )
84
+ ```
85
+
86
+ ## Development
87
+
88
+ * `npm run build` - Compile TypeScript and generate .jsii assembly
89
+ * `npm run watch` - Watch for changes and compile
90
+ * `npm run test` - Run unit tests
91
+ * `npm run package` - Generate packages for all languages
92
+
93
+ ## License
94
+
95
+ Apache-2.0
@@ -0,0 +1,68 @@
1
+ # CDK Power Constructs
2
+
3
+ A multi-language AWS CDK construct library providing reusable infrastructure patterns.
4
+
5
+ ## Installation
6
+
7
+ ### TypeScript/JavaScript
8
+
9
+ ```bash
10
+ npm install cdk-power-constructs
11
+ ```
12
+
13
+ ### Python
14
+
15
+ ```bash
16
+ pip install cdk-power-constructs
17
+ ```
18
+
19
+ ### Java
20
+
21
+ ```xml
22
+ <dependency>
23
+ <groupId>io.github.yourusername</groupId>
24
+ <artifactId>cdk-power-constructs</artifactId>
25
+ <version>0.1.0</version>
26
+ </dependency>
27
+ ```
28
+
29
+ ### Go
30
+
31
+ ```bash
32
+ go get github.com/yourusername/cdk-power-constructs-go
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ### TypeScript
38
+
39
+ ```python
40
+ import { CdkPowerConstructs } from 'cdk-power-constructs';
41
+ import { Duration, Stack } from 'aws-cdk-lib';
42
+
43
+ const construct = new CdkPowerConstructs(this, 'MyConstruct', {
44
+ visibilityTimeout: Duration.seconds(300),
45
+ });
46
+ ```
47
+
48
+ ### Python
49
+
50
+ ```python
51
+ from cdk_power_constructs import CdkPowerConstructs
52
+ from aws_cdk import Duration
53
+
54
+ construct = CdkPowerConstructs(self, "MyConstruct",
55
+ visibility_timeout=Duration.seconds(300)
56
+ )
57
+ ```
58
+
59
+ ## Development
60
+
61
+ * `npm run build` - Compile TypeScript and generate .jsii assembly
62
+ * `npm run watch` - Watch for changes and compile
63
+ * `npm run test` - Run unit tests
64
+ * `npm run package` - Generate packages for all languages
65
+
66
+ ## License
67
+
68
+ Apache-2.0
@@ -0,0 +1,9 @@
1
+ [build-system]
2
+ requires = ["setuptools~=75.3.2", "build~=1.3.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.pyright]
6
+ defineConstant = { DEBUG = true }
7
+ pythonVersion = "3.9"
8
+ pythonPlatform = "All"
9
+ reportSelfClsParameterName = false
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,64 @@
1
+ import json
2
+ import setuptools
3
+
4
+ kwargs = json.loads(
5
+ """
6
+ {
7
+ "name": "cdk-power-constructs",
8
+ "version": "0.1.6",
9
+ "description": "Reusable AWS CDK constructs for common infrastructure patterns",
10
+ "license": "Apache-2.0",
11
+ "url": "https://github.com/guyon-it-consulting/cdk-power-constructs.git",
12
+ "long_description_content_type": "text/markdown",
13
+ "author": "Jérôme GUYON<jerome.guyon@guyon-it-consulting.com>",
14
+ "bdist_wheel": {
15
+ "universal": true
16
+ },
17
+ "project_urls": {
18
+ "Source": "https://github.com/guyon-it-consulting/cdk-power-constructs.git"
19
+ },
20
+ "package_dir": {
21
+ "": "src"
22
+ },
23
+ "packages": [
24
+ "cdk_power_constructs",
25
+ "cdk_power_constructs._jsii"
26
+ ],
27
+ "package_data": {
28
+ "cdk_power_constructs._jsii": [
29
+ "cdk-power-constructs@0.1.6.jsii.tgz"
30
+ ],
31
+ "cdk_power_constructs": [
32
+ "py.typed"
33
+ ]
34
+ },
35
+ "python_requires": "~=3.9",
36
+ "install_requires": [
37
+ "aws-cdk-lib>=2.0.0, <3.0.0",
38
+ "constructs>=10.0.0, <11.0.0",
39
+ "jsii>=1.126.0, <2.0.0",
40
+ "publication>=0.0.3",
41
+ "typeguard==2.13.3"
42
+ ],
43
+ "classifiers": [
44
+ "Intended Audience :: Developers",
45
+ "Operating System :: OS Independent",
46
+ "Programming Language :: JavaScript",
47
+ "Programming Language :: Python :: 3 :: Only",
48
+ "Programming Language :: Python :: 3.9",
49
+ "Programming Language :: Python :: 3.10",
50
+ "Programming Language :: Python :: 3.11",
51
+ "Typing :: Typed",
52
+ "Development Status :: 4 - Beta",
53
+ "License :: OSI Approved"
54
+ ],
55
+ "scripts": []
56
+ }
57
+ """
58
+ )
59
+
60
+ with open("README.md", encoding="utf8") as fp:
61
+ kwargs["long_description"] = fp.read()
62
+
63
+
64
+ setuptools.setup(**kwargs)
@@ -0,0 +1,224 @@
1
+ r'''
2
+ # CDK Power Constructs
3
+
4
+ A multi-language AWS CDK construct library providing reusable infrastructure patterns.
5
+
6
+ ## Installation
7
+
8
+ ### TypeScript/JavaScript
9
+
10
+ ```bash
11
+ npm install cdk-power-constructs
12
+ ```
13
+
14
+ ### Python
15
+
16
+ ```bash
17
+ pip install cdk-power-constructs
18
+ ```
19
+
20
+ ### Java
21
+
22
+ ```xml
23
+ <dependency>
24
+ <groupId>io.github.yourusername</groupId>
25
+ <artifactId>cdk-power-constructs</artifactId>
26
+ <version>0.1.0</version>
27
+ </dependency>
28
+ ```
29
+
30
+ ### Go
31
+
32
+ ```bash
33
+ go get github.com/yourusername/cdk-power-constructs-go
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ ### TypeScript
39
+
40
+ ```python
41
+ import { CdkPowerConstructs } from 'cdk-power-constructs';
42
+ import { Duration, Stack } from 'aws-cdk-lib';
43
+
44
+ const construct = new CdkPowerConstructs(this, 'MyConstruct', {
45
+ visibilityTimeout: Duration.seconds(300),
46
+ });
47
+ ```
48
+
49
+ ### Python
50
+
51
+ ```python
52
+ from cdk_power_constructs import CdkPowerConstructs
53
+ from aws_cdk import Duration
54
+
55
+ construct = CdkPowerConstructs(self, "MyConstruct",
56
+ visibility_timeout=Duration.seconds(300)
57
+ )
58
+ ```
59
+
60
+ ## Development
61
+
62
+ * `npm run build` - Compile TypeScript and generate .jsii assembly
63
+ * `npm run watch` - Watch for changes and compile
64
+ * `npm run test` - Run unit tests
65
+ * `npm run package` - Generate packages for all languages
66
+
67
+ ## License
68
+
69
+ Apache-2.0
70
+ '''
71
+ from pkgutil import extend_path
72
+ __path__ = extend_path(__path__, __name__)
73
+
74
+ import abc
75
+ import builtins
76
+ import datetime
77
+ import enum
78
+ import typing
79
+
80
+ import jsii
81
+ import publication
82
+ import typing_extensions
83
+
84
+ import typeguard
85
+ from importlib.metadata import version as _metadata_package_version
86
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
87
+
88
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
89
+ if TYPEGUARD_MAJOR_VERSION <= 2:
90
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
91
+ else:
92
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
93
+ pass
94
+ else:
95
+ if TYPEGUARD_MAJOR_VERSION == 3:
96
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
97
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
98
+ else:
99
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
100
+
101
+ from ._jsii import *
102
+
103
+ import aws_cdk as _aws_cdk_ceddda9d
104
+ import aws_cdk.aws_sns as _aws_cdk_aws_sns_ceddda9d
105
+ import aws_cdk.aws_sqs as _aws_cdk_aws_sqs_ceddda9d
106
+ import constructs as _constructs_77d1e7e8
107
+
108
+
109
+ class CdkPowerConstructs(
110
+ _constructs_77d1e7e8.Construct,
111
+ metaclass=jsii.JSIIMeta,
112
+ jsii_type="cdk-power-constructs.CdkPowerConstructs",
113
+ ):
114
+ '''
115
+ :stability: experimental
116
+ '''
117
+
118
+ def __init__(
119
+ self,
120
+ scope: "_constructs_77d1e7e8.Construct",
121
+ id: builtins.str,
122
+ *,
123
+ visibility_timeout: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
124
+ ) -> None:
125
+ '''
126
+ :param scope: -
127
+ :param id: -
128
+ :param visibility_timeout: (experimental) The visibility timeout for the SQS queue. Default: Duration.seconds(300)
129
+
130
+ :stability: experimental
131
+ '''
132
+ if __debug__:
133
+ type_hints = typing.get_type_hints(_typecheckingstub__69868510bd2ed704a1bf9406d14408f96270a717c8f9b0d88f2ec626e52192d1)
134
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
135
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
136
+ props = CdkPowerConstructsProps(visibility_timeout=visibility_timeout)
137
+
138
+ jsii.create(self.__class__, self, [scope, id, props])
139
+
140
+ @builtins.property
141
+ @jsii.member(jsii_name="queue")
142
+ def queue(self) -> "_aws_cdk_aws_sqs_ceddda9d.Queue":
143
+ '''
144
+ :stability: experimental
145
+ '''
146
+ return typing.cast("_aws_cdk_aws_sqs_ceddda9d.Queue", jsii.get(self, "queue"))
147
+
148
+ @builtins.property
149
+ @jsii.member(jsii_name="topic")
150
+ def topic(self) -> "_aws_cdk_aws_sns_ceddda9d.Topic":
151
+ '''
152
+ :stability: experimental
153
+ '''
154
+ return typing.cast("_aws_cdk_aws_sns_ceddda9d.Topic", jsii.get(self, "topic"))
155
+
156
+
157
+ @jsii.data_type(
158
+ jsii_type="cdk-power-constructs.CdkPowerConstructsProps",
159
+ jsii_struct_bases=[],
160
+ name_mapping={"visibility_timeout": "visibilityTimeout"},
161
+ )
162
+ class CdkPowerConstructsProps:
163
+ def __init__(
164
+ self,
165
+ *,
166
+ visibility_timeout: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
167
+ ) -> None:
168
+ '''
169
+ :param visibility_timeout: (experimental) The visibility timeout for the SQS queue. Default: Duration.seconds(300)
170
+
171
+ :stability: experimental
172
+ '''
173
+ if __debug__:
174
+ type_hints = typing.get_type_hints(_typecheckingstub__17c0274a6eedf7973851a51fe3102cf024ed1cc92a606b6722e1fde5c0c1b273)
175
+ check_type(argname="argument visibility_timeout", value=visibility_timeout, expected_type=type_hints["visibility_timeout"])
176
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
177
+ if visibility_timeout is not None:
178
+ self._values["visibility_timeout"] = visibility_timeout
179
+
180
+ @builtins.property
181
+ def visibility_timeout(self) -> typing.Optional["_aws_cdk_ceddda9d.Duration"]:
182
+ '''(experimental) The visibility timeout for the SQS queue.
183
+
184
+ :default: Duration.seconds(300)
185
+
186
+ :stability: experimental
187
+ '''
188
+ result = self._values.get("visibility_timeout")
189
+ return typing.cast(typing.Optional["_aws_cdk_ceddda9d.Duration"], result)
190
+
191
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
192
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
193
+
194
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
195
+ return not (rhs == self)
196
+
197
+ def __repr__(self) -> str:
198
+ return "CdkPowerConstructsProps(%s)" % ", ".join(
199
+ k + "=" + repr(v) for k, v in self._values.items()
200
+ )
201
+
202
+
203
+ __all__ = [
204
+ "CdkPowerConstructs",
205
+ "CdkPowerConstructsProps",
206
+ ]
207
+
208
+ publication.publish()
209
+
210
+ def _typecheckingstub__69868510bd2ed704a1bf9406d14408f96270a717c8f9b0d88f2ec626e52192d1(
211
+ scope: _constructs_77d1e7e8.Construct,
212
+ id: builtins.str,
213
+ *,
214
+ visibility_timeout: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
215
+ ) -> None:
216
+ """Type checking stubs"""
217
+ pass
218
+
219
+ def _typecheckingstub__17c0274a6eedf7973851a51fe3102cf024ed1cc92a606b6722e1fde5c0c1b273(
220
+ *,
221
+ visibility_timeout: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
222
+ ) -> None:
223
+ """Type checking stubs"""
224
+ pass
@@ -0,0 +1,45 @@
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
+ import aws_cdk._jsii
32
+ import constructs._jsii
33
+
34
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
35
+ "cdk-power-constructs",
36
+ "0.1.6",
37
+ __name__[0:-6],
38
+ "cdk-power-constructs@0.1.6.jsii.tgz",
39
+ )
40
+
41
+ __all__ = [
42
+ "__jsii_assembly__",
43
+ ]
44
+
45
+ publication.publish()
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.1
2
+ Name: cdk-power-constructs
3
+ Version: 0.1.6
4
+ Summary: Reusable AWS CDK constructs for common infrastructure patterns
5
+ Home-page: https://github.com/guyon-it-consulting/cdk-power-constructs.git
6
+ Author: Jérôme GUYON<jerome.guyon@guyon-it-consulting.com>
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/guyon-it-consulting/cdk-power-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: Development Status :: 4 - Beta
18
+ Classifier: License :: OSI Approved
19
+ Requires-Python: ~=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.0.0
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.126.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard==2.13.3
27
+
28
+ # CDK Power Constructs
29
+
30
+ A multi-language AWS CDK construct library providing reusable infrastructure patterns.
31
+
32
+ ## Installation
33
+
34
+ ### TypeScript/JavaScript
35
+
36
+ ```bash
37
+ npm install cdk-power-constructs
38
+ ```
39
+
40
+ ### Python
41
+
42
+ ```bash
43
+ pip install cdk-power-constructs
44
+ ```
45
+
46
+ ### Java
47
+
48
+ ```xml
49
+ <dependency>
50
+ <groupId>io.github.yourusername</groupId>
51
+ <artifactId>cdk-power-constructs</artifactId>
52
+ <version>0.1.0</version>
53
+ </dependency>
54
+ ```
55
+
56
+ ### Go
57
+
58
+ ```bash
59
+ go get github.com/yourusername/cdk-power-constructs-go
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ### TypeScript
65
+
66
+ ```python
67
+ import { CdkPowerConstructs } from 'cdk-power-constructs';
68
+ import { Duration, Stack } from 'aws-cdk-lib';
69
+
70
+ const construct = new CdkPowerConstructs(this, 'MyConstruct', {
71
+ visibilityTimeout: Duration.seconds(300),
72
+ });
73
+ ```
74
+
75
+ ### Python
76
+
77
+ ```python
78
+ from cdk_power_constructs import CdkPowerConstructs
79
+ from aws_cdk import Duration
80
+
81
+ construct = CdkPowerConstructs(self, "MyConstruct",
82
+ visibility_timeout=Duration.seconds(300)
83
+ )
84
+ ```
85
+
86
+ ## Development
87
+
88
+ * `npm run build` - Compile TypeScript and generate .jsii assembly
89
+ * `npm run watch` - Watch for changes and compile
90
+ * `npm run test` - Run unit tests
91
+ * `npm run package` - Generate packages for all languages
92
+
93
+ ## License
94
+
95
+ Apache-2.0
@@ -0,0 +1,14 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ src/cdk_power_constructs/__init__.py
7
+ src/cdk_power_constructs/py.typed
8
+ src/cdk_power_constructs.egg-info/PKG-INFO
9
+ src/cdk_power_constructs.egg-info/SOURCES.txt
10
+ src/cdk_power_constructs.egg-info/dependency_links.txt
11
+ src/cdk_power_constructs.egg-info/requires.txt
12
+ src/cdk_power_constructs.egg-info/top_level.txt
13
+ src/cdk_power_constructs/_jsii/__init__.py
14
+ src/cdk_power_constructs/_jsii/cdk-power-constructs@0.1.6.jsii.tgz
@@ -0,0 +1,5 @@
1
+ aws-cdk-lib<3.0.0,>=2.0.0
2
+ constructs<11.0.0,>=10.0.0
3
+ jsii<2.0.0,>=1.126.0
4
+ publication>=0.0.3
5
+ typeguard==2.13.3