class LogType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Neptune.Alpha.LogType |
Go | github.com/aws/aws-cdk-go/awscdkneptunealpha/v2#LogType |
Java | software.amazon.awscdk.services.neptune.alpha.LogType |
Python | aws_cdk.aws_neptune_alpha.LogType |
TypeScript (source) | @aws-cdk/aws-neptune-alpha » LogType |
Neptune log types that can be exported to CloudWatch logs.
See also: https://docs.aws.amazon.com/neptune/latest/userguide/cloudwatch-logs.html
Example
// Cluster parameter group with the neptune_enable_audit_log param set to 1
const clusterParameterGroup = new neptune.ClusterParameterGroup(this, 'ClusterParams', {
description: 'Cluster parameter group',
parameters: {
neptune_enable_audit_log: '1'
},
});
const cluster = new neptune.DatabaseCluster(this, 'Database', {
vpc,
instanceType: neptune.InstanceType.R5_LARGE,
// Audit logs are enabled via the clusterParameterGroup
clusterParameterGroup,
// Optionally configuring audit logs to be exported to CloudWatch Logs
cloudwatchLogsExports: [neptune.LogType.AUDIT],
// Optionally set a retention period on exported CloudWatch Logs
cloudwatchLogsRetention: logs.RetentionDays.ONE_MONTH,
});
Initializer
new LogType(value: string)
Parameters
- value
string
— the log type.
Constructor for specifying a custom log type.
Properties
Name | Type | Description |
---|---|---|
value | string | the log type. |
static AUDIT | Log | Audit logs. |
value
Type:
string
the log type.
static AUDIT
Type:
Log
Audit logs.
See also: https://docs.aws.amazon.com/neptune/latest/userguide/auditing.html