public static final class ApiDestinationProps.Builder
extends java.lang.Object
ApiDestinationProps
Constructor and Description |
---|
Builder() |
public ApiDestinationProps.Builder event(RuleTargetInput event)
ApiDestinationProps.getEvent()
event
- The event to send.this
public ApiDestinationProps.Builder eventRole(IRole eventRole)
ApiDestinationProps.getEventRole()
eventRole
- The role to assume before invoking the target.this
public ApiDestinationProps.Builder headerParameters(java.util.Map<java.lang.String,java.lang.String> headerParameters)
ApiDestinationProps.getHeaderParameters()
headerParameters
- Additional headers sent to the API Destination.
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.
this
public ApiDestinationProps.Builder pathParameterValues(java.util.List<java.lang.String> pathParameterValues)
ApiDestinationProps.getPathParameterValues()
pathParameterValues
- Path parameters to insert in place of path wildcards (`*`).
If the API destination has a wilcard in the path, these path parts
will be inserted in that place.this
public ApiDestinationProps.Builder queryStringParameters(java.util.Map<java.lang.String,java.lang.String> queryStringParameters)
ApiDestinationProps.getQueryStringParameters()
queryStringParameters
- Additional query string parameters sent to the API Destination.
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.
this
public ApiDestinationProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()
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).
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.this
public ApiDestinationProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this
public ApiDestinationProps.Builder retryAttempts(java.lang.Number retryAttempts)
TargetBaseProps.getRetryAttempts()
retryAttempts
- The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this
public ApiDestinationProps build()
ApiDestinationProps
java.lang.NullPointerException
- if any required attribute was not provided