@Stability(value=Experimental) public static final class SfnStateMachine.Builder extends Object implements software.amazon.jsii.Builder<SfnStateMachine>
SfnStateMachine.| Modifier and Type | Method and Description |
|---|---|
SfnStateMachine |
build() |
static SfnStateMachine.Builder |
create(IStateMachine machine) |
SfnStateMachine.Builder |
deadLetterQueue(IQueue deadLetterQueue)
(experimental) The SQS queue to be used as deadLetterQueue.
|
SfnStateMachine.Builder |
input(RuleTargetInput input)
(experimental) The input to the state machine execution.
|
SfnStateMachine.Builder |
maxEventAge(Duration maxEventAge)
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
SfnStateMachine.Builder |
retryAttempts(Number retryAttempts)
(experimental) The maximum number of times to retry when the function returns an error.
|
SfnStateMachine.Builder |
role(IRole role)
(experimental) The IAM role to be assumed to execute the State Machine.
|
@Stability(value=Experimental) public static SfnStateMachine.Builder create(IStateMachine machine)
machine - This parameter is required.SfnStateMachine.Builder.@Stability(value=Experimental) public SfnStateMachine.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 SfnStateMachine.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 SfnStateMachine.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 SfnStateMachine.Builder input(RuleTargetInput input)
Default: the entire EventBridge event
input - The input to the state machine execution. This parameter is required.this@Stability(value=Experimental) public SfnStateMachine.Builder role(IRole role)
Default: - a new role will be created
role - The IAM role to be assumed to execute the State Machine. This parameter is required.this@Stability(value=Experimental) public SfnStateMachine build()
build in interface software.amazon.jsii.Builder<SfnStateMachine>Copyright © 2021. All rights reserved.