@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.316Z") @Stability(value=Stable) public class ApiDestination extends software.amazon.jsii.JsiiObject implements IRuleTarget
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 | Class and Description |
|---|---|
static class |
ApiDestination.Builder
A fluent builder for
ApiDestination. |
software.amazon.jsii.JsiiObject.InitializationModeIRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ApiDestination(IApiDestination apiDestination) |
|
ApiDestination(IApiDestination apiDestination,
ApiDestinationProps props) |
protected |
ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApiDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
RuleTargetConfig |
bind(IRule _rule)
Returns a RuleTarget that can be used to trigger API destinations from an EventBridge event.
|
RuleTargetConfig |
bind(IRule _rule,
String _id)
Returns a RuleTarget that can be used to trigger API destinations from an EventBridge event.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApiDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ApiDestination(@NotNull
IApiDestination apiDestination,
@Nullable
ApiDestinationProps props)
apiDestination - This parameter is required.props - @Stability(value=Stable)
public ApiDestination(@NotNull
IApiDestination apiDestination)
apiDestination - This parameter is required.@Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule, @Nullable String _id)
bind in interface IRuleTarget_rule - This parameter is required._id - @Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule)
bind in interface IRuleTarget_rule - This parameter is required.Copyright © 2022. All rights reserved.