Interface ApiDestinationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TargetBaseProps
- All Known Implementing Classes:
ApiDestinationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.701Z")
@Stability(Stable)
public interface ApiDestinationProps
extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
Customize the EventBridge Api Destinations Target.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
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.*;
import software.amazon.awscdk.core.*;
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiDestinationPropsstatic final classAn implementation forApiDestinationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiDestinationProps.Builderbuilder()default RuleTargetInputgetEvent()The event to send.default IRoleThe role to assume before invoking the target.Additional headers sent to the API Destination.Path parameters to insert in place of path wildcards (*).Additional query string parameters sent to the API Destination.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.events.targets.TargetBaseProps
getDeadLetterQueue, getMaxEventAge, getRetryAttempts
-
Method Details
-
getEvent
The event to send.Default: - the entire EventBridge event
-
getEventRole
The role to assume before invoking the target.Default: - a new role will be created
-
getHeaderParameters
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.
Default: - none
-
getPathParameterValues
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.
Default: - none
-
getQueryStringParameters
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.
Default: - none
-
builder
- Returns:
- a
ApiDestinationProps.BuilderofApiDestinationProps
-