Class HttpServiceDiscoveryIntegration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-15T01:32:43.150Z") @Stability(Stable) public class HttpServiceDiscoveryIntegration extends HttpRouteIntegration
The Service Discovery integration resource for HTTP API.

Example:

 import software.amazon.awscdk.services.servicediscovery.*;
 import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegration;
 Vpc vpc = new Vpc(this, "VPC");
 VpcLink vpcLink = VpcLink.Builder.create(this, "VpcLink").vpc(vpc).build();
 PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "Namespace")
         .name("boobar.com")
         .vpc(vpc)
         .build();
 Service service = namespace.createService("Service");
 HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
         .defaultIntegration(HttpServiceDiscoveryIntegration.Builder.create("DefaultIntegration", service)
                 .vpcLink(vpcLink)
                 .build())
         .build();
 
  • Constructor Details

    • HttpServiceDiscoveryIntegration

      protected HttpServiceDiscoveryIntegration(software.amazon.jsii.JsiiObjectRef objRef)
    • HttpServiceDiscoveryIntegration

      protected HttpServiceDiscoveryIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • HttpServiceDiscoveryIntegration

      @Stability(Stable) public HttpServiceDiscoveryIntegration(@NotNull String id, @NotNull IService service, @Nullable HttpServiceDiscoveryIntegrationProps props)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      service - the service discovery resource to integrate with. This parameter is required.
      props - properties to configure the integration.
    • HttpServiceDiscoveryIntegration

      @Stability(Stable) public HttpServiceDiscoveryIntegration(@NotNull String id, @NotNull IService service)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      service - the service discovery resource to integrate with. This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions _options)
      Bind this integration to the route.

      Specified by:
      bind in class HttpRouteIntegration
      Parameters:
      _options - This parameter is required.
    • getConnectionType

      @Stability(Stable) @NotNull protected HttpConnectionType getConnectionType()
    • setConnectionType

      @Stability(Stable) protected void setConnectionType(@NotNull HttpConnectionType value)
    • getHttpMethod

      @Stability(Stable) @NotNull protected HttpMethod getHttpMethod()
    • setHttpMethod

      @Stability(Stable) protected void setHttpMethod(@NotNull HttpMethod value)
    • getIntegrationType

      @Stability(Stable) @NotNull protected HttpIntegrationType getIntegrationType()
    • setIntegrationType

      @Stability(Stable) protected void setIntegrationType(@NotNull HttpIntegrationType value)
    • getPayloadFormatVersion

      @Stability(Stable) @NotNull protected PayloadFormatVersion getPayloadFormatVersion()
    • setPayloadFormatVersion

      @Stability(Stable) protected void setPayloadFormatVersion(@NotNull PayloadFormatVersion value)