@Stability(value=Stable)
public static interface CfnRepository.CodeProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codecommit.*;
CodeProperty codeProperty = CodeProperty.builder()
.s3(S3Property.builder()
.bucket("bucket")
.key("key")
// the properties below are optional
.objectVersion("objectVersion")
.build())
// the properties below are optional
.branchName("branchName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRepository.CodeProperty.Builder
A builder for
CfnRepository.CodeProperty |
static class |
CfnRepository.CodeProperty.Jsii$Proxy
An implementation for
CfnRepository.CodeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRepository.CodeProperty.Builder |
builder() |
default String |
getBranchName()
Optional.
|
Object |
getS3()
Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.
|
@Stability(value=Stable) @NotNull Object getS3()
Changes to this property are ignored after initial resource creation.
@Stability(value=Stable) @Nullable default String getBranchName()
Specifies a branch name to be used as the default branch when importing code into a repository on initial creation. If this property is not set, the name main will be used for the default branch for the repository. Changes to this property are ignored after initial resource creation. We recommend using this parameter to set the name to main to align with the default behavior of CodeCommit unless another name is needed.
@Stability(value=Stable) static CfnRepository.CodeProperty.Builder builder()
CfnRepository.CodeProperty.Builder of CfnRepository.CodePropertyCopyright © 2022. All rights reserved.