class HttpServiceDiscoveryIntegration
Language | Type name |
---|---|
![]() | Amazon.CDK.AwsApigatewayv2Integrations.HttpServiceDiscoveryIntegration |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2integrations#HttpServiceDiscoveryIntegration |
![]() | software.amazon.awscdk.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegration |
![]() | aws_cdk.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegration |
![]() | aws-cdk-lib » aws_apigatewayv2_integrations » HttpServiceDiscoveryIntegration |
Extends
Http
The Service Discovery integration resource for HTTP API.
Example
import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery';
import { HttpServiceDiscoveryIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
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
Http
— properties to configure the integration.Service Discovery Integration Props
Properties
Name | Type | Description |
---|---|---|
connection | Http | |
http | Http | |
integration | Http | |
payload | Payload |
connectionType
Type:
Http
httpMethod
Type:
Http
integrationType
Type:
Http
payloadFormatVersion
Type:
Payload
Methods
Name | Description |
---|---|
bind(options) | Bind this integration to the route. |
bind(options)
public bind(options: HttpRouteIntegrationBindOptions): HttpRouteIntegrationConfig
Parameters
- options
Http
Route Integration Bind Options
Returns
Bind this integration to the route.