@aws-cdk/aws-neptune-alpha 2.5.0-alpha.0 → 2.9.0-alpha.0
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 +112 -42
- package/.jsii.tabl.json +135 -103
- package/.warnings.jsii.js +3 -3
- package/README.md +14 -0
- package/lib/cluster.d.ts +7 -0
- package/lib/cluster.js +5 -4
- package/lib/endpoint.js +1 -1
- package/lib/instance.js +2 -2
- package/lib/parameter-group.js +2 -2
- package/lib/subnet-group.js +1 -1
- package/package.json +8 -8
package/.jsii.tabl.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2",
|
|
3
|
-
"toolVersion": "1.
|
|
3
|
+
"toolVersion": "1.52.1",
|
|
4
4
|
"snippets": {
|
|
5
5
|
"bcadbe51a636bac40037d281e236cbbf751bc8d72ff900918130bb2b818247bb": {
|
|
6
6
|
"translations": {
|
|
7
7
|
"python": {
|
|
8
8
|
"source": "import aws_cdk.aws_neptune_alpha as neptune",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "2"
|
|
10
10
|
},
|
|
11
11
|
"csharp": {
|
|
12
12
|
"source": "using Amazon.CDK.AWS.Neptune.Alpha;",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"translations": {
|
|
49
49
|
"python": {
|
|
50
50
|
"source": "cluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE\n)",
|
|
51
|
-
"version": "
|
|
51
|
+
"version": "2"
|
|
52
52
|
},
|
|
53
53
|
"csharp": {
|
|
54
54
|
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE\n});",
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"281": 1,
|
|
96
96
|
"282": 1
|
|
97
97
|
},
|
|
98
|
-
"fqnsFingerprint": "
|
|
98
|
+
"fqnsFingerprint": "072125e588547f8ae8f299b5966ee08289072283f3eb788604217b7a9c2efcb5"
|
|
99
99
|
},
|
|
100
100
|
"953c2428df37057ec1a6bd84519912404177f69e256af1b480542f211c7de999": {
|
|
101
101
|
"translations": {
|
|
102
102
|
"python": {
|
|
103
103
|
"source": "cluster.connections.allow_default_port_from_any_ipv4(\"Open to the world\")",
|
|
104
|
-
"version": "
|
|
104
|
+
"version": "2"
|
|
105
105
|
},
|
|
106
106
|
"csharp": {
|
|
107
107
|
"source": "cluster.Connections.AllowDefaultPortFromAnyIpv4(\"Open to the world\");",
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
"196": 1,
|
|
142
142
|
"226": 1
|
|
143
143
|
},
|
|
144
|
-
"fqnsFingerprint": "
|
|
144
|
+
"fqnsFingerprint": "eee4594377480218200c07f93a9b5e96a730ee3896f27ea2fe19c8f726ea10fe"
|
|
145
145
|
},
|
|
146
146
|
"ed8c6b463c666c0bbf894f52002ec2d77ba24c864bccf03a81468b3fae25f833": {
|
|
147
147
|
"translations": {
|
|
148
148
|
"python": {
|
|
149
149
|
"source": "write_address = cluster.cluster_endpoint.socket_address",
|
|
150
|
-
"version": "
|
|
150
|
+
"version": "2"
|
|
151
151
|
},
|
|
152
152
|
"csharp": {
|
|
153
153
|
"source": "string writeAddress = cluster.ClusterEndpoint.SocketAddress;",
|
|
@@ -187,13 +187,13 @@
|
|
|
187
187
|
"242": 1,
|
|
188
188
|
"243": 1
|
|
189
189
|
},
|
|
190
|
-
"fqnsFingerprint": "
|
|
190
|
+
"fqnsFingerprint": "5ae727d4d0123cb77d2a8fa9328a3f800b8495ae477543a416d51b7cd08df967"
|
|
191
191
|
},
|
|
192
192
|
"82b04fa3008df9bacd25bb31d6ff6ef55b796c541f1def3827e6016c267bd0a5": {
|
|
193
193
|
"translations": {
|
|
194
194
|
"python": {
|
|
195
195
|
"source": "cluster = neptune.DatabaseCluster(self, \"Cluster\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n iam_authentication=True\n)\nrole = iam.Role(self, \"DBRole\", assumed_by=iam.AccountPrincipal(self.account))\ncluster.grant_connect(role)",
|
|
196
|
-
"version": "
|
|
196
|
+
"version": "2"
|
|
197
197
|
},
|
|
198
198
|
"csharp": {
|
|
199
199
|
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Cluster\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n IamAuthentication = true\n});\nRole role = new Role(this, \"DBRole\", new RoleProps { AssumedBy = new AccountPrincipal(Account) });\ncluster.GrantConnect(role);",
|
|
@@ -250,13 +250,13 @@
|
|
|
250
250
|
"281": 3,
|
|
251
251
|
"282": 1
|
|
252
252
|
},
|
|
253
|
-
"fqnsFingerprint": "
|
|
253
|
+
"fqnsFingerprint": "ccbeac09f7dc686f42417000553b20bca8535e147881b8daca3737d7023f6a67"
|
|
254
254
|
},
|
|
255
255
|
"8f0c7a464e84fc443c9bd391c10fdd3cc84964c1bb440ddc75d9d6f1744bc99c": {
|
|
256
256
|
"translations": {
|
|
257
257
|
"python": {
|
|
258
258
|
"source": "cluster_params = neptune.ClusterParameterGroup(self, \"ClusterParams\",\n description=\"Cluster parameter group\",\n parameters={\n \"neptune_enable_audit_log\": \"1\"\n }\n)\n\ndb_params = neptune.ParameterGroup(self, \"DbParams\",\n description=\"Db parameter group\",\n parameters={\n \"neptune_query_timeout\": \"120000\"\n }\n)\n\ncluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n cluster_parameter_group=cluster_params,\n parameter_group=db_params\n)",
|
|
259
|
-
"version": "
|
|
259
|
+
"version": "2"
|
|
260
260
|
},
|
|
261
261
|
"csharp": {
|
|
262
262
|
"source": "ClusterParameterGroup clusterParams = new ClusterParameterGroup(this, \"ClusterParams\", new ClusterParameterGroupProps {\n Description = \"Cluster parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_enable_audit_log\", \"1\" }\n }\n});\n\nParameterGroup dbParams = new ParameterGroup(this, \"DbParams\", new ParameterGroupProps {\n Description = \"Db parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_query_timeout\", \"120000\" }\n }\n});\n\nDatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n ClusterParameterGroup = clusterParams,\n ParameterGroup = dbParams\n});",
|
|
@@ -309,13 +309,13 @@
|
|
|
309
309
|
"281": 9,
|
|
310
310
|
"282": 1
|
|
311
311
|
},
|
|
312
|
-
"fqnsFingerprint": "
|
|
312
|
+
"fqnsFingerprint": "1381c1447a630bd196d2fca338a82dde9b05f107e49447a7ab5a4b239ee1492c"
|
|
313
313
|
},
|
|
314
314
|
"cbd243747cc4c09ea3a434ee7fead88ec74cb6d39358fb22e5ab0e20118a0d7b": {
|
|
315
315
|
"translations": {
|
|
316
316
|
"python": {
|
|
317
317
|
"source": "cluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n instances=2\n)",
|
|
318
|
-
"version": "
|
|
318
|
+
"version": "2"
|
|
319
319
|
},
|
|
320
320
|
"csharp": {
|
|
321
321
|
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n Instances = 2\n});",
|
|
@@ -363,13 +363,13 @@
|
|
|
363
363
|
"281": 2,
|
|
364
364
|
"282": 1
|
|
365
365
|
},
|
|
366
|
-
"fqnsFingerprint": "
|
|
366
|
+
"fqnsFingerprint": "072125e588547f8ae8f299b5966ee08289072283f3eb788604217b7a9c2efcb5"
|
|
367
367
|
},
|
|
368
368
|
"baa95a460cd6c6db838ce41a5152b1f88a78f4296c0c9fd7ee97621f9be3df80": {
|
|
369
369
|
"translations": {
|
|
370
370
|
"python": {
|
|
371
371
|
"source": "replica1 = neptune.DatabaseInstance(self, \"Instance\",\n cluster=cluster,\n instance_type=neptune.InstanceType.R5_LARGE\n)",
|
|
372
|
-
"version": "
|
|
372
|
+
"version": "2"
|
|
373
373
|
},
|
|
374
374
|
"csharp": {
|
|
375
375
|
"source": "DatabaseInstance replica1 = new DatabaseInstance(this, \"Instance\", new DatabaseInstanceProps {\n Cluster = cluster,\n InstanceType = InstanceType.R5_LARGE\n});",
|
|
@@ -417,13 +417,63 @@
|
|
|
417
417
|
"281": 1,
|
|
418
418
|
"282": 1
|
|
419
419
|
},
|
|
420
|
-
"fqnsFingerprint": "
|
|
420
|
+
"fqnsFingerprint": "6f43e9d4b2508a06c4d65009794b69e533120f574501a8d3acbfc6cc00e6de34"
|
|
421
|
+
},
|
|
422
|
+
"00e930d0d382ebb4f6863164f6decbcaefec88a4c77236deea1835f21d5d2503": {
|
|
423
|
+
"translations": {
|
|
424
|
+
"python": {
|
|
425
|
+
"source": "neptune.DatabaseCluster(stack, \"Cluster\",\n vpc=vpc,\n instance_type=InstanceType.R5_LARGE,\n auto_minor_version_upgrade=True\n)",
|
|
426
|
+
"version": "2"
|
|
427
|
+
},
|
|
428
|
+
"csharp": {
|
|
429
|
+
"source": "new DatabaseCluster(stack, \"Cluster\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n AutoMinorVersionUpgrade = true\n});",
|
|
430
|
+
"version": "1"
|
|
431
|
+
},
|
|
432
|
+
"java": {
|
|
433
|
+
"source": "DatabaseCluster.Builder.create(stack, \"Cluster\")\n .vpc(vpc)\n .instanceType(InstanceType.getR5_LARGE())\n .autoMinorVersionUpgrade(true)\n .build();",
|
|
434
|
+
"version": "1"
|
|
435
|
+
},
|
|
436
|
+
"$": {
|
|
437
|
+
"source": "new neptune.DatabaseCluster(stack, 'Cluster', {\n vpc,\n instanceType: InstanceType.R5_LARGE,\n autoMinorVersionUpgrade: true\n });",
|
|
438
|
+
"version": "0"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"location": {
|
|
442
|
+
"api": {
|
|
443
|
+
"api": "moduleReadme",
|
|
444
|
+
"moduleFqn": "@aws-cdk/aws-neptune-alpha"
|
|
445
|
+
},
|
|
446
|
+
"field": {
|
|
447
|
+
"field": "markdown",
|
|
448
|
+
"line": 129
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"didCompile": false,
|
|
452
|
+
"fqnsReferenced": [
|
|
453
|
+
"@aws-cdk/aws-neptune-alpha.DatabaseCluster",
|
|
454
|
+
"@aws-cdk/aws-neptune-alpha.DatabaseClusterProps",
|
|
455
|
+
"@aws-cdk/aws-neptune-alpha.InstanceType",
|
|
456
|
+
"aws-cdk-lib.aws_ec2.IVpc"
|
|
457
|
+
],
|
|
458
|
+
"fullSource": "import { Duration, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as iam from 'aws-cdk-lib/aws-iam';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nnew neptune.DatabaseCluster(stack, 'Cluster', {\n vpc,\n instanceType: InstanceType.R5_LARGE,\n autoMinorVersionUpgrade: true\n });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
459
|
+
"syntaxKindCounter": {
|
|
460
|
+
"10": 1,
|
|
461
|
+
"75": 8,
|
|
462
|
+
"106": 1,
|
|
463
|
+
"193": 1,
|
|
464
|
+
"194": 2,
|
|
465
|
+
"197": 1,
|
|
466
|
+
"226": 1,
|
|
467
|
+
"281": 2,
|
|
468
|
+
"282": 1
|
|
469
|
+
},
|
|
470
|
+
"fqnsFingerprint": "412ff7873e769f59e97d91b94cfd8cd06279275d03d044c1634abce1ea43a98e"
|
|
421
471
|
},
|
|
422
472
|
"d445e02b276ff833deadfee2a2d2cde6050b177c63dea8619191a5ae8cfa217b": {
|
|
423
473
|
"translations": {
|
|
424
474
|
"python": {
|
|
425
475
|
"source": "cluster_params = neptune.ClusterParameterGroup(self, \"ClusterParams\",\n description=\"Cluster parameter group\",\n parameters={\n \"neptune_enable_audit_log\": \"1\"\n }\n)\n\ndb_params = neptune.ParameterGroup(self, \"DbParams\",\n description=\"Db parameter group\",\n parameters={\n \"neptune_query_timeout\": \"120000\"\n }\n)\n\ncluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n cluster_parameter_group=cluster_params,\n parameter_group=db_params\n)",
|
|
426
|
-
"version": "
|
|
476
|
+
"version": "2"
|
|
427
477
|
},
|
|
428
478
|
"csharp": {
|
|
429
479
|
"source": "ClusterParameterGroup clusterParams = new ClusterParameterGroup(this, \"ClusterParams\", new ClusterParameterGroupProps {\n Description = \"Cluster parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_enable_audit_log\", \"1\" }\n }\n});\n\nParameterGroup dbParams = new ParameterGroup(this, \"DbParams\", new ParameterGroupProps {\n Description = \"Db parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_query_timeout\", \"120000\" }\n }\n});\n\nDatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n ClusterParameterGroup = clusterParams,\n ParameterGroup = dbParams\n});",
|
|
@@ -475,13 +525,13 @@
|
|
|
475
525
|
"281": 9,
|
|
476
526
|
"282": 1
|
|
477
527
|
},
|
|
478
|
-
"fqnsFingerprint": "
|
|
528
|
+
"fqnsFingerprint": "1381c1447a630bd196d2fca338a82dde9b05f107e49447a7ab5a4b239ee1492c"
|
|
479
529
|
},
|
|
480
530
|
"4ca592a02fcf3c41d969dfa88a6801e17e3889987c25cd72ba3e27270ca3b044": {
|
|
481
531
|
"translations": {
|
|
482
532
|
"python": {
|
|
483
533
|
"source": "cluster_params = neptune.ClusterParameterGroup(self, \"ClusterParams\",\n description=\"Cluster parameter group\",\n parameters={\n \"neptune_enable_audit_log\": \"1\"\n }\n)\n\ndb_params = neptune.ParameterGroup(self, \"DbParams\",\n description=\"Db parameter group\",\n parameters={\n \"neptune_query_timeout\": \"120000\"\n }\n)\n\ncluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n cluster_parameter_group=cluster_params,\n parameter_group=db_params\n)",
|
|
484
|
-
"version": "
|
|
534
|
+
"version": "2"
|
|
485
535
|
},
|
|
486
536
|
"csharp": {
|
|
487
537
|
"source": "ClusterParameterGroup clusterParams = new ClusterParameterGroup(this, \"ClusterParams\", new ClusterParameterGroupProps {\n Description = \"Cluster parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_enable_audit_log\", \"1\" }\n }\n});\n\nParameterGroup dbParams = new ParameterGroup(this, \"DbParams\", new ParameterGroupProps {\n Description = \"Db parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_query_timeout\", \"120000\" }\n }\n});\n\nDatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n ClusterParameterGroup = clusterParams,\n ParameterGroup = dbParams\n});",
|
|
@@ -533,24 +583,24 @@
|
|
|
533
583
|
"281": 9,
|
|
534
584
|
"282": 1
|
|
535
585
|
},
|
|
536
|
-
"fqnsFingerprint": "
|
|
586
|
+
"fqnsFingerprint": "1381c1447a630bd196d2fca338a82dde9b05f107e49447a7ab5a4b239ee1492c"
|
|
537
587
|
},
|
|
538
|
-
"
|
|
588
|
+
"3c6011f2f8a2fd23d9779ed0f6be9b184b7aaeb9294558e5825e1212c5e742f2": {
|
|
539
589
|
"translations": {
|
|
540
590
|
"python": {
|
|
541
|
-
"source": "cluster = neptune.DatabaseCluster(self, \"
|
|
542
|
-
"version": "
|
|
591
|
+
"source": "cluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n instances=2\n)",
|
|
592
|
+
"version": "2"
|
|
543
593
|
},
|
|
544
594
|
"csharp": {
|
|
545
|
-
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"
|
|
595
|
+
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n Instances = 2\n});",
|
|
546
596
|
"version": "1"
|
|
547
597
|
},
|
|
548
598
|
"java": {
|
|
549
|
-
"source": "DatabaseCluster cluster = DatabaseCluster.Builder.create(this, \"
|
|
599
|
+
"source": "DatabaseCluster cluster = DatabaseCluster.Builder.create(this, \"Database\")\n .vpc(vpc)\n .instanceType(InstanceType.R5_LARGE)\n .instances(2)\n .build();",
|
|
550
600
|
"version": "1"
|
|
551
601
|
},
|
|
552
602
|
"$": {
|
|
553
|
-
"source": "const cluster = new neptune.DatabaseCluster(this, '
|
|
603
|
+
"source": "const cluster = new neptune.DatabaseCluster(this, 'Database', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n instances: 2\n});",
|
|
554
604
|
"version": "0"
|
|
555
605
|
}
|
|
556
606
|
},
|
|
@@ -566,42 +616,33 @@
|
|
|
566
616
|
"didCompile": true,
|
|
567
617
|
"fqnsReferenced": [
|
|
568
618
|
"@aws-cdk/aws-neptune-alpha.DatabaseCluster",
|
|
569
|
-
"@aws-cdk/aws-neptune-alpha.DatabaseClusterBase#grantConnect",
|
|
570
619
|
"@aws-cdk/aws-neptune-alpha.DatabaseClusterProps",
|
|
571
620
|
"@aws-cdk/aws-neptune-alpha.InstanceType",
|
|
572
621
|
"@aws-cdk/aws-neptune-alpha.InstanceType#R5_LARGE",
|
|
573
|
-
"aws-cdk-lib.
|
|
574
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
575
|
-
"aws-cdk-lib.aws_iam.AccountPrincipal",
|
|
576
|
-
"aws-cdk-lib.aws_iam.IGrantable",
|
|
577
|
-
"aws-cdk-lib.aws_iam.IPrincipal",
|
|
578
|
-
"aws-cdk-lib.aws_iam.Role",
|
|
579
|
-
"aws-cdk-lib.aws_iam.RoleProps"
|
|
622
|
+
"aws-cdk-lib.aws_ec2.IVpc"
|
|
580
623
|
],
|
|
581
|
-
"fullSource": "import { Duration, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as iam from 'aws-cdk-lib/aws-iam';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = new neptune.DatabaseCluster(this, '
|
|
624
|
+
"fullSource": "import { Duration, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as iam from 'aws-cdk-lib/aws-iam';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = new neptune.DatabaseCluster(this, 'Database', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n instances: 2\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
582
625
|
"syntaxKindCounter": {
|
|
583
|
-
"
|
|
584
|
-
"
|
|
585
|
-
"
|
|
586
|
-
"
|
|
587
|
-
"193":
|
|
588
|
-
"194":
|
|
589
|
-
"
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
"243": 2,
|
|
595
|
-
"281": 3,
|
|
626
|
+
"8": 1,
|
|
627
|
+
"10": 1,
|
|
628
|
+
"75": 9,
|
|
629
|
+
"104": 1,
|
|
630
|
+
"193": 1,
|
|
631
|
+
"194": 3,
|
|
632
|
+
"197": 1,
|
|
633
|
+
"225": 1,
|
|
634
|
+
"242": 1,
|
|
635
|
+
"243": 1,
|
|
636
|
+
"281": 2,
|
|
596
637
|
"282": 1
|
|
597
638
|
},
|
|
598
|
-
"fqnsFingerprint": "
|
|
639
|
+
"fqnsFingerprint": "072125e588547f8ae8f299b5966ee08289072283f3eb788604217b7a9c2efcb5"
|
|
599
640
|
},
|
|
600
641
|
"ca78c2f98112db812559f7f41e5124e808711be8432f88d86a2d59d55da578fd": {
|
|
601
642
|
"translations": {
|
|
602
643
|
"python": {
|
|
603
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nfrom aws_cdk import aws_ec2 as ec2\n\n# security_group
|
|
604
|
-
"version": "
|
|
644
|
+
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nfrom aws_cdk import aws_ec2 as ec2\n\n# security_group: ec2.SecurityGroup\n\ndatabase_cluster_attributes = neptune_alpha.DatabaseClusterAttributes(\n cluster_endpoint_address=\"clusterEndpointAddress\",\n cluster_identifier=\"clusterIdentifier\",\n cluster_resource_identifier=\"clusterResourceIdentifier\",\n port=123,\n reader_endpoint_address=\"readerEndpointAddress\",\n security_group=security_group\n)",
|
|
645
|
+
"version": "2"
|
|
605
646
|
},
|
|
606
647
|
"csharp": {
|
|
607
648
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nSecurityGroup securityGroup;\n\nDatabaseClusterAttributes databaseClusterAttributes = new DatabaseClusterAttributes {\n ClusterEndpointAddress = \"clusterEndpointAddress\",\n ClusterIdentifier = \"clusterIdentifier\",\n ClusterResourceIdentifier = \"clusterResourceIdentifier\",\n Port = 123,\n ReaderEndpointAddress = \"readerEndpointAddress\",\n SecurityGroup = securityGroup\n};",
|
|
@@ -650,13 +691,13 @@
|
|
|
650
691
|
"281": 6,
|
|
651
692
|
"290": 1
|
|
652
693
|
},
|
|
653
|
-
"fqnsFingerprint": "
|
|
694
|
+
"fqnsFingerprint": "1cc89c04f3553d1e2e11359de21732f75abc66d2e54be2bc0529d1647eec688b"
|
|
654
695
|
},
|
|
655
696
|
"5feaab84cd035d4d56003d0f61d965d14aea7831538483a609a5337884f0874d": {
|
|
656
697
|
"translations": {
|
|
657
698
|
"python": {
|
|
658
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nfrom aws_cdk import aws_ec2 as ec2\n\n# security_group
|
|
659
|
-
"version": "
|
|
699
|
+
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nfrom aws_cdk import aws_ec2 as ec2\n\n# security_group: ec2.SecurityGroup\n\ndatabase_cluster_base = neptune_alpha.DatabaseClusterBase.from_database_cluster_attributes(self, \"MyDatabaseClusterBase\",\n cluster_endpoint_address=\"clusterEndpointAddress\",\n cluster_identifier=\"clusterIdentifier\",\n cluster_resource_identifier=\"clusterResourceIdentifier\",\n port=123,\n reader_endpoint_address=\"readerEndpointAddress\",\n security_group=security_group\n)",
|
|
700
|
+
"version": "2"
|
|
660
701
|
},
|
|
661
702
|
"csharp": {
|
|
662
703
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\nusing Amazon.CDK.AWS.EC2;\n\nSecurityGroup securityGroup;\n\nIDatabaseCluster databaseClusterBase = DatabaseClusterBase.FromDatabaseClusterAttributes(this, \"MyDatabaseClusterBase\", new DatabaseClusterAttributes {\n ClusterEndpointAddress = \"clusterEndpointAddress\",\n ClusterIdentifier = \"clusterIdentifier\",\n ClusterResourceIdentifier = \"clusterResourceIdentifier\",\n Port = 123,\n ReaderEndpointAddress = \"readerEndpointAddress\",\n SecurityGroup = securityGroup\n});",
|
|
@@ -711,24 +752,24 @@
|
|
|
711
752
|
"281": 6,
|
|
712
753
|
"290": 1
|
|
713
754
|
},
|
|
714
|
-
"fqnsFingerprint": "
|
|
755
|
+
"fqnsFingerprint": "872283f8f2b21abf2e08362d922584d853acd47dae4d324615d3b96f7923b02a"
|
|
715
756
|
},
|
|
716
|
-
"
|
|
757
|
+
"11e2c14f87ffad33ab56d0bb7bba06ac4a24e9dfa0521802b3337349fce30cd5": {
|
|
717
758
|
"translations": {
|
|
718
759
|
"python": {
|
|
719
|
-
"source": "cluster = neptune.DatabaseCluster(self, \"
|
|
720
|
-
"version": "
|
|
760
|
+
"source": "cluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n instances=2\n)",
|
|
761
|
+
"version": "2"
|
|
721
762
|
},
|
|
722
763
|
"csharp": {
|
|
723
|
-
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"
|
|
764
|
+
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n Instances = 2\n});",
|
|
724
765
|
"version": "1"
|
|
725
766
|
},
|
|
726
767
|
"java": {
|
|
727
|
-
"source": "DatabaseCluster cluster = DatabaseCluster.Builder.create(this, \"
|
|
768
|
+
"source": "DatabaseCluster cluster = DatabaseCluster.Builder.create(this, \"Database\")\n .vpc(vpc)\n .instanceType(InstanceType.R5_LARGE)\n .instances(2)\n .build();",
|
|
728
769
|
"version": "1"
|
|
729
770
|
},
|
|
730
771
|
"$": {
|
|
731
|
-
"source": "const cluster = new neptune.DatabaseCluster(this, '
|
|
772
|
+
"source": "const cluster = new neptune.DatabaseCluster(this, 'Database', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n instances: 2\n});",
|
|
732
773
|
"version": "0"
|
|
733
774
|
}
|
|
734
775
|
},
|
|
@@ -744,42 +785,33 @@
|
|
|
744
785
|
"didCompile": true,
|
|
745
786
|
"fqnsReferenced": [
|
|
746
787
|
"@aws-cdk/aws-neptune-alpha.DatabaseCluster",
|
|
747
|
-
"@aws-cdk/aws-neptune-alpha.DatabaseClusterBase#grantConnect",
|
|
748
788
|
"@aws-cdk/aws-neptune-alpha.DatabaseClusterProps",
|
|
749
789
|
"@aws-cdk/aws-neptune-alpha.InstanceType",
|
|
750
790
|
"@aws-cdk/aws-neptune-alpha.InstanceType#R5_LARGE",
|
|
751
|
-
"aws-cdk-lib.
|
|
752
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
753
|
-
"aws-cdk-lib.aws_iam.AccountPrincipal",
|
|
754
|
-
"aws-cdk-lib.aws_iam.IGrantable",
|
|
755
|
-
"aws-cdk-lib.aws_iam.IPrincipal",
|
|
756
|
-
"aws-cdk-lib.aws_iam.Role",
|
|
757
|
-
"aws-cdk-lib.aws_iam.RoleProps"
|
|
791
|
+
"aws-cdk-lib.aws_ec2.IVpc"
|
|
758
792
|
],
|
|
759
|
-
"fullSource": "import { Duration, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as iam from 'aws-cdk-lib/aws-iam';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = new neptune.DatabaseCluster(this, '
|
|
793
|
+
"fullSource": "import { Duration, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as iam from 'aws-cdk-lib/aws-iam';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = new neptune.DatabaseCluster(this, 'Database', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n instances: 2\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
760
794
|
"syntaxKindCounter": {
|
|
761
|
-
"
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
"193":
|
|
766
|
-
"194":
|
|
767
|
-
"
|
|
768
|
-
"
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
"
|
|
772
|
-
"243": 2,
|
|
773
|
-
"281": 3,
|
|
795
|
+
"8": 1,
|
|
796
|
+
"10": 1,
|
|
797
|
+
"75": 9,
|
|
798
|
+
"104": 1,
|
|
799
|
+
"193": 1,
|
|
800
|
+
"194": 3,
|
|
801
|
+
"197": 1,
|
|
802
|
+
"225": 1,
|
|
803
|
+
"242": 1,
|
|
804
|
+
"243": 1,
|
|
805
|
+
"281": 2,
|
|
774
806
|
"282": 1
|
|
775
807
|
},
|
|
776
|
-
"fqnsFingerprint": "
|
|
808
|
+
"fqnsFingerprint": "072125e588547f8ae8f299b5966ee08289072283f3eb788604217b7a9c2efcb5"
|
|
777
809
|
},
|
|
778
810
|
"1bd4ac7b526f949e626d819fa63c83ffa10c281e103f667782ea8b4558db9e50": {
|
|
779
811
|
"translations": {
|
|
780
812
|
"python": {
|
|
781
813
|
"source": "replica1 = neptune.DatabaseInstance(self, \"Instance\",\n cluster=cluster,\n instance_type=neptune.InstanceType.R5_LARGE\n)",
|
|
782
|
-
"version": "
|
|
814
|
+
"version": "2"
|
|
783
815
|
},
|
|
784
816
|
"csharp": {
|
|
785
817
|
"source": "DatabaseInstance replica1 = new DatabaseInstance(this, \"Instance\", new DatabaseInstanceProps {\n Cluster = cluster,\n InstanceType = InstanceType.R5_LARGE\n});",
|
|
@@ -826,13 +858,13 @@
|
|
|
826
858
|
"281": 1,
|
|
827
859
|
"282": 1
|
|
828
860
|
},
|
|
829
|
-
"fqnsFingerprint": "
|
|
861
|
+
"fqnsFingerprint": "6f43e9d4b2508a06c4d65009794b69e533120f574501a8d3acbfc6cc00e6de34"
|
|
830
862
|
},
|
|
831
863
|
"1c29ef9ee276ff0244af33921a49b62fe7a65603798209a19f034543b43dc146": {
|
|
832
864
|
"translations": {
|
|
833
865
|
"python": {
|
|
834
866
|
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\n\ndatabase_instance_attributes = neptune_alpha.DatabaseInstanceAttributes(\n instance_endpoint_address=\"instanceEndpointAddress\",\n instance_identifier=\"instanceIdentifier\",\n port=123\n)",
|
|
835
|
-
"version": "
|
|
867
|
+
"version": "2"
|
|
836
868
|
},
|
|
837
869
|
"csharp": {
|
|
838
870
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\n\nDatabaseInstanceAttributes databaseInstanceAttributes = new DatabaseInstanceAttributes {\n InstanceEndpointAddress = \"instanceEndpointAddress\",\n InstanceIdentifier = \"instanceIdentifier\",\n Port = 123\n};",
|
|
@@ -883,7 +915,7 @@
|
|
|
883
915
|
"translations": {
|
|
884
916
|
"python": {
|
|
885
917
|
"source": "replica1 = neptune.DatabaseInstance(self, \"Instance\",\n cluster=cluster,\n instance_type=neptune.InstanceType.R5_LARGE\n)",
|
|
886
|
-
"version": "
|
|
918
|
+
"version": "2"
|
|
887
919
|
},
|
|
888
920
|
"csharp": {
|
|
889
921
|
"source": "DatabaseInstance replica1 = new DatabaseInstance(this, \"Instance\", new DatabaseInstanceProps {\n Cluster = cluster,\n InstanceType = InstanceType.R5_LARGE\n});",
|
|
@@ -930,13 +962,13 @@
|
|
|
930
962
|
"281": 1,
|
|
931
963
|
"282": 1
|
|
932
964
|
},
|
|
933
|
-
"fqnsFingerprint": "
|
|
965
|
+
"fqnsFingerprint": "6f43e9d4b2508a06c4d65009794b69e533120f574501a8d3acbfc6cc00e6de34"
|
|
934
966
|
},
|
|
935
967
|
"de16aca82c633caedaf5c5814e46eec3e18bdb3f103ae63e3a7493c2e0aabc11": {
|
|
936
968
|
"translations": {
|
|
937
969
|
"python": {
|
|
938
970
|
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\n\nendpoint = neptune_alpha.Endpoint(\"address\", 123)",
|
|
939
|
-
"version": "
|
|
971
|
+
"version": "2"
|
|
940
972
|
},
|
|
941
973
|
"csharp": {
|
|
942
974
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\n\nEndpoint endpoint = new Endpoint(\"address\", 123);",
|
|
@@ -985,7 +1017,7 @@
|
|
|
985
1017
|
"translations": {
|
|
986
1018
|
"python": {
|
|
987
1019
|
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\n\nengine_version = neptune_alpha.EngineVersion.V1_0_1_0",
|
|
988
|
-
"version": "
|
|
1020
|
+
"version": "2"
|
|
989
1021
|
},
|
|
990
1022
|
"csharp": {
|
|
991
1023
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\n\nEngineVersion engineVersion = EngineVersion.V1_0_1_0;",
|
|
@@ -1033,7 +1065,7 @@
|
|
|
1033
1065
|
"translations": {
|
|
1034
1066
|
"python": {
|
|
1035
1067
|
"source": "cluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n instances=2\n)",
|
|
1036
|
-
"version": "
|
|
1068
|
+
"version": "2"
|
|
1037
1069
|
},
|
|
1038
1070
|
"csharp": {
|
|
1039
1071
|
"source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n Instances = 2\n});",
|
|
@@ -1080,13 +1112,13 @@
|
|
|
1080
1112
|
"281": 2,
|
|
1081
1113
|
"282": 1
|
|
1082
1114
|
},
|
|
1083
|
-
"fqnsFingerprint": "
|
|
1115
|
+
"fqnsFingerprint": "072125e588547f8ae8f299b5966ee08289072283f3eb788604217b7a9c2efcb5"
|
|
1084
1116
|
},
|
|
1085
1117
|
"5c776cd031378ab0fb6c770f04df1d9ee61fb3b337084d899326158b5319f76f": {
|
|
1086
1118
|
"translations": {
|
|
1087
1119
|
"python": {
|
|
1088
1120
|
"source": "cluster_params = neptune.ClusterParameterGroup(self, \"ClusterParams\",\n description=\"Cluster parameter group\",\n parameters={\n \"neptune_enable_audit_log\": \"1\"\n }\n)\n\ndb_params = neptune.ParameterGroup(self, \"DbParams\",\n description=\"Db parameter group\",\n parameters={\n \"neptune_query_timeout\": \"120000\"\n }\n)\n\ncluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n cluster_parameter_group=cluster_params,\n parameter_group=db_params\n)",
|
|
1089
|
-
"version": "
|
|
1121
|
+
"version": "2"
|
|
1090
1122
|
},
|
|
1091
1123
|
"csharp": {
|
|
1092
1124
|
"source": "ClusterParameterGroup clusterParams = new ClusterParameterGroup(this, \"ClusterParams\", new ClusterParameterGroupProps {\n Description = \"Cluster parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_enable_audit_log\", \"1\" }\n }\n});\n\nParameterGroup dbParams = new ParameterGroup(this, \"DbParams\", new ParameterGroupProps {\n Description = \"Db parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_query_timeout\", \"120000\" }\n }\n});\n\nDatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n ClusterParameterGroup = clusterParams,\n ParameterGroup = dbParams\n});",
|
|
@@ -1138,13 +1170,13 @@
|
|
|
1138
1170
|
"281": 9,
|
|
1139
1171
|
"282": 1
|
|
1140
1172
|
},
|
|
1141
|
-
"fqnsFingerprint": "
|
|
1173
|
+
"fqnsFingerprint": "1381c1447a630bd196d2fca338a82dde9b05f107e49447a7ab5a4b239ee1492c"
|
|
1142
1174
|
},
|
|
1143
1175
|
"78c0fe1a549c3d56be1e3337bee688b9acde52c92c3b499d058f819c6b6eda0e": {
|
|
1144
1176
|
"translations": {
|
|
1145
1177
|
"python": {
|
|
1146
1178
|
"source": "cluster_params = neptune.ClusterParameterGroup(self, \"ClusterParams\",\n description=\"Cluster parameter group\",\n parameters={\n \"neptune_enable_audit_log\": \"1\"\n }\n)\n\ndb_params = neptune.ParameterGroup(self, \"DbParams\",\n description=\"Db parameter group\",\n parameters={\n \"neptune_query_timeout\": \"120000\"\n }\n)\n\ncluster = neptune.DatabaseCluster(self, \"Database\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n cluster_parameter_group=cluster_params,\n parameter_group=db_params\n)",
|
|
1147
|
-
"version": "
|
|
1179
|
+
"version": "2"
|
|
1148
1180
|
},
|
|
1149
1181
|
"csharp": {
|
|
1150
1182
|
"source": "ClusterParameterGroup clusterParams = new ClusterParameterGroup(this, \"ClusterParams\", new ClusterParameterGroupProps {\n Description = \"Cluster parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_enable_audit_log\", \"1\" }\n }\n});\n\nParameterGroup dbParams = new ParameterGroup(this, \"DbParams\", new ParameterGroupProps {\n Description = \"Db parameter group\",\n Parameters = new Dictionary<string, string> {\n { \"neptune_query_timeout\", \"120000\" }\n }\n});\n\nDatabaseCluster cluster = new DatabaseCluster(this, \"Database\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n ClusterParameterGroup = clusterParams,\n ParameterGroup = dbParams\n});",
|
|
@@ -1196,13 +1228,13 @@
|
|
|
1196
1228
|
"281": 9,
|
|
1197
1229
|
"282": 1
|
|
1198
1230
|
},
|
|
1199
|
-
"fqnsFingerprint": "
|
|
1231
|
+
"fqnsFingerprint": "1381c1447a630bd196d2fca338a82dde9b05f107e49447a7ab5a4b239ee1492c"
|
|
1200
1232
|
},
|
|
1201
1233
|
"1b234381e7b7a935aaf7b780eff4d51fdbf11037524c62776b1d861c51e87077": {
|
|
1202
1234
|
"translations": {
|
|
1203
1235
|
"python": {
|
|
1204
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet
|
|
1205
|
-
"version": "
|
|
1236
|
+
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet: ec2.Subnet\n# subnet_filter: ec2.SubnetFilter\n# vpc: ec2.Vpc\n\nsubnet_group = neptune_alpha.SubnetGroup(self, \"MySubnetGroup\",\n vpc=vpc,\n\n # the properties below are optional\n description=\"description\",\n removal_policy=cdk.RemovalPolicy.DESTROY,\n subnet_group_name=\"subnetGroupName\",\n vpc_subnets=ec2.SubnetSelection(\n availability_zones=[\"availabilityZones\"],\n one_per_az=False,\n subnet_filters=[subnet_filter],\n subnet_group_name=\"subnetGroupName\",\n subnets=[subnet],\n subnet_type=ec2.SubnetType.PRIVATE_ISOLATED\n )\n)",
|
|
1237
|
+
"version": "2"
|
|
1206
1238
|
},
|
|
1207
1239
|
"csharp": {
|
|
1208
1240
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nSubnetGroup subnetGroup = new SubnetGroup(this, \"MySubnetGroup\", new SubnetGroupProps {\n Vpc = vpc,\n\n // the properties below are optional\n Description = \"description\",\n RemovalPolicy = RemovalPolicy.DESTROY,\n SubnetGroupName = \"subnetGroupName\",\n VpcSubnets = new SubnetSelection {\n AvailabilityZones = new [] { \"availabilityZones\" },\n OnePerAz = false,\n SubnetFilters = new [] { subnetFilter },\n SubnetGroupName = \"subnetGroupName\",\n Subnets = new [] { subnet },\n SubnetType = SubnetType.PRIVATE_ISOLATED\n }\n});",
|
|
@@ -1261,13 +1293,13 @@
|
|
|
1261
1293
|
"281": 11,
|
|
1262
1294
|
"290": 1
|
|
1263
1295
|
},
|
|
1264
|
-
"fqnsFingerprint": "
|
|
1296
|
+
"fqnsFingerprint": "6f46263f7308e425f6bd4c941f742da14d49cfe4174f3212dcd07b48c1aecd17"
|
|
1265
1297
|
},
|
|
1266
1298
|
"66acd64033a59a14c547f8f7b169f31adbac7d4ff584afa3879fbf141004a793": {
|
|
1267
1299
|
"translations": {
|
|
1268
1300
|
"python": {
|
|
1269
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet
|
|
1270
|
-
"version": "
|
|
1301
|
+
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_neptune_alpha as neptune_alpha\nimport aws_cdk as cdk\nfrom aws_cdk import aws_ec2 as ec2\n\n# subnet: ec2.Subnet\n# subnet_filter: ec2.SubnetFilter\n# vpc: ec2.Vpc\n\nsubnet_group_props = neptune_alpha.SubnetGroupProps(\n vpc=vpc,\n\n # the properties below are optional\n description=\"description\",\n removal_policy=cdk.RemovalPolicy.DESTROY,\n subnet_group_name=\"subnetGroupName\",\n vpc_subnets=ec2.SubnetSelection(\n availability_zones=[\"availabilityZones\"],\n one_per_az=False,\n subnet_filters=[subnet_filter],\n subnet_group_name=\"subnetGroupName\",\n subnets=[subnet],\n subnet_type=ec2.SubnetType.PRIVATE_ISOLATED\n )\n)",
|
|
1302
|
+
"version": "2"
|
|
1271
1303
|
},
|
|
1272
1304
|
"csharp": {
|
|
1273
1305
|
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Neptune.Alpha;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\n\nSubnet subnet;\nSubnetFilter subnetFilter;\nVpc vpc;\n\nSubnetGroupProps subnetGroupProps = new SubnetGroupProps {\n Vpc = vpc,\n\n // the properties below are optional\n Description = \"description\",\n RemovalPolicy = RemovalPolicy.DESTROY,\n SubnetGroupName = \"subnetGroupName\",\n VpcSubnets = new SubnetSelection {\n AvailabilityZones = new [] { \"availabilityZones\" },\n OnePerAz = false,\n SubnetFilters = new [] { subnetFilter },\n SubnetGroupName = \"subnetGroupName\",\n Subnets = new [] { subnet },\n SubnetType = SubnetType.PRIVATE_ISOLATED\n }\n};",
|
|
@@ -1323,7 +1355,7 @@
|
|
|
1323
1355
|
"281": 11,
|
|
1324
1356
|
"290": 1
|
|
1325
1357
|
},
|
|
1326
|
-
"fqnsFingerprint": "
|
|
1358
|
+
"fqnsFingerprint": "c1de9e7b72ec9a4a625fc240b44a2c00b96ce209fd03809b20fe4a3ebdfe3096"
|
|
1327
1359
|
}
|
|
1328
1360
|
}
|
|
1329
1361
|
}
|
package/.warnings.jsii.js
CHANGED
|
@@ -20,10 +20,10 @@ function _aws_cdk_aws_neptune_alpha_IDatabaseCluster(p) {
|
|
|
20
20
|
}
|
|
21
21
|
function _aws_cdk_aws_neptune_alpha_SubnetGroupProps(p) {
|
|
22
22
|
}
|
|
23
|
-
function _aws_cdk_aws_neptune_alpha_ClusterParameterGroup(p) {
|
|
24
|
-
}
|
|
25
23
|
function _aws_cdk_aws_neptune_alpha_ParameterGroup(p) {
|
|
26
24
|
}
|
|
25
|
+
function _aws_cdk_aws_neptune_alpha_ClusterParameterGroup(p) {
|
|
26
|
+
}
|
|
27
27
|
function _aws_cdk_aws_neptune_alpha_SubnetGroup(p) {
|
|
28
28
|
}
|
|
29
29
|
function _aws_cdk_aws_neptune_alpha_DatabaseInstanceProps(p) {
|
|
@@ -83,5 +83,5 @@ function print(name, deprecationMessage) {
|
|
|
83
83
|
const visitedObjects = new Set();
|
|
84
84
|
class DeprecationError extends Error {
|
|
85
85
|
}
|
|
86
|
-
module.exports = { print, _aws_cdk_aws_neptune_alpha_DatabaseInstanceAttributes, _aws_cdk_aws_neptune_alpha_Endpoint, _aws_cdk_aws_neptune_alpha_ClusterParameterGroupProps, _aws_cdk_aws_neptune_alpha_ParameterGroupProps, _aws_cdk_aws_neptune_alpha_IClusterParameterGroup, _aws_cdk_aws_neptune_alpha_IParameterGroup, _aws_cdk_aws_neptune_alpha_ISubnetGroup, _aws_cdk_aws_neptune_alpha_DatabaseClusterAttributes, _aws_cdk_aws_neptune_alpha_IDatabaseInstance, _aws_cdk_aws_neptune_alpha_IDatabaseCluster, _aws_cdk_aws_neptune_alpha_SubnetGroupProps,
|
|
86
|
+
module.exports = { print, _aws_cdk_aws_neptune_alpha_DatabaseInstanceAttributes, _aws_cdk_aws_neptune_alpha_Endpoint, _aws_cdk_aws_neptune_alpha_ClusterParameterGroupProps, _aws_cdk_aws_neptune_alpha_ParameterGroupProps, _aws_cdk_aws_neptune_alpha_IClusterParameterGroup, _aws_cdk_aws_neptune_alpha_IParameterGroup, _aws_cdk_aws_neptune_alpha_ISubnetGroup, _aws_cdk_aws_neptune_alpha_DatabaseClusterAttributes, _aws_cdk_aws_neptune_alpha_IDatabaseInstance, _aws_cdk_aws_neptune_alpha_IDatabaseCluster, _aws_cdk_aws_neptune_alpha_SubnetGroupProps, _aws_cdk_aws_neptune_alpha_ParameterGroup, _aws_cdk_aws_neptune_alpha_ClusterParameterGroup, _aws_cdk_aws_neptune_alpha_SubnetGroup, _aws_cdk_aws_neptune_alpha_DatabaseInstanceProps, _aws_cdk_aws_neptune_alpha_DatabaseInstance, _aws_cdk_aws_neptune_alpha_DatabaseClusterBase, _aws_cdk_aws_neptune_alpha_EngineVersion, _aws_cdk_aws_neptune_alpha_DatabaseCluster, _aws_cdk_aws_neptune_alpha_DatabaseClusterProps, _aws_cdk_aws_neptune_alpha_InstanceType };
|
|
87
87
|
module.exports.DeprecationError = DeprecationError;
|
package/README.md
CHANGED
|
@@ -119,3 +119,17 @@ const replica1 = new neptune.DatabaseInstance(this, 'Instance', {
|
|
|
119
119
|
instanceType: neptune.InstanceType.R5_LARGE
|
|
120
120
|
});
|
|
121
121
|
```
|
|
122
|
+
|
|
123
|
+
## Automatic minor version upgrades
|
|
124
|
+
|
|
125
|
+
By setting `autoMinorVersionUpgrade` to true, Neptune will automatically update
|
|
126
|
+
the engine of the entire cluster to the latest minor version after a stabilization
|
|
127
|
+
window of 2 to 3 weeks.
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
new neptune.DatabaseCluster(stack, 'Cluster', {
|
|
131
|
+
vpc,
|
|
132
|
+
instanceType: InstanceType.R5_LARGE,
|
|
133
|
+
autoMinorVersionUpgrade: true
|
|
134
|
+
});
|
|
135
|
+
```
|
package/lib/cluster.d.ts
CHANGED
|
@@ -252,6 +252,13 @@ export interface DatabaseClusterProps {
|
|
|
252
252
|
* @experimental
|
|
253
253
|
*/
|
|
254
254
|
readonly removalPolicy?: RemovalPolicy;
|
|
255
|
+
/**
|
|
256
|
+
* (experimental) If set to true, Neptune will automatically update the engine of the entire cluster to the latest minor version after a stabilization window of 2 to 3 weeks.
|
|
257
|
+
*
|
|
258
|
+
* @default - false
|
|
259
|
+
* @experimental
|
|
260
|
+
*/
|
|
261
|
+
readonly autoMinorVersionUpgrade?: boolean;
|
|
255
262
|
}
|
|
256
263
|
/**
|
|
257
264
|
* (experimental) Create a clustered database with a given number of instances.
|