interface HttpIntegrationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGatewayv2.HttpIntegrationProps |
![]() | software.amazon.awscdk.services.apigatewayv2.HttpIntegrationProps |
![]() | aws_cdk.aws_apigatewayv2.HttpIntegrationProps |
![]() | @aws-cdk/aws-apigatewayv2 » HttpIntegrationProps |
The integration properties.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2';
declare const httpApi: apigatewayv2.HttpApi;
declare const integrationCredentials: apigatewayv2.IntegrationCredentials;
declare const parameterMapping: apigatewayv2.ParameterMapping;
declare const payloadFormatVersion: apigatewayv2.PayloadFormatVersion;
const httpIntegrationProps: apigatewayv2.HttpIntegrationProps = {
httpApi: httpApi,
integrationType: apigatewayv2.HttpIntegrationType.HTTP_PROXY,
// the properties below are optional
connectionId: 'connectionId',
connectionType: apigatewayv2.HttpConnectionType.VPC_LINK,
credentials: integrationCredentials,
integrationSubtype: apigatewayv2.HttpIntegrationSubtype.EVENTBRIDGE_PUT_EVENTS,
integrationUri: 'integrationUri',
method: apigatewayv2.HttpMethod.ANY,
parameterMapping: parameterMapping,
payloadFormatVersion: payloadFormatVersion,
secureServerName: 'secureServerName',
};
Properties
Name | Type | Description |
---|---|---|
http | IHttp | The HTTP API to which this integration should be bound. |
integration | Http | Integration type. |
connection | string | The ID of the VPC link for a private integration. |
connection | Http | The type of the network connection to the integration endpoint. |
credentials? | Integration | The credentials with which to invoke the integration. |
integration | Http | Integration subtype. |
integration | string | Integration URI. |
method? | Http | The HTTP method to use when calling the underlying HTTP proxy. |
parameter | Parameter | Specifies how to transform HTTP requests before sending them to the backend. |
payload | Payload | The version of the payload format. |
secure | string | Specifies the TLS configuration for a private integration. |
httpApi
Type:
IHttp
The HTTP API to which this integration should be bound.
integrationType
Type:
Http
Integration type.
connectionId?
Type:
string
(optional, default: undefined)
The ID of the VPC link for a private integration.
Supported only for HTTP APIs.
connectionType?
Type:
Http
(optional, default: HttpConnectionType.INTERNET)
The type of the network connection to the integration endpoint.
credentials?
Type:
Integration
(optional, default: no credentials, use resource-based permissions on supported AWS services)
The credentials with which to invoke the integration.
integrationSubtype?
Type:
Http
(optional, default: none, required if no integrationUri
is defined.)
Integration subtype.
Used for AWS Service integrations, specifies the target of the integration.
integrationUri?
Type:
string
(optional, default: none, required if no integrationSubtype
is defined.)
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
.
method?
Type:
Http
(optional, default: none. required if the integration type is HttpIntegrationType.HTTP_PROXY
.)
The HTTP method to use when calling the underlying HTTP proxy.
parameterMapping?
Type:
Parameter
(optional, default: undefined requests are sent to the backend unmodified)
Specifies how to transform HTTP requests before sending them to the backend.
payloadFormatVersion?
Type:
Payload
(optional, default: defaults to latest in the case of HttpIntegrationType.AWS_PROXY`, irrelevant otherwise.)
The version of the payload format.
secureServerName?
Type:
string
(optional, default: undefined private integration traffic will use HTTP protocol)
Specifies the TLS configuration for a private integration.