Interface ConnectionProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:02.225Z") @Stability(Stable) public interface ConnectionProps extends
An API Destination Connection.

A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.


 Connection connection = Connection.Builder.create(this, "Connection")
         .authorization(Authorization.apiKey("x-api-key", SecretValue.secretsManager("ApiSecretName")))
         .description("Connection with API Key x-api-key")
 ApiDestination destination = ApiDestination.Builder.create(this, "Destination")
         .description("Calling with API key x-api-key")
 Rule rule = Rule.Builder.create(this, "Rule")
         .targets(List.of(new ApiDestination(destination)))
  • Method Details

    • getAuthorization

      @Stability(Stable) @NotNull Authorization getAuthorization()
      The authorization type for the connection.
    • getBodyParameters

      @Stability(Stable) @Nullable default Map<String,HttpParameter> getBodyParameters()
      Additional string parameters to add to the invocation bodies.

      Default: - No additional parameters

    • getConnectionName

      @Stability(Stable) @Nullable default String getConnectionName()
      The name of the connection.

      Default: - A name is automatically generated

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The name of the connection.

      Default: - none

    • getHeaderParameters

      @Stability(Stable) @Nullable default Map<String,HttpParameter> getHeaderParameters()
      Additional string parameters to add to the invocation headers.

      Default: - No additional parameters

    • getQueryStringParameters

      @Stability(Stable) @Nullable default Map<String,HttpParameter> getQueryStringParameters()
      Additional string parameters to add to the invocation query strings.

      Default: - No additional parameters

    • builder

      @Stability(Stable) static ConnectionProps.Builder builder()
      a ConnectionProps.Builder of ConnectionProps