@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.303Z") @Stability(value=Stable) public interface ConnectionProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectionProps.Builder
A builder for
ConnectionProps |
static class |
ConnectionProps.Jsii$Proxy
An implementation for
ConnectionProps |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionProps.Builder |
builder() |
Authorization |
getAuthorization()
The authorization type for the connection.
|
default Map<String,HttpParameter> |
getBodyParameters()
Additional string parameters to add to the invocation bodies.
|
default String |
getConnectionName()
The name of the connection.
|
default String |
getDescription()
The name of the connection.
|
default Map<String,HttpParameter> |
getHeaderParameters()
Additional string parameters to add to the invocation headers.
|
default Map<String,HttpParameter> |
getQueryStringParameters()
Additional string parameters to add to the invocation query strings.
|
@Stability(value=Stable) @NotNull Authorization getAuthorization()
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getBodyParameters()
Default: - No additional parameters
@Stability(value=Stable) @Nullable default String getConnectionName()
Default: - A name is automatically generated
@Stability(value=Stable) @Nullable default String getDescription()
Default: - none
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getHeaderParameters()
Default: - No additional parameters
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getQueryStringParameters()
Default: - No additional parameters
@Stability(value=Stable) static ConnectionProps.Builder builder()
ConnectionProps.Builder of ConnectionPropsCopyright © 2022. All rights reserved.