@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.317Z") @Stability(value=Stable) public interface ApiDestinationProps extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
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.*;
import software.amazon.awscdk.services.events.targets.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.sqs.*;
Queue queue;
Role role;
RuleTargetInput ruleTargetInput;
ApiDestinationProps apiDestinationProps = ApiDestinationProps.builder()
.deadLetterQueue(queue)
.event(ruleTargetInput)
.eventRole(role)
.headerParameters(Map.of(
"headerParametersKey", "headerParameters"))
.maxEventAge(Duration.minutes(30))
.pathParameterValues(List.of("pathParameterValues"))
.queryStringParameters(Map.of(
"queryStringParametersKey", "queryStringParameters"))
.retryAttempts(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApiDestinationProps.Builder
A builder for
ApiDestinationProps |
static class |
ApiDestinationProps.Jsii$Proxy
An implementation for
ApiDestinationProps |
| Modifier and Type | Method and Description |
|---|---|
static ApiDestinationProps.Builder |
builder() |
default RuleTargetInput |
getEvent()
The event to send.
|
default IRole |
getEventRole()
The role to assume before invoking the target.
|
default Map<String,String> |
getHeaderParameters()
Additional headers sent to the API Destination.
|
default List<String> |
getPathParameterValues()
Path parameters to insert in place of path wildcards (`*`).
|
default Map<String,String> |
getQueryStringParameters()
Additional query string parameters sent to the API Destination.
|
getDeadLetterQueue, getMaxEventAge, getRetryAttempts@Stability(value=Stable) @Nullable default RuleTargetInput getEvent()
Default: - the entire EventBridge event
@Stability(value=Stable) @Nullable default IRole getEventRole()
Default: - a new role will be created
@Stability(value=Stable) @Nullable default Map<String,String> getHeaderParameters()
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
@Stability(value=Stable) @Nullable default List<String> getPathParameterValues()
If the API destination has a wilcard in the path, these path parts will be inserted in that place.
Default: - none
@Stability(value=Stable) @Nullable default Map<String,String> getQueryStringParameters()
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
@Stability(value=Stable) static ApiDestinationProps.Builder builder()
builder in interface TargetBasePropsApiDestinationProps.Builder of ApiDestinationPropsCopyright © 2022. All rights reserved.