Interface CfnRepository.ICodeProperty
Information about code to be committed.
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.AWS.CodeCommit.dll
Syntax (csharp)
public interface ICodeProperty
Syntax (vb)
Public Interface ICodeProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeCommit;
var codeProperty = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
// the properties below are optional
ObjectVersion = "objectVersion"
},
// the properties below are optional
BranchName = "branchName"
};
Synopsis
Properties
BranchName | Optional. |
S3 | Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. |
Properties
BranchName
Optional.
virtual string BranchName { get; }
Property Value
System.String
Remarks
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.
S3
Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.
object S3 { get; }
Property Value
System.Object
Remarks
Changes to this property are ignored after initial resource creation.