public static final class StageOptions.Builder
extends java.lang.Object
StageOptions
Constructor and Description |
---|
Builder() |
public StageOptions.Builder accessLogDestination(IAccessLogDestination accessLogDestination)
StageOptions.getAccessLogDestination()
accessLogDestination
- The CloudWatch Logs log group.this
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
public StageOptions.Builder cacheClusterEnabled(java.lang.Boolean cacheClusterEnabled)
StageOptions.getCacheClusterEnabled()
cacheClusterEnabled
- Indicates whether cache clustering is enabled for the stage.this
public StageOptions.Builder cacheClusterSize(java.lang.String cacheClusterSize)
StageOptions.getCacheClusterSize()
cacheClusterSize
- The stage's cache cluster size.this
public StageOptions.Builder clientCertificateId(java.lang.String clientCertificateId)
StageOptions.getClientCertificateId()
clientCertificateId
- The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.this
public StageOptions.Builder description(java.lang.String description)
StageOptions.getDescription()
description
- A description of the purpose of the stage.this
public StageOptions.Builder documentationVersion(java.lang.String documentationVersion)
StageOptions.getDocumentationVersion()
documentationVersion
- The version identifier of the API documentation snapshot.this
public StageOptions.Builder methodOptions(java.util.Map<java.lang.String,? extends MethodDeploymentOptions> methodOptions)
StageOptions.getMethodOptions()
methodOptions
- Method deployment options for specific resources/methods.
These will
override common options defined in StageOptions#methodOptions
.this
public StageOptions.Builder stageName(java.lang.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
public StageOptions.Builder tracingEnabled(java.lang.Boolean tracingEnabled)
StageOptions.getTracingEnabled()
tracingEnabled
- Specifies whether Amazon X-Ray tracing is enabled for this method.this
public StageOptions.Builder variables(java.util.Map<java.lang.String,java.lang.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
public StageOptions.Builder cacheDataEncrypted(java.lang.Boolean cacheDataEncrypted)
MethodDeploymentOptions.getCacheDataEncrypted()
cacheDataEncrypted
- Indicates whether the cached responses are encrypted.this
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
public StageOptions.Builder cachingEnabled(java.lang.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
public StageOptions.Builder dataTraceEnabled(java.lang.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
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
public StageOptions.Builder metricsEnabled(java.lang.Boolean metricsEnabled)
MethodDeploymentOptions.getMetricsEnabled()
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method.this
public StageOptions.Builder throttlingBurstLimit(java.lang.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
public StageOptions.Builder throttlingRateLimit(java.lang.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
public StageOptions build()
StageOptions
java.lang.NullPointerException
- if any required attribute was not provided