@Stability(value=Stable) public static final class StageOptions.Builder extends Object implements software.amazon.jsii.Builder<StageOptions>
StageOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public StageOptions.Builder accessLogDestination(IAccessLogDestination accessLogDestination)
StageOptions.getAccessLogDestination()accessLogDestination - The CloudWatch Logs log group.this@Stability(value=Stable) public StageOptions.Builder accessLogFormat(AccessLogFormat accessLogFormat)
StageOptions.getAccessLogFormat()accessLogFormat - A single line format of access logs of data, as specified by selected $content variables.
The format must include at least AccessLogFormat.contextRequestId().this@Stability(value=Stable) public StageOptions.Builder cacheClusterEnabled(Boolean cacheClusterEnabled)
StageOptions.getCacheClusterEnabled()cacheClusterEnabled - Indicates whether cache clustering is enabled for the stage.this@Stability(value=Stable) public StageOptions.Builder cacheClusterSize(String cacheClusterSize)
StageOptions.getCacheClusterSize()cacheClusterSize - The stage's cache cluster size.this@Stability(value=Stable) public StageOptions.Builder clientCertificateId(String clientCertificateId)
StageOptions.getClientCertificateId()clientCertificateId - The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.this@Stability(value=Stable) public StageOptions.Builder description(String description)
StageOptions.getDescription()description - A description of the purpose of the stage.this@Stability(value=Stable) public StageOptions.Builder documentationVersion(String documentationVersion)
StageOptions.getDocumentationVersion()documentationVersion - The version identifier of the API documentation snapshot.this@Stability(value=Stable) public StageOptions.Builder methodOptions(Map<String,? extends MethodDeploymentOptions> methodOptions)
StageOptions.getMethodOptions()methodOptions - Method deployment options for specific resources/methods.
These will
override common options defined in StageOptions#methodOptions.this@Stability(value=Stable) public StageOptions.Builder stageName(String stageName)
StageOptions.getStageName()stageName - The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI).this@Stability(value=Stable) public StageOptions.Builder tracingEnabled(Boolean tracingEnabled)
StageOptions.getTracingEnabled()tracingEnabled - Specifies whether Amazon X-Ray tracing is enabled for this method.this@Stability(value=Stable) public StageOptions.Builder variables(Map<String,String> variables)
StageOptions.getVariables()variables - 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-._~:/?#&=,]+.this@Stability(value=Stable) public StageOptions.Builder cacheDataEncrypted(Boolean cacheDataEncrypted)
MethodDeploymentOptions.getCacheDataEncrypted()cacheDataEncrypted - Indicates whether the cached responses are encrypted.this@Stability(value=Stable) public StageOptions.Builder cacheTtl(Duration cacheTtl)
MethodDeploymentOptions.getCacheTtl()cacheTtl - Specifies the time to live (TTL), in seconds, for cached responses.
The
higher the TTL, the longer the response will be cached.this@Stability(value=Stable) public StageOptions.Builder cachingEnabled(Boolean cachingEnabled)
MethodDeploymentOptions.getCachingEnabled()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.this@Stability(value=Stable) public StageOptions.Builder dataTraceEnabled(Boolean dataTraceEnabled)
MethodDeploymentOptions.getDataTraceEnabled()dataTraceEnabled - Specifies whether data trace logging is enabled for this method.
When enabled, API gateway will log the full API requests and responses.
This can be useful to troubleshoot APIs, but can result in logging sensitive data.
We recommend that you don't enable this feature for production APIs.this@Stability(value=Stable) public StageOptions.Builder loggingLevel(MethodLoggingLevel loggingLevel)
MethodDeploymentOptions.getLoggingLevel()loggingLevel - Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.this@Stability(value=Stable) public StageOptions.Builder metricsEnabled(Boolean metricsEnabled)
MethodDeploymentOptions.getMetricsEnabled()metricsEnabled - Specifies whether Amazon CloudWatch metrics are enabled for this method.this@Stability(value=Stable) public StageOptions.Builder throttlingBurstLimit(Number throttlingBurstLimit)
MethodDeploymentOptions.getThrottlingBurstLimit()throttlingBurstLimit - Specifies the throttling burst limit.
The total rate of all requests in your AWS account is limited to 5,000 requests.this@Stability(value=Stable) public StageOptions.Builder throttlingRateLimit(Number throttlingRateLimit)
MethodDeploymentOptions.getThrottlingRateLimit()throttlingRateLimit - Specifies the throttling rate limit.
The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).this@Stability(value=Stable) public StageOptions build()
build in interface software.amazon.jsii.Builder<StageOptions>StageOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.