@Stability(value=Stable) public static final class StageProps.Builder extends Object implements software.amazon.jsii.Builder<StageProps>
StageProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public StageProps.Builder deployment(Deployment deployment)
StageProps.getDeployment()deployment - The deployment that this stage points to [disable-awslint:ref-via-interface]. This parameter is required.this@Stability(value=Stable) public StageProps.Builder accessLogDestination(IAccessLogDestination accessLogDestination)
StageOptions.getAccessLogDestination()accessLogDestination - The CloudWatch Logs log group.this@Stability(value=Stable) public StageProps.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 StageProps.Builder cacheClusterEnabled(Boolean cacheClusterEnabled)
StageOptions.getCacheClusterEnabled()cacheClusterEnabled - Indicates whether cache clustering is enabled for the stage.this@Stability(value=Stable) public StageProps.Builder cacheClusterSize(String cacheClusterSize)
StageOptions.getCacheClusterSize()cacheClusterSize - The stage's cache cluster size.this@Stability(value=Stable) public StageProps.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 StageProps.Builder description(String description)
StageOptions.getDescription()description - A description of the purpose of the stage.this@Stability(value=Stable) public StageProps.Builder documentationVersion(String documentationVersion)
StageOptions.getDocumentationVersion()documentationVersion - The version identifier of the API documentation snapshot.this@Stability(value=Stable) public StageProps.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 StageProps.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 StageProps.Builder tracingEnabled(Boolean tracingEnabled)
StageOptions.getTracingEnabled()tracingEnabled - Specifies whether Amazon X-Ray tracing is enabled for this method.this@Stability(value=Stable) public StageProps.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 StageProps.Builder cacheDataEncrypted(Boolean cacheDataEncrypted)
MethodDeploymentOptions.getCacheDataEncrypted()cacheDataEncrypted - Indicates whether the cached responses are encrypted.this@Stability(value=Stable) public StageProps.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 StageProps.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 StageProps.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 StageProps.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 StageProps.Builder metricsEnabled(Boolean metricsEnabled)
MethodDeploymentOptions.getMetricsEnabled()metricsEnabled - Specifies whether Amazon CloudWatch metrics are enabled for this method.this@Stability(value=Stable) public StageProps.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 StageProps.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 StageProps build()
build in interface software.amazon.jsii.Builder<StageProps>StagePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.