Show / Hide Table of Contents

Class RepositoryProps

Inheritance
object
RepositoryProps
Implements
IRepositoryProps
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 RepositoryProps : IRepositoryProps
Syntax (vb)
Public Class RepositoryProps Implements IRepositoryProps
Remarks

ExampleMetadata: infused

Examples
PipelineProject project;

            var repository = new Repository(this, "MyRepository", new RepositoryProps {
                RepositoryName = "MyRepository"
            });
            var project = new PipelineProject(this, "MyProject");

            var sourceOutput = new Artifact();
            var sourceAction = new CodeCommitSourceAction(new CodeCommitSourceActionProps {
                ActionName = "CodeCommit",
                Repository = repository,
                Output = sourceOutput
            });
            var buildAction = new CodeBuildAction(new CodeBuildActionProps {
                ActionName = "CodeBuild",
                Project = project,
                Input = sourceOutput,
                Outputs = new [] { new Artifact() },  // optional
                ExecuteBatchBuild = true,  // optional, defaults to false
                CombineBatchBuildArtifacts = true
            });

            new Pipeline(this, "MyPipeline", new PipelineProps {
                Stages = new [] { new StageProps {
                    StageName = "Source",
                    Actions = new [] { sourceAction }
                }, new StageProps {
                    StageName = "Build",
                    Actions = new [] { buildAction }
                } }
            });

Synopsis

Constructors

RepositoryProps()

Properties

Code

The contents with which to initialize the repository after it has been created.

Description

A description of the repository.

KmsKey

The customer managed key used to encrypt and decrypt the data in repository.

RepositoryName

Name of the repository.

Constructors

RepositoryProps()

public RepositoryProps()
Remarks

ExampleMetadata: infused

Examples
PipelineProject project;

            var repository = new Repository(this, "MyRepository", new RepositoryProps {
                RepositoryName = "MyRepository"
            });
            var project = new PipelineProject(this, "MyProject");

            var sourceOutput = new Artifact();
            var sourceAction = new CodeCommitSourceAction(new CodeCommitSourceActionProps {
                ActionName = "CodeCommit",
                Repository = repository,
                Output = sourceOutput
            });
            var buildAction = new CodeBuildAction(new CodeBuildActionProps {
                ActionName = "CodeBuild",
                Project = project,
                Input = sourceOutput,
                Outputs = new [] { new Artifact() },  // optional
                ExecuteBatchBuild = true,  // optional, defaults to false
                CombineBatchBuildArtifacts = true
            });

            new Pipeline(this, "MyPipeline", new PipelineProps {
                Stages = new [] { new StageProps {
                    StageName = "Source",
                    Actions = new [] { sourceAction }
                }, new StageProps {
                    StageName = "Build",
                    Actions = new [] { buildAction }
                } }
            });

Properties

Code

The contents with which to initialize the repository after it has been created.

public Code? Code { get; set; }
Property Value

Code

Remarks

Default: - No initialization (create empty repo)

Description

A description of the repository.

public string? Description { get; set; }
Property Value

string

Remarks

Use the description to identify the purpose of the repository.

Default: - No description.

KmsKey

The customer managed key used to encrypt and decrypt the data in repository.

public IKey? KmsKey { get; set; }
Property Value

IKey

Remarks

Default: - Use an AWS managed key

RepositoryName

Name of the repository.

public string RepositoryName { get; set; }
Property Value

string

Remarks

This property is required for all CodeCommit repositories.

Implements

IRepositoryProps
Back to top Generated by DocFX