Interface ApiDestinationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiDestinationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:36.893Z")
@Stability(Stable)
public interface ApiDestinationProps
extends software.amazon.jsii.JsiiSerializable
The event API Destination properties.
Example:
Connection connection = Connection.Builder.create(this, "Connection")
.authorization(Authorization.apiKey("x-api-key", SecretValue.secretsManager("ApiSecretName")))
.description("Connection with API Key x-api-key")
.build();
ApiDestination destination = ApiDestination.Builder.create(this, "Destination")
.connection(connection)
.endpoint("https://example.com")
.description("Calling example.com with API key x-api-key")
.build();
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.rate(Duration.minutes(1)))
.targets(List.of(new ApiDestination(destination)))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiDestinationPropsstatic final classAn implementation forApiDestinationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiDestinationProps.Builderbuilder()default StringThe name for the API destination.The ARN of the connection to use for the API destination.default StringA description for the API destination.The URL to the HTTP invocation endpoint for the API destination..default HttpMethodThe method to use for the request to the HTTP invocation endpoint.default NumberThe maximum number of requests per second to send to the HTTP invocation endpoint.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConnection
The ARN of the connection to use for the API destination. -
getEndpoint
The URL to the HTTP invocation endpoint for the API destination.. -
getApiDestinationName
The name for the API destination.Default: - A unique name will be generated
-
getDescription
A description for the API destination.Default: - none
-
getHttpMethod
The method to use for the request to the HTTP invocation endpoint.Default: HttpMethod.POST
-
getRateLimitPerSecond
The maximum number of requests per second to send to the HTTP invocation endpoint.Default: - Not rate limited
-
builder
- Returns:
- a
ApiDestinationProps.BuilderofApiDestinationProps
-