@Stability(value=Experimental) public static final class CodeBuildProject.Builder extends Object implements software.amazon.jsii.Builder<CodeBuildProject>
CodeBuildProject.| Modifier and Type | Method and Description |
|---|---|
CodeBuildProject |
build() |
static CodeBuildProject.Builder |
create(IProject project) |
CodeBuildProject.Builder |
event(RuleTargetInput event)
(experimental) The event to send to CodeBuild.
|
CodeBuildProject.Builder |
eventRole(IRole eventRole)
(experimental) The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered.
|
@Stability(value=Experimental) public static CodeBuildProject.Builder create(IProject project)
project - This parameter is required.CodeBuildProject.Builder.@Stability(value=Experimental) public CodeBuildProject.Builder event(RuleTargetInput event)
This will be the payload for the StartBuild API.
Default: - the entire EventBridge event
event - The event to send to CodeBuild. This parameter is required.this@Stability(value=Experimental) public CodeBuildProject.Builder eventRole(IRole eventRole)
Default: - a new role will be created
eventRole - The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered. This parameter is required.this@Stability(value=Experimental) public CodeBuildProject build()
build in interface software.amazon.jsii.Builder<CodeBuildProject>Copyright © 2020. All rights reserved.