@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:06.299Z") public interface CodeCommitSourceActionProps extends CommonAwsActionProps
CodeCommit source CodePipeline Action
.
Example:
// 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 |
CodeCommitSourceActionProps.Builder
A builder for
CodeCommitSourceActionProps |
static class |
CodeCommitSourceActionProps.Jsii$Proxy
An implementation for
CodeCommitSourceActionProps |
Modifier and Type | Method and Description |
---|---|
static CodeCommitSourceActionProps.Builder |
builder() |
default java.lang.String |
getBranch()
Default: 'master'
|
default java.lang.Boolean |
getCodeBuildCloneOutput()
Whether the output should be the contents of the repository (which is the default), or a link that allows CodeBuild to clone the repository before building.
|
default IRole |
getEventRole()
Role to be used by on commit event rule.
|
Artifact |
getOutput() |
IRepository |
getRepository()
The CodeCommit repository.
|
default CodeCommitTrigger |
getTrigger()
How should CodePipeline detect source changes for this Action.
|
getRole
getActionName, getRunOrder, getVariablesNamespace
Artifact getOutput()
IRepository getRepository()
default java.lang.String getBranch()
default java.lang.Boolean getCodeBuildCloneOutput()
Note: if this option is true, then only CodeBuild actions can use the resulting {@link output}.
Default: false
https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodeCommit.html
default IRole getEventRole()
Used only when trigger value is CodeCommitTrigger.EVENTS.
Default: a new role will be created.
default CodeCommitTrigger getTrigger()
Default: CodeCommitTrigger.EVENTS
static CodeCommitSourceActionProps.Builder builder()
builder
in interface CommonActionProps
builder
in interface CommonAwsActionProps
CodeCommitSourceActionProps.Builder
of CodeCommitSourceActionProps