AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Specifies the method setting properties.

Inheritance Hierarchy

System.Object
  Amazon.APIGateway.Model.MethodSetting

Namespace: Amazon.APIGateway.Model
Assembly: AWSSDK.APIGateway.dll
Version: 3.x.y.z

Syntax

C#
public class MethodSetting

The MethodSetting type exposes the following members

Constructors

NameDescription
Public Method MethodSetting()

Properties

NameTypeDescription
Public Property CacheDataEncrypted System.Boolean

Gets and sets the property CacheDataEncrypted.

Specifies whether the cached responses are encrypted.

Public Property CacheTtlInSeconds System.Int32

Gets and sets the property CacheTtlInSeconds.

Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.

Public Property CachingEnabled System.Boolean

Gets and sets the property 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.

Public Property DataTraceEnabled System.Boolean

Gets and sets the property DataTraceEnabled.

Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.

Public Property LoggingLevel System.String

Gets and sets the property LoggingLevel.

Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

Public Property MetricsEnabled System.Boolean

Gets and sets the property MetricsEnabled.

Specifies whether Amazon CloudWatch metrics are enabled for this method.

Public Property RequireAuthorizationForCacheControl System.Boolean

Gets and sets the property RequireAuthorizationForCacheControl.

Specifies whether authorization is required for a cache invalidation request.

Public Property ThrottlingBurstLimit System.Int32

Gets and sets the property ThrottlingBurstLimit.

Specifies the throttling burst limit.

Public Property ThrottlingRateLimit System.Double

Gets and sets the property ThrottlingRateLimit.

Specifies the throttling rate limit.

Public Property UnauthorizedCacheControlHeaderStrategy Amazon.APIGateway.UnauthorizedCacheControlHeaderStrategy

Gets and sets the property UnauthorizedCacheControlHeaderStrategy.

Specifies how to handle unauthorized requests for cache invalidation.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5