Package software.amazon.awscdk.pipelines
Interface CodeCommitSourceOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeCommitSourceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:33.616Z")
@Stability(Stable)
public interface CodeCommitSourceOptions
extends software.amazon.jsii.JsiiSerializable
Configuration options for a CodeCommit source.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.actions.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.pipelines.*;
Role role;
CodeCommitSourceOptions codeCommitSourceOptions = CodeCommitSourceOptions.builder()
.actionName("actionName")
.codeBuildCloneOutput(false)
.eventRole(role)
.trigger(CodeCommitTrigger.NONE)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCodeCommitSourceOptionsstatic final classAn implementation forCodeCommitSourceOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe action name used for this source in the CodePipeline.default BooleanIf this is set, the next CodeBuild job clones the repository (instead of CodePipeline downloading the files).default IRoleRole to be used by on commit event rule.default CodeCommitTriggerHow should CodePipeline detect source changes for this Action.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActionName
The action name used for this source in the CodePipeline.Default: - The repository name
-
getCodeBuildCloneOutput
If this is set, the next CodeBuild job clones the repository (instead of CodePipeline downloading the files).This provides access to repository history, and retains symlinks (symlinks would otherwise be removed by CodePipeline).
Note: if this option is true, only CodeBuild jobs can use the output artifact.
Default: false
- See Also:
-
getEventRole
Role to be used by on commit event rule.Used only when trigger value is CodeCommitTrigger.EVENTS.
Default: a new role will be created.
-
getTrigger
How should CodePipeline detect source changes for this Action.Default: CodeCommitTrigger.EVENTS
-
builder
- Returns:
- a
CodeCommitSourceOptions.BuilderofCodeCommitSourceOptions
-