@aws-cdk/aws-cloud9-alpha 2.6.0-alpha.0 → 2.10.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 CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.6.0",
11
+ "aws-cdk-lib": "^2.10.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -1185,6 +1185,19 @@
1185
1185
  }
1186
1186
  }
1187
1187
  },
1188
+ "aws-cdk-lib.aws_forecast": {
1189
+ "targets": {
1190
+ "dotnet": {
1191
+ "namespace": "Amazon.CDK.AWS.Forecast"
1192
+ },
1193
+ "java": {
1194
+ "package": "software.amazon.awscdk.services.forecast"
1195
+ },
1196
+ "python": {
1197
+ "module": "aws_cdk.aws_forecast"
1198
+ }
1199
+ }
1200
+ },
1188
1201
  "aws-cdk-lib.aws_frauddetector": {
1189
1202
  "targets": {
1190
1203
  "dotnet": {
@@ -1367,6 +1380,19 @@
1367
1380
  }
1368
1381
  }
1369
1382
  },
1383
+ "aws-cdk-lib.aws_inspectorv2": {
1384
+ "targets": {
1385
+ "dotnet": {
1386
+ "namespace": "Amazon.CDK.AWS.InspectorV2"
1387
+ },
1388
+ "java": {
1389
+ "package": "software.amazon.awscdk.services.inspectorv2"
1390
+ },
1391
+ "python": {
1392
+ "module": "aws_cdk.aws_inspectorv2"
1393
+ }
1394
+ }
1395
+ },
1370
1396
  "aws-cdk-lib.aws_iot": {
1371
1397
  "targets": {
1372
1398
  "dotnet": {
@@ -1536,6 +1562,19 @@
1536
1562
  }
1537
1563
  }
1538
1564
  },
1565
+ "aws-cdk-lib.aws_kinesisanalyticsv2": {
1566
+ "targets": {
1567
+ "dotnet": {
1568
+ "namespace": "Amazon.CDK.AWS.KinesisAnalyticsV2"
1569
+ },
1570
+ "java": {
1571
+ "package": "software.amazon.awscdk.services.kinesisanalyticsv2"
1572
+ },
1573
+ "python": {
1574
+ "module": "aws_cdk.aws_kinesisanalyticsv2"
1575
+ }
1576
+ }
1577
+ },
1539
1578
  "aws-cdk-lib.aws_kinesisfirehose": {
1540
1579
  "targets": {
1541
1580
  "dotnet": {
@@ -1549,6 +1588,19 @@
1549
1588
  }
1550
1589
  }
1551
1590
  },
1591
+ "aws-cdk-lib.aws_kinesisvideo": {
1592
+ "targets": {
1593
+ "dotnet": {
1594
+ "namespace": "Amazon.CDK.AWS.KinesisVideo"
1595
+ },
1596
+ "java": {
1597
+ "package": "software.amazon.awscdk.services.kinesisvideo"
1598
+ },
1599
+ "python": {
1600
+ "module": "aws_cdk.aws_kinesisvideo"
1601
+ }
1602
+ }
1603
+ },
1552
1604
  "aws-cdk-lib.aws_kms": {
1553
1605
  "targets": {
1554
1606
  "dotnet": {
@@ -2855,7 +2907,7 @@
2855
2907
  "stability": "experimental"
2856
2908
  },
2857
2909
  "homepage": "https://github.com/aws/aws-cdk",
2858
- "jsiiVersion": "1.50.0 (build d1830a4)",
2910
+ "jsiiVersion": "1.52.1 (build 5ccc8f6)",
2859
2911
  "keywords": [
2860
2912
  "aws",
2861
2913
  "cdk",
@@ -2868,12 +2920,15 @@
2868
2920
  "compiledWithDeprecationWarnings": true,
2869
2921
  "pacmak": {
2870
2922
  "hasDefaultInterfaces": true
2923
+ },
2924
+ "rosetta": {
2925
+ "strict": true
2871
2926
  }
2872
2927
  }
2873
2928
  },
2874
2929
  "name": "@aws-cdk/aws-cloud9-alpha",
2875
2930
  "readme": {
2876
- "markdown": "# AWS Cloud9 Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\nAWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair program and track each other's inputs in real time.\n\n\n## Creating EC2 Environment\n\nEC2 Environments are defined with `Ec2Environment`. To create an EC2 environment in the private subnet, specify `subnetSelection` with private `subnetType`.\n\n\n```ts\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });\n```\n\n## Cloning Repositories\n\nUse `clonedRepositories` to clone one or multiple AWS Codecommit repositories into the environment:\n\n```ts\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(stack, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\nnew cloud9.Ec2Environment(stack, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});\n```\n"
2931
+ "markdown": "# AWS Cloud9 Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\nAWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a\nbrowser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular\nprogramming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your\ndevelopment machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your\noffice, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing\nserverless applications enabling you to easily define resources, debug, and switch between local and remote execution of\nserverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair\nprogram and track each other's inputs in real time.\n\n\n## Creating EC2 Environment\n\nEC2 Environments are defined with `Ec2Environment`. To create an EC2 environment in the private subnet, specify\n`subnetSelection` with private `subnetType`.\n\n\n```ts\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });\n```\n\n## Cloning Repositories\n\nUse `clonedRepositories` to clone one or multiple AWS Codecommit repositories into the environment:\n\n```ts\nimport * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});\n```\n"
2877
2932
  },
2878
2933
  "repository": {
2879
2934
  "directory": "packages/individual-packages/aws-cloud9",
@@ -2914,12 +2969,12 @@
2914
2969
  "@aws-cdk/aws-cloud9-alpha.CloneRepository": {
2915
2970
  "assembly": "@aws-cdk/aws-cloud9-alpha",
2916
2971
  "docs": {
2917
- "stability": "experimental",
2918
- "summary": "The class for different repository providers.",
2919
- "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloud9_alpha from '@aws-cdk/aws-cloud9-alpha';\nimport { aws_codecommit as codecommit } from 'aws-cdk-lib';\n\ndeclare const repository: codecommit.Repository;\nconst cloneRepository = cloud9_alpha.CloneRepository.fromCodeCommit(repository, 'path');",
2920
2972
  "custom": {
2921
- "exampleMetadata": "fixture=_generated"
2922
- }
2973
+ "exampleMetadata": "infused"
2974
+ },
2975
+ "example": "import * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});",
2976
+ "stability": "experimental",
2977
+ "summary": "The class for different repository providers."
2923
2978
  },
2924
2979
  "fqn": "@aws-cdk/aws-cloud9-alpha.CloneRepository",
2925
2980
  "kind": "class",
@@ -3007,7 +3062,7 @@
3007
3062
  "exampleMetadata": "infused",
3008
3063
  "resource": "AWS::Cloud9::EnvironmentEC2"
3009
3064
  },
3010
- "example": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
3065
+ "example": "// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
3011
3066
  "stability": "experimental",
3012
3067
  "summary": "A Cloud9 Environment with Amazon EC2."
3013
3068
  },
@@ -3183,7 +3238,7 @@
3183
3238
  "custom": {
3184
3239
  "exampleMetadata": "infused"
3185
3240
  },
3186
- "example": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
3241
+ "example": "// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
3187
3242
  "stability": "experimental",
3188
3243
  "summary": "Properties for Ec2Environment."
3189
3244
  },
@@ -3368,6 +3423,6 @@
3368
3423
  "symbolId": "lib/environment:IEc2Environment"
3369
3424
  }
3370
3425
  },
3371
- "version": "2.6.0-alpha.0",
3426
+ "version": "2.10.0-alpha.0",
3372
3427
  "fingerprint": "**********"
3373
3428
  }
package/.jsii.tabl.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "version": "2",
3
- "toolVersion": "1.50.0",
3
+ "toolVersion": "1.52.1",
4
4
  "snippets": {
5
- "ad1f121510250ca21059885de54ec9d8f1776a76d0dda5302efe892ceda9e9a2": {
5
+ "1b216746db9846122e1a9d6e622e905410fadc439d9abddb42d6bc429715a28d": {
6
6
  "translations": {
7
7
  "python": {
8
- "source": "from aws_cdk.aws_ec2 import SubnetSelection\nimport aws_cdk.aws_cloud9_alpha as cloud9\n\n# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\ncdk.CfnOutput(self, \"URL\", value=c9env.ide_url)",
9
- "version": "1"
8
+ "source": "# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=ec2.SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\nCfnOutput(self, \"URL\", value=c9env.ide_url)",
9
+ "version": "2"
10
10
  },
11
11
  "csharp": {
12
- "source": "using Amazon.CDK.AWS.Cloud9.Alpha;\n\n// create a cloud9 ec2 environment in a new VPC\nvar vpc = new ec2.Vpc(this, \"VPC\", new Struct { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nvar defaultVpc = ec2.Vpc.FromLookup(this, \"DefaultVPC\", new Struct { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new ec2.InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, \"URL\", new Struct { Value = c9env.IdeUrl });",
12
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = new Vpc(this, \"VPC\", new VpcProps { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.FromLookup(this, \"DefaultVPC\", new VpcLookupOptions { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, \"URL\", new CfnOutputProps { Value = c9env.IdeUrl });",
13
13
  "version": "1"
14
14
  },
15
15
  "java": {
16
- "source": "import software.amazon.awscdk.services.cloud9.alpha.*;\n\n// create a cloud9 ec2 environment in a new VPC\nObject vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nObject defaultVpc = ec2.Vpc.fromLookup(this, \"DefaultVPC\", Map.of(\"isDefault\", true));\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(ec2.getSubnetType().getPRIVATE())\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
16
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.fromLookup(this, \"DefaultVPC\", VpcLookupOptions.builder().isDefault(true).build());\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(SubnetType.PRIVATE)\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
17
17
  "version": "1"
18
18
  },
19
19
  "$": {
20
- "source": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
20
+ "source": "// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
21
21
  "version": "0"
22
22
  }
23
23
  },
@@ -28,59 +28,62 @@
28
28
  },
29
29
  "field": {
30
30
  "field": "markdown",
31
- "line": 28
31
+ "line": 36
32
32
  }
33
33
  },
34
- "didCompile": false,
34
+ "didCompile": true,
35
35
  "fqnsReferenced": [
36
36
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment",
37
37
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
38
38
  "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
39
+ "aws-cdk-lib.CfnOutput",
40
+ "aws-cdk-lib.CfnOutputProps",
39
41
  "aws-cdk-lib.aws_ec2.IVpc",
40
42
  "aws-cdk-lib.aws_ec2.InstanceType",
41
43
  "aws-cdk-lib.aws_ec2.SubnetSelection",
42
- "aws-cdk-lib.aws_ec2.SubnetType"
44
+ "aws-cdk-lib.aws_ec2.SubnetType",
45
+ "aws-cdk-lib.aws_ec2.SubnetType#PRIVATE",
46
+ "aws-cdk-lib.aws_ec2.Vpc",
47
+ "aws-cdk-lib.aws_ec2.Vpc#fromLookup",
48
+ "aws-cdk-lib.aws_ec2.VpcLookupOptions",
49
+ "aws-cdk-lib.aws_ec2.VpcProps"
43
50
  ],
44
- "fullSource": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
51
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
45
52
  "syntaxKindCounter": {
46
53
  "8": 1,
47
- "10": 8,
48
- "75": 34,
54
+ "10": 7,
55
+ "75": 32,
49
56
  "104": 6,
50
57
  "106": 1,
51
58
  "193": 7,
52
- "194": 11,
59
+ "194": 10,
53
60
  "196": 1,
54
61
  "197": 6,
55
62
  "225": 3,
56
63
  "226": 3,
57
64
  "242": 3,
58
65
  "243": 3,
59
- "254": 1,
60
- "255": 1,
61
- "256": 1,
62
66
  "281": 7,
63
- "282": 2,
64
- "290": 1
67
+ "282": 2
65
68
  },
66
- "fqnsFingerprint": "b27db95367339b9fc413636850f52e3f4a1e0b039372a12fbde267bf7ed309c4"
69
+ "fqnsFingerprint": "d08b0bab5d897e8d169fedea6faf34596a6e6104b63ba427f6d67adee3aa7d9f"
67
70
  },
68
- "02590fe9925a58cb5dd64de9a46bf7abb6ae9e0896b901bde01bee5df8c884b4": {
71
+ "93a932e90f905bfa284ca83b68018b7f540af9f71f97049f6b05b2012c2d6fc6": {
69
72
  "translations": {
70
73
  "python": {
71
- "source": "# create a codecommit repository to clone into the cloud9 environment\nrepo_new = codecommit.Repository(self, \"RepoNew\",\n repository_name=\"new-repo\"\n)\n\n# import an existing codecommit repository to clone into the cloud9 environment\nrepo_existing = codecommit.Repository.from_repository_name(stack, \"RepoExisting\", \"existing-repo\")\n\n# create a new Cloud9 environment and clone the two repositories\ncloud9.Ec2Environment(stack, \"C9Env\",\n vpc=vpc,\n cloned_repositories=[\n cloud9.CloneRepository.from_code_commit(repo_new, \"/src/new-repo\"),\n cloud9.CloneRepository.from_code_commit(repo_existing, \"/src/existing-repo\")\n ]\n)",
72
- "version": "1"
74
+ "source": "import aws_cdk.aws_codecommit as codecommit\n\n# create a new Cloud9 environment and clone the two repositories\n# vpc: ec2.Vpc\n\n\n# create a codecommit repository to clone into the cloud9 environment\nrepo_new = codecommit.Repository(self, \"RepoNew\",\n repository_name=\"new-repo\"\n)\n\n# import an existing codecommit repository to clone into the cloud9 environment\nrepo_existing = codecommit.Repository.from_repository_name(self, \"RepoExisting\", \"existing-repo\")\ncloud9.Ec2Environment(self, \"C9Env\",\n vpc=vpc,\n cloned_repositories=[\n cloud9.CloneRepository.from_code_commit(repo_new, \"/src/new-repo\"),\n cloud9.CloneRepository.from_code_commit(repo_existing, \"/src/existing-repo\")\n ]\n)",
75
+ "version": "2"
73
76
  },
74
77
  "csharp": {
75
- "source": "// create a codecommit repository to clone into the cloud9 environment\nvar repoNew = new codecommit.Repository(this, \"RepoNew\", new Struct {\n RepositoryName = \"new-repo\"\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nvar repoExisting = codecommit.Repository.FromRepositoryName(stack, \"RepoExisting\", \"existing-repo\");\n\n// create a new Cloud9 environment and clone the two repositories\n// create a new Cloud9 environment and clone the two repositories\nnew cloud9.Ec2Environment(stack, \"C9Env\", new Struct {\n Vpc = vpc,\n ClonedRepositories = new [] { cloud9.CloneRepository.FromCodeCommit(repoNew, \"/src/new-repo\"), cloud9.CloneRepository.FromCodeCommit(repoExisting, \"/src/existing-repo\") }\n});",
78
+ "source": "using Amazon.CDK.AWS.CodeCommit;\n\n// create a new Cloud9 environment and clone the two repositories\nVpc vpc;\n\n\n// create a codecommit repository to clone into the cloud9 environment\nRepository repoNew = new Repository(this, \"RepoNew\", new RepositoryProps {\n RepositoryName = \"new-repo\"\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nIRepository repoExisting = Repository.FromRepositoryName(this, \"RepoExisting\", \"existing-repo\");\nnew Ec2Environment(this, \"C9Env\", new Ec2EnvironmentProps {\n Vpc = vpc,\n ClonedRepositories = new [] { CloneRepository.FromCodeCommit(repoNew, \"/src/new-repo\"), CloneRepository.FromCodeCommit(repoExisting, \"/src/existing-repo\") }\n});",
76
79
  "version": "1"
77
80
  },
78
81
  "java": {
79
- "source": "// create a codecommit repository to clone into the cloud9 environment\nObject repoNew = Repository.Builder.create(this, \"RepoNew\")\n .repositoryName(\"new-repo\")\n .build();\n\n// import an existing codecommit repository to clone into the cloud9 environment\nObject repoExisting = codecommit.Repository.fromRepositoryName(stack, \"RepoExisting\", \"existing-repo\");\n\n// create a new Cloud9 environment and clone the two repositories\n// create a new Cloud9 environment and clone the two repositories\nEc2Environment.Builder.create(stack, \"C9Env\")\n .vpc(vpc)\n .clonedRepositories(List.of(cloud9.CloneRepository.fromCodeCommit(repoNew, \"/src/new-repo\"), cloud9.CloneRepository.fromCodeCommit(repoExisting, \"/src/existing-repo\")))\n .build();",
82
+ "source": "import software.amazon.awscdk.services.codecommit.*;\n\n// create a new Cloud9 environment and clone the two repositories\nVpc vpc;\n\n\n// create a codecommit repository to clone into the cloud9 environment\nRepository repoNew = Repository.Builder.create(this, \"RepoNew\")\n .repositoryName(\"new-repo\")\n .build();\n\n// import an existing codecommit repository to clone into the cloud9 environment\nIRepository repoExisting = Repository.fromRepositoryName(this, \"RepoExisting\", \"existing-repo\");\nEc2Environment.Builder.create(this, \"C9Env\")\n .vpc(vpc)\n .clonedRepositories(List.of(CloneRepository.fromCodeCommit(repoNew, \"/src/new-repo\"), CloneRepository.fromCodeCommit(repoExisting, \"/src/existing-repo\")))\n .build();",
80
83
  "version": "1"
81
84
  },
82
85
  "$": {
83
- "source": "// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(stack, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\nnew cloud9.Ec2Environment(stack, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});",
86
+ "source": "import * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});",
84
87
  "version": "0"
85
88
  }
86
89
  },
@@ -91,47 +94,63 @@
91
94
  },
92
95
  "field": {
93
96
  "field": "markdown",
94
- "line": 58
97
+ "line": 64
95
98
  }
96
99
  },
97
- "didCompile": false,
98
- "fqnsReferenced": [],
99
- "fullSource": "// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(stack, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\nnew cloud9.Ec2Environment(stack, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});",
100
+ "didCompile": true,
101
+ "fqnsReferenced": [
102
+ "@aws-cdk/aws-cloud9-alpha.CloneRepository",
103
+ "@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
104
+ "@aws-cdk/aws-cloud9-alpha.Ec2Environment",
105
+ "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
106
+ "aws-cdk-lib.aws_codecommit.IRepository",
107
+ "aws-cdk-lib.aws_codecommit.Repository",
108
+ "aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
109
+ "aws-cdk-lib.aws_codecommit.RepositoryProps",
110
+ "aws-cdk-lib.aws_ec2.IVpc"
111
+ ],
112
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
100
113
  "syntaxKindCounter": {
101
- "10": 7,
102
- "75": 22,
103
- "104": 1,
114
+ "10": 8,
115
+ "75": 24,
116
+ "104": 3,
117
+ "130": 1,
118
+ "153": 1,
119
+ "169": 1,
104
120
  "192": 1,
105
121
  "193": 2,
106
122
  "194": 8,
107
123
  "196": 3,
108
124
  "197": 2,
109
- "225": 2,
125
+ "225": 3,
110
126
  "226": 1,
111
- "242": 2,
112
- "243": 2,
127
+ "242": 3,
128
+ "243": 3,
129
+ "254": 1,
130
+ "255": 1,
131
+ "256": 1,
113
132
  "281": 2,
114
133
  "282": 1,
115
134
  "290": 1
116
135
  },
117
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
136
+ "fqnsFingerprint": "313b3a623f9e7165cde070af62bc830c8b59472e3094c36bde4e0bb877571b01"
118
137
  },
119
- "74560afbc32178e4c56103c946f16a8b671db9d2ed2aee471685a55e64d50a58": {
138
+ "5e4731564f447a01fe8f35d82b6c3455215296dbdbb9206298f0dbb103cb9e44": {
120
139
  "translations": {
121
140
  "python": {
122
- "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_cloud9_alpha as cloud9_alpha\nfrom aws_cdk import aws_codecommit as codecommit\n\n# repository is of type Repository\n\nclone_repository = cloud9_alpha.CloneRepository.from_code_commit(repository, \"path\")",
123
- "version": "1"
141
+ "source": "import aws_cdk.aws_codecommit as codecommit\n\n# create a new Cloud9 environment and clone the two repositories\n# vpc: ec2.Vpc\n\n\n# create a codecommit repository to clone into the cloud9 environment\nrepo_new = codecommit.Repository(self, \"RepoNew\",\n repository_name=\"new-repo\"\n)\n\n# import an existing codecommit repository to clone into the cloud9 environment\nrepo_existing = codecommit.Repository.from_repository_name(self, \"RepoExisting\", \"existing-repo\")\ncloud9.Ec2Environment(self, \"C9Env\",\n vpc=vpc,\n cloned_repositories=[\n cloud9.CloneRepository.from_code_commit(repo_new, \"/src/new-repo\"),\n cloud9.CloneRepository.from_code_commit(repo_existing, \"/src/existing-repo\")\n ]\n)",
142
+ "version": "2"
124
143
  },
125
144
  "csharp": {
126
- "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.Cloud9.Alpha;\nusing Amazon.CDK.AWS.CodeCommit;\n\nRepository repository;\n\nCloneRepository cloneRepository = CloneRepository.FromCodeCommit(repository, \"path\");",
145
+ "source": "using Amazon.CDK.AWS.CodeCommit;\n\n// create a new Cloud9 environment and clone the two repositories\nVpc vpc;\n\n\n// create a codecommit repository to clone into the cloud9 environment\nRepository repoNew = new Repository(this, \"RepoNew\", new RepositoryProps {\n RepositoryName = \"new-repo\"\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nIRepository repoExisting = Repository.FromRepositoryName(this, \"RepoExisting\", \"existing-repo\");\nnew Ec2Environment(this, \"C9Env\", new Ec2EnvironmentProps {\n Vpc = vpc,\n ClonedRepositories = new [] { CloneRepository.FromCodeCommit(repoNew, \"/src/new-repo\"), CloneRepository.FromCodeCommit(repoExisting, \"/src/existing-repo\") }\n});",
127
146
  "version": "1"
128
147
  },
129
148
  "java": {
130
- "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloud9.alpha.*;\nimport software.amazon.awscdk.services.codecommit.*;\n\nRepository repository;\n\nCloneRepository cloneRepository = CloneRepository.fromCodeCommit(repository, \"path\");",
149
+ "source": "import software.amazon.awscdk.services.codecommit.*;\n\n// create a new Cloud9 environment and clone the two repositories\nVpc vpc;\n\n\n// create a codecommit repository to clone into the cloud9 environment\nRepository repoNew = Repository.Builder.create(this, \"RepoNew\")\n .repositoryName(\"new-repo\")\n .build();\n\n// import an existing codecommit repository to clone into the cloud9 environment\nIRepository repoExisting = Repository.fromRepositoryName(this, \"RepoExisting\", \"existing-repo\");\nEc2Environment.Builder.create(this, \"C9Env\")\n .vpc(vpc)\n .clonedRepositories(List.of(CloneRepository.fromCodeCommit(repoNew, \"/src/new-repo\"), CloneRepository.fromCodeCommit(repoExisting, \"/src/existing-repo\")))\n .build();",
131
150
  "version": "1"
132
151
  },
133
152
  "$": {
134
- "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloud9_alpha from '@aws-cdk/aws-cloud9-alpha';\nimport { aws_codecommit as codecommit } from 'aws-cdk-lib';\n\ndeclare const repository: codecommit.Repository;\nconst cloneRepository = cloud9_alpha.CloneRepository.fromCodeCommit(repository, 'path');",
153
+ "source": "import * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});",
135
154
  "version": "0"
136
155
  }
137
156
  },
@@ -148,45 +167,56 @@
148
167
  "fqnsReferenced": [
149
168
  "@aws-cdk/aws-cloud9-alpha.CloneRepository",
150
169
  "@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
151
- "aws-cdk-lib.aws_codecommit.IRepository"
170
+ "@aws-cdk/aws-cloud9-alpha.Ec2Environment",
171
+ "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
172
+ "aws-cdk-lib.aws_codecommit.IRepository",
173
+ "aws-cdk-lib.aws_codecommit.Repository",
174
+ "aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
175
+ "aws-cdk-lib.aws_codecommit.RepositoryProps",
176
+ "aws-cdk-lib.aws_ec2.IVpc"
152
177
  ],
153
- "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloud9_alpha from '@aws-cdk/aws-cloud9-alpha';\nimport { aws_codecommit as codecommit } from 'aws-cdk-lib';\n\ndeclare const repository: codecommit.Repository;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cloneRepository = cloud9_alpha.CloneRepository.fromCodeCommit(repository, 'path');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
178
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as codecommit from 'aws-cdk-lib/aws-codecommit';\n\n// create a new Cloud9 environment and clone the two repositories\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\n// create a codecommit repository to clone into the cloud9 environment\nconst repoNew = new codecommit.Repository(this, 'RepoNew', {\n repositoryName: 'new-repo',\n});\n\n// import an existing codecommit repository to clone into the cloud9 environment\nconst repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');\nnew cloud9.Ec2Environment(this, 'C9Env', {\n vpc,\n clonedRepositories: [\n cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),\n cloud9.CloneRepository.fromCodeCommit(repoExisting, '/src/existing-repo'),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
154
179
  "syntaxKindCounter": {
155
- "10": 3,
156
- "75": 11,
180
+ "10": 8,
181
+ "75": 24,
182
+ "104": 3,
157
183
  "130": 1,
158
184
  "153": 1,
159
185
  "169": 1,
160
- "194": 2,
161
- "196": 1,
162
- "225": 2,
163
- "242": 2,
164
- "243": 2,
165
- "254": 2,
166
- "255": 2,
186
+ "192": 1,
187
+ "193": 2,
188
+ "194": 8,
189
+ "196": 3,
190
+ "197": 2,
191
+ "225": 3,
192
+ "226": 1,
193
+ "242": 3,
194
+ "243": 3,
195
+ "254": 1,
196
+ "255": 1,
167
197
  "256": 1,
168
- "257": 1,
169
- "258": 1,
198
+ "281": 2,
199
+ "282": 1,
170
200
  "290": 1
171
201
  },
172
- "fqnsFingerprint": "8f5fd251a5246b0d297261df31588b4a9bbe56e80ab31371c3568c093cb09d5d"
202
+ "fqnsFingerprint": "313b3a623f9e7165cde070af62bc830c8b59472e3094c36bde4e0bb877571b01"
173
203
  },
174
- "0a67b4a022389fdb53f9c952abe76411996bf5e2c7ed79e9437ecdea0c52e006": {
204
+ "f8df58ff83217d8b266901e453be5095f010b87e06cd9adeeaf6a2d44b9fce46": {
175
205
  "translations": {
176
206
  "python": {
177
- "source": "from aws_cdk.aws_ec2 import SubnetSelection\nimport aws_cdk.aws_cloud9_alpha as cloud9\n\n# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\ncdk.CfnOutput(self, \"URL\", value=c9env.ide_url)",
178
- "version": "1"
207
+ "source": "# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=ec2.SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\nCfnOutput(self, \"URL\", value=c9env.ide_url)",
208
+ "version": "2"
179
209
  },
180
210
  "csharp": {
181
- "source": "using Amazon.CDK.AWS.Cloud9.Alpha;\n\n// create a cloud9 ec2 environment in a new VPC\nvar vpc = new ec2.Vpc(this, \"VPC\", new Struct { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nvar defaultVpc = ec2.Vpc.FromLookup(this, \"DefaultVPC\", new Struct { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new ec2.InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, \"URL\", new Struct { Value = c9env.IdeUrl });",
211
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = new Vpc(this, \"VPC\", new VpcProps { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.FromLookup(this, \"DefaultVPC\", new VpcLookupOptions { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, \"URL\", new CfnOutputProps { Value = c9env.IdeUrl });",
182
212
  "version": "1"
183
213
  },
184
214
  "java": {
185
- "source": "import software.amazon.awscdk.services.cloud9.alpha.*;\n\n// create a cloud9 ec2 environment in a new VPC\nObject vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nObject defaultVpc = ec2.Vpc.fromLookup(this, \"DefaultVPC\", Map.of(\"isDefault\", true));\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(ec2.getSubnetType().getPRIVATE())\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
215
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.fromLookup(this, \"DefaultVPC\", VpcLookupOptions.builder().isDefault(true).build());\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(SubnetType.PRIVATE)\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
186
216
  "version": "1"
187
217
  },
188
218
  "$": {
189
- "source": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
219
+ "source": "// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
190
220
  "version": "0"
191
221
  }
192
222
  },
@@ -199,56 +229,59 @@
199
229
  "field": "example"
200
230
  }
201
231
  },
202
- "didCompile": false,
232
+ "didCompile": true,
203
233
  "fqnsReferenced": [
204
234
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment",
205
235
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
206
236
  "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
237
+ "aws-cdk-lib.CfnOutput",
238
+ "aws-cdk-lib.CfnOutputProps",
207
239
  "aws-cdk-lib.aws_ec2.IVpc",
208
240
  "aws-cdk-lib.aws_ec2.InstanceType",
209
241
  "aws-cdk-lib.aws_ec2.SubnetSelection",
210
- "aws-cdk-lib.aws_ec2.SubnetType"
242
+ "aws-cdk-lib.aws_ec2.SubnetType",
243
+ "aws-cdk-lib.aws_ec2.SubnetType#PRIVATE",
244
+ "aws-cdk-lib.aws_ec2.Vpc",
245
+ "aws-cdk-lib.aws_ec2.Vpc#fromLookup",
246
+ "aws-cdk-lib.aws_ec2.VpcLookupOptions",
247
+ "aws-cdk-lib.aws_ec2.VpcProps"
211
248
  ],
212
- "fullSource": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
249
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
213
250
  "syntaxKindCounter": {
214
251
  "8": 1,
215
- "10": 8,
216
- "75": 34,
252
+ "10": 7,
253
+ "75": 32,
217
254
  "104": 6,
218
255
  "106": 1,
219
256
  "193": 7,
220
- "194": 11,
257
+ "194": 10,
221
258
  "196": 1,
222
259
  "197": 6,
223
260
  "225": 3,
224
261
  "226": 3,
225
262
  "242": 3,
226
263
  "243": 3,
227
- "254": 1,
228
- "255": 1,
229
- "256": 1,
230
264
  "281": 7,
231
- "282": 2,
232
- "290": 1
265
+ "282": 2
233
266
  },
234
- "fqnsFingerprint": "b27db95367339b9fc413636850f52e3f4a1e0b039372a12fbde267bf7ed309c4"
267
+ "fqnsFingerprint": "d08b0bab5d897e8d169fedea6faf34596a6e6104b63ba427f6d67adee3aa7d9f"
235
268
  },
236
- "5ea307caa250e7df8fd1d09bbc34210019fa67dfeb44c1990d349bf6ac353418": {
269
+ "22d49d77b3d16e6942029202e5a043780eafd85d1a2c28481ec250083555f82e": {
237
270
  "translations": {
238
271
  "python": {
239
- "source": "from aws_cdk.aws_ec2 import SubnetSelection\nimport aws_cdk.aws_cloud9_alpha as cloud9\n\n# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\ncdk.CfnOutput(self, \"URL\", value=c9env.ide_url)",
240
- "version": "1"
272
+ "source": "# create a cloud9 ec2 environment in a new VPC\nvpc = ec2.Vpc(self, \"VPC\", max_azs=3)\ncloud9.Ec2Environment(self, \"Cloud9Env\", vpc=vpc)\n\n# or create the cloud9 environment in the default VPC with specific instanceType\ndefault_vpc = ec2.Vpc.from_lookup(self, \"DefaultVPC\", is_default=True)\ncloud9.Ec2Environment(self, \"Cloud9Env2\",\n vpc=default_vpc,\n instance_type=ec2.InstanceType(\"t3.large\")\n)\n\n# or specify in a different subnetSelection\nc9env = cloud9.Ec2Environment(self, \"Cloud9Env3\",\n vpc=vpc,\n subnet_selection=ec2.SubnetSelection(\n subnet_type=ec2.SubnetType.PRIVATE\n )\n)\n\n# print the Cloud9 IDE URL in the output\nCfnOutput(self, \"URL\", value=c9env.ide_url)",
273
+ "version": "2"
241
274
  },
242
275
  "csharp": {
243
- "source": "using Amazon.CDK.AWS.Cloud9.Alpha;\n\n// create a cloud9 ec2 environment in a new VPC\nvar vpc = new ec2.Vpc(this, \"VPC\", new Struct { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nvar defaultVpc = ec2.Vpc.FromLookup(this, \"DefaultVPC\", new Struct { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new ec2.InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, \"URL\", new Struct { Value = c9env.IdeUrl });",
276
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = new Vpc(this, \"VPC\", new VpcProps { MaxAzs = 3 });\nnew Ec2Environment(this, \"Cloud9Env\", new Ec2EnvironmentProps { Vpc = vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.FromLookup(this, \"DefaultVPC\", new VpcLookupOptions { IsDefault = true });\nnew Ec2Environment(this, \"Cloud9Env2\", new Ec2EnvironmentProps {\n Vpc = defaultVpc,\n InstanceType = new InstanceType(\"t3.large\")\n});\n\n// or specify in a different subnetSelection\nEc2Environment c9env = new Ec2Environment(this, \"Cloud9Env3\", new Ec2EnvironmentProps {\n Vpc = vpc,\n SubnetSelection = new SubnetSelection {\n SubnetType = SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, \"URL\", new CfnOutputProps { Value = c9env.IdeUrl });",
244
277
  "version": "1"
245
278
  },
246
279
  "java": {
247
- "source": "import software.amazon.awscdk.services.cloud9.alpha.*;\n\n// create a cloud9 ec2 environment in a new VPC\nObject vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nObject defaultVpc = ec2.Vpc.fromLookup(this, \"DefaultVPC\", Map.of(\"isDefault\", true));\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(ec2.getSubnetType().getPRIVATE())\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
280
+ "source": "// create a cloud9 ec2 environment in a new VPC\nVpc vpc = Vpc.Builder.create(this, \"VPC\").maxAzs(3).build();\nEc2Environment.Builder.create(this, \"Cloud9Env\").vpc(vpc).build();\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nIVpc defaultVpc = Vpc.fromLookup(this, \"DefaultVPC\", VpcLookupOptions.builder().isDefault(true).build());\nEc2Environment.Builder.create(this, \"Cloud9Env2\")\n .vpc(defaultVpc)\n .instanceType(new InstanceType(\"t3.large\"))\n .build();\n\n// or specify in a different subnetSelection\nEc2Environment c9env = Ec2Environment.Builder.create(this, \"Cloud9Env3\")\n .vpc(vpc)\n .subnetSelection(SubnetSelection.builder()\n .subnetType(SubnetType.PRIVATE)\n .build())\n .build();\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nCfnOutput.Builder.create(this, \"URL\").value(c9env.getIdeUrl()).build();",
248
281
  "version": "1"
249
282
  },
250
283
  "$": {
251
- "source": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
284
+ "source": "// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
252
285
  "version": "0"
253
286
  }
254
287
  },
@@ -261,39 +294,42 @@
261
294
  "field": "example"
262
295
  }
263
296
  },
264
- "didCompile": false,
297
+ "didCompile": true,
265
298
  "fqnsReferenced": [
266
299
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment",
267
300
  "@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
268
301
  "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
302
+ "aws-cdk-lib.CfnOutput",
303
+ "aws-cdk-lib.CfnOutputProps",
269
304
  "aws-cdk-lib.aws_ec2.IVpc",
270
305
  "aws-cdk-lib.aws_ec2.InstanceType",
271
306
  "aws-cdk-lib.aws_ec2.SubnetSelection",
272
- "aws-cdk-lib.aws_ec2.SubnetType"
307
+ "aws-cdk-lib.aws_ec2.SubnetType",
308
+ "aws-cdk-lib.aws_ec2.SubnetType#PRIVATE",
309
+ "aws-cdk-lib.aws_ec2.Vpc",
310
+ "aws-cdk-lib.aws_ec2.Vpc#fromLookup",
311
+ "aws-cdk-lib.aws_ec2.VpcLookupOptions",
312
+ "aws-cdk-lib.aws_ec2.VpcProps"
273
313
  ],
274
- "fullSource": "import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\n\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large')\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE\n }\n});\n\n// print the Cloud9 IDE URL in the output\nnew cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });",
314
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { CfnOutput, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as cloud9 from '@aws-cdk/aws-cloud9-alpha';\nimport * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n// create a cloud9 ec2 environment in a new VPC\nconst vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});\nnew cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });\n\n// or create the cloud9 environment in the default VPC with specific instanceType\nconst defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.PRIVATE,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
275
315
  "syntaxKindCounter": {
276
316
  "8": 1,
277
- "10": 8,
278
- "75": 34,
317
+ "10": 7,
318
+ "75": 32,
279
319
  "104": 6,
280
320
  "106": 1,
281
321
  "193": 7,
282
- "194": 11,
322
+ "194": 10,
283
323
  "196": 1,
284
324
  "197": 6,
285
325
  "225": 3,
286
326
  "226": 3,
287
327
  "242": 3,
288
328
  "243": 3,
289
- "254": 1,
290
- "255": 1,
291
- "256": 1,
292
329
  "281": 7,
293
- "282": 2,
294
- "290": 1
330
+ "282": 2
295
331
  },
296
- "fqnsFingerprint": "b27db95367339b9fc413636850f52e3f4a1e0b039372a12fbde267bf7ed309c4"
332
+ "fqnsFingerprint": "d08b0bab5d897e8d169fedea6faf34596a6e6104b63ba427f6d67adee3aa7d9f"
297
333
  }
298
334
  }
299
335
  }
package/README.md CHANGED
@@ -17,17 +17,23 @@
17
17
 
18
18
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
19
19
 
20
- AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair program and track each other's inputs in real time.
20
+ AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a
21
+ browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular
22
+ programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your
23
+ development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your
24
+ office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing
25
+ serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of
26
+ serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair
27
+ program and track each other's inputs in real time.
21
28
 
22
29
 
23
30
  ## Creating EC2 Environment
24
31
 
25
- EC2 Environments are defined with `Ec2Environment`. To create an EC2 environment in the private subnet, specify `subnetSelection` with private `subnetType`.
32
+ EC2 Environments are defined with `Ec2Environment`. To create an EC2 environment in the private subnet, specify
33
+ `subnetSelection` with private `subnetType`.
26
34
 
27
35
 
28
36
  ```ts
29
- import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';
30
-
31
37
  // create a cloud9 ec2 environment in a new VPC
32
38
  const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3});
33
39
  new cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });
@@ -36,19 +42,19 @@ new cloud9.Ec2Environment(this, 'Cloud9Env', { vpc });
36
42
  const defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });
37
43
  new cloud9.Ec2Environment(this, 'Cloud9Env2', {
38
44
  vpc: defaultVpc,
39
- instanceType: new ec2.InstanceType('t3.large')
45
+ instanceType: new ec2.InstanceType('t3.large'),
40
46
  });
41
47
 
42
48
  // or specify in a different subnetSelection
43
49
  const c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {
44
- vpc,
45
- subnetSelection: {
46
- subnetType: ec2.SubnetType.PRIVATE
47
- }
50
+ vpc,
51
+ subnetSelection: {
52
+ subnetType: ec2.SubnetType.PRIVATE,
53
+ },
48
54
  });
49
55
 
50
56
  // print the Cloud9 IDE URL in the output
51
- new cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });
57
+ new CfnOutput(this, 'URL', { value: c9env.ideUrl });
52
58
  ```
53
59
 
54
60
  ## Cloning Repositories
@@ -56,16 +62,19 @@ new cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });
56
62
  Use `clonedRepositories` to clone one or multiple AWS Codecommit repositories into the environment:
57
63
 
58
64
  ```ts
65
+ import * as codecommit from 'aws-cdk-lib/aws-codecommit';
66
+
59
67
  // create a codecommit repository to clone into the cloud9 environment
60
68
  const repoNew = new codecommit.Repository(this, 'RepoNew', {
61
69
  repositoryName: 'new-repo',
62
70
  });
63
71
 
64
72
  // import an existing codecommit repository to clone into the cloud9 environment
65
- const repoExisting = codecommit.Repository.fromRepositoryName(stack, 'RepoExisting', 'existing-repo');
73
+ const repoExisting = codecommit.Repository.fromRepositoryName(this, 'RepoExisting', 'existing-repo');
66
74
 
67
75
  // create a new Cloud9 environment and clone the two repositories
68
- new cloud9.Ec2Environment(stack, 'C9Env', {
76
+ declare const vpc: ec2.Vpc;
77
+ new cloud9.Ec2Environment(this, 'C9Env', {
69
78
  vpc,
70
79
  clonedRepositories: [
71
80
  cloud9.CloneRepository.fromCodeCommit(repoNew, '/src/new-repo'),
@@ -63,7 +63,7 @@ class Ec2Environment extends cdk.Resource {
63
63
  }
64
64
  exports.Ec2Environment = Ec2Environment;
65
65
  _a = JSII_RTTI_SYMBOL_1;
66
- Ec2Environment[_a] = { fqn: "@aws-cdk/aws-cloud9-alpha.Ec2Environment", version: "2.6.0-alpha.0" };
66
+ Ec2Environment[_a] = { fqn: "@aws-cdk/aws-cloud9-alpha.Ec2Environment", version: "2.10.0-alpha.0" };
67
67
  /**
68
68
  * (experimental) The class for different repository providers.
69
69
  *
@@ -90,5 +90,5 @@ class CloneRepository {
90
90
  }
91
91
  exports.CloneRepository = CloneRepository;
92
92
  _b = JSII_RTTI_SYMBOL_1;
93
- CloneRepository[_b] = { fqn: "@aws-cdk/aws-cloud9-alpha.CloneRepository", version: "2.6.0-alpha.0" };
93
+ CloneRepository[_b] = { fqn: "@aws-cdk/aws-cloud9-alpha.CloneRepository", version: "2.10.0-alpha.0" };
94
94
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlbnZpcm9ubWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBRW5DLHVEQUEyRDs7Ozs7OztBQWtDM0QsTUFBYSxjQUFlLFNBQVEsR0FBRyxDQUFDLFFBQVE7Ozs7SUE2QjlDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBMEI7O1FBQ2xFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7O1FBRWpCLElBQUksQ0FBQyxHQUFHLEdBQUcsS0FBSyxDQUFDLEdBQUcsQ0FBQztRQUNyQixJQUFJLENBQUMsS0FBSyxDQUFDLGVBQWUsSUFBSSxJQUFJLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO1lBQ2pFLE1BQU0sSUFBSSxLQUFLLENBQUMsb0dBQW9HLENBQUMsQ0FBQztTQUN2SDtRQUVELE1BQU0sVUFBVSxTQUFHLEtBQUssQ0FBQyxlQUFlLG1DQUFJLEVBQUUsVUFBVSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDbEYsTUFBTSxLQUFLLEdBQUcsSUFBSSw4QkFBaUIsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ3BELElBQUksRUFBRSxLQUFLLENBQUMsa0JBQWtCO1lBQzlCLFdBQVcsRUFBRSxLQUFLLENBQUMsV0FBVztZQUM5QixZQUFZLGNBQUUsS0FBSyxDQUFDLFlBQVksMENBQUUsUUFBUSxxQ0FBTSxHQUFHLENBQUMsWUFBWSxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDLFVBQVUsRUFBRSxHQUFHLENBQUMsWUFBWSxDQUFDLEtBQUssQ0FBQyxDQUFDLFFBQVEsRUFBRTtZQUNwSSxRQUFRLEVBQUUsSUFBSSxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsVUFBVSxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQztZQUN6RCxZQUFZLEVBQUUsS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQztnQkFDMUUsYUFBYSxFQUFFLENBQUMsQ0FBQyxhQUFhO2dCQUM5QixhQUFhLEVBQUUsQ0FBQyxDQUFDLGFBQWE7YUFDL0IsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLFNBQVM7U0FDaEIsQ0FBQyxDQUFDO1FBQ0gsSUFBSSxDQUFDLGFBQWEsR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDO1FBQy9CLElBQUksQ0FBQyxpQkFBaUIsR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBQ3hELElBQUksQ0FBQyxrQkFBa0IsR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBQzFELElBQUksQ0FBQyxNQUFNLEdBQUcsV0FBVyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sc0NBQXNDLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztLQUN0Rzs7Ozs7O0lBbERNLE1BQU0sQ0FBQyxzQkFBc0IsQ0FBQyxLQUFnQixFQUFFLEVBQVUsRUFBRSxrQkFBMEI7UUFDM0YsTUFBTSxNQUFPLFNBQVEsR0FBRyxDQUFDLFFBQVE7WUFBakM7O2dCQUNTLHVCQUFrQixHQUFHLGtCQUFrQixDQUFDO2dCQUN4QyxzQkFBaUIsR0FBRyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQyxTQUFTLENBQUM7b0JBQ3RELE9BQU8sRUFBRSxRQUFRO29CQUNqQixRQUFRLEVBQUUsYUFBYTtvQkFDdkIsWUFBWSxFQUFFLElBQUksQ0FBQyxrQkFBa0I7aUJBQ3RDLENBQUMsQ0FBQztZQUNMLENBQUM7U0FBQTtRQUNELE9BQU8sSUFBSSxNQUFNLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0tBQzlCOztBQVpILHdDQXFEQzs7Ozs7Ozs7QUFHRCxNQUFhLGVBQWU7SUFTMUIsWUFBb0MsYUFBcUIsRUFBa0IsYUFBcUI7UUFBNUQsa0JBQWEsR0FBYixhQUFhLENBQVE7UUFBa0Isa0JBQWEsR0FBYixhQUFhLENBQVE7S0FBSTs7Ozs7Ozs7SUFQN0YsTUFBTSxDQUFDLGNBQWMsQ0FBQyxVQUFrQyxFQUFFLElBQVk7UUFDM0UsT0FBTztZQUNMLGFBQWEsRUFBRSxVQUFVLENBQUMsc0JBQXNCO1lBQ2hELGFBQWEsRUFBRSxJQUFJO1NBQ3BCLENBQUM7S0FDSDs7QUFQSCwwQ0FVQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNvZGVjb21taXQgZnJvbSAnYXdzLWNkay1saWIvYXdzLWNvZGVjb21taXQnO1xuaW1wb3J0ICogYXMgZWMyIGZyb20gJ2F3cy1jZGstbGliL2F3cy1lYzInO1xuaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuaW1wb3J0IHsgQ2ZuRW52aXJvbm1lbnRFQzIgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWQ5JztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGludGVyZmFjZSBJRWMyRW52aXJvbm1lbnQgZXh0ZW5kcyBjZGsuSVJlc291cmNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBlYzJFbnZpcm9ubWVudE5hbWU6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGVjMkVudmlyb25tZW50QXJuOiBzdHJpbmc7XG59XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBpbnRlcmZhY2UgRWMyRW52aXJvbm1lbnRQcm9wcyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBpbnN0YW5jZVR5cGU/OiBlYzIuSW5zdGFuY2VUeXBlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHN1Ym5ldFNlbGVjdGlvbj86IGVjMi5TdWJuZXRTZWxlY3Rpb247XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjOiBlYzIuSVZwYztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGVjMkVudmlyb25tZW50TmFtZT86IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICAvLyByZWFkb25seSBjbG9uZWRSZXBvc2l0b3JpZXM/OiBDbG91ZDlSZXBvc2l0b3J5W107XG4gIHJlYWRvbmx5IGNsb25lZFJlcG9zaXRvcmllcz86IENsb25lUmVwb3NpdG9yeVtdO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgRWMyRW52aXJvbm1lbnQgZXh0ZW5kcyBjZGsuUmVzb3VyY2UgaW1wbGVtZW50cyBJRWMyRW52aXJvbm1lbnQge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIHN0YXRpYyBmcm9tRWMyRW52aXJvbm1lbnROYW1lKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIGVjMkVudmlyb25tZW50TmFtZTogc3RyaW5nKTogSUVjMkVudmlyb25tZW50IHtcbiAgICBjbGFzcyBJbXBvcnQgZXh0ZW5kcyBjZGsuUmVzb3VyY2Uge1xuICAgICAgcHVibGljIGVjMkVudmlyb25tZW50TmFtZSA9IGVjMkVudmlyb25tZW50TmFtZTtcbiAgICAgIHB1YmxpYyBlYzJFbnZpcm9ubWVudEFybiA9IGNkay5TdGFjay5vZih0aGlzKS5mb3JtYXRBcm4oe1xuICAgICAgICBzZXJ2aWNlOiAnY2xvdWQ5JyxcbiAgICAgICAgcmVzb3VyY2U6ICdlbnZpcm9ubWVudCcsXG4gICAgICAgIHJlc291cmNlTmFtZTogdGhpcy5lYzJFbnZpcm9ubWVudE5hbWUsXG4gICAgICB9KTtcbiAgICB9XG4gICAgcmV0dXJuIG5ldyBJbXBvcnQoc2NvcGUsIGlkKTtcbiAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyByZWFkb25seSBlYzJFbnZpcm9ubWVudE5hbWU6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyByZWFkb25seSBlYzJFbnZpcm9ubWVudEFybjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgcmVhZG9ubHkgZW52aXJvbm1lbnRJZDogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyByZWFkb25seSBpZGVVcmw6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIHJlYWRvbmx5IHZwYzogZWMyLklWcGM7XG5cbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM6IEVjMkVudmlyb25tZW50UHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgdGhpcy52cGMgPSBwcm9wcy52cGM7XG4gICAgaWYgKCFwcm9wcy5zdWJuZXRTZWxlY3Rpb24gJiYgdGhpcy52cGMucHVibGljU3VibmV0cy5sZW5ndGggPT09IDApIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignbm8gc3VibmV0U2VsZWN0aW9uIHNwZWNpZmllZCBhbmQgbm8gcHVibGljIHN1Ym5ldCBmb3VuZCBpbiB0aGUgdnBjLCBwbGVhc2Ugc3BlY2lmeSBzdWJuZXRTZWxlY3Rpb24nKTtcbiAgICB9XG5cbiAgICBjb25zdCB2cGNTdWJuZXRzID0gcHJvcHMuc3VibmV0U2VsZWN0aW9uID8/IHsgc3VibmV0VHlwZTogZWMyLlN1Ym5ldFR5cGUuUFVCTElDIH07XG4gICAgY29uc3QgYzllbnYgPSBuZXcgQ2ZuRW52aXJvbm1lbnRFQzIodGhpcywgJ1Jlc291cmNlJywge1xuICAgICAgbmFtZTogcHJvcHMuZWMyRW52aXJvbm1lbnROYW1lLFxuICAgICAgZGVzY3JpcHRpb246IHByb3BzLmRlc2NyaXB0aW9uLFxuICAgICAgaW5zdGFuY2VUeXBlOiBwcm9wcy5pbnN0YW5jZVR5cGU/LnRvU3RyaW5nKCkgPz8gZWMyLkluc3RhbmNlVHlwZS5vZihlYzIuSW5zdGFuY2VDbGFzcy5CVVJTVEFCTEUyLCBlYzIuSW5zdGFuY2VTaXplLk1JQ1JPKS50b1N0cmluZygpLFxuICAgICAgc3VibmV0SWQ6IHRoaXMudnBjLnNlbGVjdFN1Ym5ldHModnBjU3VibmV0cykuc3VibmV0SWRzWzBdLFxuICAgICAgcmVwb3NpdG9yaWVzOiBwcm9wcy5jbG9uZWRSZXBvc2l0b3JpZXMgPyBwcm9wcy5jbG9uZWRSZXBvc2l0b3JpZXMubWFwKHIgPT4gKHtcbiAgICAgICAgcmVwb3NpdG9yeVVybDogci5yZXBvc2l0b3J5VXJsLFxuICAgICAgICBwYXRoQ29tcG9uZW50OiByLnBhdGhDb21wb25lbnQsXG4gICAgICB9KSkgOiB1bmRlZmluZWQsXG4gICAgfSk7XG4gICAgdGhpcy5lbnZpcm9ubWVudElkID0gYzllbnYucmVmO1xuICAgIHRoaXMuZWMyRW52aXJvbm1lbnRBcm4gPSBjOWVudi5nZXRBdHQoJ0FybicpLnRvU3RyaW5nKCk7XG4gICAgdGhpcy5lYzJFbnZpcm9ubWVudE5hbWUgPSBjOWVudi5nZXRBdHQoJ05hbWUnKS50b1N0cmluZygpO1xuICAgIHRoaXMuaWRlVXJsID0gYGh0dHBzOi8vJHt0aGlzLnN0YWNrLnJlZ2lvbn0uY29uc29sZS5hd3MuYW1hem9uLmNvbS9jbG91ZDkvaWRlLyR7dGhpcy5lbnZpcm9ubWVudElkfWA7XG4gIH1cbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGNsYXNzIENsb25lUmVwb3NpdG9yeSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgc3RhdGljIGZyb21Db2RlQ29tbWl0KHJlcG9zaXRvcnk6IGNvZGVjb21taXQuSVJlcG9zaXRvcnksIHBhdGg6IHN0cmluZyk6IENsb25lUmVwb3NpdG9yeSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJlcG9zaXRvcnlVcmw6IHJlcG9zaXRvcnkucmVwb3NpdG9yeUNsb25lVXJsSHR0cCxcbiAgICAgIHBhdGhDb21wb25lbnQ6IHBhdGgsXG4gICAgfTtcbiAgfVxuXG4gIHByaXZhdGUgY29uc3RydWN0b3IocHVibGljIHJlYWRvbmx5IHJlcG9zaXRvcnlVcmw6IHN0cmluZywgcHVibGljIHJlYWRvbmx5IHBhdGhDb21wb25lbnQ6IHN0cmluZykge31cbn1cbiJdfQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-cloud9-alpha",
3
- "version": "2.6.0-alpha.0",
3
+ "version": "2.10.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::Cloud9",
6
6
  "main": "lib/index.js",
@@ -33,7 +33,14 @@
33
33
  "packageName": "awscdkcloud9alpha"
34
34
  }
35
35
  },
36
- "projectReferences": true
36
+ "projectReferences": true,
37
+ "metadata": {
38
+ "jsii": {
39
+ "rosetta": {
40
+ "strict": true
41
+ }
42
+ }
43
+ }
37
44
  },
38
45
  "repository": {
39
46
  "type": "git",
@@ -74,18 +81,18 @@
74
81
  },
75
82
  "license": "Apache-2.0",
76
83
  "devDependencies": {
77
- "@aws-cdk/cdk-build-tools": "2.6.0",
78
- "@aws-cdk/cdk-integ-tools": "2.6.0",
79
- "@aws-cdk/cfn2ts": "2.6.0",
80
- "@aws-cdk/pkglint": "2.6.0",
81
- "@types/jest": "^27.0.3",
82
- "aws-cdk-lib": "2.6.0",
84
+ "@aws-cdk/cdk-build-tools": "2.10.0",
85
+ "@aws-cdk/cdk-integ-tools": "2.10.0",
86
+ "@aws-cdk/cfn2ts": "2.10.0",
87
+ "@aws-cdk/pkglint": "2.10.0",
88
+ "@types/jest": "^27.4.0",
89
+ "aws-cdk-lib": "2.10.0",
83
90
  "constructs": "^10.0.0"
84
91
  },
85
92
  "dependencies": {},
86
93
  "homepage": "https://github.com/aws/aws-cdk",
87
94
  "peerDependencies": {
88
- "aws-cdk-lib": "^2.6.0",
95
+ "aws-cdk-lib": "^2.10.0",
89
96
  "constructs": "^10.0.0"
90
97
  },
91
98
  "engines": {
@@ -0,0 +1,12 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { CfnOutput, Stack } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import * as cloud9 from '@aws-cdk/aws-cloud9-alpha';
5
+ import * as ec2 from 'aws-cdk-lib/aws-ec2';
6
+
7
+ class Fixture extends Stack {
8
+ constructor(scope: Construct, id: string) {
9
+ super(scope, id);
10
+ /// here
11
+ }
12
+ }