@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.875Z") @Stability(value=Experimental) public class MockIntegration extends Integration
This is useful for API testing because it can be used to test the integration set up without incurring charges for using the backend and to enable collaborative development of an API. In collaborative development, a team can isolate their development effort by setting up simulations of API components owned by other teams by using the MOCK integrations. It is also used to return CORS-related headers to ensure that the API method permits CORS access. In fact, the API Gateway console integrates the OPTIONS method to support CORS with a mock integration. Gateway responses are other examples of mock integrations.
| Modifier and Type | Class and Description |
|---|---|
static class |
MockIntegration.Builder
(experimental) A fluent builder for
MockIntegration. |
| Modifier | Constructor and Description |
|---|---|
|
MockIntegration() |
|
MockIntegration(IntegrationOptions options) |
protected |
MockIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
MockIntegration(software.amazon.jsii.JsiiObjectRef objRef) |
bindjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected MockIntegration(software.amazon.jsii.JsiiObjectRef objRef)
protected MockIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public MockIntegration(@Nullable
IntegrationOptions options)
options - @Stability(value=Experimental) public MockIntegration()
Copyright © 2021. All rights reserved.