@Stability(value=Stable) public static final class ApiDestination.Builder extends Object implements software.amazon.jsii.Builder<ApiDestination>
ApiDestination.| Modifier and Type | Method and Description |
|---|---|
ApiDestination |
build() |
static ApiDestination.Builder |
create(IApiDestination apiDestination) |
ApiDestination.Builder |
deadLetterQueue(IQueue deadLetterQueue)
The SQS queue to be used as deadLetterQueue.
|
ApiDestination.Builder |
event(RuleTargetInput event)
The event to send.
|
ApiDestination.Builder |
eventRole(IRole eventRole)
The role to assume before invoking the target.
|
ApiDestination.Builder |
headerParameters(Map<String,String> headerParameters)
Additional headers sent to the API Destination.
|
ApiDestination.Builder |
maxEventAge(Duration maxEventAge)
The maximum age of a request that Lambda sends to a function for processing.
|
ApiDestination.Builder |
pathParameterValues(List<String> pathParameterValues)
Path parameters to insert in place of path wildcards (`*`).
|
ApiDestination.Builder |
queryStringParameters(Map<String,String> queryStringParameters)
Additional query string parameters sent to the API Destination.
|
ApiDestination.Builder |
retryAttempts(Number retryAttempts)
The maximum number of times to retry when the function returns an error.
|
@Stability(value=Stable) public static ApiDestination.Builder create(IApiDestination apiDestination)
apiDestination - This parameter is required.ApiDestination.Builder.@Stability(value=Stable) public ApiDestination.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=Stable) public ApiDestination.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=Stable) public ApiDestination.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=Stable) public ApiDestination.Builder event(RuleTargetInput event)
Default: - the entire EventBridge event
event - The event to send. This parameter is required.this@Stability(value=Stable) public ApiDestination.Builder eventRole(IRole eventRole)
Default: - a new role will be created
eventRole - The role to assume before invoking the target. This parameter is required.this@Stability(value=Stable) public ApiDestination.Builder headerParameters(Map<String,String> headerParameters)
These are merged with headers specified on the Connection, with the headers on the Connection taking precedence.
You can only specify secret values on the Connection.
Default: - none
headerParameters - Additional headers sent to the API Destination. This parameter is required.this@Stability(value=Stable) public ApiDestination.Builder pathParameterValues(List<String> pathParameterValues)
If the API destination has a wilcard in the path, these path parts will be inserted in that place.
Default: - none
pathParameterValues - Path parameters to insert in place of path wildcards (`*`). This parameter is required.this@Stability(value=Stable) public ApiDestination.Builder queryStringParameters(Map<String,String> queryStringParameters)
These are merged with headers specified on the Connection, with the headers on the Connection taking precedence.
You can only specify secret values on the Connection.
Default: - none
queryStringParameters - Additional query string parameters sent to the API Destination. This parameter is required.this@Stability(value=Stable) public ApiDestination build()
build in interface software.amazon.jsii.Builder<ApiDestination>Copyright © 2022. All rights reserved.