@aws-cdk/aws-redshift-alpha 2.0.0-alpha.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.
Files changed (45) hide show
  1. package/.jsii +6985 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +2 -0
  4. package/README.md +247 -0
  5. package/lib/cluster.d.ts +454 -0
  6. package/lib/cluster.js +231 -0
  7. package/lib/database-options.d.ts +30 -0
  8. package/lib/database-options.js +3 -0
  9. package/lib/database-secret.d.ts +35 -0
  10. package/lib/database-secret.js +32 -0
  11. package/lib/endpoint.d.ts +31 -0
  12. package/lib/endpoint.js +28 -0
  13. package/lib/index.d.ts +8 -0
  14. package/lib/index.js +22 -0
  15. package/lib/parameter-group.d.ts +72 -0
  16. package/lib/parameter-group.js +52 -0
  17. package/lib/private/database-query-provider/handler-name.d.ts +5 -0
  18. package/lib/private/database-query-provider/handler-name.js +10 -0
  19. package/lib/private/database-query-provider/index.d.ts +2 -0
  20. package/lib/private/database-query-provider/index.js +21 -0
  21. package/lib/private/database-query-provider/privileges.d.ts +6 -0
  22. package/lib/private/database-query-provider/privileges.js +57 -0
  23. package/lib/private/database-query-provider/table.d.ts +6 -0
  24. package/lib/private/database-query-provider/table.js +56 -0
  25. package/lib/private/database-query-provider/user.d.ts +9 -0
  26. package/lib/private/database-query-provider/user.js +69 -0
  27. package/lib/private/database-query-provider/util.d.ts +4 -0
  28. package/lib/private/database-query-provider/util.js +41 -0
  29. package/lib/private/database-query.d.ts +24 -0
  30. package/lib/private/database-query.js +78 -0
  31. package/lib/private/handler-props.d.ts +26 -0
  32. package/lib/private/handler-props.js +3 -0
  33. package/lib/private/privileges.d.ts +48 -0
  34. package/lib/private/privileges.js +64 -0
  35. package/lib/redshift-canned-metrics.generated.d.ts +192 -0
  36. package/lib/redshift-canned-metrics.generated.js +161 -0
  37. package/lib/subnet-group.d.ts +74 -0
  38. package/lib/subnet-group.js +49 -0
  39. package/lib/table.d.ts +241 -0
  40. package/lib/table.js +104 -0
  41. package/lib/user.d.ts +174 -0
  42. package/lib/user.js +102 -0
  43. package/package.json +124 -0
  44. package/rosetta/cluster.ts-fixture +21 -0
  45. package/rosetta/default.ts-fixture +12 -0
package/package.json ADDED
@@ -0,0 +1,124 @@
1
+ {
2
+ "name": "@aws-cdk/aws-redshift-alpha",
3
+ "version": "2.0.0-alpha.1",
4
+ "private": false,
5
+ "description": "The CDK Construct Library for AWS::Redshift",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "jsii": {
9
+ "outdir": "dist",
10
+ "targets": {
11
+ "java": {
12
+ "package": "software.amazon.awscdk.services.redshift.alpha",
13
+ "maven": {
14
+ "groupId": "software.amazon.awscdk",
15
+ "artifactId": "redshift-alpha"
16
+ }
17
+ },
18
+ "dotnet": {
19
+ "namespace": "Amazon.CDK.AWS.Redshift.Alpha",
20
+ "packageId": "Amazon.CDK.AWS.Redshift.Alpha",
21
+ "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
22
+ },
23
+ "python": {
24
+ "distName": "aws-cdk.aws-redshift-alpha",
25
+ "module": "aws_cdk.aws_redshift_alpha",
26
+ "classifiers": [
27
+ "Framework :: AWS CDK",
28
+ "Framework :: AWS CDK :: 1"
29
+ ]
30
+ },
31
+ "go": {
32
+ "moduleName": "github.com/aws/aws-cdk-go"
33
+ }
34
+ },
35
+ "projectReferences": true,
36
+ "metadata": {
37
+ "jsii": {
38
+ "rosetta": {
39
+ "strict": true
40
+ }
41
+ }
42
+ }
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://github.com/aws/aws-cdk.git",
47
+ "directory": "packages/individual-packages/aws-redshift"
48
+ },
49
+ "scripts": {
50
+ "build": "cdk-build",
51
+ "watch": "cdk-watch",
52
+ "lint": "cdk-lint",
53
+ "test": "cdk-test",
54
+ "integ": "cdk-integ",
55
+ "pkglint": "pkglint -f",
56
+ "package": "cdk-package",
57
+ "awslint": "cdk-awslint",
58
+ "cfn2ts": "cfn2ts",
59
+ "build+test+package": "yarn build+test && yarn package",
60
+ "build+test": "yarn build && yarn test",
61
+ "compat": "cdk-compat",
62
+ "rosetta:extract": "yarn --silent jsii-rosetta extract",
63
+ "build+extract": "yarn build && yarn rosetta:extract",
64
+ "build+test+extract": "yarn build+test && yarn rosetta:extract"
65
+ },
66
+ "cdk-build": {
67
+ "cloudformation": "AWS::Redshift",
68
+ "env": {
69
+ "AWSLINT_BASE_CONSTRUCT": true
70
+ }
71
+ },
72
+ "keywords": [
73
+ "aws",
74
+ "cdk",
75
+ "constructs",
76
+ "redshift"
77
+ ],
78
+ "author": {
79
+ "name": "Amazon Web Services",
80
+ "url": "https://aws.amazon.com",
81
+ "organization": true
82
+ },
83
+ "license": "Apache-2.0",
84
+ "devDependencies": {
85
+ "@aws-cdk/cdk-build-tools": "2.0.0-rc.24",
86
+ "@aws-cdk/cdk-integ-tools": "2.0.0-rc.24",
87
+ "@aws-cdk/cfn2ts": "2.0.0-rc.24",
88
+ "@aws-cdk/pkglint": "2.0.0-rc.24",
89
+ "@types/jest": "^26.0.24",
90
+ "aws-sdk": "^2.848.0",
91
+ "jest": "^26.6.3",
92
+ "aws-cdk-lib": "2.0.0-rc.24",
93
+ "constructs": "^10.0.0",
94
+ "@aws-cdk/assertions-alpha": "2.0.0-alpha.1"
95
+ },
96
+ "dependencies": {},
97
+ "homepage": "https://github.com/aws/aws-cdk",
98
+ "peerDependencies": {
99
+ "aws-cdk-lib": "^2.0.0-rc.24",
100
+ "constructs": "^10.0.0"
101
+ },
102
+ "engines": {
103
+ "node": ">= 14.15.0"
104
+ },
105
+ "awslint": {
106
+ "exclude": [
107
+ "*:*"
108
+ ]
109
+ },
110
+ "stability": "experimental",
111
+ "maturity": "experimental",
112
+ "awscdkio": {
113
+ "announce": false
114
+ },
115
+ "publishConfig": {
116
+ "tag": "latest"
117
+ },
118
+ "pkglint": {
119
+ "exclude": [
120
+ "naming/package-matches-directory",
121
+ "assert/assert-dependency"
122
+ ]
123
+ }
124
+ }
@@ -0,0 +1,21 @@
1
+ // Fixture with cluster already created
2
+ import { SecretValue, Stack } from '@aws-cdk/core';
3
+ import { Vpc } from '@aws-cdk/aws-ec2';
4
+ import { Cluster, Table, TableAction, User } from '@aws-cdk/aws-redshift';
5
+ import { Construct } from 'constructs';
6
+
7
+ class Fixture extends Stack {
8
+ constructor(scope: Construct, id: string) {
9
+ super(scope, id);
10
+
11
+ const vpc = new Vpc(this, 'Vpc');
12
+ const cluster = new Cluster(this, 'Cluster', {
13
+ vpc,
14
+ masterUser: {
15
+ masterUsername: 'admin',
16
+ },
17
+ });
18
+
19
+ /// here
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { Stack } from '@aws-cdk/core';
3
+ import { Cluster } from '@aws-cdk/aws-redshift';
4
+ import { Construct } from 'constructs';
5
+
6
+ class Fixture extends Stack {
7
+ constructor(scope: Construct, id: string) {
8
+ super(scope, id);
9
+
10
+ /// here
11
+ }
12
+ }