Show / Hide Table of Contents

Class CloneRepository

(experimental) The class for different repository providers.

Inheritance
System.Object
CloneRepository
Namespace: Amazon.CDK.AWS.Cloud9
Assembly: Amazon.CDK.AWS.Cloud9.dll
Syntax (csharp)
public class CloneRepository : DeputyBase
Syntax (vb)
Public Class CloneRepository
    Inherits DeputyBase
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.CodeCommit;

// create a new Cloud9 environment and clone the two repositories
Vpc vpc;


// create a codecommit repository to clone into the cloud9 environment
var repoNew = new Repository(this, "RepoNew", new RepositoryProps {
    RepositoryName = "new-repo"
});

// import an existing codecommit repository to clone into the cloud9 environment
var repoExisting = Repository.FromRepositoryName(this, "RepoExisting", "existing-repo");
new Ec2Environment(this, "C9Env", new Ec2EnvironmentProps {
    Vpc = vpc,
    ClonedRepositories = new [] { CloneRepository.FromCodeCommit(repoNew, "/src/new-repo"), CloneRepository.FromCodeCommit(repoExisting, "/src/existing-repo") }
});

Synopsis

Constructors

CloneRepository(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CloneRepository(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

PathComponent
RepositoryUrl

Methods

FromCodeCommit(IRepository, String)

(experimental) import repository to cloud9 environment from AWS CodeCommit.

Constructors

CloneRepository(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CloneRepository(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CloneRepository(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CloneRepository(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

PathComponent

public virtual string PathComponent { get; }
Property Value

System.String

Remarks

Stability: Experimental

RepositoryUrl

public virtual string RepositoryUrl { get; }
Property Value

System.String

Remarks

Stability: Experimental

Methods

FromCodeCommit(IRepository, String)

(experimental) import repository to cloud9 environment from AWS CodeCommit.

public static CloneRepository FromCodeCommit(IRepository repository, string path)
Parameters
repository IRepository

the codecommit repository to clone from.

path System.String

the target path in cloud9 environment.

Returns

CloneRepository

Remarks

Stability: Experimental

Back to top Generated by DocFX