@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.249Z") @Stability(value=Stable) public class ApiDestination extends Resource implements IApiDestination
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.InitializationModeIApiDestination.Jsii$Default, IApiDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ApiDestination(software.constructs.Construct scope,
String id,
ApiDestinationProps props) |
protected |
ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApiDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiDestinationArn()
The ARN of the Api Destination created.
|
String |
getApiDestinationName()
The Name of the Api Destination created.
|
IConnection |
getConnection()
The Connection to associate with Api Destination.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ApiDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ApiDestination(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ApiDestinationProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String getApiDestinationArn()
getApiDestinationArn in interface IApiDestination@Stability(value=Stable) @NotNull public String getApiDestinationName()
getApiDestinationName in interface IApiDestination@Stability(value=Stable) @NotNull public IConnection getConnection()
Copyright © 2022. All rights reserved.