MethodLoggingLevel Enum
Example
ts
const api = new apigateway.RestApi(this, 'books', {
cloudWatchRole: true,
deployOptions: {
loggingLevel: apigateway.MethodLoggingLevel.INFO,
dataTraceEnabled: true
}
})
python
api = apigateway.RestApi(self, "books",
cloud_watch_role=True,
deploy_options=apigateway.StageOptions(
logging_level=apigateway.MethodLoggingLevel.INFO,
data_trace_enabled=True
)
)
java
RestApi api = RestApi.Builder.create(this, "books")
.cloudWatchRole(true)
.deployOptions(StageOptions.builder()
.loggingLevel(MethodLoggingLevel.INFO)
.dataTraceEnabled(true)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var api = new RestApi(this, "books", new RestApiProps {
CloudWatchRole = true,
DeployOptions = new StageOptions {
LoggingLevel = MethodLoggingLevel.INFO,
DataTraceEnabled = true
}
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
api := apigateway.NewRestApi(this, jsii.String("books"), &RestApiProps{
CloudWatchRole: jsii.Boolean(true),
DeployOptions: &StageOptions{
LoggingLevel: apigateway.MethodLoggingLevel_INFO,
DataTraceEnabled: jsii.Boolean(true),
},
})
Members
| Member | Description |
|---|---|
OFF | |
ERROR | |
INFO |
Referenced by
MethodDeploymentOptions.loggingLevellogging_levelloggingLevelLoggingLevelLoggingLevel