@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.344Z") @Stability(value=Stable) public interface TargetBaseProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.events.targets.*;
import software.amazon.awscdk.services.sqs.*;
Queue queue;
TargetBaseProps targetBaseProps = TargetBaseProps.builder()
.deadLetterQueue(queue)
.maxEventAge(Duration.minutes(30))
.retryAttempts(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TargetBaseProps.Builder
A builder for
TargetBaseProps |
static class |
TargetBaseProps.Jsii$Proxy
An implementation for
TargetBaseProps |
| Modifier and Type | Method and Description |
|---|---|
static TargetBaseProps.Builder |
builder() |
default IQueue |
getDeadLetterQueue()
The SQS queue to be used as deadLetterQueue.
|
default Duration |
getMaxEventAge()
The maximum age of a request that Lambda sends to a function for processing.
|
default Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
@Stability(value=Stable) @Nullable default IQueue getDeadLetterQueue()
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
@Stability(value=Stable) @Nullable default Duration getMaxEventAge()
Minimum value of 60. Maximum value of 86400.
Default: Duration.hours(24)
@Stability(value=Stable) @Nullable default Number getRetryAttempts()
Minimum value of 0. Maximum value of 185.
Default: 185
@Stability(value=Stable) static TargetBaseProps.Builder builder()
TargetBaseProps.Builder of TargetBasePropsCopyright © 2022. All rights reserved.