@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 |
deadLetterQueue(IQueue deadLetterQueue)
(experimental) The SQS queue to be used as deadLetterQueue.
|
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.
|
CodeBuildProject.Builder |
maxEventAge(Duration maxEventAge)
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
CodeBuildProject.Builder |
retryAttempts(Number retryAttempts)
(experimental) The maximum number of times to retry when the function returns an error.
|
@Stability(value=Experimental) public static CodeBuildProject.Builder create(IProject project)
project - This parameter is required.CodeBuildProject.Builder.@Stability(value=Experimental) public CodeBuildProject.Builder deadLetterQueue(IQueue deadLetterQueue)
The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.
Default: - no dead-letter queue
deadLetterQueue - The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a dead-letter queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). This parameter is required.this@Stability(value=Experimental) public CodeBuildProject.Builder maxEventAge(Duration maxEventAge)
Minimum value of 60. Maximum value of 86400.
Default: Duration.hours(24)
maxEventAge - The maximum age of a request that Lambda sends to a function for processing. This parameter is required.this@Stability(value=Experimental) public CodeBuildProject.Builder retryAttempts(Number retryAttempts)
Minimum value of 0. Maximum value of 185.
Default: 185
retryAttempts - The maximum number of times to retry when the function returns an error. This parameter is required.this@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 © 2021. All rights reserved.