@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.380Z") @Stability(value=Stable) public interface RepositoryProps extends software.amazon.jsii.JsiiSerializable
// Source stage: read from repository
Repository repo = Repository.Builder.create(stack, "TemplateRepo")
.repositoryName("template-repo")
.build();
Artifact sourceOutput = new Artifact("SourceArtifact");
CodeCommitSourceAction source = CodeCommitSourceAction.Builder.create()
.actionName("Source")
.repository(repo)
.output(sourceOutput)
.trigger(CodeCommitTrigger.POLL)
.build();
Map<String, Object> sourceStage = Map.of(
"stageName", "Source",
"actions", List.of(source));
// Deployment stage: create and deploy changeset with manual approval
String stackName = "OurStack";
String changeSetName = "StagedChangeSet";
Map<String, Object> prodStage = Map.of(
"stageName", "Deploy",
"actions", List.of(
CloudFormationCreateReplaceChangeSetAction.Builder.create()
.actionName("PrepareChanges")
.stackName(stackName)
.changeSetName(changeSetName)
.adminPermissions(true)
.templatePath(sourceOutput.atPath("template.yaml"))
.runOrder(1)
.build(),
ManualApprovalAction.Builder.create()
.actionName("ApproveChanges")
.runOrder(2)
.build(),
CloudFormationExecuteChangeSetAction.Builder.create()
.actionName("ExecuteChanges")
.stackName(stackName)
.changeSetName(changeSetName)
.runOrder(3)
.build()));
Pipeline.Builder.create(stack, "Pipeline")
.stages(List.of(sourceStage, prodStage))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RepositoryProps.Builder
A builder for
RepositoryProps |
static class |
RepositoryProps.Jsii$Proxy
An implementation for
RepositoryProps |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryProps.Builder |
builder() |
default Code |
getCode()
The contents with which to initialize the repository after it has been created.
|
default String |
getDescription()
A description of the repository.
|
String |
getRepositoryName()
Name of the repository.
|
@Stability(value=Stable) @NotNull String getRepositoryName()
This property is required for all CodeCommit repositories.
@Stability(value=Stable) @Nullable default Code getCode()
Default: - No initialization (create empty repo)
@Stability(value=Stable) @Nullable default String getDescription()
Use the description to identify the purpose of the repository.
Default: - No description.
@Stability(value=Stable) static RepositoryProps.Builder builder()
RepositoryProps.Builder of RepositoryPropsCopyright © 2022. All rights reserved.