Show / Hide Table of Contents

Class CfnRepository.CodeProperty

Information about code to be committed.

Inheritance
object
CfnRepository.CodeProperty
Implements
CfnRepository.ICodeProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html

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

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html#cfn-codecommit-repository-code-branchname

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

object

Remarks

Changes to this property are ignored after initial resource creation.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html#cfn-codecommit-repository-code-s3

Implements

CfnRepository.ICodeProperty
Back to top Generated by DocFX