@aws-cdk/aws-cloud9-alpha 2.32.1-alpha.0 → 2.34.1-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 +79 -28
- package/.jsii.tabl.json +245 -96
- package/.warnings.jsii.js +5 -1
- package/README.md +17 -1
- package/lib/environment.d.ts +19 -1
- package/lib/environment.js +23 -5
- package/package.json +9 -8
package/.jsii.tabl.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2",
|
|
3
|
-
"toolVersion": "1.
|
|
3
|
+
"toolVersion": "1.63.0",
|
|
4
4
|
"snippets": {
|
|
5
|
-
"
|
|
5
|
+
"050fcea4fc201365471785bfeace7cbf0be4758b53a0de1f5e59114f5c186d96": {
|
|
6
6
|
"translations": {
|
|
7
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)\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_WITH_NAT\n )\n)\n\n# print the Cloud9 IDE URL in the output\nCfnOutput(self, \"URL\", value=c9env.ide_url)",
|
|
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
9
|
"version": "2"
|
|
10
10
|
},
|
|
11
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 });\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_WITH_NAT\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 });",
|
|
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
13
|
"version": "1"
|
|
14
14
|
},
|
|
15
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).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_WITH_NAT)\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).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
17
|
"version": "1"
|
|
18
18
|
},
|
|
19
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})\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})\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})\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})",
|
|
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
21
|
"version": "1"
|
|
22
22
|
},
|
|
23
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 });\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_WITH_NAT,\n },\n});\n\n// print the Cloud9 IDE URL in the output\nnew CfnOutput(this, 'URL', { value: c9env.ideUrl });",
|
|
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
25
|
"version": "0"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
41
41
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
|
|
42
42
|
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
43
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
44
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
43
45
|
"aws-cdk-lib.CfnOutput",
|
|
44
46
|
"aws-cdk-lib.CfnOutputProps",
|
|
45
47
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
@@ -53,46 +55,110 @@
|
|
|
53
55
|
"aws-cdk-lib.aws_ec2.VpcProps",
|
|
54
56
|
"constructs.Construct"
|
|
55
57
|
],
|
|
56
|
-
"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_WITH_NAT,\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",
|
|
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",
|
|
57
59
|
"syntaxKindCounter": {
|
|
58
60
|
"8": 1,
|
|
59
61
|
"10": 7,
|
|
60
|
-
"75":
|
|
62
|
+
"75": 44,
|
|
61
63
|
"104": 6,
|
|
62
64
|
"106": 1,
|
|
63
65
|
"193": 7,
|
|
64
|
-
"194":
|
|
66
|
+
"194": 16,
|
|
65
67
|
"196": 1,
|
|
66
68
|
"197": 6,
|
|
67
69
|
"225": 3,
|
|
68
70
|
"226": 3,
|
|
69
71
|
"242": 3,
|
|
70
72
|
"243": 3,
|
|
71
|
-
"281":
|
|
73
|
+
"281": 10,
|
|
72
74
|
"282": 2
|
|
73
75
|
},
|
|
74
|
-
"fqnsFingerprint": "
|
|
76
|
+
"fqnsFingerprint": "eb3cc76be69da30b800f5a8cacae2ab32ed5dac081088d255eb3047d9c155186"
|
|
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": "35cfe8d608ec648355a56a4ae3288e626f9401b7985e1dcd5b3061bed2e54336"
|
|
75
141
|
},
|
|
76
|
-
"
|
|
142
|
+
"427ab1a03f2afa50c5912d563b713cd4efd00dfa0d3b5eb11d7f5f04d35e5963": {
|
|
77
143
|
"translations": {
|
|
78
144
|
"python": {
|
|
79
|
-
"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)",
|
|
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)",
|
|
80
146
|
"version": "2"
|
|
81
147
|
},
|
|
82
148
|
"csharp": {
|
|
83
|
-
"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});",
|
|
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});",
|
|
84
150
|
"version": "1"
|
|
85
151
|
},
|
|
86
152
|
"java": {
|
|
87
|
-
"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();",
|
|
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();",
|
|
88
154
|
"version": "1"
|
|
89
155
|
},
|
|
90
156
|
"go": {
|
|
91
|
-
"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})",
|
|
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})",
|
|
92
158
|
"version": "1"
|
|
93
159
|
},
|
|
94
160
|
"$": {
|
|
95
|
-
"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});",
|
|
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});",
|
|
96
162
|
"version": "0"
|
|
97
163
|
}
|
|
98
164
|
},
|
|
@@ -103,7 +169,7 @@
|
|
|
103
169
|
},
|
|
104
170
|
"field": {
|
|
105
171
|
"field": "markdown",
|
|
106
|
-
"line":
|
|
172
|
+
"line": 79
|
|
107
173
|
}
|
|
108
174
|
},
|
|
109
175
|
"didCompile": true,
|
|
@@ -112,6 +178,8 @@
|
|
|
112
178
|
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
113
179
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
114
180
|
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
181
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
182
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
115
183
|
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
116
184
|
"aws-cdk-lib.aws_codecommit.Repository",
|
|
117
185
|
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
@@ -119,17 +187,17 @@
|
|
|
119
187
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
120
188
|
"constructs.Construct"
|
|
121
189
|
],
|
|
122
|
-
"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",
|
|
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",
|
|
123
191
|
"syntaxKindCounter": {
|
|
124
192
|
"10": 8,
|
|
125
|
-
"75":
|
|
193
|
+
"75": 28,
|
|
126
194
|
"104": 3,
|
|
127
195
|
"130": 1,
|
|
128
196
|
"153": 1,
|
|
129
197
|
"169": 1,
|
|
130
198
|
"192": 1,
|
|
131
199
|
"193": 2,
|
|
132
|
-
"194":
|
|
200
|
+
"194": 10,
|
|
133
201
|
"196": 3,
|
|
134
202
|
"197": 2,
|
|
135
203
|
"225": 3,
|
|
@@ -139,32 +207,32 @@
|
|
|
139
207
|
"254": 1,
|
|
140
208
|
"255": 1,
|
|
141
209
|
"256": 1,
|
|
142
|
-
"281":
|
|
210
|
+
"281": 3,
|
|
143
211
|
"282": 1,
|
|
144
212
|
"290": 1
|
|
145
213
|
},
|
|
146
|
-
"fqnsFingerprint": "
|
|
214
|
+
"fqnsFingerprint": "f18c3fc9a7c092cf5c0326981df305a130436b7eff94058824f5caca4787d7ae"
|
|
147
215
|
},
|
|
148
|
-
"
|
|
216
|
+
"73ddbc40caef0394118b23f2197d17d254e2f2d1e62cb87d822f85a11e0db8a8": {
|
|
149
217
|
"translations": {
|
|
150
218
|
"python": {
|
|
151
|
-
"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)",
|
|
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)",
|
|
152
220
|
"version": "2"
|
|
153
221
|
},
|
|
154
222
|
"csharp": {
|
|
155
|
-
"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});",
|
|
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});",
|
|
156
224
|
"version": "1"
|
|
157
225
|
},
|
|
158
226
|
"java": {
|
|
159
|
-
"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();",
|
|
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();",
|
|
160
228
|
"version": "1"
|
|
161
229
|
},
|
|
162
230
|
"go": {
|
|
163
|
-
"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})",
|
|
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})",
|
|
164
232
|
"version": "1"
|
|
165
233
|
},
|
|
166
234
|
"$": {
|
|
167
|
-
"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});",
|
|
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});",
|
|
168
236
|
"version": "0"
|
|
169
237
|
}
|
|
170
238
|
},
|
|
@@ -183,6 +251,8 @@
|
|
|
183
251
|
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
184
252
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
185
253
|
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
254
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId",
|
|
255
|
+
"@aws-cdk/aws-cloud9-alpha.ImageId#AMAZON_LINUX_2",
|
|
186
256
|
"aws-cdk-lib.aws_codecommit.IRepository",
|
|
187
257
|
"aws-cdk-lib.aws_codecommit.Repository",
|
|
188
258
|
"aws-cdk-lib.aws_codecommit.Repository#fromRepositoryName",
|
|
@@ -190,17 +260,17 @@
|
|
|
190
260
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
191
261
|
"constructs.Construct"
|
|
192
262
|
],
|
|
193
|
-
"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",
|
|
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",
|
|
194
264
|
"syntaxKindCounter": {
|
|
195
265
|
"10": 8,
|
|
196
|
-
"75":
|
|
266
|
+
"75": 28,
|
|
197
267
|
"104": 3,
|
|
198
268
|
"130": 1,
|
|
199
269
|
"153": 1,
|
|
200
270
|
"169": 1,
|
|
201
271
|
"192": 1,
|
|
202
272
|
"193": 2,
|
|
203
|
-
"194":
|
|
273
|
+
"194": 10,
|
|
204
274
|
"196": 3,
|
|
205
275
|
"197": 2,
|
|
206
276
|
"225": 3,
|
|
@@ -210,32 +280,32 @@
|
|
|
210
280
|
"254": 1,
|
|
211
281
|
"255": 1,
|
|
212
282
|
"256": 1,
|
|
213
|
-
"281":
|
|
283
|
+
"281": 3,
|
|
214
284
|
"282": 1,
|
|
215
285
|
"290": 1
|
|
216
286
|
},
|
|
217
|
-
"fqnsFingerprint": "
|
|
287
|
+
"fqnsFingerprint": "f18c3fc9a7c092cf5c0326981df305a130436b7eff94058824f5caca4787d7ae"
|
|
218
288
|
},
|
|
219
|
-
"
|
|
289
|
+
"d0e225fafb95a3901fd3e2b8fc4b02f344881d7ffba35b0b6193046cc16887e2": {
|
|
220
290
|
"translations": {
|
|
221
291
|
"python": {
|
|
222
|
-
"source": "# create a
|
|
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)",
|
|
223
293
|
"version": "2"
|
|
224
294
|
},
|
|
225
295
|
"csharp": {
|
|
226
|
-
"source": "// create a
|
|
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});",
|
|
227
297
|
"version": "1"
|
|
228
298
|
},
|
|
229
299
|
"java": {
|
|
230
|
-
"source": "// create a
|
|
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();",
|
|
231
301
|
"version": "1"
|
|
232
302
|
},
|
|
233
303
|
"go": {
|
|
234
|
-
"source": "// create a
|
|
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})",
|
|
235
305
|
"version": "1"
|
|
236
306
|
},
|
|
237
307
|
"$": {
|
|
238
|
-
"source": "// create a
|
|
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});",
|
|
239
309
|
"version": "0"
|
|
240
310
|
}
|
|
241
311
|
},
|
|
@@ -250,62 +320,65 @@
|
|
|
250
320
|
},
|
|
251
321
|
"didCompile": true,
|
|
252
322
|
"fqnsReferenced": [
|
|
323
|
+
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
324
|
+
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
253
325
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
254
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
|
|
255
326
|
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
256
|
-
"aws-cdk-
|
|
257
|
-
"aws-cdk-
|
|
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",
|
|
258
333
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
259
|
-
"aws-cdk-lib.aws_ec2.InstanceType",
|
|
260
|
-
"aws-cdk-lib.aws_ec2.SubnetSelection",
|
|
261
|
-
"aws-cdk-lib.aws_ec2.SubnetType",
|
|
262
|
-
"aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_WITH_NAT",
|
|
263
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
264
|
-
"aws-cdk-lib.aws_ec2.Vpc#fromLookup",
|
|
265
|
-
"aws-cdk-lib.aws_ec2.VpcLookupOptions",
|
|
266
|
-
"aws-cdk-lib.aws_ec2.VpcProps",
|
|
267
334
|
"constructs.Construct"
|
|
268
335
|
],
|
|
269
|
-
"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
|
|
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",
|
|
270
337
|
"syntaxKindCounter": {
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"
|
|
338
|
+
"10": 8,
|
|
339
|
+
"75": 28,
|
|
340
|
+
"104": 3,
|
|
341
|
+
"130": 1,
|
|
342
|
+
"153": 1,
|
|
343
|
+
"169": 1,
|
|
344
|
+
"192": 1,
|
|
345
|
+
"193": 2,
|
|
277
346
|
"194": 10,
|
|
278
|
-
"196":
|
|
279
|
-
"197":
|
|
347
|
+
"196": 3,
|
|
348
|
+
"197": 2,
|
|
280
349
|
"225": 3,
|
|
281
|
-
"226":
|
|
350
|
+
"226": 1,
|
|
282
351
|
"242": 3,
|
|
283
352
|
"243": 3,
|
|
284
|
-
"
|
|
285
|
-
"
|
|
353
|
+
"254": 1,
|
|
354
|
+
"255": 1,
|
|
355
|
+
"256": 1,
|
|
356
|
+
"281": 3,
|
|
357
|
+
"282": 1,
|
|
358
|
+
"290": 1
|
|
286
359
|
},
|
|
287
|
-
"fqnsFingerprint": "
|
|
360
|
+
"fqnsFingerprint": "f18c3fc9a7c092cf5c0326981df305a130436b7eff94058824f5caca4787d7ae"
|
|
288
361
|
},
|
|
289
|
-
"
|
|
362
|
+
"423c109b93d0c14505f765ce02fad6545eeeb9f39219fcb0188fef9b867eaefd": {
|
|
290
363
|
"translations": {
|
|
291
364
|
"python": {
|
|
292
|
-
"source": "# create a
|
|
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)",
|
|
293
366
|
"version": "2"
|
|
294
367
|
},
|
|
295
368
|
"csharp": {
|
|
296
|
-
"source": "// create a
|
|
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});",
|
|
297
370
|
"version": "1"
|
|
298
371
|
},
|
|
299
372
|
"java": {
|
|
300
|
-
"source": "// create a
|
|
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();",
|
|
301
374
|
"version": "1"
|
|
302
375
|
},
|
|
303
376
|
"go": {
|
|
304
|
-
"source": "// create a
|
|
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})",
|
|
305
378
|
"version": "1"
|
|
306
379
|
},
|
|
307
380
|
"$": {
|
|
308
|
-
"source": "// create a
|
|
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});",
|
|
309
382
|
"version": "0"
|
|
310
383
|
}
|
|
311
384
|
},
|
|
@@ -320,41 +393,117 @@
|
|
|
320
393
|
},
|
|
321
394
|
"didCompile": true,
|
|
322
395
|
"fqnsReferenced": [
|
|
396
|
+
"@aws-cdk/aws-cloud9-alpha.CloneRepository",
|
|
397
|
+
"@aws-cdk/aws-cloud9-alpha.CloneRepository#fromCodeCommit",
|
|
323
398
|
"@aws-cdk/aws-cloud9-alpha.Ec2Environment",
|
|
324
|
-
"@aws-cdk/aws-cloud9-alpha.Ec2Environment#ideUrl",
|
|
325
399
|
"@aws-cdk/aws-cloud9-alpha.Ec2EnvironmentProps",
|
|
326
|
-
"aws-cdk-
|
|
327
|
-
"aws-cdk-
|
|
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",
|
|
328
406
|
"aws-cdk-lib.aws_ec2.IVpc",
|
|
329
|
-
"aws-cdk-lib.aws_ec2.InstanceType",
|
|
330
|
-
"aws-cdk-lib.aws_ec2.SubnetSelection",
|
|
331
|
-
"aws-cdk-lib.aws_ec2.SubnetType",
|
|
332
|
-
"aws-cdk-lib.aws_ec2.SubnetType#PRIVATE_WITH_NAT",
|
|
333
|
-
"aws-cdk-lib.aws_ec2.Vpc",
|
|
334
|
-
"aws-cdk-lib.aws_ec2.Vpc#fromLookup",
|
|
335
|
-
"aws-cdk-lib.aws_ec2.VpcLookupOptions",
|
|
336
|
-
"aws-cdk-lib.aws_ec2.VpcProps",
|
|
337
407
|
"constructs.Construct"
|
|
338
408
|
],
|
|
339
|
-
"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
|
|
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",
|
|
340
410
|
"syntaxKindCounter": {
|
|
341
|
-
"
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
411
|
+
"10": 8,
|
|
412
|
+
"75": 28,
|
|
413
|
+
"104": 3,
|
|
414
|
+
"130": 1,
|
|
415
|
+
"153": 1,
|
|
416
|
+
"169": 1,
|
|
417
|
+
"192": 1,
|
|
418
|
+
"193": 2,
|
|
347
419
|
"194": 10,
|
|
348
|
-
"196":
|
|
349
|
-
"197":
|
|
420
|
+
"196": 3,
|
|
421
|
+
"197": 2,
|
|
350
422
|
"225": 3,
|
|
351
|
-
"226":
|
|
423
|
+
"226": 1,
|
|
352
424
|
"242": 3,
|
|
353
425
|
"243": 3,
|
|
354
|
-
"
|
|
355
|
-
"
|
|
426
|
+
"254": 1,
|
|
427
|
+
"255": 1,
|
|
428
|
+
"256": 1,
|
|
429
|
+
"281": 3,
|
|
430
|
+
"282": 1,
|
|
431
|
+
"290": 1
|
|
432
|
+
},
|
|
433
|
+
"fqnsFingerprint": "f18c3fc9a7c092cf5c0326981df305a130436b7eff94058824f5caca4787d7ae"
|
|
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
|
|
356
505
|
},
|
|
357
|
-
"fqnsFingerprint": "
|
|
506
|
+
"fqnsFingerprint": "f18c3fc9a7c092cf5c0326981df305a130436b7eff94058824f5caca4787d7ae"
|
|
358
507
|
}
|
|
359
508
|
}
|
|
360
|
-
}
|
|
509
|
+
}
|