ALIYUN::REDIS::AuditLogConfig は、ApsaraDB for Redis インスタンスの監査ログ設定を変更するために使用されます。
構文
{
"Type": "ALIYUN::REDIS::AuditLogConfig",
"Properties": {
"InstanceId": String,
"Retention": Integer
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
InstanceId | String | はい | いいえ | インスタンス ID。 | DescribeInstances 操作を呼び出して、インスタンス ID をクエリできます。 |
Retention | Integer | はい | はい | 監査ログの保持期間。 | 有効な値: 1 ~ 365。単位: 日。 このプロパティの値は、現在のリージョン内のすべての ApsaraDB for Redis インスタンスに有効です。 |
戻り値
Fn::GetAtt
InstanceId: インスタンスの ID。
例
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 アドレスのホワイトリスト
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 アドレスのホワイトリスト",
"Value": {
"Fn::GetAtt": [
"AuditLogConfig",
"InstanceId"
]
}
}
}
}