@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:34.415Z") 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 . |
IApiDestination.Jsii$Default, IApiDestination.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApiDestination(software.amazon.jsii.JsiiObjectRef objRef) |
|
ApiDestination(software.constructs.Construct scope,
java.lang.String id,
ApiDestinationProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiDestinationArn()
The ARN of the Api Destination created.
|
java.lang.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, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ApiDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected ApiDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ApiDestination(software.constructs.Construct scope, java.lang.String id, ApiDestinationProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getApiDestinationArn()
getApiDestinationArn
in interface IApiDestination
public java.lang.String getApiDestinationName()
getApiDestinationName
in interface IApiDestination
public IConnection getConnection()