@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:55.927Z") @Stability(value=Experimental) public class CloneRepository extends software.amazon.jsii.JsiiObject
Example:
import software.amazon.awscdk.services.codecommit.*;
// create a new Cloud9 environment and clone the two repositories
Vpc vpc;
// create a codecommit repository to clone into the cloud9 environment
Repository repoNew = Repository.Builder.create(this, "RepoNew")
.repositoryName("new-repo")
.build();
// import an existing codecommit repository to clone into the cloud9 environment
IRepository repoExisting = Repository.fromRepositoryName(this, "RepoExisting", "existing-repo");
Ec2Environment.Builder.create(this, "C9Env")
.vpc(vpc)
.clonedRepositories(List.of(CloneRepository.fromCodeCommit(repoNew, "/src/new-repo"), CloneRepository.fromCodeCommit(repoExisting, "/src/existing-repo")))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
CloneRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CloneRepository(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static CloneRepository |
fromCodeCommit(IRepository repository,
String path)
(experimental) import repository to cloud9 environment from AWS CodeCommit.
|
String |
getPathComponent() |
String |
getRepositoryUrl() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CloneRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected CloneRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static CloneRepository fromCodeCommit(@NotNull IRepository repository, @NotNull String path)
repository - the codecommit repository to clone from. This parameter is required.path - the target path in cloud9 environment. This parameter is required.@Stability(value=Experimental) @NotNull public String getPathComponent()
@Stability(value=Experimental) @NotNull public String getRepositoryUrl()
Copyright © 2022. All rights reserved.