Interface ConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:02.015Z")
@Stability(Stable)
public interface ConnectionProps
extends software.amazon.jsii.JsiiSerializable
An API Destination Connection.
A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.
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 forConnectionProps
static final class
An implementation forConnectionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionProps.Builder
builder()
The authorization type for the connection.default Map<String,
HttpParameter> Additional string parameters to add to the invocation bodies.default String
The name of the connection.default String
The name of the connection.default Map<String,
HttpParameter> Additional string parameters to add to the invocation headers.default Map<String,
HttpParameter> Additional string parameters to add to the invocation query strings.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorization
The authorization type for the connection. -
getBodyParameters
Additional string parameters to add to the invocation bodies.Default: - No additional parameters
-
getConnectionName
The name of the connection.Default: - A name is automatically generated
-
getDescription
The name of the connection.Default: - none
-
getHeaderParameters
Additional string parameters to add to the invocation headers.Default: - No additional parameters
-
getQueryStringParameters
Additional string parameters to add to the invocation query strings.Default: - No additional parameters
-
builder
- Returns:
- a
ConnectionProps.Builder
ofConnectionProps
-