@Stability(value=Experimental)
See: Description
| Interface | Description |
|---|---|
| CfnEnvironmentEC2.RepositoryProperty | |
| CfnEnvironmentEC2Props |
Properties for defining a `AWS::Cloud9::EnvironmentEC2`.
|
| Ec2EnvironmentProps |
(experimental) Properties for Ec2Environment.
|
| IEc2Environment |
(experimental) A Cloud9 Environment.
|
| IEc2Environment.Jsii$Default |
Internal default implementation for
IEc2Environment. |
| Class | Description |
|---|---|
| CfnEnvironmentEC2 |
A CloudFormation `AWS::Cloud9::EnvironmentEC2`.
|
| CfnEnvironmentEC2.Builder |
A fluent builder for
CfnEnvironmentEC2. |
| CfnEnvironmentEC2.RepositoryProperty.Builder |
A builder for
CfnEnvironmentEC2.RepositoryProperty |
| CfnEnvironmentEC2.RepositoryProperty.Jsii$Proxy |
An implementation for
CfnEnvironmentEC2.RepositoryProperty |
| CfnEnvironmentEC2Props.Builder |
A builder for
CfnEnvironmentEC2Props |
| CfnEnvironmentEC2Props.Jsii$Proxy |
An implementation for
CfnEnvironmentEC2Props |
| CloneRepository |
(experimental) The class for different repository providers.
|
| Ec2Environment |
(experimental) A Cloud9 Environment with Amazon EC2.
|
| Ec2Environment.Builder |
(experimental) A fluent builder for
Ec2Environment. |
| Ec2EnvironmentProps.Builder |
A builder for
Ec2EnvironmentProps |
| Ec2EnvironmentProps.Jsii$Proxy |
An implementation for
Ec2EnvironmentProps |
| IEc2Environment.Jsii$Proxy |
A proxy class which represents a concrete javascript instance of this type.
|
---
All classes with the
Cfnprefix in this module (CFN Resources) are always stable and safe to use.
The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
This module is part of the AWS Cloud Development Kit project.
AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair program and track each other's inputs in real time.
EC2 Environments are defined with Ec2Environment. To create an EC2 environment in the private subnet, specify subnetSelection with private subnetType.
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import software.amazon.awscdk.services.cloud9.*;
// create a cloud9 ec2 environment in a new VPC
Object vpc = Vpc.Builder.create(this, "VPC").maxAzs(3).build();
new Ec2Environment(this, "Cloud9Env", new Ec2EnvironmentProps().vpc(vpc));
// or create the cloud9 environment in the default VPC with specific instanceType
Object defaultVpc = ec2.Vpc.fromLookup(this, "DefaultVPC", Map.of("isDefault", true));
new Ec2Environment(this, "Cloud9Env2", new Ec2EnvironmentProps()
.vpc(defaultVpc)
.instanceType(new InstanceType("t3.large")));
// or specify in a different subnetSelection
Ec2Environment c9env = new Ec2Environment(this, "Cloud9Env3", new Ec2EnvironmentProps()
.vpc(vpc)
.subnetSelection(new SubnetSelection()
.subnetType(ec2.SubnetType.getPRIVATE())));
// print the Cloud9 IDE URL in the output
// print the Cloud9 IDE URL in the output
CfnOutput.Builder.create(this, "URL").value(c9env.getIdeUrl()).build();
Use clonedRepositories to clone one or multiple AWS Codecommit repositories into the environment:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
// create a codecommit repository to clone into the cloud9 environment
Object repoNew = Repository.Builder.create(this, "RepoNew")
.repositoryName("new-repo")
.build();
// import an existing codecommit repository to clone into the cloud9 environment
Object repoExisting = codecommit.Repository.fromRepositoryName(stack, "RepoExisting", "existing-repo");
// create a new Cloud9 environment and clone the two repositories
// create a new Cloud9 environment and clone the two repositories
Ec2Environment.Builder.create(stack, "C9Env")
.vpc(vpc)
.clonedRepositories(asList(cloud9.CloneRepository.fromCodeCommit(repoNew, "/src/new-repo"), cloud9.CloneRepository.fromCodeCommit(repoExisting, "/src/existing-repo")))
.build();
Copyright © 2021. All rights reserved.