@Stability(value=Experimental) public static final class CodeBuildProjectProps.Builder extends Object implements software.amazon.jsii.Builder<CodeBuildProjectProps>
CodeBuildProjectProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CodeBuildProjectProps |
build()
Builds the configured instance.
|
CodeBuildProjectProps.Builder |
deadLetterQueue(IQueue deadLetterQueue)
Sets the value of
TargetBaseProps.getDeadLetterQueue() |
CodeBuildProjectProps.Builder |
event(RuleTargetInput event)
Sets the value of
CodeBuildProjectProps.getEvent() |
CodeBuildProjectProps.Builder |
eventRole(IRole eventRole)
Sets the value of
CodeBuildProjectProps.getEventRole() |
CodeBuildProjectProps.Builder |
maxEventAge(Duration maxEventAge)
Sets the value of
TargetBaseProps.getMaxEventAge() |
CodeBuildProjectProps.Builder |
retryAttempts(Number retryAttempts)
Sets the value of
TargetBaseProps.getRetryAttempts() |
@Stability(value=Experimental) public CodeBuildProjectProps.Builder event(RuleTargetInput event)
CodeBuildProjectProps.getEvent()event - The event to send to CodeBuild.
This will be the payload for the StartBuild API.this@Stability(value=Experimental) public CodeBuildProjectProps.Builder eventRole(IRole eventRole)
CodeBuildProjectProps.getEventRole()eventRole - The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered.this@Stability(value=Experimental) public CodeBuildProjectProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()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).
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.this@Stability(value=Experimental) public CodeBuildProjectProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()maxEventAge - The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this@Stability(value=Experimental) public CodeBuildProjectProps.Builder retryAttempts(Number retryAttempts)
TargetBaseProps.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this@Stability(value=Experimental) public CodeBuildProjectProps build()
build in interface software.amazon.jsii.Builder<CodeBuildProjectProps>CodeBuildProjectPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.