@aws-cdk_aws-apigatewayv2-integrations-alpha.HttpServiceDiscoveryIntegration

class HttpServiceDiscoveryIntegration ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Apigatewayv2.Integrations.Alpha.HttpServiceDiscoveryIntegration
Gogithub.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha/v2#HttpServiceDiscoveryIntegration
Javasoftware.amazon.awscdk.services.apigatewayv2.integrations.alpha.HttpServiceDiscoveryIntegration
Pythonaws_cdk.aws_apigatewayv2_integrations_alpha.HttpServiceDiscoveryIntegration
TypeScript (source)@aws-cdk/aws-apigatewayv2-integrations-alpha ยป HttpServiceDiscoveryIntegration

Extends HttpRouteIntegration

The Service Discovery integration resource for HTTP API.

Example

import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery';
import { HttpServiceDiscoveryIntegration } from '@aws-cdk/aws-apigatewayv2-integrations-alpha';

const vpc = new ec2.Vpc(this, 'VPC');
const vpcLink = new apigwv2.VpcLink(this, 'VpcLink', { vpc });
const namespace = new servicediscovery.PrivateDnsNamespace(this, 'Namespace', {
  name: 'boobar.com',
  vpc,
});
const service = namespace.createService('Service');

const httpEndpoint = new apigwv2.HttpApi(this, 'HttpProxyPrivateApi', {
  defaultIntegration: new HttpServiceDiscoveryIntegration('DefaultIntegration', service, {
    vpcLink,
  }),
});

Initializer

new HttpServiceDiscoveryIntegration(id: string, service: IService, props?: HttpServiceDiscoveryIntegrationProps)

Parameters

  • id string โ€” id of the underlying integration construct.
  • service IService โ€” the service discovery resource to integrate with.
  • props HttpServiceDiscoveryIntegrationProps โ€” properties to configure the integration.

Properties

NameTypeDescription
connectionType๐Ÿ”นHttpConnectionType
httpMethod๐Ÿ”นHttpMethod
integrationType๐Ÿ”นHttpIntegrationType
payloadFormatVersion๐Ÿ”นPayloadFormatVersion

connectionType๐Ÿ”น

Type: HttpConnectionType


httpMethod๐Ÿ”น

Type: HttpMethod


integrationType๐Ÿ”น

Type: HttpIntegrationType


payloadFormatVersion๐Ÿ”น

Type: PayloadFormatVersion

Methods

NameDescription
bind(_options)๐Ÿ”นBind this integration to the route.

bind(_options)๐Ÿ”น

public bind(_options: HttpRouteIntegrationBindOptions): HttpRouteIntegrationConfig

Parameters

  • _options HttpRouteIntegrationBindOptions

Returns

  • HttpRouteIntegrationConfig

Bind this integration to the route.