vpc-20160428/core/Models/CreateFlowLogRequest.cs (68 lines of code) (raw):
// This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Vpc20160428.Models
{
public class CreateFlowLogRequest : TeaModel {
/// <summary>
/// <para>The sampling interval of the flow log. Unit: seconds. Valid values: <b>1</b>, <b>5</b>, and <b>10</b> (default).</para>
///
/// <b>Example:</b>
/// <para>10</para>
/// </summary>
[NameInMap("AggregationInterval")]
[Validation(Required=false)]
public int? AggregationInterval { get; set; }
/// <summary>
/// <para>The description of the flow log.</para>
/// <para>The description must be 1 to 256 characters in length and cannot start with <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>This is my Flowlog.</para>
/// </summary>
[NameInMap("Description")]
[Validation(Required=false)]
public string Description { get; set; }
/// <summary>
/// <para>The name of the flow log.</para>
/// <para>The name must be 1 to 128 characters in length and cannot start with <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>myFlowlog</para>
/// </summary>
[NameInMap("FlowLogName")]
[Validation(Required=false)]
public string FlowLogName { get; set; }
[NameInMap("IpVersion")]
[Validation(Required=false)]
public string IpVersion { get; set; }
/// <summary>
/// <para>The name of the Logstore that stores the captured traffic data.</para>
/// <list type="bullet">
/// <item><description>The name can contain only lowercase letters, digits, hyphens (-), and underscores (_).</description></item>
/// <item><description>The name must start and end with a lowercase letter or a digit.</description></item>
/// <item><description>The name must be 3 to 63 characters in length.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>FlowLogStore</para>
/// </summary>
[NameInMap("LogStoreName")]
[Validation(Required=false)]
public string LogStoreName { get; set; }
[NameInMap("OwnerAccount")]
[Validation(Required=false)]
public string OwnerAccount { get; set; }
[NameInMap("OwnerId")]
[Validation(Required=false)]
public long? OwnerId { get; set; }
/// <summary>
/// <para>The name of the project that stores the captured traffic data.</para>
/// <list type="bullet">
/// <item><description>The name can contain only lowercase letters, digits, and hyphens (-).</description></item>
/// <item><description>The name must start and end with a lowercase letter or a digit.</description></item>
/// <item><description>The name must be 3 to 63 characters in length.</description></item>
/// </list>
///
/// <b>Example:</b>
/// <para>FlowLogProject</para>
/// </summary>
[NameInMap("ProjectName")]
[Validation(Required=false)]
public string ProjectName { get; set; }
/// <summary>
/// <para>The ID of the region where you want to create the flow log. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</para>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>cn-qingdao</para>
/// </summary>
[NameInMap("RegionId")]
[Validation(Required=false)]
public string RegionId { get; set; }
/// <summary>
/// <para>The ID of the resource group.</para>
///
/// <b>Example:</b>
/// <para>rg-acfmxazdjdhd****</para>
/// </summary>
[NameInMap("ResourceGroupId")]
[Validation(Required=false)]
public string ResourceGroupId { get; set; }
/// <summary>
/// <para>The ID of the resource whose traffic you want to capture.</para>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>eni-askldfas****</para>
/// </summary>
[NameInMap("ResourceId")]
[Validation(Required=false)]
public string ResourceId { get; set; }
[NameInMap("ResourceOwnerAccount")]
[Validation(Required=false)]
public string ResourceOwnerAccount { get; set; }
[NameInMap("ResourceOwnerId")]
[Validation(Required=false)]
public long? ResourceOwnerId { get; set; }
/// <summary>
/// <para>The type of the resource whose traffic you want to capture. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>NetworkInterface</b>: elastic network interface (ENI)</description></item>
/// <item><description><b>VSwitch</b>: all ENIs in a vSwitch</description></item>
/// <item><description><b>VPC</b>: all ENIs in a virtual private cloud (VPC)</description></item>
/// </list>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>NetworkInterface</para>
/// </summary>
[NameInMap("ResourceType")]
[Validation(Required=false)]
public string ResourceType { get; set; }
/// <summary>
/// <para>The tag of the resource.</para>
/// </summary>
[NameInMap("Tag")]
[Validation(Required=false)]
public List<CreateFlowLogRequestTag> Tag { get; set; }
public class CreateFlowLogRequestTag : TeaModel {
/// <summary>
/// <para>The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</para>
/// <para>The tag key can be at most 128 characters in length. It cannot start with <c>aliyun</c> or <c>acs:</c>, and cannot contain <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>FinanceDept</para>
/// </summary>
[NameInMap("Key")]
[Validation(Required=false)]
public string Key { get; set; }
/// <summary>
/// <para>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</para>
/// <para>The tag value can be up to 128 characters in length and cannot contain <c>http://</c> or <c>https://</c>. The tag value cannot start with <c>aliyun</c> or <c>acs:</c>.</para>
///
/// <b>Example:</b>
/// <para>FinanceJoshua</para>
/// </summary>
[NameInMap("Value")]
[Validation(Required=false)]
public string Value { get; set; }
}
/// <summary>
/// <para>The scope of the traffic that you want to capture. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>all</b>: all traffic.</description></item>
/// <item><description><b>internetGateway</b>: Internet traffic.</description></item>
/// </list>
/// </summary>
[NameInMap("TrafficPath")]
[Validation(Required=false)]
public List<string> TrafficPath { get; set; }
/// <summary>
/// <para>The type of traffic that you want to capture. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>All</b>: all traffic</description></item>
/// <item><description><b>Allow</b>: traffic that is allowed</description></item>
/// <item><description><b>Drop</b>: traffic that is rejected</description></item>
/// </list>
/// <para>This parameter is required.</para>
///
/// <b>Example:</b>
/// <para>All</para>
/// </summary>
[NameInMap("TrafficType")]
[Validation(Required=false)]
public string TrafficType { get; set; }
}
}