Interface IntegrationConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IntegrationConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.978Z")
@Stability(Stable)
public interface IntegrationConfig
extends software.amazon.jsii.JsiiSerializable
Result of binding an Integration to a Method.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigateway.*; import software.amazon.awscdk.services.iam.*; import software.amazon.awscdk.core.*; Role role; VpcLink vpcLink; IntegrationConfig integrationConfig = IntegrationConfig.builder() .type(IntegrationType.AWS) // the properties below are optional .deploymentToken("deploymentToken") .integrationHttpMethod("integrationHttpMethod") .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()) .uri("uri") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forIntegrationConfig
static final class
An implementation forIntegrationConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationConfig.Builder
builder()
default String
This value is included in computing the Deployment's fingerprint.default String
The integration's HTTP method type.default IntegrationOptions
Integration options.getType()
Specifies an API method integration type.default String
getUri()
The Uniform Resource Identifier (URI) for the integration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
Specifies an API method integration type. -
getDeploymentToken
This value is included in computing the Deployment's fingerprint.When the fingerprint changes, a new deployment is triggered. This property should contain values associated with the Integration that upon changing should trigger a fresh the Deployment needs to be refreshed.
Default: undefined deployments are not triggered for any change to this integration.
-
getIntegrationHttpMethod
The integration's HTTP method type.Default: - no integration method specified.
-
getOptions
Integration options.Default: - no integration options
-
getUri
The Uniform Resource Identifier (URI) for the integration.Default: - no URI. Usually applies to MOCK integration
- See Also:
-
builder
- Returns:
- a
IntegrationConfig.Builder
ofIntegrationConfig
-