/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Cloudaudit.V20190319.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class UpdateAuditRequest : AbstractModel { /// /// 跟踪集名称 /// [JsonProperty("AuditName")] public string AuditName{ get; set; } /// /// 队列名称。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。如果IsEnableCmqNotify值是1的话,此值属于必填字段。如果不是新创建的队列,云审计不会去校验该队列是否真的存在,请谨慎填写,避免日志通知不成功,导致您的数据丢失。 /// [JsonProperty("CmqQueueName")] public string CmqQueueName{ get; set; } /// /// 队列所在的地域。可以通过ListCmqEnableRegion获取支持的cmq地域。如果IsEnableCmqNotify值是1的话,此值属于必填字段。 /// [JsonProperty("CmqRegion")] public string CmqRegion{ get; set; } /// /// cos的存储桶名称。仅支持小写英文字母和数字即[a-z,0-9]、中划线“-”及其组合。用户自定义的字符串支持1 - 40个字符。存储桶命名不能以“-”开头或结尾。如果不是新创建的存储桶,云审计不会去校验该存储桶是否真的存在,请谨慎填写,避免日志投递不成功,导致您的数据丢失。 /// [JsonProperty("CosBucketName")] public string CosBucketName{ get; set; } /// /// cos地域。目前支持的地域可以使用ListCosEnableRegion来获取。 /// [JsonProperty("CosRegion")] public string CosRegion{ get; set; } /// /// 是否创建新的cos存储桶。1:是,0:否。 /// [JsonProperty("IsCreateNewBucket")] public long? IsCreateNewBucket{ get; set; } /// /// 是否创建新的队列。1:是,0:否。如果IsEnableCmqNotify值是1的话,此值属于必填字段。 /// [JsonProperty("IsCreateNewQueue")] public long? IsCreateNewQueue{ get; set; } /// /// 是否开启cmq消息通知。1:是,0:否。目前仅支持cmq的队列服务。如果开启cmq消息通知服务,云审计会将您的日志内容实时投递到您指定地域的指定队列中。 /// [JsonProperty("IsEnableCmqNotify")] public long? IsEnableCmqNotify{ get; set; } /// /// 是否开启kms加密。1:是,0:否。如果开启KMS加密,数据在投递到cos时,会将数据加密。 /// [JsonProperty("IsEnableKmsEncry")] public long? IsEnableKmsEncry{ get; set; } /// /// CMK的全局唯一标识符,如果不是新创建的kms,该值是必填值。可以通过ListKeyAliasByRegion来获取。云审计不会校验KeyId的合法性,请您谨慎填写,避免给您的数据造成损失。 /// [JsonProperty("KeyId")] public string KeyId{ get; set; } /// /// kms地域。目前支持的地域可以使用ListKmsEnableRegion来获取。必须要和cos的地域保持一致。 /// [JsonProperty("KmsRegion")] public string KmsRegion{ get; set; } /// /// 日志文件前缀。3-40个字符,只能包含 ASCII 编码字母 a-z,A-Z,数字 0-9。 /// [JsonProperty("LogFilePrefix")] public string LogFilePrefix{ get; set; } /// /// 管理事件的读写属性。1:只读,2:只写,3:全部。 /// [JsonProperty("ReadWriteAttribute")] public long? ReadWriteAttribute{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "AuditName", this.AuditName); this.SetParamSimple(map, prefix + "CmqQueueName", this.CmqQueueName); this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion); this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName); this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion); this.SetParamSimple(map, prefix + "IsCreateNewBucket", this.IsCreateNewBucket); this.SetParamSimple(map, prefix + "IsCreateNewQueue", this.IsCreateNewQueue); this.SetParamSimple(map, prefix + "IsEnableCmqNotify", this.IsEnableCmqNotify); this.SetParamSimple(map, prefix + "IsEnableKmsEncry", this.IsEnableKmsEncry); this.SetParamSimple(map, prefix + "KeyId", this.KeyId); this.SetParamSimple(map, prefix + "KmsRegion", this.KmsRegion); this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix); this.SetParamSimple(map, prefix + "ReadWriteAttribute", this.ReadWriteAttribute); } } }