@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.220Z") @Stability(value=Stable) public interface StageProps extends software.amazon.jsii.JsiiSerializable, StageOptions
// production stage
LogGroup prdLogGroup = new LogGroup(this, "PrdLogs");
RestApi api = RestApi.Builder.create(this, "books")
.deployOptions(StageOptions.builder()
.accessLogDestination(new LogGroupLogDestination(prdLogGroup))
.accessLogFormat(AccessLogFormat.jsonWithStandardFields())
.build())
.build();
Deployment deployment = Deployment.Builder.create(this, "Deployment").api(api).build();
// development stage
LogGroup devLogGroup = new LogGroup(this, "DevLogs");
Stage.Builder.create(this, "dev")
.deployment(deployment)
.accessLogDestination(new LogGroupLogDestination(devLogGroup))
.accessLogFormat(AccessLogFormat.jsonWithStandardFields(JsonWithStandardFieldProps.builder()
.caller(false)
.httpMethod(true)
.ip(true)
.protocol(true)
.requestTime(true)
.resourcePath(true)
.responseLength(true)
.status(true)
.user(true)
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
StageProps.Builder
A builder for
StageProps |
static class |
StageProps.Jsii$Proxy
An implementation for
StageProps |
| Modifier and Type | Method and Description |
|---|---|
static StageProps.Builder |
builder() |
Deployment |
getDeployment()
The deployment that this stage points to [disable-awslint:ref-via-interface].
|
getAccessLogDestination, getAccessLogFormat, getCacheClusterEnabled, getCacheClusterSize, getClientCertificateId, getDescription, getDocumentationVersion, getMethodOptions, getStageName, getTracingEnabled, getVariablesgetCacheDataEncrypted, getCacheTtl, getCachingEnabled, getDataTraceEnabled, getLoggingLevel, getMetricsEnabled, getThrottlingBurstLimit, getThrottlingRateLimit@Stability(value=Stable) @NotNull Deployment getDeployment()
@Stability(value=Stable) static StageProps.Builder builder()
builder in interface MethodDeploymentOptionsbuilder in interface StageOptionsStageProps.Builder of StagePropsCopyright © 2022. All rights reserved.