robhan-cdk-lib.aws-mwaa 0.0.3__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.
- robhan_cdk_lib_aws_mwaa-0.0.3/LICENSE +19 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/MANIFEST.in +1 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/PKG-INFO +82 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/README.md +54 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/pyproject.toml +9 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/setup.cfg +4 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/setup.py +65 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib/aws_mwaa/__init__.py +3282 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib/aws_mwaa/_jsii/__init__.py +43 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib/aws_mwaa/_jsii/aws_mwaa@0.0.3.jsii.tgz +0 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib/aws_mwaa/py.typed +1 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib.aws_mwaa.egg-info/PKG-INFO +82 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib.aws_mwaa.egg-info/SOURCES.txt +14 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib.aws_mwaa.egg-info/dependency_links.txt +1 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib.aws_mwaa.egg-info/requires.txt +6 -0
- robhan_cdk_lib_aws_mwaa-0.0.3/src/robhan_cdk_lib.aws_mwaa.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2025 Robert Hanuschke
|
|
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 @@
|
|
|
1
|
+
include pyproject.toml
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: robhan_cdk_lib.aws_mwaa
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: AWS CDK Construct Library for Amazon Managed Workflows for Apache Airflow
|
|
5
|
+
Home-page: https://github.com/robert-hanuschke/cdk-aws_mwaa.git
|
|
6
|
+
Author: Robert Hanuschke<robhan-cdk-lib@hanuschke.eu>
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: Source, https://github.com/robert-hanuschke/cdk-aws_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.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
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.221.0
|
|
23
|
+
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.119.0
|
|
25
|
+
Requires-Dist: publication>=0.0.3
|
|
26
|
+
Requires-Dist: robhan_cdk_lib.utils<0.0.92,>=0.0.91
|
|
27
|
+
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
28
|
+
|
|
29
|
+
# @robhan-cdk-lib/aws_mwaa
|
|
30
|
+
|
|
31
|
+
AWS Cloud Development Kit (CDK) constructs for Amazon Managed Workflows for Apache Airflow (MWAA).
|
|
32
|
+
|
|
33
|
+
In [aws-cdk-lib.aws_mwaa](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mwaa-readme.html), there currently only exist L1 constructs for Amazon Managed Workflows for Apache Airflow (MWAA).
|
|
34
|
+
|
|
35
|
+
While helpful, they miss convenience like:
|
|
36
|
+
|
|
37
|
+
* advanced parameter checking (min/max number values, string lengths, array lengths...) before CloudFormation deployment
|
|
38
|
+
* proper parameter typing, e.g. enum values instead of strings
|
|
39
|
+
* simply referencing other constructs instead of e.g. ARN strings
|
|
40
|
+
|
|
41
|
+
Those features are implemented here.
|
|
42
|
+
|
|
43
|
+
The CDK maintainers explain that [publishing your own package](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#publishing-your-own-package) is "by far the strongest signal you can give to the CDK team that a feature should be included within the core aws-cdk packages".
|
|
44
|
+
|
|
45
|
+
This project aims to develop aws_mwaa constructs to a maturity that can potentially be accepted to the CDK core.
|
|
46
|
+
|
|
47
|
+
It is not supported by AWS and is not endorsed by them. Please file issues in the [GitHub repository](https://github.com/robert-hanuschke/cdk-aws_mwaa/issues) if you find any.
|
|
48
|
+
|
|
49
|
+
## Example use
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
import * as cdk from "aws-cdk-lib";
|
|
53
|
+
import { Construct } from "constructs";
|
|
54
|
+
import {
|
|
55
|
+
AirflowVersion,
|
|
56
|
+
Environment,
|
|
57
|
+
EnvironmentClass,
|
|
58
|
+
} from "@robhan-cdk-lib/aws_mwaa";
|
|
59
|
+
|
|
60
|
+
export class AwsMwaaCdkStack extends cdk.Stack {
|
|
61
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
62
|
+
super(scope, id, props);
|
|
63
|
+
|
|
64
|
+
const environment = new Environment(this, "Environment", {
|
|
65
|
+
airflowConfigurationOptions: {
|
|
66
|
+
key: "value",
|
|
67
|
+
},
|
|
68
|
+
name: "myEnvironment",
|
|
69
|
+
airflowVersion: AirflowVersion.V3_0_6,
|
|
70
|
+
environmentClass: EnvironmentClass.MW1_MEDIUM,
|
|
71
|
+
minWebservers: 2,
|
|
72
|
+
maxWebservers: 4,
|
|
73
|
+
minWorkers: 2,
|
|
74
|
+
maxWorkers: 4,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
MIT
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# @robhan-cdk-lib/aws_mwaa
|
|
2
|
+
|
|
3
|
+
AWS Cloud Development Kit (CDK) constructs for Amazon Managed Workflows for Apache Airflow (MWAA).
|
|
4
|
+
|
|
5
|
+
In [aws-cdk-lib.aws_mwaa](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mwaa-readme.html), there currently only exist L1 constructs for Amazon Managed Workflows for Apache Airflow (MWAA).
|
|
6
|
+
|
|
7
|
+
While helpful, they miss convenience like:
|
|
8
|
+
|
|
9
|
+
* advanced parameter checking (min/max number values, string lengths, array lengths...) before CloudFormation deployment
|
|
10
|
+
* proper parameter typing, e.g. enum values instead of strings
|
|
11
|
+
* simply referencing other constructs instead of e.g. ARN strings
|
|
12
|
+
|
|
13
|
+
Those features are implemented here.
|
|
14
|
+
|
|
15
|
+
The CDK maintainers explain that [publishing your own package](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#publishing-your-own-package) is "by far the strongest signal you can give to the CDK team that a feature should be included within the core aws-cdk packages".
|
|
16
|
+
|
|
17
|
+
This project aims to develop aws_mwaa constructs to a maturity that can potentially be accepted to the CDK core.
|
|
18
|
+
|
|
19
|
+
It is not supported by AWS and is not endorsed by them. Please file issues in the [GitHub repository](https://github.com/robert-hanuschke/cdk-aws_mwaa/issues) if you find any.
|
|
20
|
+
|
|
21
|
+
## Example use
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
import * as cdk from "aws-cdk-lib";
|
|
25
|
+
import { Construct } from "constructs";
|
|
26
|
+
import {
|
|
27
|
+
AirflowVersion,
|
|
28
|
+
Environment,
|
|
29
|
+
EnvironmentClass,
|
|
30
|
+
} from "@robhan-cdk-lib/aws_mwaa";
|
|
31
|
+
|
|
32
|
+
export class AwsMwaaCdkStack extends cdk.Stack {
|
|
33
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
34
|
+
super(scope, id, props);
|
|
35
|
+
|
|
36
|
+
const environment = new Environment(this, "Environment", {
|
|
37
|
+
airflowConfigurationOptions: {
|
|
38
|
+
key: "value",
|
|
39
|
+
},
|
|
40
|
+
name: "myEnvironment",
|
|
41
|
+
airflowVersion: AirflowVersion.V3_0_6,
|
|
42
|
+
environmentClass: EnvironmentClass.MW1_MEDIUM,
|
|
43
|
+
minWebservers: 2,
|
|
44
|
+
maxWebservers: 4,
|
|
45
|
+
minWorkers: 2,
|
|
46
|
+
maxWorkers: 4,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
MIT
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import setuptools
|
|
3
|
+
|
|
4
|
+
kwargs = json.loads(
|
|
5
|
+
"""
|
|
6
|
+
{
|
|
7
|
+
"name": "robhan_cdk_lib.aws_mwaa",
|
|
8
|
+
"version": "0.0.3",
|
|
9
|
+
"description": "AWS CDK Construct Library for Amazon Managed Workflows for Apache Airflow",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"url": "https://github.com/robert-hanuschke/cdk-aws_mwaa.git",
|
|
12
|
+
"long_description_content_type": "text/markdown",
|
|
13
|
+
"author": "Robert Hanuschke<robhan-cdk-lib@hanuschke.eu>",
|
|
14
|
+
"bdist_wheel": {
|
|
15
|
+
"universal": true
|
|
16
|
+
},
|
|
17
|
+
"project_urls": {
|
|
18
|
+
"Source": "https://github.com/robert-hanuschke/cdk-aws_mwaa.git"
|
|
19
|
+
},
|
|
20
|
+
"package_dir": {
|
|
21
|
+
"": "src"
|
|
22
|
+
},
|
|
23
|
+
"packages": [
|
|
24
|
+
"robhan_cdk_lib.aws_mwaa",
|
|
25
|
+
"robhan_cdk_lib.aws_mwaa._jsii"
|
|
26
|
+
],
|
|
27
|
+
"package_data": {
|
|
28
|
+
"robhan_cdk_lib.aws_mwaa._jsii": [
|
|
29
|
+
"aws_mwaa@0.0.3.jsii.tgz"
|
|
30
|
+
],
|
|
31
|
+
"robhan_cdk_lib.aws_mwaa": [
|
|
32
|
+
"py.typed"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"python_requires": "~=3.9",
|
|
36
|
+
"install_requires": [
|
|
37
|
+
"aws-cdk-lib>=2.221.0, <3.0.0",
|
|
38
|
+
"constructs>=10.0.5, <11.0.0",
|
|
39
|
+
"jsii>=1.119.0, <2.0.0",
|
|
40
|
+
"publication>=0.0.3",
|
|
41
|
+
"robhan_cdk_lib.utils>=0.0.91, <0.0.92",
|
|
42
|
+
"typeguard>=2.13.3,<4.3.0"
|
|
43
|
+
],
|
|
44
|
+
"classifiers": [
|
|
45
|
+
"Intended Audience :: Developers",
|
|
46
|
+
"Operating System :: OS Independent",
|
|
47
|
+
"Programming Language :: JavaScript",
|
|
48
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
49
|
+
"Programming Language :: Python :: 3.9",
|
|
50
|
+
"Programming Language :: Python :: 3.10",
|
|
51
|
+
"Programming Language :: Python :: 3.11",
|
|
52
|
+
"Typing :: Typed",
|
|
53
|
+
"Development Status :: 5 - Production/Stable",
|
|
54
|
+
"License :: OSI Approved"
|
|
55
|
+
],
|
|
56
|
+
"scripts": []
|
|
57
|
+
}
|
|
58
|
+
"""
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
with open("README.md", encoding="utf8") as fp:
|
|
62
|
+
kwargs["long_description"] = fp.read()
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
setuptools.setup(**kwargs)
|