@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:37.118Z") public interface StageOptions extends MethodDeploymentOptions
LogGroup logGroup = new LogGroup(this, "ApiGatewayAccessLogs"); RestApi api = RestApi.Builder.create(this, "books") .deployOptions(StageOptions.builder() .accessLogDestination(new LogGroupLogDestination(logGroup)) .accessLogFormat(AccessLogFormat.clf()) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
StageOptions.Builder
A builder for
StageOptions |
static class |
StageOptions.Jsii$Proxy
An implementation for
StageOptions |
Modifier and Type | Method and Description |
---|---|
static StageOptions.Builder |
builder() |
default IAccessLogDestination |
getAccessLogDestination()
The CloudWatch Logs log group.
|
default AccessLogFormat |
getAccessLogFormat()
A single line format of access logs of data, as specified by selected $content variables.
|
default java.lang.Boolean |
getCacheClusterEnabled()
Indicates whether cache clustering is enabled for the stage.
|
default java.lang.String |
getCacheClusterSize()
The stage's cache cluster size.
|
default java.lang.String |
getClientCertificateId()
The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.
|
default java.lang.String |
getDescription()
A description of the purpose of the stage.
|
default java.lang.String |
getDocumentationVersion()
The version identifier of the API documentation snapshot.
|
default java.util.Map<java.lang.String,MethodDeploymentOptions> |
getMethodOptions()
Method deployment options for specific resources/methods.
|
default java.lang.String |
getStageName()
The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI).
|
default java.lang.Boolean |
getTracingEnabled()
Specifies whether Amazon X-Ray tracing is enabled for this method.
|
default java.util.Map<java.lang.String,java.lang.String> |
getVariables()
A map that defines the stage variables.
|
getCacheDataEncrypted, getCacheTtl, getCachingEnabled, getDataTraceEnabled, getLoggingLevel, getMetricsEnabled, getThrottlingBurstLimit, getThrottlingRateLimit
default IAccessLogDestination getAccessLogDestination()
Default: - No destination
default AccessLogFormat getAccessLogFormat()
The format must include at least AccessLogFormat.contextRequestId()
.
Default: - Common Log Format
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference
default java.lang.Boolean getCacheClusterEnabled()
Default: - Disabled for the stage.
default java.lang.String getCacheClusterSize()
Default: 0.5
default java.lang.String getClientCertificateId()
Default: - None.
default java.lang.String getDescription()
Default: - No description.
default java.lang.String getDocumentationVersion()
Default: - No documentation version.
default java.util.Map<java.lang.String,MethodDeploymentOptions> getMethodOptions()
These will
override common options defined in StageOptions#methodOptions
.
Default: - Common options will be used.
default java.lang.String getStageName()
Default: - "prod"
default java.lang.Boolean getTracingEnabled()
Default: false
default java.util.Map<java.lang.String,java.lang.String> getVariables()
Variable names must consist of alphanumeric characters, and the values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+.
Default: - No stage variables.
static StageOptions.Builder builder()
builder
in interface MethodDeploymentOptions
StageOptions.Builder
of StageOptions