@aws-cdk_aws-neptune-alpha.LogType

class LogType ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Neptune.Alpha.LogType
Gogithub.com/aws/aws-cdk-go/awscdkneptunealpha/v2#LogType
Javasoftware.amazon.awscdk.services.neptune.alpha.LogType
Pythonaws_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

NameTypeDescription
value๐Ÿ”นstringthe log type.
static AUDIT๐Ÿ”นLogTypeAudit logs.

value๐Ÿ”น

Type: string

the log type.


static AUDIT๐Ÿ”น

Type: LogType

Audit logs.

See also: https://docs.aws.amazon.com/neptune/latest/userguide/auditing.html