@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.249Z") @Stability(value=Stable) public interface ApiDestinationProps extends software.amazon.jsii.JsiiSerializable
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();
| 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 String |
getApiDestinationName()
The name for the API destination.
|
IConnection |
getConnection()
The ARN of the connection to use for the API destination.
|
default String |
getDescription()
A description for the API destination.
|
String |
getEndpoint()
The URL to the HTTP invocation endpoint for the API destination..
|
default HttpMethod |
getHttpMethod()
The method to use for the request to the HTTP invocation endpoint.
|
default Number |
getRateLimitPerSecond()
The maximum number of requests per second to send to the HTTP invocation endpoint.
|
@Stability(value=Stable) @NotNull IConnection getConnection()
@Stability(value=Stable) @NotNull String getEndpoint()
@Stability(value=Stable) @Nullable default String getApiDestinationName()
Default: - A unique name will be generated
@Stability(value=Stable) @Nullable default String getDescription()
Default: - none
@Stability(value=Stable) @Nullable default HttpMethod getHttpMethod()
Default: HttpMethod.POST
@Stability(value=Stable) @Nullable default Number getRateLimitPerSecond()
Default: - Not rate limited
@Stability(value=Stable) static ApiDestinationProps.Builder builder()
ApiDestinationProps.Builder of ApiDestinationPropsCopyright © 2022. All rights reserved.