Class MethodSettingsSettings


  • public final class MethodSettingsSettings
    extends java.lang.Object
    • Method Detail

      • cacheDataEncrypted

        public java.util.Optional<java.lang.Boolean> cacheDataEncrypted()
        Returns:
        Whether the cached responses are encrypted.
      • cacheTtlInSeconds

        public java.util.Optional<java.lang.Integer> cacheTtlInSeconds()
        Returns:
        Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
      • cachingEnabled

        public java.util.Optional<java.lang.Boolean> cachingEnabled()
        Returns:
        Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
      • dataTraceEnabled

        public java.util.Optional<java.lang.Boolean> dataTraceEnabled()
        Returns:
        Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
      • loggingLevel

        public java.util.Optional<java.lang.String> loggingLevel()
        Returns:
        Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are `OFF`, `ERROR`, and `INFO`.
      • metricsEnabled

        public java.util.Optional<java.lang.Boolean> metricsEnabled()
        Returns:
        Whether Amazon CloudWatch metrics are enabled for this method.
      • requireAuthorizationForCacheControl

        public java.util.Optional<java.lang.Boolean> requireAuthorizationForCacheControl()
        Returns:
        Whether authorization is required for a cache invalidation request.
      • throttlingBurstLimit

        public java.util.Optional<java.lang.Integer> throttlingBurstLimit()
        Returns:
        Throttling burst limit. Default: `-1` (throttling disabled).
      • throttlingRateLimit

        public java.util.Optional<java.lang.Double> throttlingRateLimit()
        Returns:
        Throttling rate limit. Default: `-1` (throttling disabled).
      • unauthorizedCacheControlHeaderStrategy

        public java.util.Optional<java.lang.String> unauthorizedCacheControlHeaderStrategy()
        Returns:
        How to handle unauthorized requests for cache invalidation. The available values are `FAIL_WITH_403`, `SUCCEED_WITH_RESPONSE_HEADER`, `SUCCEED_WITHOUT_RESPONSE_HEADER`.