AuditPolicyArgs

data class AuditPolicyArgs(val auditStatus: Output<String>? = null, val dbInstanceId: Output<String>? = null, val storagePeriod: Output<Int>? = null) : ConvertibleToJava<AuditPolicyArgs>

Provides a MongoDB Audit Policy resource. For information about MongoDB Audit Policy and how to use it, see What is Audit Policy.

NOTE: Available in v1.148.0+.

Import

MongoDB Audit Policy can be imported using the id, e.g.

$ pulumi import alicloud:mongodb/auditPolicy:AuditPolicy example <db_instance_id>

Constructors

Link copied to clipboard
fun AuditPolicyArgs(auditStatus: Output<String>? = null, dbInstanceId: Output<String>? = null, storagePeriod: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AuditPolicyArgs

Properties

Link copied to clipboard
val auditStatus: Output<String>? = null

The status of the audit log. Valid values: disabled, enable.

Link copied to clipboard
val dbInstanceId: Output<String>? = null

The ID of the instance.

Link copied to clipboard
val storagePeriod: Output<Int>? = null

The retention period of audit logs. Valid values: 1 to 30. Default value: 30.