Interface HttpIntegrationProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HttpIntegrationProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.257Z") @Stability(Experimental) public interface HttpIntegrationProps extends software.amazon.jsii.JsiiSerializable
(experimental) The integration properties.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apigatewayv2.*;
 HttpApi httpApi;
 IntegrationCredentials integrationCredentials;
 ParameterMapping parameterMapping;
 PayloadFormatVersion payloadFormatVersion;
 HttpIntegrationProps httpIntegrationProps = HttpIntegrationProps.builder()
         .httpApi(httpApi)
         .integrationType(HttpIntegrationType.HTTP_PROXY)
         // the properties below are optional
         .connectionId("connectionId")
         .connectionType(HttpConnectionType.VPC_LINK)
         .credentials(integrationCredentials)
         .integrationSubtype(HttpIntegrationSubtype.EVENTBRIDGE_PUT_EVENTS)
         .integrationUri("integrationUri")
         .method(HttpMethod.ANY)
         .parameterMapping(parameterMapping)
         .payloadFormatVersion(payloadFormatVersion)
         .secureServerName("secureServerName")
         .build();
 
  • Method Details

    • getHttpApi

      @Stability(Experimental) @NotNull IHttpApi getHttpApi()
      (experimental) The HTTP API to which this integration should be bound.
    • getIntegrationType

      @Stability(Experimental) @NotNull HttpIntegrationType getIntegrationType()
      (experimental) Integration type.
    • getConnectionId

      @Stability(Experimental) @Nullable default String getConnectionId()
      (experimental) The ID of the VPC link for a private integration.

      Supported only for HTTP APIs.

      Default: - undefined

    • getConnectionType

      @Stability(Experimental) @Nullable default HttpConnectionType getConnectionType()
      (experimental) The type of the network connection to the integration endpoint.

      Default: HttpConnectionType.INTERNET

    • getCredentials

      @Stability(Experimental) @Nullable default IntegrationCredentials getCredentials()
      (experimental) The credentials with which to invoke the integration.

      Default: - no credentials, use resource-based permissions on supported AWS services

    • getIntegrationSubtype

      @Stability(Experimental) @Nullable default HttpIntegrationSubtype getIntegrationSubtype()
      (experimental) Integration subtype.

      Used for AWS Service integrations, specifies the target of the integration.

      Default: - none, required if no `integrationUri` is defined.

    • getIntegrationUri

      @Stability(Experimental) @Nullable default String getIntegrationUri()
      (experimental) Integration URI.

      This will be the function ARN in the case of HttpIntegrationType.AWS_PROXY, or HTTP URL in the case of HttpIntegrationType.HTTP_PROXY.

      Default: - none, required if no `integrationSubtype` is defined.

    • getMethod

      @Stability(Experimental) @Nullable default HttpMethod getMethod()
      (experimental) The HTTP method to use when calling the underlying HTTP proxy.

      Default: - none. required if the integration type is `HttpIntegrationType.HTTP_PROXY`.

    • getParameterMapping

      @Stability(Experimental) @Nullable default ParameterMapping getParameterMapping()
      (experimental) Specifies how to transform HTTP requests before sending them to the backend.

      Default: undefined requests are sent to the backend unmodified

      See Also:
    • getPayloadFormatVersion

      @Stability(Experimental) @Nullable default PayloadFormatVersion getPayloadFormatVersion()
      (experimental) The version of the payload format.

      Default: - defaults to latest in the case of HttpIntegrationType.AWS_PROXY`, irrelevant otherwise.

      See Also:
    • getSecureServerName

      @Stability(Experimental) @Nullable default String getSecureServerName()
      (experimental) Specifies the TLS configuration for a private integration.

      Default: undefined private integration traffic will use HTTP protocol

      See Also:
    • builder

      @Stability(Experimental) static HttpIntegrationProps.Builder builder()
      Returns:
      a HttpIntegrationProps.Builder of HttpIntegrationProps