@Stability(value=Stable) public static final class MethodDeploymentOptions.Builder extends Object implements software.amazon.jsii.Builder<MethodDeploymentOptions>
MethodDeploymentOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public MethodDeploymentOptions.Builder cacheDataEncrypted(Boolean cacheDataEncrypted)
MethodDeploymentOptions.getCacheDataEncrypted()cacheDataEncrypted - Indicates whether the cached responses are encrypted.this@Stability(value=Stable) public MethodDeploymentOptions.Builder cacheTtl(Duration cacheTtl)
MethodDeploymentOptions.getCacheTtl()cacheTtl - Specifies the time to live (TTL), in seconds, for cached responses.
The
higher the TTL, the longer the response will be cached.this@Stability(value=Stable) public MethodDeploymentOptions.Builder cachingEnabled(Boolean cachingEnabled)
MethodDeploymentOptions.getCachingEnabled()cachingEnabled - Specifies whether responses should be cached and returned for requests.
A
cache cluster must be enabled on the stage for responses to be cached.this@Stability(value=Stable) public MethodDeploymentOptions.Builder dataTraceEnabled(Boolean dataTraceEnabled)
MethodDeploymentOptions.getDataTraceEnabled()dataTraceEnabled - Specifies whether data trace logging is enabled for this method.
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.this@Stability(value=Stable) public MethodDeploymentOptions.Builder loggingLevel(MethodLoggingLevel loggingLevel)
MethodDeploymentOptions.getLoggingLevel()loggingLevel - Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.this@Stability(value=Stable) public MethodDeploymentOptions.Builder metricsEnabled(Boolean metricsEnabled)
MethodDeploymentOptions.getMetricsEnabled()metricsEnabled - Specifies whether Amazon CloudWatch metrics are enabled for this method.this@Stability(value=Stable) public MethodDeploymentOptions.Builder throttlingBurstLimit(Number throttlingBurstLimit)
MethodDeploymentOptions.getThrottlingBurstLimit()throttlingBurstLimit - Specifies the throttling burst limit.
The total rate of all requests in your AWS account is limited to 5,000 requests.this@Stability(value=Stable) public MethodDeploymentOptions.Builder throttlingRateLimit(Number throttlingRateLimit)
MethodDeploymentOptions.getThrottlingRateLimit()throttlingRateLimit - Specifies the throttling rate limit.
The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).this@Stability(value=Stable) public MethodDeploymentOptions build()
build in interface software.amazon.jsii.Builder<MethodDeploymentOptions>MethodDeploymentOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.