Interface ApiDestinationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiDestinationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.929Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forApiDestinationProps
static final class
An implementation forApiDestinationProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiDestinationProps.Builder
builder()
default String
The name for the API destination.The ARN of the connection to use for the API destination.default String
A description for the API destination.The URL to the HTTP invocation endpoint for the API destination..default HttpMethod
The method to use for the request to the HTTP invocation endpoint.default Number
The 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.Builder
ofApiDestinationProps
-