Modifier and Type | Method and Description |
---|---|
Stage.Builder |
accessLogDestination(IAccessLogDestination accessLogDestination)
The CloudWatch Logs log group.
|
Stage.Builder |
accessLogFormat(AccessLogFormat accessLogFormat)
A single line format of access logs of data, as specified by selected $content variables.
|
Stage |
build() |
Stage.Builder |
cacheClusterEnabled(java.lang.Boolean cacheClusterEnabled)
Indicates whether cache clustering is enabled for the stage.
|
Stage.Builder |
cacheClusterSize(java.lang.String cacheClusterSize)
The stage's cache cluster size.
|
Stage.Builder |
cacheDataEncrypted(java.lang.Boolean cacheDataEncrypted)
Indicates whether the cached responses are encrypted.
|
Stage.Builder |
cacheTtl(Duration cacheTtl)
Specifies the time to live (TTL), in seconds, for cached responses.
|
Stage.Builder |
cachingEnabled(java.lang.Boolean cachingEnabled)
Specifies whether responses should be cached and returned for requests.
|
Stage.Builder |
clientCertificateId(java.lang.String clientCertificateId)
The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.
|
static Stage.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
Stage.Builder |
dataTraceEnabled(java.lang.Boolean dataTraceEnabled)
Specifies whether data trace logging is enabled for this method.
|
Stage.Builder |
deployment(Deployment deployment)
The deployment that this stage points to [disable-awslint:ref-via-interface].
|
Stage.Builder |
description(java.lang.String description)
A description of the purpose of the stage.
|
Stage.Builder |
documentationVersion(java.lang.String documentationVersion)
The version identifier of the API documentation snapshot.
|
Stage.Builder |
loggingLevel(MethodLoggingLevel loggingLevel)
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
|
Stage.Builder |
methodOptions(java.util.Map<java.lang.String,? extends MethodDeploymentOptions> methodOptions)
Method deployment options for specific resources/methods.
|
Stage.Builder |
metricsEnabled(java.lang.Boolean metricsEnabled)
Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
Stage.Builder |
stageName(java.lang.String stageName)
The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI).
|
Stage.Builder |
throttlingBurstLimit(java.lang.Number throttlingBurstLimit)
Specifies the throttling burst limit.
|
Stage.Builder |
throttlingRateLimit(java.lang.Number throttlingRateLimit)
Specifies the throttling rate limit.
|
Stage.Builder |
tracingEnabled(java.lang.Boolean tracingEnabled)
Specifies whether Amazon X-Ray tracing is enabled for this method.
|
Stage.Builder |
variables(java.util.Map<java.lang.String,java.lang.String> variables)
A map that defines the stage variables.
|
public static Stage.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.Stage.Builder
.public Stage.Builder cacheDataEncrypted(java.lang.Boolean cacheDataEncrypted)
Default: false
cacheDataEncrypted
- Indicates whether the cached responses are encrypted. This parameter is required.this
public Stage.Builder cacheTtl(Duration cacheTtl)
The higher the TTL, the longer the response will be cached.
Default: Duration.minutes(5)
cacheTtl
- Specifies the time to live (TTL), in seconds, for cached responses. This parameter is required.this
public Stage.Builder cachingEnabled(java.lang.Boolean cachingEnabled)
A cache cluster must be enabled on the stage for responses to be cached.
Default: - Caching is Disabled.
cachingEnabled
- Specifies whether responses should be cached and returned for requests. This parameter is required.this
public Stage.Builder dataTraceEnabled(java.lang.Boolean dataTraceEnabled)
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.
Default: false
dataTraceEnabled
- Specifies whether data trace logging is enabled for this method. This parameter is required.this
public Stage.Builder loggingLevel(MethodLoggingLevel loggingLevel)
Default: - Off
loggingLevel
- Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. This parameter is required.this
public Stage.Builder metricsEnabled(java.lang.Boolean metricsEnabled)
Default: false
metricsEnabled
- Specifies whether Amazon CloudWatch metrics are enabled for this method. This parameter is required.this
public Stage.Builder throttlingBurstLimit(java.lang.Number throttlingBurstLimit)
The total rate of all requests in your AWS account is limited to 5,000 requests.
Default: - No additional restriction.
throttlingBurstLimit
- Specifies the throttling burst limit. This parameter is required.this
public Stage.Builder throttlingRateLimit(java.lang.Number throttlingRateLimit)
The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).
Default: - No additional restriction.
throttlingRateLimit
- Specifies the throttling rate limit. This parameter is required.this
public Stage.Builder accessLogDestination(IAccessLogDestination accessLogDestination)
Default: - No destination
accessLogDestination
- The CloudWatch Logs log group. This parameter is required.this
public Stage.Builder accessLogFormat(AccessLogFormat accessLogFormat)
The format must include at least AccessLogFormat.contextRequestId()
.
Default: - Common Log Format
accessLogFormat
- A single line format of access logs of data, as specified by selected $content variables. This parameter is required.this
public Stage.Builder cacheClusterEnabled(java.lang.Boolean cacheClusterEnabled)
Default: - Disabled for the stage.
cacheClusterEnabled
- Indicates whether cache clustering is enabled for the stage. This parameter is required.this
public Stage.Builder cacheClusterSize(java.lang.String cacheClusterSize)
Default: 0.5
cacheClusterSize
- The stage's cache cluster size. This parameter is required.this
public Stage.Builder clientCertificateId(java.lang.String clientCertificateId)
Default: - None.
clientCertificateId
- The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage. This parameter is required.this
public Stage.Builder description(java.lang.String description)
Default: - No description.
description
- A description of the purpose of the stage. This parameter is required.this
public Stage.Builder documentationVersion(java.lang.String documentationVersion)
Default: - No documentation version.
documentationVersion
- The version identifier of the API documentation snapshot. This parameter is required.this
public Stage.Builder methodOptions(java.util.Map<java.lang.String,? extends MethodDeploymentOptions> methodOptions)
These will
override common options defined in StageOptions#methodOptions
.
Default: - Common options will be used.
methodOptions
- Method deployment options for specific resources/methods. This parameter is required.this
public Stage.Builder stageName(java.lang.String stageName)
Default: - "prod"
stageName
- The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI). This parameter is required.this
public Stage.Builder tracingEnabled(java.lang.Boolean tracingEnabled)
Default: false
tracingEnabled
- Specifies whether Amazon X-Ray tracing is enabled for this method. This parameter is required.this
public Stage.Builder variables(java.util.Map<java.lang.String,java.lang.String> variables)
Variable names must consist of alphanumeric characters, and the values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+.
Default: - No stage variables.
variables
- A map that defines the stage variables. This parameter is required.this
public Stage.Builder deployment(Deployment deployment)
deployment
- The deployment that this stage points to [disable-awslint:ref-via-interface]. This parameter is required.this
public Stage build()