Interface CfnDeployment.StageDescriptionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeployment.StageDescriptionProperty.Jsii$Proxy
- Enclosing class:
CfnDeployment
StageDescription is a property of the AWS::ApiGateway::Deployment resource that configures a deployment stage.
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.*;
StageDescriptionProperty stageDescriptionProperty = StageDescriptionProperty.builder()
.accessLogSetting(AccessLogSettingProperty.builder()
.destinationArn("destinationArn")
.format("format")
.build())
.cacheClusterEnabled(false)
.cacheClusterSize("cacheClusterSize")
.cacheDataEncrypted(false)
.cacheTtlInSeconds(123)
.cachingEnabled(false)
.canarySetting(CanarySettingProperty.builder()
.percentTraffic(123)
.stageVariableOverrides(Map.of(
"stageVariableOverridesKey", "stageVariableOverrides"))
.useStageCache(false)
.build())
.clientCertificateId("clientCertificateId")
.dataTraceEnabled(false)
.description("description")
.documentationVersion("documentationVersion")
.loggingLevel("loggingLevel")
.methodSettings(List.of(MethodSettingProperty.builder()
.cacheDataEncrypted(false)
.cacheTtlInSeconds(123)
.cachingEnabled(false)
.dataTraceEnabled(false)
.httpMethod("httpMethod")
.loggingLevel("loggingLevel")
.metricsEnabled(false)
.resourcePath("resourcePath")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build()))
.metricsEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.tracingEnabled(false)
.variables(Map.of(
"variablesKey", "variables"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeployment.StageDescriptionPropertystatic final classAn implementation forCfnDeployment.StageDescriptionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSpecifies settings for logging access in this stage.default ObjectSpecifies whether a cache cluster is enabled for the stage.default StringThe size of the stage's cache cluster.default ObjectIndicates whether the cached responses are encrypted.default NumberThe time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.default ObjectIndicates whether responses are cached and returned for requests.default ObjectSpecifies settings for the canary deployment in this stage.default StringThe identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.default ObjectIndicates whether data trace logging is enabled for methods in the stage.default StringA description of the purpose of the stage.default StringThe version identifier of the API documentation snapshot.default StringThe logging level for this method.default ObjectConfigures settings for all of the stage's methods.default ObjectIndicates whether Amazon CloudWatch metrics are enabled for methods in the stage.getTags()An array of arbitrary tags (key-value pairs) to associate with the stage.default NumberThe target request burst rate limit.default NumberThe target request steady-state rate limit.default ObjectSpecifies whether active tracing with X-ray is enabled for this stage.default ObjectA map that defines the stage variables.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessLogSetting
Specifies settings for logging access in this stage.- See Also:
-
getCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage.To activate a method-level cache, set
CachingEnabledtotruefor a method.- See Also:
-
getCacheClusterSize
The size of the stage's cache cluster.For more information, see cacheClusterSize in the API Gateway API Reference .
- See Also:
-
getCacheDataEncrypted
Indicates whether the cached responses are encrypted.- See Also:
-
getCacheTtlInSeconds
The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.- See Also:
-
getCachingEnabled
Indicates whether responses are cached and returned for requests.You must enable a cache cluster on the stage to cache responses. For more information, see Enable API Gateway Caching in a Stage to Enhance API Performance in the API Gateway Developer Guide .
- See Also:
-
getCanarySetting
Specifies settings for the canary deployment in this stage.- See Also:
-
getClientCertificateId
The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.- See Also:
-
getDataTraceEnabled
Indicates whether data trace logging is enabled for methods in the stage.API Gateway pushes these logs to Amazon CloudWatch Logs.
- See Also:
-
getDescription
A description of the purpose of the stage.- See Also:
-
getDocumentationVersion
The version identifier of the API documentation snapshot.- See Also:
-
getLoggingLevel
The logging level for this method.For valid values, see the
loggingLevelproperty of the MethodSetting resource in the Amazon API Gateway API Reference .- See Also:
-
getMethodSettings
Configures settings for all of the stage's methods.- See Also:
-
getMetricsEnabled
Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.- See Also:
-
getTags
An array of arbitrary tags (key-value pairs) to associate with the stage.- See Also:
-
getThrottlingBurstLimit
The target request burst rate limit.This allows more requests through for a period of time than the target rate limit. For more information, see Manage API Request Throttling in the API Gateway Developer Guide .
- See Also:
-
getThrottlingRateLimit
The target request steady-state rate limit.For more information, see Manage API Request Throttling in the API Gateway Developer Guide .
- See Also:
-
getTracingEnabled
Specifies whether active tracing with X-ray is enabled for this stage.For more information, see Trace API Gateway API Execution with AWS X-Ray in the API Gateway Developer Guide .
- See Also:
-
getVariables
A map that defines the stage variables.Variable names must consist of alphanumeric characters, and the values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+.- See Also:
-
builder
-