@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.374Z") @Stability(value=Stable) public abstract class Code extends software.amazon.jsii.JsiiObject
Example:
Repository repo = Repository.Builder.create(this, "Repository")
.repositoryName("MyRepositoryName")
.code(Code.fromDirectory(join(__dirname, "directory/"), "develop"))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
Code() |
protected |
Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Code(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract CodeConfig |
bind(software.constructs.Construct scope)
This method is called after a repository is passed this instance of Code in its 'code' property.
|
static Code |
fromAsset(Asset asset)
Code from user-supplied asset.
|
static Code |
fromAsset(Asset asset,
String branch)
Code from user-supplied asset.
|
static Code |
fromDirectory(String directoryPath)
Code from directory.
|
static Code |
fromDirectory(String directoryPath,
String branch)
Code from directory.
|
static Code |
fromZipFile(String filePath)
Code from preexisting ZIP file.
|
static Code |
fromZipFile(String filePath,
String branch)
Code from preexisting ZIP file.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Code(software.amazon.jsii.JsiiObjectRef objRef)
protected Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected Code()
@Stability(value=Stable) @NotNull public static Code fromAsset(@NotNull Asset asset, @Nullable String branch)
asset - pre-existing asset. This parameter is required.branch - the name of the branch to create in the repository.@Stability(value=Stable) @NotNull public static Code fromAsset(@NotNull Asset asset)
asset - pre-existing asset. This parameter is required.@Stability(value=Stable) @NotNull public static Code fromDirectory(@NotNull String directoryPath, @Nullable String branch)
directoryPath - the path to the local directory containing the contents to initialize the repository with. This parameter is required.branch - the name of the branch to create in the repository.@Stability(value=Stable) @NotNull public static Code fromDirectory(@NotNull String directoryPath)
directoryPath - the path to the local directory containing the contents to initialize the repository with. This parameter is required.@Stability(value=Stable) @NotNull public static Code fromZipFile(@NotNull String filePath, @Nullable String branch)
filePath - the path to the local ZIP file containing the contents to initialize the repository with. This parameter is required.branch - the name of the branch to create in the repository.@Stability(value=Stable) @NotNull public static Code fromZipFile(@NotNull String filePath)
filePath - the path to the local ZIP file containing the contents to initialize the repository with. This parameter is required.@Stability(value=Stable) @NotNull public abstract CodeConfig bind(@NotNull software.constructs.Construct scope)
scope - the binding scope. This parameter is required.Copyright © 2022. All rights reserved.