Class RepositoryProps
Inheritance
System.Object
RepositoryProps
Implements
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RepositoryProps : Object, IRepositoryProps
Syntax (vb)
Public Class RepositoryProps
Inherits Object
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()
Properties
Code
The contents with which to initialize the repository after it has been created.
public Code Code { get; set; }
Property Value
Remarks
Default: - No initialization (create empty repo)
Description
A description of the repository.
public string Description { get; set; }
Property Value
System.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
Remarks
Default: - Use an AWS managed key
RepositoryName
Name of the repository.
public string RepositoryName { get; set; }
Property Value
System.String
Remarks
This property is required for all CodeCommit repositories.