Class CfnRepository.CodeProperty
Information about code to be committed.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRepository.CodeProperty : CfnRepository.ICodeProperty
Syntax (vb)
Public Class CfnRepository.CodeProperty 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() | Information about code to be committed. |
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()
Information about code to be committed.
public CodeProperty()
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"
};
Properties
BranchName
Optional.
public string? BranchName { get; set; }
Property Value
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
Remarks
Changes to this property are ignored after initial resource creation.