cdk-mwaa 0.0.0__py3-none-any.whl

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,42 @@
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-mwaa", "0.0.0", __name__[0:-6], "cdk-mwaa@0.0.0.jsii.tgz"
36
+ )
37
+
38
+ __all__ = [
39
+ "__jsii_assembly__",
40
+ ]
41
+
42
+ publication.publish()
Binary file
cdk_mwaa/py.typed ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 hupe1980
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.1
2
+ Name: cdk-mwaa
3
+ Version: 0.0.0
4
+ Summary: cdk-mwaa
5
+ Home-page: https://github.com/hupe1980/cdk-mwaa.git
6
+ Author: hupe1980<frankhuebner1980@gmail.com>
7
+ License: MIT
8
+ Project-URL: Source, https://github.com/hupe1980/cdk-mwaa.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.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Typing :: Typed
18
+ Classifier: Development Status :: 5 - Production/Stable
19
+ Classifier: License :: OSI Approved
20
+ Requires-Python: ~=3.8
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.182.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.108.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
28
+
29
+ # cdk-mwaa
30
+
31
+ This project provides an AWS CDK construct library for creating and managing Amazon Managed Workflows for Apache Airflow (MWAA) environments.
32
+
33
+ ## Features
34
+
35
+ * Create and manage MWAA environments
36
+ * Configure environment properties such as webserver access mode, Airflow version, environment class, and more
37
+ * Validate and set default values for environment properties
38
+ * Automatically create and configure necessary AWS resources such as S3 buckets and VPCs
39
+
40
+ ## Installation
41
+
42
+ To use this construct library in your AWS CDK project, add it as a dependency:
43
+
44
+ ```sh
45
+ npm install cdk-mwaa
46
+ # or
47
+ yarn add cdk-mwaa
48
+ ```
49
+
50
+ ## Usage
51
+
52
+ Here is an example of how to use the `cdk-mwaa` construct library in your AWS CDK project:
53
+
54
+ ```python
55
+ import * as cdk from 'aws-cdk-lib';
56
+ import * as mwaa from 'cdk-mwaa';
57
+
58
+ const app = new cdk.App();
59
+ const stack = new cdk.Stack(app, 'MwaaStack');
60
+
61
+ const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
62
+ bucketName: 'my-mwaa-dag-storage',
63
+ removalPolicy: cdk.RemovalPolicy.DESTROY,
64
+ });
65
+
66
+ new mwaa.Environment(stack, 'MyMwaaEnvironment', {
67
+ environmentName: 'my-mwaa-environment',
68
+ dagStorage,
69
+ airflowVersion: '2.10.3',
70
+ sizing: mwaa.Sizing.mw1Micro(),
71
+ // additional configuration options...
72
+ });
73
+
74
+ app.synth();
75
+ ```
76
+
77
+ ## Enabling Secrets Backend
78
+
79
+ To enable the secrets backend for your MWAA environment, you can use the `enableSecretsBackend` method. This allows you to securely manage secrets and environment variables.
80
+
81
+ Here is an example of how to enable the secrets backend in your MWAA environment:
82
+
83
+ ```python
84
+ import * as cdk from 'aws-cdk-lib';
85
+ import * as mwaa from 'cdk-mwaa';
86
+
87
+ const app = new cdk.App();
88
+ const stack = new cdk.Stack(app, 'MwaaStack');
89
+
90
+ const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
91
+ bucketName: 'my-mwaa-dag-storage',
92
+ removalPolicy: cdk.RemovalPolicy.DESTROY,
93
+ });
94
+
95
+ const environment = new mwaa.Environment(stack, 'MyMwaaEnvironment', {
96
+ environmentName: 'my-mwaa-environment',
97
+ dagStorage,
98
+ airflowVersion: '2.10.3',
99
+ sizing: mwaa.Sizing.mw1Micro(),
100
+ // additional configuration options...
101
+ });
102
+
103
+ environment.enableSecretsBackend();
104
+
105
+ app.synth();
106
+ ```
107
+
108
+ ## License
109
+
110
+ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,9 @@
1
+ cdk_mwaa/__init__.py,sha256=Ki7JUsN8YZPmn0CYllBaWSSbjcGOdOh7yqBC4pjhE58,91013
2
+ cdk_mwaa/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk_mwaa/_jsii/__init__.py,sha256=mKf7MfBdGH5gs34C8-8S35YThQVgTTcXJVEb0eZG6J0,1427
4
+ cdk_mwaa/_jsii/cdk-mwaa@0.0.0.jsii.tgz,sha256=GJjXfIMxWKF0gcgEwQqtbM41nuLLsCKMyL_WDSozbF0,50632
5
+ cdk_mwaa-0.0.0.dist-info/LICENSE,sha256=GROW7AizgUVwWcX5o-CwAIpCxKEjgB76LUYIlvm6CRc,1052
6
+ cdk_mwaa-0.0.0.dist-info/METADATA,sha256=g65lo9tVoTFpYgX9e51f-YFWSPt5zrTfOVueQkeI-Sw,3324
7
+ cdk_mwaa-0.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
8
+ cdk_mwaa-0.0.0.dist-info/top_level.txt,sha256=z7TehVmyHoAC8t6mK5tn4TX1KD56rdyY-knSDyjfhGU,9
9
+ cdk_mwaa-0.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.45.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ cdk_mwaa