Class CfnRepository.CodeProperty
Information about code to be committed.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodeProperty : Object, CfnRepository.ICodeProperty
Syntax (vb)
Public Class CodeProperty
Inherits Object
Implements CfnRepository.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
Constructors
CodeProperty() |
Properties
BranchName | Optional. |
S3 | Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository. |
Constructors
CodeProperty()
public CodeProperty()
Properties
BranchName
Optional.
public string BranchName { get; set; }
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.
public object S3 { get; set; }
Property Value
System.Object
Remarks
Changes to this property are ignored after initial resource creation.