Interface HttpIntegrationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpIntegrationProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
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")
.timeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpIntegrationPropsstatic final classAn implementation forHttpIntegrationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpIntegrationProps.Builderbuilder()default StringThe ID of the VPC link for a private integration.default HttpConnectionTypeThe type of the network connection to the integration endpoint.default IntegrationCredentialsThe credentials with which to invoke the integration.The HTTP API to which this integration should be bound.default HttpIntegrationSubtypeIntegration subtype.Integration type.default StringIntegration URI.default HttpMethodThe HTTP method to use when calling the underlying HTTP proxy.default ParameterMappingSpecifies how to transform HTTP requests before sending them to the backend.default PayloadFormatVersionThe version of the payload format.default StringSpecifies the TLS configuration for a private integration.default DurationThe maximum amount of time an integration will run before it returns without a response.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHttpApi
The HTTP API to which this integration should be bound. -
getIntegrationType
Integration type. -
getConnectionId
The ID of the VPC link for a private integration.Supported only for HTTP APIs.
Default: - undefined
-
getConnectionType
The type of the network connection to the integration endpoint.Default: HttpConnectionType.INTERNET
-
getCredentials
The credentials with which to invoke the integration.Default: - no credentials, use resource-based permissions on supported AWS services
-
getIntegrationSubtype
Integration subtype.Used for AWS Service integrations, specifies the target of the integration.
Default: - none, required if no `integrationUri` is defined.
-
getIntegrationUri
Integration URI.This will be the function ARN in the case of
HttpIntegrationType.AWS_PROXY, or HTTP URL in the case ofHttpIntegrationType.HTTP_PROXY.Default: - none, required if no `integrationSubtype` is defined.
-
getMethod
The HTTP method to use when calling the underlying HTTP proxy.Default: - none. required if the integration type is `HttpIntegrationType.HTTP_PROXY`.
-
getParameterMapping
Specifies how to transform HTTP requests before sending them to the backend.Default: undefined requests are sent to the backend unmodified
- See Also:
-
getPayloadFormatVersion
The version of the payload format.Default: - defaults to latest in the case of HttpIntegrationType.AWS_PROXY`, irrelevant otherwise.
- See Also:
-
getSecureServerName
Specifies the TLS configuration for a private integration.Default: undefined private integration traffic will use HTTP protocol
- See Also:
-
getTimeout
The maximum amount of time an integration will run before it returns without a response.Must be between 50 milliseconds and 29 seconds.
Default: Duration.seconds(29)
-
builder
- Returns:
- a
HttpIntegrationProps.BuilderofHttpIntegrationProps
-