@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.182Z") @Stability(value=Stable) public interface MethodDeploymentOptions extends software.amazon.jsii.JsiiSerializable
RestApi api = new RestApi(this, "books");
Deployment deployment = Deployment.Builder.create(this, "my-deployment").api(api).build();
Stage stage = Stage.Builder.create(this, "my-stage")
.deployment(deployment)
.methodOptions(Map.of(
"/*/*", MethodDeploymentOptions.builder() // This special path applies to all resource paths and all HTTP methods
.throttlingRateLimit(100)
.throttlingBurstLimit(200).build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MethodDeploymentOptions.Builder
A builder for
MethodDeploymentOptions |
static class |
MethodDeploymentOptions.Jsii$Proxy
An implementation for
MethodDeploymentOptions |
| Modifier and Type | Method and Description |
|---|---|
static MethodDeploymentOptions.Builder |
builder() |
default Boolean |
getCacheDataEncrypted()
Indicates whether the cached responses are encrypted.
|
default Duration |
getCacheTtl()
Specifies the time to live (TTL), in seconds, for cached responses.
|
default Boolean |
getCachingEnabled()
Specifies whether responses should be cached and returned for requests.
|
default Boolean |
getDataTraceEnabled()
Specifies whether data trace logging is enabled for this method.
|
default MethodLoggingLevel |
getLoggingLevel()
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
|
default Boolean |
getMetricsEnabled()
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
default Number |
getThrottlingBurstLimit()
Specifies the throttling burst limit.
|
default Number |
getThrottlingRateLimit()
Specifies the throttling rate limit.
|
@Stability(value=Stable) @Nullable default Boolean getCacheDataEncrypted()
Default: false
@Stability(value=Stable) @Nullable default Duration getCacheTtl()
The higher the TTL, the longer the response will be cached.
Default: Duration.minutes(5)
@Stability(value=Stable) @Nullable default Boolean getCachingEnabled()
A cache cluster must be enabled on the stage for responses to be cached.
Default: - Caching is Disabled.
@Stability(value=Stable) @Nullable default Boolean getDataTraceEnabled()
When enabled, API gateway will log the full API requests and responses. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this feature for production APIs.
Default: false
@Stability(value=Stable) @Nullable default MethodLoggingLevel getLoggingLevel()
Default: - Off
@Stability(value=Stable) @Nullable default Boolean getMetricsEnabled()
Default: false
@Stability(value=Stable) @Nullable default Number getThrottlingBurstLimit()
The total rate of all requests in your AWS account is limited to 5,000 requests.
Default: - No additional restriction.
@Stability(value=Stable) @Nullable default Number getThrottlingRateLimit()
The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).
Default: - No additional restriction.
@Stability(value=Stable) static MethodDeploymentOptions.Builder builder()
MethodDeploymentOptions.Builder of MethodDeploymentOptionsCopyright © 2022. All rights reserved.