@robhan-cdk-lib/aws_grafana 0.1.0 → 0.1.1

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.
package/.jsii CHANGED
@@ -9404,7 +9404,7 @@
9404
9404
  },
9405
9405
  "name": "@robhan-cdk-lib/aws_grafana",
9406
9406
  "readme": {
9407
- "markdown": "# @robhan-cdk-lib/aws_grafana\n\nAWS Cloud Development Kit (CDK) constructs for Amazon Managed Grafana.\n\nIn [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.\n\nWhile helpful, they miss convenience like:\n\n- advanced parameter checking (min/max number values, string lengths, array lengths...) before CloudFormation deployment\n- proper parameter typing, e.g. enum values instead of strings\n- simply referencing other constructs instead of e.g. ARN strings\n\nThose features are implemented here.\n\nThe 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\".\n\nThis project aims to develop aws_grafana constructs to a maturity that can potentially be accepted to the CDK core.\n\nIt 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_grafana/issues) if you find any.\n\n## Example use\n\n```typescript\nimport * as cdk from \"aws-cdk-lib\";\nimport { Construct } from \"constructs\";\nimport {\n AccountAccessType,\n AuthenticationProviders,\n PermissionTypes,\n Workspace,\n} from \"@robhan-cdk-lib/aws_grafana\";\nimport { Role, ServicePrincipal } from \"aws-cdk-lib/aws-iam\";\n\nexport class AwsGrafanaCdkStack extends cdk.Stack {\n constructor(scope: Construct, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n const grafanaRole = new Role(this, \"GrafanaWorkspaceRole\", {\n assumedBy: new ServicePrincipal(\"grafana.amazonaws.com\"),\n description: \"Role for Amazon Managed Grafana Workspace\",\n });\n\n const workspace = new Workspace(this, \"Workspace\", {\n accountAccessType: AccountAccessType.CURRENT_ACCOUNT,\n authenticationProviders: [AuthenticationProviders.AWS_SSO],\n permissionType: PermissionTypes.SERVICE_MANAGED,\n role: grafanaRole,\n });\n }\n}\n```\n\n## License\n\nMIT\n"
9407
+ "markdown": "# @robhan-cdk-lib/aws_grafana\n\nAWS Cloud Development Kit (CDK) constructs for Amazon Managed Grafana.\n\nIn [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.\n\nWhile helpful, they miss convenience like:\n\n- proper parameter typing, e.g. enum values instead of strings\n- simply referencing other constructs instead of e.g. ARN strings\n\nThose features are implemented here.\n\nParameter constraints (string lengths, allowed patterns, array sizes, etc.)\nare validated by CloudFormation at deploy time.\n\nThe 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\".\n\nThis project aims to develop aws_grafana constructs to a maturity that can potentially be accepted to the CDK core.\n\nIt 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_grafana/issues) if you find any.\n\n## Example use\n\n```typescript\nimport * as cdk from \"aws-cdk-lib\";\nimport { Construct } from \"constructs\";\nimport {\n AccountAccessType,\n AuthenticationProviders,\n PermissionTypes,\n Workspace,\n} from \"@robhan-cdk-lib/aws_grafana\";\nimport { Role, ServicePrincipal } from \"aws-cdk-lib/aws-iam\";\n\nexport class AwsGrafanaCdkStack extends cdk.Stack {\n constructor(scope: Construct, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n const grafanaRole = new Role(this, \"GrafanaWorkspaceRole\", {\n assumedBy: new ServicePrincipal(\"grafana.amazonaws.com\"),\n description: \"Role for Amazon Managed Grafana Workspace\",\n });\n\n const workspace = new Workspace(this, \"Workspace\", {\n accountAccessType: AccountAccessType.CURRENT_ACCOUNT,\n authenticationProviders: [AuthenticationProviders.AWS_SSO],\n permissionType: PermissionTypes.SERVICE_MANAGED,\n role: grafanaRole,\n });\n }\n}\n```\n\n## License\n\nMIT\n"
9408
9408
  },
9409
9409
  "repository": {
9410
9410
  "type": "git",
@@ -12656,6 +12656,6 @@
12656
12656
  "symbolId": "src/workspace:WorkspaceProps"
12657
12657
  }
12658
12658
  },
12659
- "version": "0.1.0",
12660
- "fingerprint": "bWz0CxkQxbFPKjJAYmap6lfTY+PHsKnFJHrNz8LFAW0="
12659
+ "version": "0.1.1",
12660
+ "fingerprint": "wmnTdO0ac+MxOOgPzmL06QD28m/pEedo4nEV9d8HAHc="
12661
12661
  }
package/README.md CHANGED
@@ -6,12 +6,14 @@ In [aws-cdk-lib.aws_grafana](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk
6
6
 
7
7
  While helpful, they miss convenience like:
8
8
 
9
- - advanced parameter checking (min/max number values, string lengths, array lengths...) before CloudFormation deployment
10
9
  - proper parameter typing, e.g. enum values instead of strings
11
10
  - simply referencing other constructs instead of e.g. ARN strings
12
11
 
13
12
  Those features are implemented here.
14
13
 
14
+ Parameter constraints (string lengths, allowed patterns, array sizes, etc.)
15
+ are validated by CloudFormation at deploy time.
16
+
15
17
  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
18
 
17
19
  This project aims to develop aws_grafana constructs to a maturity that can potentially be accepted to the CDK core.
@@ -139,7 +139,7 @@ var Status;
139
139
  Status["LICENSE_REMOVAL_FAILED"] = "LICENSE_REMOVAL_FAILED";
140
140
  })(Status || (exports.Status = Status = {}));
141
141
  class WorkspaceBase extends aws_cdk_lib_1.Resource {
142
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@robhan-cdk-lib/aws_grafana.WorkspaceBase", version: "0.1.0" };
142
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@robhan-cdk-lib/aws_grafana.WorkspaceBase", version: "0.1.1" };
143
143
  getWorkspaceArn(workspaceId) {
144
144
  return this.stack.formatArn({
145
145
  service: 'grafana',
package/lib/workspace.js CHANGED
@@ -12,7 +12,7 @@ const IS_WORKSPACE = Symbol.for('@robhan-cdk-lib/aws_grafana.Workspace');
12
12
  * to run the Grafana server.
13
13
  */
14
14
  class Workspace extends workspace_base_1.WorkspaceBase {
15
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@robhan-cdk-lib/aws_grafana.Workspace", version: "0.1.0" };
15
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@robhan-cdk-lib/aws_grafana.Workspace", version: "0.1.1" };
16
16
  static isWorkspace(x) {
17
17
  return IS_WORKSPACE in x;
18
18
  }
package/package.json CHANGED
@@ -82,7 +82,7 @@
82
82
  "main": "lib/index.js",
83
83
  "license": "MIT",
84
84
  "stability": "stable",
85
- "version": "0.1.0",
85
+ "version": "0.1.1",
86
86
  "jest": {
87
87
  "coverageProvider": "v8",
88
88
  "testMatch": [