@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.163Z") @Stability(value=Stable) public interface HttpIntegrationProps extends software.amazon.jsii.JsiiSerializable
// 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.apigateway.*;
import software.amazon.awscdk.services.iam.*;
Role role;
VpcLink vpcLink;
HttpIntegrationProps httpIntegrationProps = HttpIntegrationProps.builder()
.httpMethod("httpMethod")
.options(IntegrationOptions.builder()
.cacheKeyParameters(List.of("cacheKeyParameters"))
.cacheNamespace("cacheNamespace")
.connectionType(ConnectionType.INTERNET)
.contentHandling(ContentHandling.CONVERT_TO_BINARY)
.credentialsPassthrough(false)
.credentialsRole(role)
.integrationResponses(List.of(IntegrationResponse.builder()
.statusCode("statusCode")
// the properties below are optional
.contentHandling(ContentHandling.CONVERT_TO_BINARY)
.responseParameters(Map.of(
"responseParametersKey", "responseParameters"))
.responseTemplates(Map.of(
"responseTemplatesKey", "responseTemplates"))
.selectionPattern("selectionPattern")
.build()))
.passthroughBehavior(PassthroughBehavior.WHEN_NO_MATCH)
.requestParameters(Map.of(
"requestParametersKey", "requestParameters"))
.requestTemplates(Map.of(
"requestTemplatesKey", "requestTemplates"))
.timeout(Duration.minutes(30))
.vpcLink(vpcLink)
.build())
.proxy(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpIntegrationProps.Builder
A builder for
HttpIntegrationProps |
static class |
HttpIntegrationProps.Jsii$Proxy
An implementation for
HttpIntegrationProps |
| Modifier and Type | Method and Description |
|---|---|
static HttpIntegrationProps.Builder |
builder() |
default String |
getHttpMethod()
HTTP method to use when invoking the backend URL.
|
default IntegrationOptions |
getOptions()
Integration options, such as request/resopnse mapping, content handling, etc.
|
default Boolean |
getProxy()
Determines whether to use proxy integration or custom integration.
|
@Stability(value=Stable) @Nullable default String getHttpMethod()
Default: GET
@Stability(value=Stable) @Nullable default IntegrationOptions getOptions()
Default: defaults based on `IntegrationOptions` defaults
@Stability(value=Stable) @Nullable default Boolean getProxy()
Default: true
@Stability(value=Stable) static HttpIntegrationProps.Builder builder()
HttpIntegrationProps.Builder of HttpIntegrationPropsCopyright © 2022. All rights reserved.