@aws-cdk/aws-cloud9-alpha 2.40.0-alpha.0 → 2.41.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 +4 -4
- package/.jsii.tabl.json.gz +0 -0
- package/README.md +1 -1
- package/lib/environment.js +2 -2
- package/package.json +8 -8
- package/.jsii.tabl.json +0 -509
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.41.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -3024,7 +3024,7 @@
|
|
|
3024
3024
|
"stability": "experimental"
|
|
3025
3025
|
},
|
|
3026
3026
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
3027
|
-
"jsiiVersion": "1.
|
|
3027
|
+
"jsiiVersion": "1.67.0 (build 2c027f5)",
|
|
3028
3028
|
"keywords": [
|
|
3029
3029
|
"aws",
|
|
3030
3030
|
"cdk",
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
},
|
|
3046
3046
|
"name": "@aws-cdk/aws-cloud9-alpha",
|
|
3047
3047
|
"readme": {
|
|
3048
|
-
"markdown": "# AWS Cloud9 Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\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, imageId: cloud9.ImageId.AMAZON_LINUX_2, });\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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n\n// or specify in a different subnetSelection\nconst c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {\n vpc,\n subnetSelection: {\n subnetType: ec2.SubnetType.
|
|
3048
|
+
"markdown": "# AWS Cloud9 Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\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, imageId: cloud9.ImageId.AMAZON_LINUX_2, });\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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\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_WITH_EGRESS,\n },\n imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });\n```\n\n## Specifying EC2 AMI\n\nUse `imageId` to specify the EC2 AMI image to be used:\n\n```ts\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 imageId: cloud9.ImageId.UBUNTU_18_04,\n});\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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n```\n"
|
|
3049
3049
|
},
|
|
3050
3050
|
"repository": {
|
|
3051
3051
|
"directory": "packages/individual-packages/aws-cloud9",
|
|
@@ -3642,6 +3642,6 @@
|
|
|
3642
3642
|
"symbolId": "lib/environment:ImageId"
|
|
3643
3643
|
}
|
|
3644
3644
|
},
|
|
3645
|
-
"version": "2.
|
|
3645
|
+
"version": "2.41.0-alpha.0",
|
|
3646
3646
|
"fingerprint": "**********"
|
|
3647
3647
|
}
|
|
Binary file
|
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ new cloud9.Ec2Environment(this, 'Cloud9Env2', {
|
|
|
50
50
|
const c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {
|
|
51
51
|
vpc,
|
|
52
52
|
subnetSelection: {
|
|
53
|
-
subnetType: ec2.SubnetType.
|
|
53
|
+
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
|
|
54
54
|
},
|
|
55
55
|
imageId: cloud9.ImageId.AMAZON_LINUX_2,
|
|
56
56
|
});
|
package/lib/environment.js
CHANGED
|
@@ -98,7 +98,7 @@ class Ec2Environment extends cdk.Resource {
|
|
|
98
98
|
}
|
|
99
99
|
exports.Ec2Environment = Ec2Environment;
|
|
100
100
|
_a = JSII_RTTI_SYMBOL_1;
|
|
101
|
-
Ec2Environment[_a] = { fqn: "@aws-cdk/aws-cloud9-alpha.Ec2Environment", version: "2.
|
|
101
|
+
Ec2Environment[_a] = { fqn: "@aws-cdk/aws-cloud9-alpha.Ec2Environment", version: "2.41.0-alpha.0" };
|
|
102
102
|
/**
|
|
103
103
|
* The class for different repository providers
|
|
104
104
|
*/
|
|
@@ -122,5 +122,5 @@ class CloneRepository {
|
|
|
122
122
|
}
|
|
123
123
|
exports.CloneRepository = CloneRepository;
|
|
124
124
|
_b = JSII_RTTI_SYMBOL_1;
|
|
125
|
-
CloneRepository[_b] = { fqn: "@aws-cdk/aws-cloud9-alpha.CloneRepository", version: "2.
|
|
125
|
+
CloneRepository[_b] = { fqn: "@aws-cdk/aws-cloud9-alpha.CloneRepository", version: "2.41.0-alpha.0" };
|
|
126
126
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlbnZpcm9ubWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBRW5DLHVEQUEyRDtBQXNCM0Q7O0dBRUc7QUFDSCxJQUFZLGNBV1g7QUFYRCxXQUFZLGNBQWM7SUFDeEI7O09BRUc7SUFDSCw2Q0FBMkIsQ0FBQTtJQUMzQjs7OztPQUlHO0lBQ0gsNkNBQTJCLENBQUE7QUFDN0IsQ0FBQyxFQVhXLGNBQWMsR0FBZCxzQkFBYyxLQUFkLHNCQUFjLFFBV3pCO0FBRUQ7O0dBRUc7QUFDSCxJQUFZLE9BU1g7QUFURCxXQUFZLE9BQU87SUFDakI7O09BRUc7SUFDSCxrREFBdUMsQ0FBQTtJQUN2Qzs7T0FF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yBmcm9tQ29kZUNvbW1pdChyZXBvc2l0b3J5OiBjb2RlY29tbWl0LklSZXBvc2l0b3J5LCBwYXRoOiBzdHJpbmcpOiBDbG9uZVJlcG9zaXRvcnkge1xuICAgIHJldHVybiB7XG4gICAgICByZXBvc2l0b3J5VXJsOiByZXBvc2l0b3J5LnJlcG9zaXRvcnlDbG9uZVVybEh0dHAsXG4gICAgICBwYXRoQ29tcG9uZW50OiBwYXRoLFxuICAgIH07XG4gIH1cblxuICBwcml2YXRlIGNvbnN0cnVjdG9yKHB1YmxpYyByZWFkb25seSByZXBvc2l0b3J5VXJsOiBzdHJpbmcsIHB1YmxpYyByZWFkb25seSBwYXRoQ29tcG9uZW50OiBzdHJpbmcpIHt9XG59XG4iXX0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-cdk/aws-cloud9-alpha",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.41.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The CDK Construct Library for AWS::Cloud9",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -81,19 +81,19 @@
|
|
|
81
81
|
},
|
|
82
82
|
"license": "Apache-2.0",
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
85
|
-
"@aws-cdk/cfn2ts": "2.
|
|
86
|
-
"@aws-cdk/integ-runner": "2.
|
|
87
|
-
"@aws-cdk/pkglint": "2.
|
|
84
|
+
"@aws-cdk/cdk-build-tools": "2.41.0",
|
|
85
|
+
"@aws-cdk/cfn2ts": "2.41.0",
|
|
86
|
+
"@aws-cdk/integ-runner": "2.41.0",
|
|
87
|
+
"@aws-cdk/pkglint": "2.41.0",
|
|
88
88
|
"@types/jest": "^27.5.2",
|
|
89
|
-
"aws-cdk-lib": "2.
|
|
89
|
+
"aws-cdk-lib": "2.41.0",
|
|
90
90
|
"constructs": "^10.0.0",
|
|
91
|
-
"@aws-cdk/integ-tests-alpha": "2.
|
|
91
|
+
"@aws-cdk/integ-tests-alpha": "2.41.0-alpha.0"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {},
|
|
94
94
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"aws-cdk-lib": "^2.
|
|
96
|
+
"aws-cdk-lib": "^2.41.0",
|
|
97
97
|
"constructs": "^10.0.0"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|
package/.jsii.tabl.json
DELETED
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2",
|
|
3
|
-
"toolVersion": "1.66.0",
|
|
4
|
-
"snippets": {
|
|
5
|
-
"050fcea4fc201365471785bfeace7cbf0be4758b53a0de1f5e59114f5c186d96": {
|
|
6
|
-
"translations": {
|
|
7
|
-
"python": {
|
|
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, image_id=cloud9.ImageId.AMAZON_LINUX_2)\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 image_id=cloud9.ImageId.AMAZON_LINUX_2\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_WITH_NAT\n ),\n image_id=cloud9.ImageId.AMAZON_LINUX_2\n)\n\n# print the Cloud9 IDE URL in the output\nCfnOutput(self, \"URL\", value=c9env.ide_url)",
|
|
9
|
-
"version": "2"
|
|
10
|
-
},
|
|
11
|
-
"csharp": {
|
|
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, ImageId = ImageId.AMAZON_LINUX_2 });\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 ImageId = ImageId.AMAZON_LINUX_2\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_WITH_NAT\n },\n ImageId = ImageId.AMAZON_LINUX_2\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
|
-
"version": "1"
|
|
14
|
-
},
|
|
15
|
-
"java": {
|
|
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).imageId(ImageId.AMAZON_LINUX_2).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 .imageId(ImageId.AMAZON_LINUX_2)\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_WITH_NAT)\n .build())\n .imageId(ImageId.AMAZON_LINUX_2)\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
|
-
"version": "1"
|
|
18
|
-
},
|
|
19
|
-
"go": {
|
|
20
|
-
"source": "// create a cloud9 ec2 environment in a new VPC\nvpc := ec2.NewVpc(this, jsii.String(\"VPC\"), &vpcProps{\n\tmaxAzs: jsii.Number(3),\n})\ncloud9.NewEc2Environment(this, jsii.String(\"Cloud9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})\n\n// or create the cloud9 environment in the default VPC with specific instanceType\ndefaultVpc := ec2.vpc.fromLookup(this, jsii.String(\"DefaultVPC\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\ncloud9.NewEc2Environment(this, jsii.String(\"Cloud9Env2\"), &ec2EnvironmentProps{\n\tvpc: defaultVpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t3.large\")),\n\timageId: cloud9.*imageId_AMAZON_LINUX_2,\n})\n\n// or specify in a different subnetSelection\nc9env := cloud9.NewEc2Environment(this, jsii.String(\"Cloud9Env3\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tsubnetSelection: &subnetSelection{\n\t\tsubnetType: ec2.subnetType_PRIVATE_WITH_NAT,\n\t},\n\timageId: cloud9.*imageId_AMAZON_LINUX_2,\n})\n\n// print the Cloud9 IDE URL in the output\n// print the Cloud9 IDE URL in the output\nawscdk.NewCfnOutput(this, jsii.String(\"URL\"), &cfnOutputProps{\n\tvalue: c9env.ideUrl,\n})",
|
|
21
|
-
"version": "1"
|
|
22
|
-
},
|
|
23
|
-
"$": {
|
|
24
|
-
"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, imageId: cloud9.ImageId.AMAZON_LINUX_2, });\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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\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_WITH_NAT,\n },\n imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
|
|
25
|
-
"version": "0"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"location": {
|
|
29
|
-
"api": {
|
|
30
|
-
"api": "moduleReadme",
|
|
31
|
-
"moduleFqn": "@aws-cdk/aws-cloud9-alpha"
|
|
32
|
-
},
|
|
33
|
-
"field": {
|
|
34
|
-
"field": "markdown",
|
|
35
|
-
"line": 36
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"didCompile": true,
|
|
39
|
-
"fqnsReferenced": [
|
|
40
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
41
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
|
|
42
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
43
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
44
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
45
|
-
"aws-cdk-lib.CfnOutput",
|
|
46
|
-
"aws-cdk-lib.CfnOutputProps",
|
|
47
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
48
|
-
"aws-cdk-lib.aws_ec2.InstanceType",
|
|
49
|
-
"aws-cdk-lib.aws_ec2.SubnetSelection",
|
|
50
|
-
"aws-cdk-lib.aws_ec2.SubnetType",
|
|
51
|
-
"aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_WITH_NAT",
|
|
52
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
53
|
-
"aws-cdk-lib.aws_ec2.Vpc#fromLookup",
|
|
54
|
-
"aws-cdk-lib.aws_ec2.VpcLookupOptions",
|
|
55
|
-
"aws-cdk-lib.aws_ec2.VpcProps",
|
|
56
|
-
"constructs.Construct"
|
|
57
|
-
],
|
|
58
|
-
"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, imageId: cloud9.ImageId.AMAZON_LINUX_2, });\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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\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_WITH_NAT,\n },\n imageId: cloud9.ImageId.AMAZON_LINUX_2,\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",
|
|
59
|
-
"syntaxKindCounter": {
|
|
60
|
-
"8": 1,
|
|
61
|
-
"10": 7,
|
|
62
|
-
"75": 44,
|
|
63
|
-
"104": 6,
|
|
64
|
-
"106": 1,
|
|
65
|
-
"193": 7,
|
|
66
|
-
"194": 16,
|
|
67
|
-
"196": 1,
|
|
68
|
-
"197": 6,
|
|
69
|
-
"225": 3,
|
|
70
|
-
"226": 3,
|
|
71
|
-
"242": 3,
|
|
72
|
-
"243": 3,
|
|
73
|
-
"281": 10,
|
|
74
|
-
"282": 2
|
|
75
|
-
},
|
|
76
|
-
"fqnsFingerprint": "ded6d599c43c770b9481f04e52972ffcdbddeb3694019c32a8313ed6dc1bd271"
|
|
77
|
-
},
|
|
78
|
-
"08642c190065da664607b2158ccc77fe719ba04e899c909b0f71f0246dd09395": {
|
|
79
|
-
"translations": {
|
|
80
|
-
"python": {
|
|
81
|
-
"source": "default_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 image_id=cloud9.ImageId.UBUNTU_18_04\n)",
|
|
82
|
-
"version": "2"
|
|
83
|
-
},
|
|
84
|
-
"csharp": {
|
|
85
|
-
"source": "IVpc 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 ImageId = ImageId.UBUNTU_18_04\n});",
|
|
86
|
-
"version": "1"
|
|
87
|
-
},
|
|
88
|
-
"java": {
|
|
89
|
-
"source": "IVpc 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 .imageId(ImageId.UBUNTU_18_04)\n .build();",
|
|
90
|
-
"version": "1"
|
|
91
|
-
},
|
|
92
|
-
"go": {
|
|
93
|
-
"source": "defaultVpc := ec2.vpc.fromLookup(this, jsii.String(\"DefaultVPC\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\ncloud9.NewEc2Environment(this, jsii.String(\"Cloud9Env2\"), &ec2EnvironmentProps{\n\tvpc: defaultVpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t3.large\")),\n\timageId: cloud9.imageId_UBUNTU_18_04,\n})",
|
|
94
|
-
"version": "1"
|
|
95
|
-
},
|
|
96
|
-
"$": {
|
|
97
|
-
"source": "const defaultVpc = ec2.Vpc.fromLookup(this, 'DefaultVPC', { isDefault: true });\nnew cloud9.Ec2Environment(this, 'Cloud9Env2', {\n vpc: defaultVpc,\n instanceType: new ec2.InstanceType('t3.large'),\n imageId: cloud9.ImageId.UBUNTU_18_04,\n});",
|
|
98
|
-
"version": "0"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"location": {
|
|
102
|
-
"api": {
|
|
103
|
-
"api": "moduleReadme",
|
|
104
|
-
"moduleFqn": "@aws-cdk/aws-cloud9-alpha"
|
|
105
|
-
},
|
|
106
|
-
"field": {
|
|
107
|
-
"field": "markdown",
|
|
108
|
-
"line": 66
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"didCompile": true,
|
|
112
|
-
"fqnsReferenced": [
|
|
113
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
114
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
115
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
116
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#UBUNTU_18_04",
|
|
117
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
118
|
-
"aws-cdk-lib.aws_ec2.InstanceType",
|
|
119
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
120
|
-
"aws-cdk-lib.aws_ec2.Vpc#fromLookup",
|
|
121
|
-
"aws-cdk-lib.aws_ec2.VpcLookupOptions",
|
|
122
|
-
"constructs.Construct"
|
|
123
|
-
],
|
|
124
|
-
"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\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 imageId: cloud9.ImageId.UBUNTU_18_04,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
125
|
-
"syntaxKindCounter": {
|
|
126
|
-
"10": 3,
|
|
127
|
-
"75": 16,
|
|
128
|
-
"104": 2,
|
|
129
|
-
"106": 1,
|
|
130
|
-
"193": 2,
|
|
131
|
-
"194": 6,
|
|
132
|
-
"196": 1,
|
|
133
|
-
"197": 2,
|
|
134
|
-
"225": 1,
|
|
135
|
-
"226": 1,
|
|
136
|
-
"242": 1,
|
|
137
|
-
"243": 1,
|
|
138
|
-
"281": 4
|
|
139
|
-
},
|
|
140
|
-
"fqnsFingerprint": "73d892b98238f746ef8f0e33d242ccf15d7e37e780fa0fa649ac9c042d75734f"
|
|
141
|
-
},
|
|
142
|
-
"427ab1a03f2afa50c5912d563b713cd4efd00dfa0d3b5eb11d7f5f04d35e5963": {
|
|
143
|
-
"translations": {
|
|
144
|
-
"python": {
|
|
145
|
-
"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 image_id=cloud9.ImageId.AMAZON_LINUX_2\n)",
|
|
146
|
-
"version": "2"
|
|
147
|
-
},
|
|
148
|
-
"csharp": {
|
|
149
|
-
"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 ImageId = ImageId.AMAZON_LINUX_2\n});",
|
|
150
|
-
"version": "1"
|
|
151
|
-
},
|
|
152
|
-
"java": {
|
|
153
|
-
"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 .imageId(ImageId.AMAZON_LINUX_2)\n .build();",
|
|
154
|
-
"version": "1"
|
|
155
|
-
},
|
|
156
|
-
"go": {
|
|
157
|
-
"source": "import codecommit \"github.com/aws/aws-cdk-go/awscdk\"\n\n// create a new Cloud9 environment and clone the two repositories\nvar vpc vpc\n\n\n// create a codecommit repository to clone into the cloud9 environment\nrepoNew := codecommit.NewRepository(this, jsii.String(\"RepoNew\"), &repositoryProps{\n\trepositoryName: jsii.String(\"new-repo\"),\n})\n\n// import an existing codecommit repository to clone into the cloud9 environment\nrepoExisting := codecommit.repository.fromRepositoryName(this, jsii.String(\"RepoExisting\"), jsii.String(\"existing-repo\"))\ncloud9.NewEc2Environment(this, jsii.String(\"C9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tclonedRepositories: []cloneRepository{\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoNew, jsii.String(\"/src/new-repo\")),\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoExisting, jsii.String(\"/src/existing-repo\")),\n\t},\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})",
|
|
158
|
-
"version": "1"
|
|
159
|
-
},
|
|
160
|
-
"$": {
|
|
161
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});",
|
|
162
|
-
"version": "0"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"location": {
|
|
166
|
-
"api": {
|
|
167
|
-
"api": "moduleReadme",
|
|
168
|
-
"moduleFqn": "@aws-cdk/aws-cloud9-alpha"
|
|
169
|
-
},
|
|
170
|
-
"field": {
|
|
171
|
-
"field": "markdown",
|
|
172
|
-
"line": 79
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"didCompile": true,
|
|
176
|
-
"fqnsReferenced": [
|
|
177
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
178
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
179
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
180
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
181
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
182
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
183
|
-
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
184
|
-
"aws-cdk-lib.aws_codecommit.Repository",
|
|
185
|
-
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
186
|
-
"aws-cdk-lib.aws_codecommit.RepositoryProps",
|
|
187
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
188
|
-
"constructs.Construct"
|
|
189
|
-
],
|
|
190
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
191
|
-
"syntaxKindCounter": {
|
|
192
|
-
"10": 8,
|
|
193
|
-
"75": 28,
|
|
194
|
-
"104": 3,
|
|
195
|
-
"130": 1,
|
|
196
|
-
"153": 1,
|
|
197
|
-
"169": 1,
|
|
198
|
-
"192": 1,
|
|
199
|
-
"193": 2,
|
|
200
|
-
"194": 10,
|
|
201
|
-
"196": 3,
|
|
202
|
-
"197": 2,
|
|
203
|
-
"225": 3,
|
|
204
|
-
"226": 1,
|
|
205
|
-
"242": 3,
|
|
206
|
-
"243": 3,
|
|
207
|
-
"254": 1,
|
|
208
|
-
"255": 1,
|
|
209
|
-
"256": 1,
|
|
210
|
-
"281": 3,
|
|
211
|
-
"282": 1,
|
|
212
|
-
"290": 1
|
|
213
|
-
},
|
|
214
|
-
"fqnsFingerprint": "d8e266fdc51bf1e741634dc4eeb414b7caac3ef265a3f3609849063452b01c8e"
|
|
215
|
-
},
|
|
216
|
-
"73ddbc40caef0394118b23f2197d17d254e2f2d1e62cb87d822f85a11e0db8a8": {
|
|
217
|
-
"translations": {
|
|
218
|
-
"python": {
|
|
219
|
-
"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 image_id=cloud9.ImageId.AMAZON_LINUX_2\n)",
|
|
220
|
-
"version": "2"
|
|
221
|
-
},
|
|
222
|
-
"csharp": {
|
|
223
|
-
"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 ImageId = ImageId.AMAZON_LINUX_2\n});",
|
|
224
|
-
"version": "1"
|
|
225
|
-
},
|
|
226
|
-
"java": {
|
|
227
|
-
"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 .imageId(ImageId.AMAZON_LINUX_2)\n .build();",
|
|
228
|
-
"version": "1"
|
|
229
|
-
},
|
|
230
|
-
"go": {
|
|
231
|
-
"source": "import codecommit \"github.com/aws/aws-cdk-go/awscdk\"\n\n// create a new Cloud9 environment and clone the two repositories\nvar vpc vpc\n\n\n// create a codecommit repository to clone into the cloud9 environment\nrepoNew := codecommit.NewRepository(this, jsii.String(\"RepoNew\"), &repositoryProps{\n\trepositoryName: jsii.String(\"new-repo\"),\n})\n\n// import an existing codecommit repository to clone into the cloud9 environment\nrepoExisting := codecommit.repository.fromRepositoryName(this, jsii.String(\"RepoExisting\"), jsii.String(\"existing-repo\"))\ncloud9.NewEc2Environment(this, jsii.String(\"C9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tclonedRepositories: []cloneRepository{\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoNew, jsii.String(\"/src/new-repo\")),\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoExisting, jsii.String(\"/src/existing-repo\")),\n\t},\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})",
|
|
232
|
-
"version": "1"
|
|
233
|
-
},
|
|
234
|
-
"$": {
|
|
235
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});",
|
|
236
|
-
"version": "0"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"location": {
|
|
240
|
-
"api": {
|
|
241
|
-
"api": "type",
|
|
242
|
-
"fqn": "@aws-cdk/aws-cloud9-alpha.CloneRepository"
|
|
243
|
-
},
|
|
244
|
-
"field": {
|
|
245
|
-
"field": "example"
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
"didCompile": true,
|
|
249
|
-
"fqnsReferenced": [
|
|
250
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
251
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
252
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
253
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
254
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
255
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
256
|
-
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
257
|
-
"aws-cdk-lib.aws_codecommit.Repository",
|
|
258
|
-
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
259
|
-
"aws-cdk-lib.aws_codecommit.RepositoryProps",
|
|
260
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
261
|
-
"constructs.Construct"
|
|
262
|
-
],
|
|
263
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
264
|
-
"syntaxKindCounter": {
|
|
265
|
-
"10": 8,
|
|
266
|
-
"75": 28,
|
|
267
|
-
"104": 3,
|
|
268
|
-
"130": 1,
|
|
269
|
-
"153": 1,
|
|
270
|
-
"169": 1,
|
|
271
|
-
"192": 1,
|
|
272
|
-
"193": 2,
|
|
273
|
-
"194": 10,
|
|
274
|
-
"196": 3,
|
|
275
|
-
"197": 2,
|
|
276
|
-
"225": 3,
|
|
277
|
-
"226": 1,
|
|
278
|
-
"242": 3,
|
|
279
|
-
"243": 3,
|
|
280
|
-
"254": 1,
|
|
281
|
-
"255": 1,
|
|
282
|
-
"256": 1,
|
|
283
|
-
"281": 3,
|
|
284
|
-
"282": 1,
|
|
285
|
-
"290": 1
|
|
286
|
-
},
|
|
287
|
-
"fqnsFingerprint": "d8e266fdc51bf1e741634dc4eeb414b7caac3ef265a3f3609849063452b01c8e"
|
|
288
|
-
},
|
|
289
|
-
"d0e225fafb95a3901fd3e2b8fc4b02f344881d7ffba35b0b6193046cc16887e2": {
|
|
290
|
-
"translations": {
|
|
291
|
-
"python": {
|
|
292
|
-
"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 image_id=cloud9.ImageId.AMAZON_LINUX_2\n)",
|
|
293
|
-
"version": "2"
|
|
294
|
-
},
|
|
295
|
-
"csharp": {
|
|
296
|
-
"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 ImageId = ImageId.AMAZON_LINUX_2\n});",
|
|
297
|
-
"version": "1"
|
|
298
|
-
},
|
|
299
|
-
"java": {
|
|
300
|
-
"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 .imageId(ImageId.AMAZON_LINUX_2)\n .build();",
|
|
301
|
-
"version": "1"
|
|
302
|
-
},
|
|
303
|
-
"go": {
|
|
304
|
-
"source": "import codecommit \"github.com/aws/aws-cdk-go/awscdk\"\n\n// create a new Cloud9 environment and clone the two repositories\nvar vpc vpc\n\n\n// create a codecommit repository to clone into the cloud9 environment\nrepoNew := codecommit.NewRepository(this, jsii.String(\"RepoNew\"), &repositoryProps{\n\trepositoryName: jsii.String(\"new-repo\"),\n})\n\n// import an existing codecommit repository to clone into the cloud9 environment\nrepoExisting := codecommit.repository.fromRepositoryName(this, jsii.String(\"RepoExisting\"), jsii.String(\"existing-repo\"))\ncloud9.NewEc2Environment(this, jsii.String(\"C9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tclonedRepositories: []cloneRepository{\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoNew, jsii.String(\"/src/new-repo\")),\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoExisting, jsii.String(\"/src/existing-repo\")),\n\t},\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})",
|
|
305
|
-
"version": "1"
|
|
306
|
-
},
|
|
307
|
-
"$": {
|
|
308
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});",
|
|
309
|
-
"version": "0"
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
"location": {
|
|
313
|
-
"api": {
|
|
314
|
-
"api": "type",
|
|
315
|
-
"fqn": "@aws-cdk/aws-cloud9-alpha.Ec2Environment"
|
|
316
|
-
},
|
|
317
|
-
"field": {
|
|
318
|
-
"field": "example"
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
"didCompile": true,
|
|
322
|
-
"fqnsReferenced": [
|
|
323
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
324
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
325
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
326
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
327
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
328
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
329
|
-
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
330
|
-
"aws-cdk-lib.aws_codecommit.Repository",
|
|
331
|
-
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
332
|
-
"aws-cdk-lib.aws_codecommit.RepositoryProps",
|
|
333
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
334
|
-
"constructs.Construct"
|
|
335
|
-
],
|
|
336
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
337
|
-
"syntaxKindCounter": {
|
|
338
|
-
"10": 8,
|
|
339
|
-
"75": 28,
|
|
340
|
-
"104": 3,
|
|
341
|
-
"130": 1,
|
|
342
|
-
"153": 1,
|
|
343
|
-
"169": 1,
|
|
344
|
-
"192": 1,
|
|
345
|
-
"193": 2,
|
|
346
|
-
"194": 10,
|
|
347
|
-
"196": 3,
|
|
348
|
-
"197": 2,
|
|
349
|
-
"225": 3,
|
|
350
|
-
"226": 1,
|
|
351
|
-
"242": 3,
|
|
352
|
-
"243": 3,
|
|
353
|
-
"254": 1,
|
|
354
|
-
"255": 1,
|
|
355
|
-
"256": 1,
|
|
356
|
-
"281": 3,
|
|
357
|
-
"282": 1,
|
|
358
|
-
"290": 1
|
|
359
|
-
},
|
|
360
|
-
"fqnsFingerprint": "d8e266fdc51bf1e741634dc4eeb414b7caac3ef265a3f3609849063452b01c8e"
|
|
361
|
-
},
|
|
362
|
-
"423c109b93d0c14505f765ce02fad6545eeeb9f39219fcb0188fef9b867eaefd": {
|
|
363
|
-
"translations": {
|
|
364
|
-
"python": {
|
|
365
|
-
"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 image_id=cloud9.ImageId.AMAZON_LINUX_2\n)",
|
|
366
|
-
"version": "2"
|
|
367
|
-
},
|
|
368
|
-
"csharp": {
|
|
369
|
-
"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 ImageId = ImageId.AMAZON_LINUX_2\n});",
|
|
370
|
-
"version": "1"
|
|
371
|
-
},
|
|
372
|
-
"java": {
|
|
373
|
-
"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 .imageId(ImageId.AMAZON_LINUX_2)\n .build();",
|
|
374
|
-
"version": "1"
|
|
375
|
-
},
|
|
376
|
-
"go": {
|
|
377
|
-
"source": "import codecommit \"github.com/aws/aws-cdk-go/awscdk\"\n\n// create a new Cloud9 environment and clone the two repositories\nvar vpc vpc\n\n\n// create a codecommit repository to clone into the cloud9 environment\nrepoNew := codecommit.NewRepository(this, jsii.String(\"RepoNew\"), &repositoryProps{\n\trepositoryName: jsii.String(\"new-repo\"),\n})\n\n// import an existing codecommit repository to clone into the cloud9 environment\nrepoExisting := codecommit.repository.fromRepositoryName(this, jsii.String(\"RepoExisting\"), jsii.String(\"existing-repo\"))\ncloud9.NewEc2Environment(this, jsii.String(\"C9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tclonedRepositories: []cloneRepository{\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoNew, jsii.String(\"/src/new-repo\")),\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoExisting, jsii.String(\"/src/existing-repo\")),\n\t},\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})",
|
|
378
|
-
"version": "1"
|
|
379
|
-
},
|
|
380
|
-
"$": {
|
|
381
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});",
|
|
382
|
-
"version": "0"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
"location": {
|
|
386
|
-
"api": {
|
|
387
|
-
"api": "type",
|
|
388
|
-
"fqn": "@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps"
|
|
389
|
-
},
|
|
390
|
-
"field": {
|
|
391
|
-
"field": "example"
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
"didCompile": true,
|
|
395
|
-
"fqnsReferenced": [
|
|
396
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
397
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
398
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
399
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
400
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
401
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
402
|
-
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
403
|
-
"aws-cdk-lib.aws_codecommit.Repository",
|
|
404
|
-
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
405
|
-
"aws-cdk-lib.aws_codecommit.RepositoryProps",
|
|
406
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
407
|
-
"constructs.Construct"
|
|
408
|
-
],
|
|
409
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
410
|
-
"syntaxKindCounter": {
|
|
411
|
-
"10": 8,
|
|
412
|
-
"75": 28,
|
|
413
|
-
"104": 3,
|
|
414
|
-
"130": 1,
|
|
415
|
-
"153": 1,
|
|
416
|
-
"169": 1,
|
|
417
|
-
"192": 1,
|
|
418
|
-
"193": 2,
|
|
419
|
-
"194": 10,
|
|
420
|
-
"196": 3,
|
|
421
|
-
"197": 2,
|
|
422
|
-
"225": 3,
|
|
423
|
-
"226": 1,
|
|
424
|
-
"242": 3,
|
|
425
|
-
"243": 3,
|
|
426
|
-
"254": 1,
|
|
427
|
-
"255": 1,
|
|
428
|
-
"256": 1,
|
|
429
|
-
"281": 3,
|
|
430
|
-
"282": 1,
|
|
431
|
-
"290": 1
|
|
432
|
-
},
|
|
433
|
-
"fqnsFingerprint": "d8e266fdc51bf1e741634dc4eeb414b7caac3ef265a3f3609849063452b01c8e"
|
|
434
|
-
},
|
|
435
|
-
"7ad8a53ea241a9b167afcefe52fbee5bf904cea78e0a8e0f7eedbd483c68ba51": {
|
|
436
|
-
"translations": {
|
|
437
|
-
"python": {
|
|
438
|
-
"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 image_id=cloud9.ImageId.AMAZON_LINUX_2\n)",
|
|
439
|
-
"version": "2"
|
|
440
|
-
},
|
|
441
|
-
"csharp": {
|
|
442
|
-
"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 ImageId = ImageId.AMAZON_LINUX_2\n});",
|
|
443
|
-
"version": "1"
|
|
444
|
-
},
|
|
445
|
-
"java": {
|
|
446
|
-
"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 .imageId(ImageId.AMAZON_LINUX_2)\n .build();",
|
|
447
|
-
"version": "1"
|
|
448
|
-
},
|
|
449
|
-
"go": {
|
|
450
|
-
"source": "import codecommit \"github.com/aws/aws-cdk-go/awscdk\"\n\n// create a new Cloud9 environment and clone the two repositories\nvar vpc vpc\n\n\n// create a codecommit repository to clone into the cloud9 environment\nrepoNew := codecommit.NewRepository(this, jsii.String(\"RepoNew\"), &repositoryProps{\n\trepositoryName: jsii.String(\"new-repo\"),\n})\n\n// import an existing codecommit repository to clone into the cloud9 environment\nrepoExisting := codecommit.repository.fromRepositoryName(this, jsii.String(\"RepoExisting\"), jsii.String(\"existing-repo\"))\ncloud9.NewEc2Environment(this, jsii.String(\"C9Env\"), &ec2EnvironmentProps{\n\tvpc: vpc,\n\tclonedRepositories: []cloneRepository{\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoNew, jsii.String(\"/src/new-repo\")),\n\t\tcloud9.*cloneRepository.fromCodeCommit(repoExisting, jsii.String(\"/src/existing-repo\")),\n\t},\n\timageId: cloud9.imageId_AMAZON_LINUX_2,\n})",
|
|
451
|
-
"version": "1"
|
|
452
|
-
},
|
|
453
|
-
"$": {
|
|
454
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});",
|
|
455
|
-
"version": "0"
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
"location": {
|
|
459
|
-
"api": {
|
|
460
|
-
"api": "type",
|
|
461
|
-
"fqn": "@aws-cdk/aws-cloud9-alpha.ImageId"
|
|
462
|
-
},
|
|
463
|
-
"field": {
|
|
464
|
-
"field": "example"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
"didCompile": true,
|
|
468
|
-
"fqnsReferenced": [
|
|
469
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
470
|
-
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
471
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
472
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
473
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
474
|
-
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
475
|
-
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
476
|
-
"aws-cdk-lib.aws_codecommit.Repository",
|
|
477
|
-
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
478
|
-
"aws-cdk-lib.aws_codecommit.RepositoryProps",
|
|
479
|
-
"aws-cdk-lib.aws_ec2.IVpc",
|
|
480
|
-
"constructs.Construct"
|
|
481
|
-
],
|
|
482
|
-
"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 imageId: cloud9.ImageId.AMAZON_LINUX_2,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
|
483
|
-
"syntaxKindCounter": {
|
|
484
|
-
"10": 8,
|
|
485
|
-
"75": 28,
|
|
486
|
-
"104": 3,
|
|
487
|
-
"130": 1,
|
|
488
|
-
"153": 1,
|
|
489
|
-
"169": 1,
|
|
490
|
-
"192": 1,
|
|
491
|
-
"193": 2,
|
|
492
|
-
"194": 10,
|
|
493
|
-
"196": 3,
|
|
494
|
-
"197": 2,
|
|
495
|
-
"225": 3,
|
|
496
|
-
"226": 1,
|
|
497
|
-
"242": 3,
|
|
498
|
-
"243": 3,
|
|
499
|
-
"254": 1,
|
|
500
|
-
"255": 1,
|
|
501
|
-
"256": 1,
|
|
502
|
-
"281": 3,
|
|
503
|
-
"282": 1,
|
|
504
|
-
"290": 1
|
|
505
|
-
},
|
|
506
|
-
"fqnsFingerprint": "d8e266fdc51bf1e741634dc4eeb414b7caac3ef265a3f3609849063452b01c8e"
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|