public class CreateAuditPolicyRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateAuditPolicyRequest() |
CreateAuditPolicyRequest(CreateAuditPolicyRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Get Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv.
|
Long |
getLogExpireDay()
Get Retention period of audit logs.
|
String |
getName()
Get Audit policy name.
|
String |
getRuleId()
Get Audit rule ID.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv.
|
void |
setLogExpireDay(Long LogExpireDay)
Set Retention period of audit logs.
|
void |
setName(String Name)
Set Audit policy name.
|
void |
setRuleId(String RuleId)
Set Audit rule ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateAuditPolicyRequest()
public CreateAuditPolicyRequest(CreateAuditPolicyRequest source)
public String getName()
public void setName(String Name)
Name
- Audit policy name.public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- Audit rule ID.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.public Long getLogExpireDay()
public void setLogExpireDay(Long LogExpireDay)
LogExpireDay
- Retention period of audit logs. Valid values:
7: seven days (a week);
30: 30 days (a month);
180: 180 days (six months);
365: 365 days (a year);
1095: 1095 days (three years);
1825: 1825 days (five years).
This parameter specifies the retention period (30 days by default) of audit logs, which is valid when you create the first audit policy for an instance. If the instance already has audit policies, this parameter is invalid, but you can use the `ModifyAuditConfig` API to modify the retention period.Copyright © 2024. All rights reserved.