@Stability(value=Experimental) public static final class EventInvokeConfig.Builder extends Object implements software.amazon.jsii.Builder<EventInvokeConfig>
EventInvokeConfig.| Modifier and Type | Method and Description |
|---|---|
EventInvokeConfig |
build() |
static EventInvokeConfig.Builder |
create(software.constructs.Construct scope,
String id) |
EventInvokeConfig.Builder |
function(IFunction function)
(experimental) The Lambda function.
|
EventInvokeConfig.Builder |
maxEventAge(Duration maxEventAge)
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
EventInvokeConfig.Builder |
onFailure(IDestination onFailure)
(experimental) The destination for failed invocations.
|
EventInvokeConfig.Builder |
onSuccess(IDestination onSuccess)
(experimental) The destination for successful invocations.
|
EventInvokeConfig.Builder |
qualifier(String qualifier)
(experimental) The qualifier.
|
EventInvokeConfig.Builder |
retryAttempts(Number retryAttempts)
(experimental) The maximum number of times to retry when the function returns an error.
|
@Stability(value=Experimental) public static EventInvokeConfig.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.EventInvokeConfig.Builder.@Stability(value=Experimental) public EventInvokeConfig.Builder maxEventAge(Duration maxEventAge)
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
maxEventAge - The maximum age of a request that Lambda sends to a function for processing. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig.Builder onFailure(IDestination onFailure)
Default: - no destination
onFailure - The destination for failed invocations. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig.Builder onSuccess(IDestination onSuccess)
Default: - no destination
onSuccess - The destination for successful invocations. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig.Builder retryAttempts(Number retryAttempts)
Minimum: 0 Maximum: 2
Default: 2
retryAttempts - The maximum number of times to retry when the function returns an error. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig.Builder function(IFunction function)
function - The Lambda function. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig.Builder qualifier(String qualifier)
Default: - latest version
qualifier - The qualifier. This parameter is required.this@Stability(value=Experimental) public EventInvokeConfig build()
build in interface software.amazon.jsii.Builder<EventInvokeConfig>Copyright © 2021. All rights reserved.