robhan-cdk-lib.aws-grafana 0.0.26__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_grafana-0.0.26/LICENSE +19 -0
- robhan_cdk_lib_aws_grafana-0.0.26/MANIFEST.in +1 -0
- robhan_cdk_lib_aws_grafana-0.0.26/PKG-INFO +74 -0
- robhan_cdk_lib_aws_grafana-0.0.26/README.md +47 -0
- robhan_cdk_lib_aws_grafana-0.0.26/pyproject.toml +9 -0
- robhan_cdk_lib_aws_grafana-0.0.26/setup.cfg +4 -0
- robhan_cdk_lib_aws_grafana-0.0.26/setup.py +64 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib/aws_grafana/__init__.py +2479 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib/aws_grafana/_jsii/__init__.py +45 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib/aws_grafana/_jsii/aws_grafana@0.0.26.jsii.tgz +0 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib/aws_grafana/py.typed +1 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib.aws_grafana.egg-info/PKG-INFO +74 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib.aws_grafana.egg-info/SOURCES.txt +14 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib.aws_grafana.egg-info/dependency_links.txt +1 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib.aws_grafana.egg-info/requires.txt +5 -0
- robhan_cdk_lib_aws_grafana-0.0.26/src/robhan_cdk_lib.aws_grafana.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,74 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: robhan_cdk_lib.aws_grafana
|
3
|
+
Version: 0.0.26
|
4
|
+
Summary: AWS CDK Construct Library for Grafana
|
5
|
+
Home-page: https://github.com/robert-hanuschke/cdk-aws_grafana
|
6
|
+
Author: Robert Hanuschke<robhan-cdk-lib@hanuschke.eu>
|
7
|
+
License: MIT
|
8
|
+
Project-URL: Source, https://github.com/robert-hanuschke/cdk-aws_grafana
|
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.198.0
|
23
|
+
Requires-Dist: constructs<11.0.0,>=10.0.5
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.112.0
|
25
|
+
Requires-Dist: publication>=0.0.3
|
26
|
+
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
27
|
+
|
28
|
+
# @robhan-cdk-lib/aws_grafana
|
29
|
+
|
30
|
+
AWS Cloud Development Kit (CDK) L2 constructs for Amazon Managed Grafana.
|
31
|
+
|
32
|
+
In [aws-cdk-lib.aws_grafana](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_grafana-readme.html), there currently only exist L1 constructs for Amazon Managed Grafana.
|
33
|
+
|
34
|
+
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".
|
35
|
+
|
36
|
+
This project aims to develop aws_grafana L2 constructs to a maturity that is accepted to the CDK core.
|
37
|
+
|
38
|
+
Currently, development is focusing on the npm package. But PyPI, Maven Central, NuGet, and GitHub (for Go) will be added once a more stable state is reached.
|
39
|
+
|
40
|
+
## Example use
|
41
|
+
|
42
|
+
```python
|
43
|
+
import * as cdk from "aws-cdk-lib";
|
44
|
+
import { Construct } from "constructs";
|
45
|
+
import {
|
46
|
+
AccountAccessType,
|
47
|
+
AuthenticationProviders,
|
48
|
+
PermissionTypes,
|
49
|
+
Workspace,
|
50
|
+
} from "@robhan-cdk-lib/aws_grafana";
|
51
|
+
import { Role, ServicePrincipal } from "aws-cdk-lib/aws-iam";
|
52
|
+
|
53
|
+
export class AwsGrafanaCdkStack extends cdk.Stack {
|
54
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
55
|
+
super(scope, id, props);
|
56
|
+
|
57
|
+
const grafanaRole = new Role(this, "GrafanaWorkspaceRole", {
|
58
|
+
assumedBy: new ServicePrincipal("grafana.amazonaws.com"),
|
59
|
+
description: "Role for Amazon Managed Grafana Workspace",
|
60
|
+
});
|
61
|
+
|
62
|
+
const workspace = new Workspace(this, "Workspace", {
|
63
|
+
accountAccessType: AccountAccessType.CURRENT_ACCOUNT,
|
64
|
+
authenticationProviders: [AuthenticationProviders.AWS_SSO],
|
65
|
+
permissionType: PermissionTypes.SERVICE_MANAGED,
|
66
|
+
role: grafanaRole,
|
67
|
+
});
|
68
|
+
}
|
69
|
+
}
|
70
|
+
```
|
71
|
+
|
72
|
+
## License
|
73
|
+
|
74
|
+
MIT
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# @robhan-cdk-lib/aws_grafana
|
2
|
+
|
3
|
+
AWS Cloud Development Kit (CDK) L2 constructs for Amazon Managed Grafana.
|
4
|
+
|
5
|
+
In [aws-cdk-lib.aws_grafana](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_grafana-readme.html), there currently only exist L1 constructs for Amazon Managed Grafana.
|
6
|
+
|
7
|
+
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".
|
8
|
+
|
9
|
+
This project aims to develop aws_grafana L2 constructs to a maturity that is accepted to the CDK core.
|
10
|
+
|
11
|
+
Currently, development is focusing on the npm package. But PyPI, Maven Central, NuGet, and GitHub (for Go) will be added once a more stable state is reached.
|
12
|
+
|
13
|
+
## Example use
|
14
|
+
|
15
|
+
```python
|
16
|
+
import * as cdk from "aws-cdk-lib";
|
17
|
+
import { Construct } from "constructs";
|
18
|
+
import {
|
19
|
+
AccountAccessType,
|
20
|
+
AuthenticationProviders,
|
21
|
+
PermissionTypes,
|
22
|
+
Workspace,
|
23
|
+
} from "@robhan-cdk-lib/aws_grafana";
|
24
|
+
import { Role, ServicePrincipal } from "aws-cdk-lib/aws-iam";
|
25
|
+
|
26
|
+
export class AwsGrafanaCdkStack extends cdk.Stack {
|
27
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
28
|
+
super(scope, id, props);
|
29
|
+
|
30
|
+
const grafanaRole = new Role(this, "GrafanaWorkspaceRole", {
|
31
|
+
assumedBy: new ServicePrincipal("grafana.amazonaws.com"),
|
32
|
+
description: "Role for Amazon Managed Grafana Workspace",
|
33
|
+
});
|
34
|
+
|
35
|
+
const workspace = new Workspace(this, "Workspace", {
|
36
|
+
accountAccessType: AccountAccessType.CURRENT_ACCOUNT,
|
37
|
+
authenticationProviders: [AuthenticationProviders.AWS_SSO],
|
38
|
+
permissionType: PermissionTypes.SERVICE_MANAGED,
|
39
|
+
role: grafanaRole,
|
40
|
+
});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
```
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
MIT
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import json
|
2
|
+
import setuptools
|
3
|
+
|
4
|
+
kwargs = json.loads(
|
5
|
+
"""
|
6
|
+
{
|
7
|
+
"name": "robhan_cdk_lib.aws_grafana",
|
8
|
+
"version": "0.0.26",
|
9
|
+
"description": "AWS CDK Construct Library for Grafana",
|
10
|
+
"license": "MIT",
|
11
|
+
"url": "https://github.com/robert-hanuschke/cdk-aws_grafana",
|
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_grafana"
|
19
|
+
},
|
20
|
+
"package_dir": {
|
21
|
+
"": "src"
|
22
|
+
},
|
23
|
+
"packages": [
|
24
|
+
"robhan_cdk_lib.aws_grafana",
|
25
|
+
"robhan_cdk_lib.aws_grafana._jsii"
|
26
|
+
],
|
27
|
+
"package_data": {
|
28
|
+
"robhan_cdk_lib.aws_grafana._jsii": [
|
29
|
+
"aws_grafana@0.0.26.jsii.tgz"
|
30
|
+
],
|
31
|
+
"robhan_cdk_lib.aws_grafana": [
|
32
|
+
"py.typed"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"python_requires": "~=3.9",
|
36
|
+
"install_requires": [
|
37
|
+
"aws-cdk-lib>=2.198.0, <3.0.0",
|
38
|
+
"constructs>=10.0.5, <11.0.0",
|
39
|
+
"jsii>=1.112.0, <2.0.0",
|
40
|
+
"publication>=0.0.3",
|
41
|
+
"typeguard>=2.13.3,<4.3.0"
|
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 :: 5 - Production/Stable",
|
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)
|