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