@Stability(value=Experimental) public static final class CodePipeline.Builder extends Object implements software.amazon.jsii.Builder<CodePipeline>
CodePipeline.| Modifier and Type | Method and Description |
|---|---|
CodePipeline |
build() |
static CodePipeline.Builder |
create(IPipeline pipeline) |
CodePipeline.Builder |
deadLetterQueue(IQueue deadLetterQueue)
(experimental) The SQS queue to be used as deadLetterQueue.
|
CodePipeline.Builder |
eventRole(IRole eventRole)
(experimental) The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered.
|
CodePipeline.Builder |
maxEventAge(Duration maxEventAge)
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
CodePipeline.Builder |
retryAttempts(Number retryAttempts)
(experimental) The maximum number of times to retry when the function returns an error.
|
@Stability(value=Experimental) public static CodePipeline.Builder create(IPipeline pipeline)
pipeline - This parameter is required.CodePipeline.Builder.@Stability(value=Experimental) public CodePipeline.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 CodePipeline.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 CodePipeline.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 CodePipeline.Builder eventRole(IRole eventRole)
Default: - a new role will be created
eventRole - The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered. This parameter is required.this@Stability(value=Experimental) public CodePipeline build()
build in interface software.amazon.jsii.Builder<CodePipeline>Copyright © 2021. All rights reserved.