Skip to content

AuditLogConfigProps

Properties for defining a AuditLogConfig.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-auditlogconfig

Initializer

import com.aliyun.ros.cdk.redis.AuditLogConfigProps;
AuditLogConfigProps.builder()
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .retention(java.lang.Number)
    .retention(IResolvable)
    .build();

Properties

Name Type Description
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the instance.
retention java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property retention: The retention period of audit logs.

instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The ID of the instance.

You can call the DescribeInstances operation to query the ID of the instance.


retentionRequired

public java.lang.Object getRetention();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property retention: The retention period of audit logs.

Valid values: 1 to 365. Unit: days. Note: The value of this parameter takes effect for all ApsaraDB for Redis instances in the current region.