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.
Namespace: Amazon.APIGateway.Model
Assembly: AWSSDK.APIGateway.dll
Version: 3.x.y.z
public class MethodSetting
The MethodSetting type exposes the following members
Name | Description | |
---|---|---|
MethodSetting() |
Name | Type | Description | |
---|---|---|---|
CacheDataEncrypted | System.Boolean |
Gets and sets the property CacheDataEncrypted. Specifies whether the cached responses are encrypted. |
|
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. |
|
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. |
|
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. |
|
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 |
|
MetricsEnabled | System.Boolean |
Gets and sets the property MetricsEnabled. Specifies whether Amazon CloudWatch metrics are enabled for this method. |
|
RequireAuthorizationForCacheControl | System.Boolean |
Gets and sets the property RequireAuthorizationForCacheControl. Specifies whether authorization is required for a cache invalidation request. |
|
ThrottlingBurstLimit | System.Int32 |
Gets and sets the property ThrottlingBurstLimit. Specifies the throttling burst limit. |
|
ThrottlingRateLimit | System.Double |
Gets and sets the property ThrottlingRateLimit. Specifies the throttling rate limit. |
|
UnauthorizedCacheControlHeaderStrategy | Amazon.APIGateway.UnauthorizedCacheControlHeaderStrategy |
Gets and sets the property UnauthorizedCacheControlHeaderStrategy. Specifies how to handle unauthorized requests for cache invalidation. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5