@Stability(value=Stable)
public static interface CfnStage.MethodSettingProperty
extends software.amazon.jsii.JsiiSerializable
The MethodSettings property of the AWS::ApiGateway::Stage resource contains a list of MethodSetting property types.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
MethodSettingProperty methodSettingProperty = MethodSettingProperty.builder()
.cacheDataEncrypted(false)
.cacheTtlInSeconds(123)
.cachingEnabled(false)
.dataTraceEnabled(false)
.httpMethod("httpMethod")
.loggingLevel("loggingLevel")
.metricsEnabled(false)
.resourcePath("resourcePath")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStage.MethodSettingProperty.Builder
A builder for
CfnStage.MethodSettingProperty |
static class |
CfnStage.MethodSettingProperty.Jsii$Proxy
An implementation for
CfnStage.MethodSettingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStage.MethodSettingProperty.Builder |
builder() |
default Object |
getCacheDataEncrypted()
Indicates whether the cached responses are encrypted.
|
default Number |
getCacheTtlInSeconds()
The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.
|
default Object |
getCachingEnabled()
Indicates whether responses are cached and returned for requests.
|
default Object |
getDataTraceEnabled()
Indicates whether data trace logging is enabled for methods in the stage.
|
default String |
getHttpMethod()
The HTTP method.
|
default String |
getLoggingLevel()
The logging level for this method.
|
default Object |
getMetricsEnabled()
Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.
|
default String |
getResourcePath()
The resource path for this method.
|
default Number |
getThrottlingBurstLimit()
The number of burst requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account .
|
default Number |
getThrottlingRateLimit()
The number of steady-state requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account .
|
@Stability(value=Stable) @Nullable default Object getCacheDataEncrypted()
@Stability(value=Stable) @Nullable default Number getCacheTtlInSeconds()
@Stability(value=Stable) @Nullable default Object getCachingEnabled()
You must enable a cache cluster on the stage to cache responses.
@Stability(value=Stable) @Nullable default Object getDataTraceEnabled()
API Gateway pushes these logs to Amazon CloudWatch Logs.
@Stability(value=Stable) @Nullable default String getHttpMethod()
To apply settings to multiple resources and methods, specify an asterisk ( * ) for the HttpMethod and /* for the ResourcePath . This parameter is required when you specify a MethodSetting .
@Stability(value=Stable) @Nullable default String getLoggingLevel()
For valid values, see the loggingLevel property of the Stage resource in the Amazon API Gateway API Reference .
@Stability(value=Stable) @Nullable default Object getMetricsEnabled()
@Stability(value=Stable) @Nullable default String getResourcePath()
Forward slashes ( / ) are encoded as ~1 and the initial slash must include a forward slash. For example, the path value /resource/subresource must be encoded as /~1resource~1subresource . To specify the root path, use only a slash ( / ). To apply settings to multiple resources and methods, specify an asterisk ( * ) for the HttpMethod and /* for the ResourcePath . This parameter is required when you specify a MethodSetting .
@Stability(value=Stable) @Nullable default Number getThrottlingBurstLimit()
For more information, see Manage API Request Throttling in the API Gateway Developer Guide .
@Stability(value=Stable) @Nullable default Number getThrottlingRateLimit()
For more information, see Manage API Request Throttling in the API Gateway Developer Guide .
@Stability(value=Stable) static CfnStage.MethodSettingProperty.Builder builder()
Copyright © 2022. All rights reserved.