Skip to content

Commit 64e6533

Browse files
committed
enable log of tencentcloud_cls_index
1 parent 24a8cc0 commit 64e6533

File tree

111 files changed

+8646
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+8646
-333
lines changed

provider/cmd/pulumi-resource-tencentcloud/schema.json

+315-18
Large diffs are not rendered by default.

provider/go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf
66

77
require (
88
github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0
9-
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99
9+
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100
1010
)
1111

1212
require (
@@ -228,7 +228,7 @@ require (
228228
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.860 // indirect
229229
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 // indirect
230230
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.860 // indirect
231-
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 // indirect
231+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 // indirect
232232
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 // indirect
233233
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 // indirect
234234
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 // indirect
@@ -274,7 +274,7 @@ require (
274274
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcm v1.0.547 // indirect
275275
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696 // indirect
276276
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 // indirect
277-
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 // indirect
277+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 // indirect
278278
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 // indirect
279279
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.912 // indirect
280280
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke v1.0.916 // indirect

provider/go.sum

+6-5
Original file line numberDiff line numberDiff line change
@@ -3065,8 +3065,9 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.873/go.mod
30653065
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.910/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
30663066
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.912/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
30673067
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.916/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
3068-
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 h1:Kmm4rJrdI7D29IMOTT2oNp70h0TGsZ3obaekS8hvYkU=
30693068
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
3069+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 h1:MB1+Ll6JxWTpZw/v0dMRvMEJhlcDKxK/JMQ8O5owRVc=
3070+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
30703071
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
30713072
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860/go.mod h1:NZo1WplQcC314kMlCRUoy8NQju2BnolIJj7NAWgsuhY=
30723073
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8=
@@ -3157,8 +3158,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696 h1:hTfJtxk
31573158
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696/go.mod h1:DgY9Kgh9093fBl2M/vEFGJZwytDIrPQlYoxoT4rE7O0=
31583159
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 h1:r6HQhmHzPp1oSGhwkNzUzIRlpnpb8Jhtcn1yKhg9ml4=
31593160
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533/go.mod h1:5sIIchyV9sXIVAqsD3UWts+qQJ0qoc55sL2WuiY8Ugs=
3160-
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 h1:jIAqpu+EeiKK1U0Sb7l1I6hMATYyXtv7IU8ZWNHPrgM=
3161-
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825/go.mod h1:aaOidZKQTtM6vVgs5pnHryaLj9f+egPBpdQEylQxka4=
3161+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 h1:qBMRApryLiQOJ91xEybn3fb6zkWfa9sp8Tdult5Y1vY=
3162+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932/go.mod h1:k2QG6A7u458viC4nZGM0Z0FNzKqQSJKgfqtxeqkqBDQ=
31623163
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 h1:vBpQhUroO+FAslUmsDWGi8nvczsqZBWVgQwlnyT0Aj8=
31633164
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578/go.mod h1:UlojGQh/9wb7/uXPNi7PvMral1CNAskVDNgqJEV83l0=
31643165
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.912 h1:XGOKd5umgbXDDTSOuLmoLDfNdh712lCIgIzw5SQItrA=
@@ -3181,8 +3182,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792 h1:NLgK
31813182
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792/go.mod h1:Xz6vPV3gHlzPwtEcmWdWO1EUXJDgn2p7UMCXbJiVioQ=
31823183
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4=
31833184
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY=
3184-
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99 h1:uL5tfZj5XQ2668dw6HP936kAJLvGgppk48SkpDGI1iE=
3185-
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99/go.mod h1:QaGuh9Zc1BL8B+AcDpbYCQ2TvV3oIE7KygRvMdiDGOA=
3185+
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100 h1:9syR1lXF1kyebD1PmeI/dZ0HM8PLHY0qOfnh34MDeeY=
3186+
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100/go.mod h1:OmTVEtu73P9ZVTg4OKge6ksMTyMo+GzChwH6UCu8CMc=
31863187
github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f h1:yTMDoBvFuXjZat10d98DIKbPnN9FQG+drt1SbNfMW5U=
31873188
github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f/go.mod h1:LUFnaqRmGk6pEHOaRmdn2dCZR2j0cSsM5xowWFPTPao=
31883189
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=

provider/info/info.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ func GetResourceOutput() []*ResourceOutput {
3232

3333
// skip the resources whose document cannot be generated correctly
3434
skippedResources := map[string]struct{}{
35-
"tencentcloud_audit": {},
36-
"tencentcloud_cls_index": {},
35+
"tencentcloud_audit": {},
3736
}
3837
skipFilter := func(resource string) bool {
3938
_, exists := skippedResources[resource]

sdk/dotnet/Tencentcloud/Cls/Index.cs

+288
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
using Pulumi;
10+
11+
namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls
12+
{
13+
/// <summary>
14+
/// Provides a resource to create a cls index.
15+
///
16+
/// ## Example Usage
17+
///
18+
/// &lt;!--Start PulumiCodeChooser --&gt;
19+
/// ```csharp
20+
/// using System.Collections.Generic;
21+
/// using System.Linq;
22+
/// using Pulumi;
23+
/// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
24+
///
25+
/// return await Deployment.RunAsync(() =&gt;
26+
/// {
27+
/// var exampleLogset = new Tencentcloud.Cls.Logset("exampleLogset", new()
28+
/// {
29+
/// LogsetName = "tf_example",
30+
/// Tags =
31+
/// {
32+
/// { "demo", "test" },
33+
/// },
34+
/// });
35+
///
36+
/// var exampleTopic = new Tencentcloud.Cls.Topic("exampleTopic", new()
37+
/// {
38+
/// TopicName = "tf_example",
39+
/// LogsetId = exampleLogset.Id,
40+
/// AutoSplit = false,
41+
/// MaxSplitPartitions = 20,
42+
/// PartitionCount = 1,
43+
/// Period = 30,
44+
/// StorageType = "hot",
45+
/// Describes = "Test Demo.",
46+
/// HotPeriod = 10,
47+
/// Tags =
48+
/// {
49+
/// { "test", "test" },
50+
/// },
51+
/// });
52+
///
53+
/// var tokenizerValue = "@&amp;?|#()='\",;:&lt;&gt;[]{}";
54+
///
55+
/// var exampleIndex = new Tencentcloud.Cls.Index("exampleIndex", new()
56+
/// {
57+
/// TopicId = exampleTopic.Id,
58+
/// Rule = new Tencentcloud.Cls.Inputs.IndexRuleArgs
59+
/// {
60+
/// FullText = new Tencentcloud.Cls.Inputs.IndexRuleFullTextArgs
61+
/// {
62+
/// CaseSensitive = true,
63+
/// Tokenizer = tokenizerValue,
64+
/// ContainZH = true,
65+
/// },
66+
/// KeyValue = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueArgs
67+
/// {
68+
/// CaseSensitive = true,
69+
/// KeyValues = new[]
70+
/// {
71+
/// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs
72+
/// {
73+
/// Key = "hello",
74+
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs
75+
/// {
76+
/// ContainZH = true,
77+
/// SqlFlag = true,
78+
/// Tokenizer = tokenizerValue,
79+
/// Type = "text",
80+
/// },
81+
/// },
82+
/// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs
83+
/// {
84+
/// Key = "world",
85+
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs
86+
/// {
87+
/// ContainZH = true,
88+
/// SqlFlag = true,
89+
/// Tokenizer = tokenizerValue,
90+
/// Type = "text",
91+
/// },
92+
/// },
93+
/// },
94+
/// },
95+
/// Tag = new Tencentcloud.Cls.Inputs.IndexRuleTagArgs
96+
/// {
97+
/// CaseSensitive = true,
98+
/// KeyValues = new[]
99+
/// {
100+
/// new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueArgs
101+
/// {
102+
/// Key = "terraform",
103+
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueValueArgs
104+
/// {
105+
/// ContainZH = true,
106+
/// SqlFlag = true,
107+
/// Tokenizer = tokenizerValue,
108+
/// Type = "text",
109+
/// },
110+
/// },
111+
/// },
112+
/// },
113+
/// DynamicIndex = new Tencentcloud.Cls.Inputs.IndexRuleDynamicIndexArgs
114+
/// {
115+
/// Status = true,
116+
/// },
117+
/// },
118+
/// Status = true,
119+
/// IncludeInternalFields = true,
120+
/// MetadataFlag = 1,
121+
/// });
122+
///
123+
/// });
124+
/// ```
125+
/// &lt;!--End PulumiCodeChooser --&gt;
126+
///
127+
/// ## Import
128+
///
129+
/// cls cos index can be imported using the id, e.g.
130+
///
131+
/// ```sh
132+
/// $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc
133+
/// ```
134+
/// </summary>
135+
[TencentcloudResourceType("tencentcloud:Cls/index:Index")]
136+
public partial class Index : global::Pulumi.CustomResource
137+
{
138+
/// <summary>
139+
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
140+
/// </summary>
141+
[Output("includeInternalFields")]
142+
public Output<bool?> IncludeInternalFields { get; private set; } = null!;
143+
144+
/// <summary>
145+
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
146+
/// </summary>
147+
[Output("metadataFlag")]
148+
public Output<int?> MetadataFlag { get; private set; } = null!;
149+
150+
/// <summary>
151+
/// Index rule.
152+
/// </summary>
153+
[Output("rule")]
154+
public Output<Outputs.IndexRule> Rule { get; private set; } = null!;
155+
156+
/// <summary>
157+
/// Whether to take effect. Default value: true.
158+
/// </summary>
159+
[Output("status")]
160+
public Output<bool> Status { get; private set; } = null!;
161+
162+
/// <summary>
163+
/// Log topic ID.
164+
/// </summary>
165+
[Output("topicId")]
166+
public Output<string> TopicId { get; private set; } = null!;
167+
168+
169+
/// <summary>
170+
/// Create a Index resource with the given unique name, arguments, and options.
171+
/// </summary>
172+
///
173+
/// <param name="name">The unique name of the resource</param>
174+
/// <param name="args">The arguments used to populate this resource's properties</param>
175+
/// <param name="options">A bag of options that control this resource's behavior</param>
176+
public Index(string name, IndexArgs args, CustomResourceOptions? options = null)
177+
: base("tencentcloud:Cls/index:Index", name, args ?? new IndexArgs(), MakeResourceOptions(options, ""))
178+
{
179+
}
180+
181+
private Index(string name, Input<string> id, IndexState? state = null, CustomResourceOptions? options = null)
182+
: base("tencentcloud:Cls/index:Index", name, state, MakeResourceOptions(options, id))
183+
{
184+
}
185+
186+
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
187+
{
188+
var defaultOptions = new CustomResourceOptions
189+
{
190+
Version = Utilities.Version,
191+
PluginDownloadURL = "github://api.github.com/tencentcloudstack",
192+
};
193+
var merged = CustomResourceOptions.Merge(defaultOptions, options);
194+
// Override the ID if one was specified for consistency with other language SDKs.
195+
merged.Id = id ?? merged.Id;
196+
return merged;
197+
}
198+
/// <summary>
199+
/// Get an existing Index resource's state with the given name, ID, and optional extra
200+
/// properties used to qualify the lookup.
201+
/// </summary>
202+
///
203+
/// <param name="name">The unique name of the resulting resource.</param>
204+
/// <param name="id">The unique provider ID of the resource to lookup.</param>
205+
/// <param name="state">Any extra arguments used during the lookup.</param>
206+
/// <param name="options">A bag of options that control this resource's behavior</param>
207+
public static Index Get(string name, Input<string> id, IndexState? state = null, CustomResourceOptions? options = null)
208+
{
209+
return new Index(name, id, state, options);
210+
}
211+
}
212+
213+
public sealed class IndexArgs : global::Pulumi.ResourceArgs
214+
{
215+
/// <summary>
216+
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
217+
/// </summary>
218+
[Input("includeInternalFields")]
219+
public Input<bool>? IncludeInternalFields { get; set; }
220+
221+
/// <summary>
222+
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
223+
/// </summary>
224+
[Input("metadataFlag")]
225+
public Input<int>? MetadataFlag { get; set; }
226+
227+
/// <summary>
228+
/// Index rule.
229+
/// </summary>
230+
[Input("rule")]
231+
public Input<Inputs.IndexRuleArgs>? Rule { get; set; }
232+
233+
/// <summary>
234+
/// Whether to take effect. Default value: true.
235+
/// </summary>
236+
[Input("status")]
237+
public Input<bool>? Status { get; set; }
238+
239+
/// <summary>
240+
/// Log topic ID.
241+
/// </summary>
242+
[Input("topicId", required: true)]
243+
public Input<string> TopicId { get; set; } = null!;
244+
245+
public IndexArgs()
246+
{
247+
}
248+
public static new IndexArgs Empty => new IndexArgs();
249+
}
250+
251+
public sealed class IndexState : global::Pulumi.ResourceArgs
252+
{
253+
/// <summary>
254+
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
255+
/// </summary>
256+
[Input("includeInternalFields")]
257+
public Input<bool>? IncludeInternalFields { get; set; }
258+
259+
/// <summary>
260+
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
261+
/// </summary>
262+
[Input("metadataFlag")]
263+
public Input<int>? MetadataFlag { get; set; }
264+
265+
/// <summary>
266+
/// Index rule.
267+
/// </summary>
268+
[Input("rule")]
269+
public Input<Inputs.IndexRuleGetArgs>? Rule { get; set; }
270+
271+
/// <summary>
272+
/// Whether to take effect. Default value: true.
273+
/// </summary>
274+
[Input("status")]
275+
public Input<bool>? Status { get; set; }
276+
277+
/// <summary>
278+
/// Log topic ID.
279+
/// </summary>
280+
[Input("topicId")]
281+
public Input<string>? TopicId { get; set; }
282+
283+
public IndexState()
284+
{
285+
}
286+
public static new IndexState Empty => new IndexState();
287+
}
288+
}

0 commit comments

Comments
 (0)