java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.neptune.alpha.LogType
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.941Z") @Stability(Experimental) public class LogType extends software.amazon.jsii.JsiiObject
(experimental) Neptune log types that can be exported to CloudWatch logs.

Example:

 // Cluster parameter group with the neptune_enable_audit_log param set to 1
 ClusterParameterGroup clusterParameterGroup = ClusterParameterGroup.Builder.create(this, "ClusterParams")
         .description("Cluster parameter group")
         .parameters(Map.of(
                 "neptune_enable_audit_log", "1"))
         .build();
 DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
         .vpc(vpc)
         .instanceType(InstanceType.R5_LARGE)
         // Audit logs are enabled via the clusterParameterGroup
         .clusterParameterGroup(clusterParameterGroup)
         // Optionally configuring audit logs to be exported to CloudWatch Logs
         .cloudwatchLogsExports(List.of(LogType.AUDIT))
         // Optionally set a retention period on exported CloudWatch Logs
         .cloudwatchLogsRetention(RetentionDays.ONE_MONTH)
         .build();
 

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LogType
    (experimental) Audit logs.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    LogType(String value)
    (experimental) Constructor for specifying a custom log type.
    protected
    LogType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    LogType(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) the log type.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

  • Constructor Details

    • LogType

      protected LogType(software.amazon.jsii.JsiiObjectRef objRef)
    • LogType

      protected LogType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LogType

      @Stability(Experimental) public LogType(@NotNull String value)
      (experimental) Constructor for specifying a custom log type.

      Parameters:
      value - the log type. This parameter is required.
  • Method Details

    • getValue

      @Stability(Experimental) @NotNull public String getValue()
      (experimental) the log type.