Modifica as configurações de log de auditoria de uma instância Tair (Redis OSS-compatible).
Sintaxe
{
"Type": "ALIYUN::REDIS::AuditLogConfig",
"Properties": {
"InstanceId": String,
"Retention": Integer
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceId |
String |
Sim |
Não |
ID da instância. |
Chame a operação DescribeInstances para consultar o ID da instância. |
|
Retention |
Integer |
Sim |
Sim |
Período de retenção dos logs de auditoria. Unidade: dia. |
Valores válidos: 1 a 365. Unidade: dia. Essa propriedade se aplica a todas as instâncias Tair (Redis OSS-compatible) na região atual. |
Valores de retorno
Fn::GetAtt
InstanceId: o ID da instância.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Description:
en: The ID of the instance. You can call the DescribeInstances operation to
query the ID of the instance.
Required: true
Type: String
Retention:
Description:
en: '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.'
MaxValue: 365
MinValue: 1
Required: true
Type: Number
Resources:
AuditLogConfig:
Properties:
InstanceId:
Ref: InstanceId
Retention:
Ref: Retention
Type: ALIYUN::REDIS::AuditLogConfig
Outputs:
InstanceId:
Description: IP address whitelist to be modified
Value:
Fn::GetAtt:
- AuditLogConfig
- InstanceId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the instance. You can call the DescribeInstances operation to query the ID of the instance."
},
"Required": true
},
"Retention": {
"Type": "Number",
"Description": {
"en": "The retention period of audit logs. Valid values: 1 to 365. Unit: days.\nNote: The value of this parameter takes effect for all ApsaraDB for Redis instances in the current region."
},
"Required": true,
"MinValue": 1,
"MaxValue": 365
}
},
"Resources": {
"AuditLogConfig": {
"Type": "ALIYUN::REDIS::AuditLogConfig",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"Retention": {
"Ref": "Retention"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "IP address whitelist to be modified",
"Value": {
"Fn::GetAtt": [
"AuditLogConfig",
"InstanceId"
]
}
}
}
}