From fe818d5d542168d28a997b11dbbcfeb4cff75028 Mon Sep 17 00:00:00 2001 From: nickyinluo Date: Tue, 4 Jun 2024 19:42:42 +0800 Subject: [PATCH] enable log of tencentcloud_cls_index --- .../pulumi-resource-tencentcloud/schema.json | 335 +++- provider/go.mod | 6 +- provider/go.sum | 11 +- provider/info/info.go | 3 +- sdk/dotnet/Tencentcloud/Cls/Index.cs | 288 ++++ .../Tencentcloud/Cls/Inputs/IndexRuleArgs.cs | 45 + .../Cls/Inputs/IndexRuleDynamicIndexArgs.cs | 27 + .../Inputs/IndexRuleDynamicIndexGetArgs.cs | 27 + .../Cls/Inputs/IndexRuleFullTextArgs.cs | 39 + .../Cls/Inputs/IndexRuleFullTextGetArgs.cs | 39 + .../Cls/Inputs/IndexRuleGetArgs.cs | 45 + .../Cls/Inputs/IndexRuleKeyValueArgs.cs | 39 + .../Cls/Inputs/IndexRuleKeyValueGetArgs.cs | 39 + .../Inputs/IndexRuleKeyValueKeyValueArgs.cs | 33 + .../IndexRuleKeyValueKeyValueGetArgs.cs | 33 + .../IndexRuleKeyValueKeyValueValueArgs.cs | 45 + .../IndexRuleKeyValueKeyValueValueGetArgs.cs | 45 + .../Cls/Inputs/IndexRuleTagArgs.cs | 39 + .../Cls/Inputs/IndexRuleTagGetArgs.cs | 39 + .../Cls/Inputs/IndexRuleTagKeyValueArgs.cs | 33 + .../Cls/Inputs/IndexRuleTagKeyValueGetArgs.cs | 33 + .../Inputs/IndexRuleTagKeyValueValueArgs.cs | 45 + .../IndexRuleTagKeyValueValueGetArgs.cs | 45 + .../Tencentcloud/Cls/Outputs/IndexRule.cs | 50 + .../Cls/Outputs/IndexRuleDynamicIndex.cs | 28 + .../Cls/Outputs/IndexRuleFullText.cs | 43 + .../Cls/Outputs/IndexRuleKeyValue.cs | 36 + .../Cls/Outputs/IndexRuleKeyValueKeyValue.cs | 36 + .../Outputs/IndexRuleKeyValueKeyValueValue.cs | 50 + .../Tencentcloud/Cls/Outputs/IndexRuleTag.cs | 36 + .../Cls/Outputs/IndexRuleTagKeyValue.cs | 36 + .../Cls/Outputs/IndexRuleTagKeyValueValue.cs | 50 + sdk/dotnet/Tencentcloud/Cvm/RenewInstance.cs | 56 +- .../Cvm/SecurityGroupAttachment.cs | 63 +- sdk/dotnet/Tencentcloud/Cvm/SyncImage.cs | 14 +- .../Tencentcloud/Eip/AddressTransform.cs | 55 +- .../Tencentcloud/Eip/NormalAddressReturn.cs | 2 +- .../Tencentcloud/Eip/PublicAddressAdjust.cs | 54 +- sdk/dotnet/Tencentcloud/Eips/GetInstance.cs | 168 +- sdk/dotnet/Tencentcloud/Image/GetInstance.cs | 126 +- sdk/dotnet/Tencentcloud/Images/GetInstance.cs | 204 ++- sdk/dotnet/Tencentcloud/Instance/GetTypes.cs | 70 +- .../Tencentcloud/Instances/GetInstance.cs | 110 +- sdk/dotnet/Tencentcloud/Instances/GetSet.cs | 26 +- sdk/dotnet/Tencentcloud/Key/GetPairs.cs | 42 +- .../Tencentcloud/Placement/GetGroups.cs | 12 +- .../Inputs/RocketmqVipInstanceIpRuleArgs.cs | 39 + .../RocketmqVipInstanceIpRuleGetArgs.cs | 39 + .../Tdmq/Outputs/RocketmqVipInstanceIpRule.cs | 43 + .../Tencentcloud/Tdmq/RocketmqVipInstance.cs | 37 +- sdk/go/tencentcloud/cls/index.go | 392 +++++ sdk/go/tencentcloud/cls/init.go | 7 + sdk/go/tencentcloud/cls/pulumiTypes.go | 1454 +++++++++++++++++ sdk/go/tencentcloud/cvm/renewInstance.go | 59 +- .../cvm/securityGroupAttachment.go | 67 +- sdk/go/tencentcloud/cvm/syncImage.go | 14 +- sdk/go/tencentcloud/eip/addressTransform.go | 60 +- .../tencentcloud/eip/normalAddressReturn.go | 2 +- .../tencentcloud/eip/publicAddressAdjust.go | 59 +- sdk/go/tencentcloud/eips/getInstance.go | 114 ++ sdk/go/tencentcloud/image/getInstance.go | 86 +- sdk/go/tencentcloud/images/getInstance.go | 141 +- sdk/go/tencentcloud/instance/getTypes.go | 40 +- sdk/go/tencentcloud/instances/getInstance.go | 68 +- sdk/go/tencentcloud/instances/getSet.go | 10 +- sdk/go/tencentcloud/key/getPairs.go | 26 +- sdk/go/tencentcloud/placement/getGroups.go | 4 +- sdk/go/tencentcloud/tdmq/pulumiTypes.go | 119 ++ .../tencentcloud/tdmq/rocketmqVipInstance.go | 28 +- sdk/nodejs/cls/index.ts | 8 + sdk/nodejs/cls/index_.ts | 235 +++ sdk/nodejs/cvm/renewInstance.ts | 43 +- sdk/nodejs/cvm/securityGroupAttachment.ts | 47 +- sdk/nodejs/cvm/syncImage.ts | 9 +- sdk/nodejs/eip/addressTransform.ts | 42 +- sdk/nodejs/eip/normalAddressReturn.ts | 2 +- sdk/nodejs/eip/publicAddressAdjust.ts | 40 +- sdk/nodejs/eips/getInstance.ts | 112 +- sdk/nodejs/image/getInstance.ts | 86 +- sdk/nodejs/images/getInstance.ts | 136 +- sdk/nodejs/instance/getTypes.ts | 60 +- sdk/nodejs/instances/getInstance.ts | 76 +- sdk/nodejs/instances/getSet.ts | 24 +- sdk/nodejs/key/getPairs.ts | 32 +- sdk/nodejs/placement/getGroups.ts | 12 +- sdk/nodejs/tdmq/rocketmqVipInstance.ts | 21 +- sdk/nodejs/tsconfig.json | 1 + sdk/nodejs/types/input.ts | 138 ++ sdk/nodejs/types/output.ts | 138 ++ .../tencentcloud_iac_pulumi/__init__.py | 8 + .../tencentcloud_iac_pulumi/cls/__init__.py | 1 + .../tencentcloud_iac_pulumi/cls/_inputs.py | 446 +++++ .../tencentcloud_iac_pulumi/cls/index.py | 170 +- .../tencentcloud_iac_pulumi/cls/outputs.py | 466 ++++++ .../cvm/renew_instance.py | 86 +- .../cvm/security_group_attachment.py | 88 +- .../tencentcloud_iac_pulumi/cvm/sync_image.py | 18 +- .../eip/address_transform.py | 80 +- .../eip/normal_address_return.py | 4 +- .../eip/public_address_adjust.py | 76 +- .../eips/get_instance.py | 100 +- .../image/get_instance.py | 94 +- .../images/get_instance.py | 120 +- .../instance/get_types.py | 52 +- .../instances/get_instance.py | 68 +- .../instances/get_set.py | 20 +- .../tencentcloud_iac_pulumi/key/get_pairs.py | 32 +- .../placement/get_groups.py | 8 +- .../tencentcloud_iac_pulumi/tdmq/_inputs.py | 53 + .../tencentcloud_iac_pulumi/tdmq/outputs.py | 58 + .../tdmq/rocketmq_vip_instance.py | 63 +- 111 files changed, 8647 insertions(+), 334 deletions(-) create mode 100644 sdk/dotnet/Tencentcloud/Cls/Index.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRule.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleDynamicIndex.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleFullText.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValue.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValue.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValueValue.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTag.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValue.cs create mode 100644 sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValueValue.cs create mode 100644 sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleGetArgs.cs create mode 100644 sdk/dotnet/Tencentcloud/Tdmq/Outputs/RocketmqVipInstanceIpRule.cs create mode 100644 sdk/go/tencentcloud/cls/index.go create mode 100644 sdk/nodejs/cls/index_.ts diff --git a/provider/cmd/pulumi-resource-tencentcloud/schema.json b/provider/cmd/pulumi-resource-tencentcloud/schema.json index 577659e66..2fe95e620 100644 --- a/provider/cmd/pulumi-resource-tencentcloud/schema.json +++ b/provider/cmd/pulumi-resource-tencentcloud/schema.json @@ -1783,7 +1783,7 @@ "properties": { "apiBusinessType": { "type": "string", - "description": "Type of OAUTH API. Possible values are NORMAL (Business API), \u0008OAUTH (Authorization API).\n" + "description": "Type of OAUTH API. Possible values are NORMAL (Business API), \bOAUTH (Authorization API).\n" }, "apiDesc": { "type": "string", @@ -25734,6 +25734,179 @@ "topicId" ] }, + "tencentcloud:Cls/IndexRule:IndexRule": { + "properties": { + "dynamicIndex": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleDynamicIndex:IndexRuleDynamicIndex", + "description": "The key value index is automatically configured. If it is empty, it means that the function is not enabled.\n" + }, + "fullText": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleFullText:IndexRuleFullText", + "description": "Full-Text index configuration.\n" + }, + "keyValue": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleKeyValue:IndexRuleKeyValue", + "description": "Key-Value index configuration.\n" + }, + "tag": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleTag:IndexRuleTag", + "description": "Metafield index configuration.\n" + } + }, + "type": "object" + }, + "tencentcloud:Cls/IndexRuleDynamicIndex:IndexRuleDynamicIndex": { + "properties": { + "status": { + "type": "boolean", + "description": "index automatic configuration switch.\n" + } + }, + "type": "object", + "required": [ + "status" + ] + }, + "tencentcloud:Cls/IndexRuleFullText:IndexRuleFullText": { + "properties": { + "caseSensitive": { + "type": "boolean", + "description": "Case sensitivity.\n" + }, + "containZH": { + "type": "boolean", + "description": "Whether Chinese characters are contained.\n" + }, + "tokenizer": { + "type": "string", + "description": "Full-Text index delimiter. Each character in the string represents a delimiter.\n" + } + }, + "type": "object", + "required": [ + "caseSensitive", + "containZH", + "tokenizer" + ] + }, + "tencentcloud:Cls/IndexRuleKeyValue:IndexRuleKeyValue": { + "properties": { + "caseSensitive": { + "type": "boolean", + "description": "Case sensitivity.\n" + }, + "keyValues": { + "type": "array", + "items": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleKeyValueKeyValue:IndexRuleKeyValueKeyValue" + }, + "description": "Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured.\n" + } + }, + "type": "object", + "required": [ + "caseSensitive" + ] + }, + "tencentcloud:Cls/IndexRuleKeyValueKeyValue:IndexRuleKeyValueKeyValue": { + "properties": { + "key": { + "type": "string", + "description": "When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console..\n" + }, + "value": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleKeyValueKeyValueValue:IndexRuleKeyValueKeyValueValue", + "description": "Field index description information.\n" + } + }, + "type": "object", + "required": [ + "key" + ] + }, + "tencentcloud:Cls/IndexRuleKeyValueKeyValueValue:IndexRuleKeyValueKeyValueValue": { + "properties": { + "containZH": { + "type": "boolean", + "description": "Whether Chinese characters are contained.\n" + }, + "sqlFlag": { + "type": "boolean", + "description": "Whether the analysis feature is enabled for the field.\n" + }, + "tokenizer": { + "type": "string", + "description": "Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter.\n" + }, + "type": { + "type": "string", + "description": "Field type. Valid values: long, text, double.\n" + } + }, + "type": "object", + "required": [ + "type" + ] + }, + "tencentcloud:Cls/IndexRuleTag:IndexRuleTag": { + "properties": { + "caseSensitive": { + "type": "boolean", + "description": "Case sensitivity.\n" + }, + "keyValues": { + "type": "array", + "items": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleTagKeyValue:IndexRuleTagKeyValue" + }, + "description": "Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured.\n" + } + }, + "type": "object", + "required": [ + "caseSensitive" + ] + }, + "tencentcloud:Cls/IndexRuleTagKeyValue:IndexRuleTagKeyValue": { + "properties": { + "key": { + "type": "string", + "description": "When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console..\n" + }, + "value": { + "$ref": "#/types/tencentcloud:Cls/IndexRuleTagKeyValueValue:IndexRuleTagKeyValueValue", + "description": "Field index description information.\n" + } + }, + "type": "object", + "required": [ + "key" + ] + }, + "tencentcloud:Cls/IndexRuleTagKeyValueValue:IndexRuleTagKeyValueValue": { + "properties": { + "containZH": { + "type": "boolean", + "description": "Whether Chinese characters are contained.\n" + }, + "sqlFlag": { + "type": "boolean", + "description": "Whether the analysis feature is enabled for the field.\n" + }, + "tokenizer": { + "type": "string", + "description": "Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter.\n" + }, + "type": { + "type": "string", + "description": "Field type. Valid values: long, text, double.\n" + } + }, + "type": "object", + "required": [ + "type" + ] + }, "tencentcloud:Cls/KafkaRechargeLogRechargeRule:KafkaRechargeLogRechargeRule": { "properties": { "defaultTimeSrc": { @@ -97082,6 +97255,28 @@ } } }, + "tencentcloud:Tdmq/RocketmqVipInstanceIpRule:RocketmqVipInstanceIpRule": { + "properties": { + "allow": { + "type": "boolean", + "description": "Whether to allow or deny.\n" + }, + "ipRule": { + "type": "string", + "description": "IP address block information.\n" + }, + "remark": { + "type": "string", + "description": "Remark.\n" + } + }, + "type": "object", + "required": [ + "allow", + "ipRule", + "remark" + ] + }, "tencentcloud:Tdmq/RocketmqVipInstanceVpcInfo:RocketmqVipInstanceVpcInfo": { "properties": { "subnetId": { @@ -137165,6 +137360,87 @@ "type": "object" } }, + "tencentcloud:Cls/index:Index": { + "description": "Provides a resource to create a cls index.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst exampleLogset = new tencentcloud.cls.Logset(\"exampleLogset\", {\n logsetName: \"tf_example\",\n tags: {\n demo: \"test\",\n },\n});\nconst exampleTopic = new tencentcloud.cls.Topic(\"exampleTopic\", {\n topicName: \"tf_example\",\n logsetId: exampleLogset.id,\n autoSplit: false,\n maxSplitPartitions: 20,\n partitionCount: 1,\n period: 30,\n storageType: \"hot\",\n describes: \"Test Demo.\",\n hotPeriod: 10,\n tags: {\n test: \"test\",\n },\n});\nconst tokenizerValue = \"@\u0026?|#()='\\\",;:\u003c\u003e[]{}\";\nconst exampleIndex = new tencentcloud.cls.Index(\"exampleIndex\", {\n topicId: exampleTopic.id,\n rule: {\n fullText: {\n caseSensitive: true,\n tokenizer: tokenizerValue,\n containZH: true,\n },\n keyValue: {\n caseSensitive: true,\n keyValues: [\n {\n key: \"hello\",\n value: {\n containZH: true,\n sqlFlag: true,\n tokenizer: tokenizerValue,\n type: \"text\",\n },\n },\n {\n key: \"world\",\n value: {\n containZH: true,\n sqlFlag: true,\n tokenizer: tokenizerValue,\n type: \"text\",\n },\n },\n ],\n },\n tag: {\n caseSensitive: true,\n keyValues: [{\n key: \"terraform\",\n value: {\n containZH: true,\n sqlFlag: true,\n tokenizer: tokenizerValue,\n type: \"text\",\n },\n }],\n },\n dynamicIndex: {\n status: true,\n },\n },\n status: true,\n includeInternalFields: true,\n metadataFlag: 1,\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nexample_logset = tencentcloud.cls.Logset(\"exampleLogset\",\n logset_name=\"tf_example\",\n tags={\n \"demo\": \"test\",\n })\nexample_topic = tencentcloud.cls.Topic(\"exampleTopic\",\n topic_name=\"tf_example\",\n logset_id=example_logset.id,\n auto_split=False,\n max_split_partitions=20,\n partition_count=1,\n period=30,\n storage_type=\"hot\",\n describes=\"Test Demo.\",\n hot_period=10,\n tags={\n \"test\": \"test\",\n })\ntokenizer_value = \"@\u0026?|#()='\\\",;:\u003c\u003e[]{}\"\nexample_index = tencentcloud.cls.Index(\"exampleIndex\",\n topic_id=example_topic.id,\n rule=tencentcloud.cls.IndexRuleArgs(\n full_text=tencentcloud.cls.IndexRuleFullTextArgs(\n case_sensitive=True,\n tokenizer=tokenizer_value,\n contain_zh=True,\n ),\n key_value=tencentcloud.cls.IndexRuleKeyValueArgs(\n case_sensitive=True,\n key_values=[\n tencentcloud.cls.IndexRuleKeyValueKeyValueArgs(\n key=\"hello\",\n value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs(\n contain_zh=True,\n sql_flag=True,\n tokenizer=tokenizer_value,\n type=\"text\",\n ),\n ),\n tencentcloud.cls.IndexRuleKeyValueKeyValueArgs(\n key=\"world\",\n value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs(\n contain_zh=True,\n sql_flag=True,\n tokenizer=tokenizer_value,\n type=\"text\",\n ),\n ),\n ],\n ),\n tag=tencentcloud.cls.IndexRuleTagArgs(\n case_sensitive=True,\n key_values=[tencentcloud.cls.IndexRuleTagKeyValueArgs(\n key=\"terraform\",\n value=tencentcloud.cls.IndexRuleTagKeyValueValueArgs(\n contain_zh=True,\n sql_flag=True,\n tokenizer=tokenizer_value,\n type=\"text\",\n ),\n )],\n ),\n dynamic_index=tencentcloud.cls.IndexRuleDynamicIndexArgs(\n status=True,\n ),\n ),\n status=True,\n include_internal_fields=True,\n metadata_flag=1)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleLogset = new Tencentcloud.Cls.Logset(\"exampleLogset\", new()\n {\n LogsetName = \"tf_example\",\n Tags = \n {\n { \"demo\", \"test\" },\n },\n });\n\n var exampleTopic = new Tencentcloud.Cls.Topic(\"exampleTopic\", new()\n {\n TopicName = \"tf_example\",\n LogsetId = exampleLogset.Id,\n AutoSplit = false,\n MaxSplitPartitions = 20,\n PartitionCount = 1,\n Period = 30,\n StorageType = \"hot\",\n Describes = \"Test Demo.\",\n HotPeriod = 10,\n Tags = \n {\n { \"test\", \"test\" },\n },\n });\n\n var tokenizerValue = \"@\u0026?|#()='\\\",;:\u003c\u003e[]{}\";\n\n var exampleIndex = new Tencentcloud.Cls.Index(\"exampleIndex\", new()\n {\n TopicId = exampleTopic.Id,\n Rule = new Tencentcloud.Cls.Inputs.IndexRuleArgs\n {\n FullText = new Tencentcloud.Cls.Inputs.IndexRuleFullTextArgs\n {\n CaseSensitive = true,\n Tokenizer = tokenizerValue,\n ContainZH = true,\n },\n KeyValue = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueArgs\n {\n CaseSensitive = true,\n KeyValues = new[]\n {\n new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs\n {\n Key = \"hello\",\n Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs\n {\n ContainZH = true,\n SqlFlag = true,\n Tokenizer = tokenizerValue,\n Type = \"text\",\n },\n },\n new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs\n {\n Key = \"world\",\n Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs\n {\n ContainZH = true,\n SqlFlag = true,\n Tokenizer = tokenizerValue,\n Type = \"text\",\n },\n },\n },\n },\n Tag = new Tencentcloud.Cls.Inputs.IndexRuleTagArgs\n {\n CaseSensitive = true,\n KeyValues = new[]\n {\n new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueArgs\n {\n Key = \"terraform\",\n Value = new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueValueArgs\n {\n ContainZH = true,\n SqlFlag = true,\n Tokenizer = tokenizerValue,\n Type = \"text\",\n },\n },\n },\n },\n DynamicIndex = new Tencentcloud.Cls.Inputs.IndexRuleDynamicIndexArgs\n {\n Status = true,\n },\n },\n Status = true,\n IncludeInternalFields = true,\n MetadataFlag = 1,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cls\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleLogset, err := Cls.NewLogset(ctx, \"exampleLogset\", \u0026Cls.LogsetArgs{\n\t\t\tLogsetName: pulumi.String(\"tf_example\"),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"demo\": pulumi.Any(\"test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTopic, err := Cls.NewTopic(ctx, \"exampleTopic\", \u0026Cls.TopicArgs{\n\t\t\tTopicName: pulumi.String(\"tf_example\"),\n\t\t\tLogsetId: exampleLogset.ID(),\n\t\t\tAutoSplit: pulumi.Bool(false),\n\t\t\tMaxSplitPartitions: pulumi.Int(20),\n\t\t\tPartitionCount: pulumi.Int(1),\n\t\t\tPeriod: pulumi.Int(30),\n\t\t\tStorageType: pulumi.String(\"hot\"),\n\t\t\tDescribes: pulumi.String(\"Test Demo.\"),\n\t\t\tHotPeriod: pulumi.Int(10),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"test\": pulumi.Any(\"test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttokenizerValue := \"@\u0026?|#()='\\\",;:\u003c\u003e[]{}\"\n\t\t_, err = Cls.NewIndex(ctx, \"exampleIndex\", \u0026Cls.IndexArgs{\n\t\t\tTopicId: exampleTopic.ID(),\n\t\t\tRule: \u0026cls.IndexRuleArgs{\n\t\t\t\tFullText: \u0026cls.IndexRuleFullTextArgs{\n\t\t\t\t\tCaseSensitive: pulumi.Bool(true),\n\t\t\t\t\tTokenizer: pulumi.String(tokenizerValue),\n\t\t\t\t\tContainZH: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\tKeyValue: \u0026cls.IndexRuleKeyValueArgs{\n\t\t\t\t\tCaseSensitive: pulumi.Bool(true),\n\t\t\t\t\tKeyValues: cls.IndexRuleKeyValueKeyValueArray{\n\t\t\t\t\t\t\u0026cls.IndexRuleKeyValueKeyValueArgs{\n\t\t\t\t\t\t\tKey: pulumi.String(\"hello\"),\n\t\t\t\t\t\t\tValue: \u0026cls.IndexRuleKeyValueKeyValueValueArgs{\n\t\t\t\t\t\t\t\tContainZH: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tSqlFlag: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tTokenizer: pulumi.String(tokenizerValue),\n\t\t\t\t\t\t\t\tType: pulumi.String(\"text\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026cls.IndexRuleKeyValueKeyValueArgs{\n\t\t\t\t\t\t\tKey: pulumi.String(\"world\"),\n\t\t\t\t\t\t\tValue: \u0026cls.IndexRuleKeyValueKeyValueValueArgs{\n\t\t\t\t\t\t\t\tContainZH: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tSqlFlag: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tTokenizer: pulumi.String(tokenizerValue),\n\t\t\t\t\t\t\t\tType: pulumi.String(\"text\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tTag: \u0026cls.IndexRuleTagArgs{\n\t\t\t\t\tCaseSensitive: pulumi.Bool(true),\n\t\t\t\t\tKeyValues: cls.IndexRuleTagKeyValueArray{\n\t\t\t\t\t\t\u0026cls.IndexRuleTagKeyValueArgs{\n\t\t\t\t\t\t\tKey: pulumi.String(\"terraform\"),\n\t\t\t\t\t\t\tValue: \u0026cls.IndexRuleTagKeyValueValueArgs{\n\t\t\t\t\t\t\t\tContainZH: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tSqlFlag: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tTokenizer: pulumi.String(tokenizerValue),\n\t\t\t\t\t\t\t\tType: pulumi.String(\"text\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tDynamicIndex: \u0026cls.IndexRuleDynamicIndexArgs{\n\t\t\t\t\tStatus: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStatus: pulumi.Bool(true),\n\t\t\tIncludeInternalFields: pulumi.Bool(true),\n\t\t\tMetadataFlag: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Cls.Logset;\nimport com.pulumi.tencentcloud.Cls.LogsetArgs;\nimport com.pulumi.tencentcloud.Cls.Topic;\nimport com.pulumi.tencentcloud.Cls.TopicArgs;\nimport com.pulumi.tencentcloud.Cls.Index;\nimport com.pulumi.tencentcloud.Cls.IndexArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.IndexRuleArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.IndexRuleFullTextArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.IndexRuleKeyValueArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.IndexRuleTagArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.IndexRuleDynamicIndexArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleLogset = new Logset(\"exampleLogset\", LogsetArgs.builder() \n .logsetName(\"tf_example\")\n .tags(Map.of(\"demo\", \"test\"))\n .build());\n\n var exampleTopic = new Topic(\"exampleTopic\", TopicArgs.builder() \n .topicName(\"tf_example\")\n .logsetId(exampleLogset.id())\n .autoSplit(false)\n .maxSplitPartitions(20)\n .partitionCount(1)\n .period(30)\n .storageType(\"hot\")\n .describes(\"Test Demo.\")\n .hotPeriod(10)\n .tags(Map.of(\"test\", \"test\"))\n .build());\n\n final var tokenizerValue = \"@\u0026?|#()='\\\",;:\u003c\u003e[]{}\";\n\n var exampleIndex = new Index(\"exampleIndex\", IndexArgs.builder() \n .topicId(exampleTopic.id())\n .rule(IndexRuleArgs.builder()\n .fullText(IndexRuleFullTextArgs.builder()\n .caseSensitive(true)\n .tokenizer(tokenizerValue)\n .containZH(true)\n .build())\n .keyValue(IndexRuleKeyValueArgs.builder()\n .caseSensitive(true)\n .keyValues( \n IndexRuleKeyValueKeyValueArgs.builder()\n .key(\"hello\")\n .value(IndexRuleKeyValueKeyValueValueArgs.builder()\n .containZH(true)\n .sqlFlag(true)\n .tokenizer(tokenizerValue)\n .type(\"text\")\n .build())\n .build(),\n IndexRuleKeyValueKeyValueArgs.builder()\n .key(\"world\")\n .value(IndexRuleKeyValueKeyValueValueArgs.builder()\n .containZH(true)\n .sqlFlag(true)\n .tokenizer(tokenizerValue)\n .type(\"text\")\n .build())\n .build())\n .build())\n .tag(IndexRuleTagArgs.builder()\n .caseSensitive(true)\n .keyValues(IndexRuleTagKeyValueArgs.builder()\n .key(\"terraform\")\n .value(IndexRuleTagKeyValueValueArgs.builder()\n .containZH(true)\n .sqlFlag(true)\n .tokenizer(tokenizerValue)\n .type(\"text\")\n .build())\n .build())\n .build())\n .dynamicIndex(IndexRuleDynamicIndexArgs.builder()\n .status(true)\n .build())\n .build())\n .status(true)\n .includeInternalFields(true)\n .metadataFlag(1)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleLogset:\n type: tencentcloud:Cls:Logset\n properties:\n logsetName: tf_example\n tags:\n demo: test\n exampleTopic:\n type: tencentcloud:Cls:Topic\n properties:\n topicName: tf_example\n logsetId: ${exampleLogset.id}\n autoSplit: false\n maxSplitPartitions: 20\n partitionCount: 1\n period: 30\n storageType: hot\n describes: Test Demo.\n hotPeriod: 10\n tags:\n test: test\n exampleIndex:\n type: tencentcloud:Cls:Index\n properties:\n topicId: ${exampleTopic.id}\n rule:\n fullText:\n caseSensitive: true\n tokenizer: ${tokenizerValue}\n containZH: true\n keyValue:\n caseSensitive: true\n keyValues:\n - key: hello\n value:\n containZH: true\n sqlFlag: true\n tokenizer: ${tokenizerValue}\n type: text\n - key: world\n value:\n containZH: true\n sqlFlag: true\n tokenizer: ${tokenizerValue}\n type: text\n tag:\n caseSensitive: true\n keyValues:\n - key: terraform\n value:\n containZH: true\n sqlFlag: true\n tokenizer: ${tokenizerValue}\n type: text\n dynamicIndex:\n status: true\n status: true\n includeInternalFields: true\n metadataFlag: 1\nvariables:\n tokenizerValue: '@\u0026?|#()=''\",;:\u003c\u003e[]{}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\ncls cos index can be imported using the id, e.g.\n\n```sh\n$ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc\n```\n", + "properties": { + "includeInternalFields": { + "type": "boolean", + "description": "Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.\n" + }, + "metadataFlag": { + "type": "integer", + "description": "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)..\n" + }, + "rule": { + "$ref": "#/types/tencentcloud:Cls/IndexRule:IndexRule", + "description": "Index rule.\n" + }, + "status": { + "type": "boolean", + "description": "Whether to take effect. Default value: true.\n" + }, + "topicId": { + "type": "string", + "description": "Log topic ID.\n" + } + }, + "required": [ + "rule", + "status", + "topicId" + ], + "inputProperties": { + "includeInternalFields": { + "type": "boolean", + "description": "Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.\n" + }, + "metadataFlag": { + "type": "integer", + "description": "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)..\n" + }, + "rule": { + "$ref": "#/types/tencentcloud:Cls/IndexRule:IndexRule", + "description": "Index rule.\n" + }, + "status": { + "type": "boolean", + "description": "Whether to take effect. Default value: true.\n" + }, + "topicId": { + "type": "string", + "description": "Log topic ID.\n" + } + }, + "requiredInputs": [ + "topicId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Index resources.\n", + "properties": { + "includeInternalFields": { + "type": "boolean", + "description": "Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.\n" + }, + "metadataFlag": { + "type": "integer", + "description": "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)..\n" + }, + "rule": { + "$ref": "#/types/tencentcloud:Cls/IndexRule:IndexRule", + "description": "Index rule.\n" + }, + "status": { + "type": "boolean", + "description": "Whether to take effect. Default value: true.\n" + }, + "topicId": { + "type": "string", + "description": "Log topic ID.\n" + } + }, + "type": "object" + } + }, "tencentcloud:Cls/kafkaRecharge:KafkaRecharge": { "description": "Provides a resource to create a cls kafka_recharge\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst logset = new tencentcloud.cls.Logset(\"logset\", {\n logsetName: \"tf-example-logset\",\n tags: {\n createdBy: \"terraform\",\n },\n});\nconst topic = new tencentcloud.cls.Topic(\"topic\", {\n topicName: \"tf-example-topic\",\n logsetId: logset.id,\n autoSplit: false,\n maxSplitPartitions: 20,\n partitionCount: 1,\n period: 10,\n storageType: \"hot\",\n tags: {\n test: \"test\",\n },\n});\nconst kafkaRecharge = new tencentcloud.cls.KafkaRecharge(\"kafkaRecharge\", {\n topicId: topic.id,\n kafkaType: 0,\n offset: -2,\n isEncryptionAddr: true,\n userKafkaTopics: \"recharge\",\n kafkaInstance: \"ckafka-qzoeaqx8\",\n logRechargeRule: {\n rechargeType: \"json_log\",\n encodingFormat: 0,\n defaultTimeSwitch: true,\n },\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nlogset = tencentcloud.cls.Logset(\"logset\",\n logset_name=\"tf-example-logset\",\n tags={\n \"createdBy\": \"terraform\",\n })\ntopic = tencentcloud.cls.Topic(\"topic\",\n topic_name=\"tf-example-topic\",\n logset_id=logset.id,\n auto_split=False,\n max_split_partitions=20,\n partition_count=1,\n period=10,\n storage_type=\"hot\",\n tags={\n \"test\": \"test\",\n })\nkafka_recharge = tencentcloud.cls.KafkaRecharge(\"kafkaRecharge\",\n topic_id=topic.id,\n kafka_type=0,\n offset=-2,\n is_encryption_addr=True,\n user_kafka_topics=\"recharge\",\n kafka_instance=\"ckafka-qzoeaqx8\",\n log_recharge_rule=tencentcloud.cls.KafkaRechargeLogRechargeRuleArgs(\n recharge_type=\"json_log\",\n encoding_format=0,\n default_time_switch=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var logset = new Tencentcloud.Cls.Logset(\"logset\", new()\n {\n LogsetName = \"tf-example-logset\",\n Tags = \n {\n { \"createdBy\", \"terraform\" },\n },\n });\n\n var topic = new Tencentcloud.Cls.Topic(\"topic\", new()\n {\n TopicName = \"tf-example-topic\",\n LogsetId = logset.Id,\n AutoSplit = false,\n MaxSplitPartitions = 20,\n PartitionCount = 1,\n Period = 10,\n StorageType = \"hot\",\n Tags = \n {\n { \"test\", \"test\" },\n },\n });\n\n var kafkaRecharge = new Tencentcloud.Cls.KafkaRecharge(\"kafkaRecharge\", new()\n {\n TopicId = topic.Id,\n KafkaType = 0,\n Offset = -2,\n IsEncryptionAddr = true,\n UserKafkaTopics = \"recharge\",\n KafkaInstance = \"ckafka-qzoeaqx8\",\n LogRechargeRule = new Tencentcloud.Cls.Inputs.KafkaRechargeLogRechargeRuleArgs\n {\n RechargeType = \"json_log\",\n EncodingFormat = 0,\n DefaultTimeSwitch = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cls\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlogset, err := Cls.NewLogset(ctx, \"logset\", \u0026Cls.LogsetArgs{\n\t\t\tLogsetName: pulumi.String(\"tf-example-logset\"),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"createdBy\": pulumi.Any(\"terraform\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttopic, err := Cls.NewTopic(ctx, \"topic\", \u0026Cls.TopicArgs{\n\t\t\tTopicName: pulumi.String(\"tf-example-topic\"),\n\t\t\tLogsetId: logset.ID(),\n\t\t\tAutoSplit: pulumi.Bool(false),\n\t\t\tMaxSplitPartitions: pulumi.Int(20),\n\t\t\tPartitionCount: pulumi.Int(1),\n\t\t\tPeriod: pulumi.Int(10),\n\t\t\tStorageType: pulumi.String(\"hot\"),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"test\": pulumi.Any(\"test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Cls.NewKafkaRecharge(ctx, \"kafkaRecharge\", \u0026Cls.KafkaRechargeArgs{\n\t\t\tTopicId: topic.ID(),\n\t\t\tKafkaType: pulumi.Int(0),\n\t\t\tOffset: -2,\n\t\t\tIsEncryptionAddr: pulumi.Bool(true),\n\t\t\tUserKafkaTopics: pulumi.String(\"recharge\"),\n\t\t\tKafkaInstance: pulumi.String(\"ckafka-qzoeaqx8\"),\n\t\t\tLogRechargeRule: \u0026cls.KafkaRechargeLogRechargeRuleArgs{\n\t\t\t\tRechargeType: pulumi.String(\"json_log\"),\n\t\t\t\tEncodingFormat: pulumi.Int(0),\n\t\t\t\tDefaultTimeSwitch: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Cls.Logset;\nimport com.pulumi.tencentcloud.Cls.LogsetArgs;\nimport com.pulumi.tencentcloud.Cls.Topic;\nimport com.pulumi.tencentcloud.Cls.TopicArgs;\nimport com.pulumi.tencentcloud.Cls.KafkaRecharge;\nimport com.pulumi.tencentcloud.Cls.KafkaRechargeArgs;\nimport com.pulumi.tencentcloud.Cls.inputs.KafkaRechargeLogRechargeRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var logset = new Logset(\"logset\", LogsetArgs.builder() \n .logsetName(\"tf-example-logset\")\n .tags(Map.of(\"createdBy\", \"terraform\"))\n .build());\n\n var topic = new Topic(\"topic\", TopicArgs.builder() \n .topicName(\"tf-example-topic\")\n .logsetId(logset.id())\n .autoSplit(false)\n .maxSplitPartitions(20)\n .partitionCount(1)\n .period(10)\n .storageType(\"hot\")\n .tags(Map.of(\"test\", \"test\"))\n .build());\n\n var kafkaRecharge = new KafkaRecharge(\"kafkaRecharge\", KafkaRechargeArgs.builder() \n .topicId(topic.id())\n .kafkaType(0)\n .offset(\"TODO: GenUnaryOpExpression\")\n .isEncryptionAddr(true)\n .userKafkaTopics(\"recharge\")\n .kafkaInstance(\"ckafka-qzoeaqx8\")\n .logRechargeRule(KafkaRechargeLogRechargeRuleArgs.builder()\n .rechargeType(\"json_log\")\n .encodingFormat(0)\n .defaultTimeSwitch(true)\n .build())\n .build());\n\n }\n}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\ncls kafka_recharge can be imported using the id, e.g.\n\n```sh\n$ pulumi import tencentcloud:Cls/kafkaRecharge:KafkaRecharge kafka_recharge kafka_recharge_id\n```\n\n", "properties": { @@ -144237,7 +144513,7 @@ } }, "tencentcloud:Cvm/renewInstance:RenewInstance": { - "description": "Provides a resource to create a cvm renew_instance\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst renewInstance = new tencentcloud.cvm.RenewInstance(\"renewInstance\", {\n instanceChargePrepaid: {\n period: 1,\n renewFlag: \"NOTIFY_AND_AUTO_RENEW\",\n },\n instanceId: \"ins-f9jr4bd2\",\n renewPortableDataDisk: true,\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nrenew_instance = tencentcloud.cvm.RenewInstance(\"renewInstance\",\n instance_charge_prepaid=tencentcloud.cvm.RenewInstanceInstanceChargePrepaidArgs(\n period=1,\n renew_flag=\"NOTIFY_AND_AUTO_RENEW\",\n ),\n instance_id=\"ins-f9jr4bd2\",\n renew_portable_data_disk=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var renewInstance = new Tencentcloud.Cvm.RenewInstance(\"renewInstance\", new()\n {\n InstanceChargePrepaid = new Tencentcloud.Cvm.Inputs.RenewInstanceInstanceChargePrepaidArgs\n {\n Period = 1,\n RenewFlag = \"NOTIFY_AND_AUTO_RENEW\",\n },\n InstanceId = \"ins-f9jr4bd2\",\n RenewPortableDataDisk = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Cvm.NewRenewInstance(ctx, \"renewInstance\", \u0026Cvm.RenewInstanceArgs{\n\t\t\tInstanceChargePrepaid: \u0026cvm.RenewInstanceInstanceChargePrepaidArgs{\n\t\t\t\tPeriod: pulumi.Int(1),\n\t\t\t\tRenewFlag: pulumi.String(\"NOTIFY_AND_AUTO_RENEW\"),\n\t\t\t},\n\t\t\tInstanceId: pulumi.String(\"ins-f9jr4bd2\"),\n\t\t\tRenewPortableDataDisk: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Cvm.RenewInstance;\nimport com.pulumi.tencentcloud.Cvm.RenewInstanceArgs;\nimport com.pulumi.tencentcloud.Cvm.inputs.RenewInstanceInstanceChargePrepaidArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var renewInstance = new RenewInstance(\"renewInstance\", RenewInstanceArgs.builder() \n .instanceChargePrepaid(RenewInstanceInstanceChargePrepaidArgs.builder()\n .period(1)\n .renewFlag(\"NOTIFY_AND_AUTO_RENEW\")\n .build())\n .instanceId(\"ins-f9jr4bd2\")\n .renewPortableDataDisk(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n renewInstance:\n type: tencentcloud:Cvm:RenewInstance\n properties:\n instanceChargePrepaid:\n period: 1\n renewFlag: NOTIFY_AND_AUTO_RENEW\n instanceId: ins-f9jr4bd2\n renewPortableDataDisk: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a resource to create a cvm renew_instance\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\n// create vpc\nconst vpc = new tencentcloud.vpc.Instance(\"vpc\", {cidrBlock: \"10.0.0.0/16\"});\n// create vpc subnet\nconst subnet = new tencentcloud.subnet.Instance(\"subnet\", {\n vpcId: vpc.id,\n availabilityZone: \"ap-guangzhou-6\",\n cidrBlock: \"10.0.20.0/28\",\n isMulticast: false,\n});\n// create cvm\nconst exampleInstance = new tencentcloud.instance.Instance(\"exampleInstance\", {\n instanceName: \"tf_example\",\n availabilityZone: \"ap-guangzhou-6\",\n imageId: \"img-9qrfy1xt\",\n instanceType: \"SA3.MEDIUM4\",\n systemDiskType: \"CLOUD_HSSD\",\n systemDiskSize: 100,\n hostname: \"example\",\n projectId: 0,\n vpcId: vpc.id,\n subnetId: subnet.id,\n forceDelete: true,\n instanceChargeType: \"PREPAID\",\n instanceChargeTypePrepaidPeriod: 1,\n instanceChargeTypePrepaidRenewFlag: \"NOTIFY_AND_MANUAL_RENEW\",\n dataDisks: [{\n dataDiskType: \"CLOUD_HSSD\",\n dataDiskSize: 50,\n encrypt: false,\n }],\n tags: {\n tagKey: \"tagValue\",\n },\n});\n// renew instance\nconst exampleRenewInstance = new tencentcloud.cvm.RenewInstance(\"exampleRenewInstance\", {\n instanceId: exampleInstance.id,\n renewPortableDataDisk: true,\n instanceChargePrepaid: {\n period: 1,\n renewFlag: \"NOTIFY_AND_MANUAL_RENEW\",\n },\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\n# create vpc\nvpc = tencentcloud.vpc.Instance(\"vpc\", cidr_block=\"10.0.0.0/16\")\n# create vpc subnet\nsubnet = tencentcloud.subnet.Instance(\"subnet\",\n vpc_id=vpc.id,\n availability_zone=\"ap-guangzhou-6\",\n cidr_block=\"10.0.20.0/28\",\n is_multicast=False)\n# create cvm\nexample_instance = tencentcloud.instance.Instance(\"exampleInstance\",\n instance_name=\"tf_example\",\n availability_zone=\"ap-guangzhou-6\",\n image_id=\"img-9qrfy1xt\",\n instance_type=\"SA3.MEDIUM4\",\n system_disk_type=\"CLOUD_HSSD\",\n system_disk_size=100,\n hostname=\"example\",\n project_id=0,\n vpc_id=vpc.id,\n subnet_id=subnet.id,\n force_delete=True,\n instance_charge_type=\"PREPAID\",\n instance_charge_type_prepaid_period=1,\n instance_charge_type_prepaid_renew_flag=\"NOTIFY_AND_MANUAL_RENEW\",\n data_disks=[tencentcloud.instance.InstanceDataDiskArgs(\n data_disk_type=\"CLOUD_HSSD\",\n data_disk_size=50,\n encrypt=False,\n )],\n tags={\n \"tagKey\": \"tagValue\",\n })\n# renew instance\nexample_renew_instance = tencentcloud.cvm.RenewInstance(\"exampleRenewInstance\",\n instance_id=example_instance.id,\n renew_portable_data_disk=True,\n instance_charge_prepaid=tencentcloud.cvm.RenewInstanceInstanceChargePrepaidArgs(\n period=1,\n renew_flag=\"NOTIFY_AND_MANUAL_RENEW\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // create vpc\n var vpc = new Tencentcloud.Vpc.Instance(\"vpc\", new()\n {\n CidrBlock = \"10.0.0.0/16\",\n });\n\n // create vpc subnet\n var subnet = new Tencentcloud.Subnet.Instance(\"subnet\", new()\n {\n VpcId = vpc.Id,\n AvailabilityZone = \"ap-guangzhou-6\",\n CidrBlock = \"10.0.20.0/28\",\n IsMulticast = false,\n });\n\n // create cvm\n var exampleInstance = new Tencentcloud.Instance.Instance(\"exampleInstance\", new()\n {\n InstanceName = \"tf_example\",\n AvailabilityZone = \"ap-guangzhou-6\",\n ImageId = \"img-9qrfy1xt\",\n InstanceType = \"SA3.MEDIUM4\",\n SystemDiskType = \"CLOUD_HSSD\",\n SystemDiskSize = 100,\n Hostname = \"example\",\n ProjectId = 0,\n VpcId = vpc.Id,\n SubnetId = subnet.Id,\n ForceDelete = true,\n InstanceChargeType = \"PREPAID\",\n InstanceChargeTypePrepaidPeriod = 1,\n InstanceChargeTypePrepaidRenewFlag = \"NOTIFY_AND_MANUAL_RENEW\",\n DataDisks = new[]\n {\n new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs\n {\n DataDiskType = \"CLOUD_HSSD\",\n DataDiskSize = 50,\n Encrypt = false,\n },\n },\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n });\n\n // renew instance\n var exampleRenewInstance = new Tencentcloud.Cvm.RenewInstance(\"exampleRenewInstance\", new()\n {\n InstanceId = exampleInstance.Id,\n RenewPortableDataDisk = true,\n InstanceChargePrepaid = new Tencentcloud.Cvm.Inputs.RenewInstanceInstanceChargePrepaidArgs\n {\n Period = 1,\n RenewFlag = \"NOTIFY_AND_MANUAL_RENEW\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// create vpc\n\t\tvpc, err := Vpc.NewInstance(ctx, \"vpc\", \u0026Vpc.InstanceArgs{\n\t\t\tCidrBlock: pulumi.String(\"10.0.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create vpc subnet\n\t\tsubnet, err := Subnet.NewInstance(ctx, \"subnet\", \u0026Subnet.InstanceArgs{\n\t\t\tVpcId: vpc.ID(),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tCidrBlock: pulumi.String(\"10.0.20.0/28\"),\n\t\t\tIsMulticast: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create cvm\n\t\texampleInstance, err := Instance.NewInstance(ctx, \"exampleInstance\", \u0026Instance.InstanceArgs{\n\t\t\tInstanceName: pulumi.String(\"tf_example\"),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tImageId: pulumi.String(\"img-9qrfy1xt\"),\n\t\t\tInstanceType: pulumi.String(\"SA3.MEDIUM4\"),\n\t\t\tSystemDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\tSystemDiskSize: pulumi.Int(100),\n\t\t\tHostname: pulumi.String(\"example\"),\n\t\t\tProjectId: pulumi.Int(0),\n\t\t\tVpcId: vpc.ID(),\n\t\t\tSubnetId: subnet.ID(),\n\t\t\tForceDelete: pulumi.Bool(true),\n\t\t\tInstanceChargeType: pulumi.String(\"PREPAID\"),\n\t\t\tInstanceChargeTypePrepaidPeriod: pulumi.Int(1),\n\t\t\tInstanceChargeTypePrepaidRenewFlag: pulumi.String(\"NOTIFY_AND_MANUAL_RENEW\"),\n\t\t\tDataDisks: instance.InstanceDataDiskArray{\n\t\t\t\t\u0026instance.InstanceDataDiskArgs{\n\t\t\t\t\tDataDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\t\t\tDataDiskSize: pulumi.Int(50),\n\t\t\t\t\tEncrypt: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tagKey\": pulumi.Any(\"tagValue\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// renew instance\n\t\t_, err = Cvm.NewRenewInstance(ctx, \"exampleRenewInstance\", \u0026Cvm.RenewInstanceArgs{\n\t\t\tInstanceId: exampleInstance.ID(),\n\t\t\tRenewPortableDataDisk: pulumi.Bool(true),\n\t\t\tInstanceChargePrepaid: \u0026cvm.RenewInstanceInstanceChargePrepaidArgs{\n\t\t\t\tPeriod: pulumi.Int(1),\n\t\t\t\tRenewFlag: pulumi.String(\"NOTIFY_AND_MANUAL_RENEW\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Vpc.Instance;\nimport com.pulumi.tencentcloud.Vpc.InstanceArgs;\nimport com.pulumi.tencentcloud.Subnet.Instance;\nimport com.pulumi.tencentcloud.Subnet.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.Instance;\nimport com.pulumi.tencentcloud.Instance.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.inputs.InstanceDataDiskArgs;\nimport com.pulumi.tencentcloud.Cvm.RenewInstance;\nimport com.pulumi.tencentcloud.Cvm.RenewInstanceArgs;\nimport com.pulumi.tencentcloud.Cvm.inputs.RenewInstanceInstanceChargePrepaidArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // create vpc\n var vpc = new Instance(\"vpc\", InstanceArgs.builder() \n .cidrBlock(\"10.0.0.0/16\")\n .build());\n\n // create vpc subnet\n var subnet = new Instance(\"subnet\", InstanceArgs.builder() \n .vpcId(vpc.id())\n .availabilityZone(\"ap-guangzhou-6\")\n .cidrBlock(\"10.0.20.0/28\")\n .isMulticast(false)\n .build());\n\n // create cvm\n var exampleInstance = new Instance(\"exampleInstance\", InstanceArgs.builder() \n .instanceName(\"tf_example\")\n .availabilityZone(\"ap-guangzhou-6\")\n .imageId(\"img-9qrfy1xt\")\n .instanceType(\"SA3.MEDIUM4\")\n .systemDiskType(\"CLOUD_HSSD\")\n .systemDiskSize(100)\n .hostname(\"example\")\n .projectId(0)\n .vpcId(vpc.id())\n .subnetId(subnet.id())\n .forceDelete(true)\n .instanceChargeType(\"PREPAID\")\n .instanceChargeTypePrepaidPeriod(1)\n .instanceChargeTypePrepaidRenewFlag(\"NOTIFY_AND_MANUAL_RENEW\")\n .dataDisks(InstanceDataDiskArgs.builder()\n .dataDiskType(\"CLOUD_HSSD\")\n .dataDiskSize(50)\n .encrypt(false)\n .build())\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .build());\n\n // renew instance\n var exampleRenewInstance = new RenewInstance(\"exampleRenewInstance\", RenewInstanceArgs.builder() \n .instanceId(exampleInstance.id())\n .renewPortableDataDisk(true)\n .instanceChargePrepaid(RenewInstanceInstanceChargePrepaidArgs.builder()\n .period(1)\n .renewFlag(\"NOTIFY_AND_MANUAL_RENEW\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # create vpc\n vpc:\n type: tencentcloud:Vpc:Instance\n properties:\n cidrBlock: 10.0.0.0/16\n # create vpc subnet\n subnet:\n type: tencentcloud:Subnet:Instance\n properties:\n vpcId: ${vpc.id}\n availabilityZone: ap-guangzhou-6\n cidrBlock: 10.0.20.0/28\n isMulticast: false\n # create cvm\n exampleInstance:\n type: tencentcloud:Instance:Instance\n properties:\n instanceName: tf_example\n availabilityZone: ap-guangzhou-6\n imageId: img-9qrfy1xt\n instanceType: SA3.MEDIUM4\n systemDiskType: CLOUD_HSSD\n systemDiskSize: 100\n hostname: example\n projectId: 0\n vpcId: ${vpc.id}\n subnetId: ${subnet.id}\n forceDelete: true\n instanceChargeType: PREPAID\n instanceChargeTypePrepaidPeriod: 1\n instanceChargeTypePrepaidRenewFlag: NOTIFY_AND_MANUAL_RENEW\n dataDisks:\n - dataDiskType: CLOUD_HSSD\n dataDiskSize: 50\n encrypt: false\n tags:\n tagKey: tagValue\n # renew instance\n exampleRenewInstance:\n type: tencentcloud:Cvm:RenewInstance\n properties:\n instanceId: ${exampleInstance.id}\n renewPortableDataDisk: true\n instanceChargePrepaid:\n period: 1\n renewFlag: NOTIFY_AND_MANUAL_RENEW\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "instanceChargePrepaid": { "$ref": "#/types/tencentcloud:Cvm/RenewInstanceInstanceChargePrepaid:RenewInstanceInstanceChargePrepaid", @@ -144298,7 +144574,7 @@ } }, "tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment": { - "description": "Provides a resource to create a cvm security_group_attachment\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst securityGroupAttachment = new tencentcloud.cvm.SecurityGroupAttachment(\"securityGroupAttachment\", {\n instanceId: \"ins-xxxxxxxx\",\n securityGroupId: \"sg-xxxxxxx\",\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nsecurity_group_attachment = tencentcloud.cvm.SecurityGroupAttachment(\"securityGroupAttachment\",\n instance_id=\"ins-xxxxxxxx\",\n security_group_id=\"sg-xxxxxxx\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var securityGroupAttachment = new Tencentcloud.Cvm.SecurityGroupAttachment(\"securityGroupAttachment\", new()\n {\n InstanceId = \"ins-xxxxxxxx\",\n SecurityGroupId = \"sg-xxxxxxx\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Cvm.NewSecurityGroupAttachment(ctx, \"securityGroupAttachment\", \u0026Cvm.SecurityGroupAttachmentArgs{\n\t\t\tInstanceId: pulumi.String(\"ins-xxxxxxxx\"),\n\t\t\tSecurityGroupId: pulumi.String(\"sg-xxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Cvm.SecurityGroupAttachment;\nimport com.pulumi.tencentcloud.Cvm.SecurityGroupAttachmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var securityGroupAttachment = new SecurityGroupAttachment(\"securityGroupAttachment\", SecurityGroupAttachmentArgs.builder() \n .instanceId(\"ins-xxxxxxxx\")\n .securityGroupId(\"sg-xxxxxxx\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n securityGroupAttachment:\n type: tencentcloud:Cvm:SecurityGroupAttachment\n properties:\n instanceId: ins-xxxxxxxx\n securityGroupId: sg-xxxxxxx\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\ncvm security_group_attachment can be imported using the id, e.g.\n\n```sh\n$ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id}\n```\n\n", + "description": "Provides a resource to create a cvm security_group_attachment\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\n// create vpc\nconst vpc = new tencentcloud.vpc.Instance(\"vpc\", {cidrBlock: \"10.0.0.0/16\"});\n// create vpc subnet\nconst subnet = new tencentcloud.subnet.Instance(\"subnet\", {\n vpcId: vpc.id,\n availabilityZone: \"ap-guangzhou-6\",\n cidrBlock: \"10.0.20.0/28\",\n isMulticast: false,\n});\n// create security group\nconst exampleGroup = new tencentcloud.security.Group(\"exampleGroup\", {\n description: \"sg desc.\",\n projectId: 0,\n tags: {\n example: \"test\",\n },\n});\n// create cvm\nconst exampleInstance = new tencentcloud.instance.Instance(\"exampleInstance\", {\n instanceName: \"tf_example\",\n availabilityZone: \"ap-guangzhou-6\",\n imageId: \"img-9qrfy1xt\",\n instanceType: \"SA3.MEDIUM4\",\n systemDiskType: \"CLOUD_HSSD\",\n systemDiskSize: 100,\n hostname: \"example\",\n projectId: 0,\n vpcId: vpc.id,\n subnetId: subnet.id,\n dataDisks: [{\n dataDiskType: \"CLOUD_HSSD\",\n dataDiskSize: 50,\n encrypt: false,\n }],\n tags: {\n tagKey: \"tagValue\",\n },\n});\n// attachment security group\nconst exampleSecurityGroupAttachment = new tencentcloud.cvm.SecurityGroupAttachment(\"exampleSecurityGroupAttachment\", {\n instanceId: exampleInstance.id,\n securityGroupId: exampleGroup.id,\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\n# create vpc\nvpc = tencentcloud.vpc.Instance(\"vpc\", cidr_block=\"10.0.0.0/16\")\n# create vpc subnet\nsubnet = tencentcloud.subnet.Instance(\"subnet\",\n vpc_id=vpc.id,\n availability_zone=\"ap-guangzhou-6\",\n cidr_block=\"10.0.20.0/28\",\n is_multicast=False)\n# create security group\nexample_group = tencentcloud.security.Group(\"exampleGroup\",\n description=\"sg desc.\",\n project_id=0,\n tags={\n \"example\": \"test\",\n })\n# create cvm\nexample_instance = tencentcloud.instance.Instance(\"exampleInstance\",\n instance_name=\"tf_example\",\n availability_zone=\"ap-guangzhou-6\",\n image_id=\"img-9qrfy1xt\",\n instance_type=\"SA3.MEDIUM4\",\n system_disk_type=\"CLOUD_HSSD\",\n system_disk_size=100,\n hostname=\"example\",\n project_id=0,\n vpc_id=vpc.id,\n subnet_id=subnet.id,\n data_disks=[tencentcloud.instance.InstanceDataDiskArgs(\n data_disk_type=\"CLOUD_HSSD\",\n data_disk_size=50,\n encrypt=False,\n )],\n tags={\n \"tagKey\": \"tagValue\",\n })\n# attachment security group\nexample_security_group_attachment = tencentcloud.cvm.SecurityGroupAttachment(\"exampleSecurityGroupAttachment\",\n instance_id=example_instance.id,\n security_group_id=example_group.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // create vpc\n var vpc = new Tencentcloud.Vpc.Instance(\"vpc\", new()\n {\n CidrBlock = \"10.0.0.0/16\",\n });\n\n // create vpc subnet\n var subnet = new Tencentcloud.Subnet.Instance(\"subnet\", new()\n {\n VpcId = vpc.Id,\n AvailabilityZone = \"ap-guangzhou-6\",\n CidrBlock = \"10.0.20.0/28\",\n IsMulticast = false,\n });\n\n // create security group\n var exampleGroup = new Tencentcloud.Security.Group(\"exampleGroup\", new()\n {\n Description = \"sg desc.\",\n ProjectId = 0,\n Tags = \n {\n { \"example\", \"test\" },\n },\n });\n\n // create cvm\n var exampleInstance = new Tencentcloud.Instance.Instance(\"exampleInstance\", new()\n {\n InstanceName = \"tf_example\",\n AvailabilityZone = \"ap-guangzhou-6\",\n ImageId = \"img-9qrfy1xt\",\n InstanceType = \"SA3.MEDIUM4\",\n SystemDiskType = \"CLOUD_HSSD\",\n SystemDiskSize = 100,\n Hostname = \"example\",\n ProjectId = 0,\n VpcId = vpc.Id,\n SubnetId = subnet.Id,\n DataDisks = new[]\n {\n new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs\n {\n DataDiskType = \"CLOUD_HSSD\",\n DataDiskSize = 50,\n Encrypt = false,\n },\n },\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n });\n\n // attachment security group\n var exampleSecurityGroupAttachment = new Tencentcloud.Cvm.SecurityGroupAttachment(\"exampleSecurityGroupAttachment\", new()\n {\n InstanceId = exampleInstance.Id,\n SecurityGroupId = exampleGroup.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Security\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// create vpc\n\t\tvpc, err := Vpc.NewInstance(ctx, \"vpc\", \u0026Vpc.InstanceArgs{\n\t\t\tCidrBlock: pulumi.String(\"10.0.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create vpc subnet\n\t\tsubnet, err := Subnet.NewInstance(ctx, \"subnet\", \u0026Subnet.InstanceArgs{\n\t\t\tVpcId: vpc.ID(),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tCidrBlock: pulumi.String(\"10.0.20.0/28\"),\n\t\t\tIsMulticast: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create security group\n\t\texampleGroup, err := Security.NewGroup(ctx, \"exampleGroup\", \u0026Security.GroupArgs{\n\t\t\tDescription: pulumi.String(\"sg desc.\"),\n\t\t\tProjectId: pulumi.Int(0),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"example\": pulumi.Any(\"test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create cvm\n\t\texampleInstance, err := Instance.NewInstance(ctx, \"exampleInstance\", \u0026Instance.InstanceArgs{\n\t\t\tInstanceName: pulumi.String(\"tf_example\"),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tImageId: pulumi.String(\"img-9qrfy1xt\"),\n\t\t\tInstanceType: pulumi.String(\"SA3.MEDIUM4\"),\n\t\t\tSystemDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\tSystemDiskSize: pulumi.Int(100),\n\t\t\tHostname: pulumi.String(\"example\"),\n\t\t\tProjectId: pulumi.Int(0),\n\t\t\tVpcId: vpc.ID(),\n\t\t\tSubnetId: subnet.ID(),\n\t\t\tDataDisks: instance.InstanceDataDiskArray{\n\t\t\t\t\u0026instance.InstanceDataDiskArgs{\n\t\t\t\t\tDataDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\t\t\tDataDiskSize: pulumi.Int(50),\n\t\t\t\t\tEncrypt: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tagKey\": pulumi.Any(\"tagValue\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// attachment security group\n\t\t_, err = Cvm.NewSecurityGroupAttachment(ctx, \"exampleSecurityGroupAttachment\", \u0026Cvm.SecurityGroupAttachmentArgs{\n\t\t\tInstanceId: exampleInstance.ID(),\n\t\t\tSecurityGroupId: exampleGroup.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Vpc.Instance;\nimport com.pulumi.tencentcloud.Vpc.InstanceArgs;\nimport com.pulumi.tencentcloud.Subnet.Instance;\nimport com.pulumi.tencentcloud.Subnet.InstanceArgs;\nimport com.pulumi.tencentcloud.Security.Group;\nimport com.pulumi.tencentcloud.Security.GroupArgs;\nimport com.pulumi.tencentcloud.Instance.Instance;\nimport com.pulumi.tencentcloud.Instance.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.inputs.InstanceDataDiskArgs;\nimport com.pulumi.tencentcloud.Cvm.SecurityGroupAttachment;\nimport com.pulumi.tencentcloud.Cvm.SecurityGroupAttachmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // create vpc\n var vpc = new Instance(\"vpc\", InstanceArgs.builder() \n .cidrBlock(\"10.0.0.0/16\")\n .build());\n\n // create vpc subnet\n var subnet = new Instance(\"subnet\", InstanceArgs.builder() \n .vpcId(vpc.id())\n .availabilityZone(\"ap-guangzhou-6\")\n .cidrBlock(\"10.0.20.0/28\")\n .isMulticast(false)\n .build());\n\n // create security group\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .description(\"sg desc.\")\n .projectId(0)\n .tags(Map.of(\"example\", \"test\"))\n .build());\n\n // create cvm\n var exampleInstance = new Instance(\"exampleInstance\", InstanceArgs.builder() \n .instanceName(\"tf_example\")\n .availabilityZone(\"ap-guangzhou-6\")\n .imageId(\"img-9qrfy1xt\")\n .instanceType(\"SA3.MEDIUM4\")\n .systemDiskType(\"CLOUD_HSSD\")\n .systemDiskSize(100)\n .hostname(\"example\")\n .projectId(0)\n .vpcId(vpc.id())\n .subnetId(subnet.id())\n .dataDisks(InstanceDataDiskArgs.builder()\n .dataDiskType(\"CLOUD_HSSD\")\n .dataDiskSize(50)\n .encrypt(false)\n .build())\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .build());\n\n // attachment security group\n var exampleSecurityGroupAttachment = new SecurityGroupAttachment(\"exampleSecurityGroupAttachment\", SecurityGroupAttachmentArgs.builder() \n .instanceId(exampleInstance.id())\n .securityGroupId(exampleGroup.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # create vpc\n vpc:\n type: tencentcloud:Vpc:Instance\n properties:\n cidrBlock: 10.0.0.0/16\n # create vpc subnet\n subnet:\n type: tencentcloud:Subnet:Instance\n properties:\n vpcId: ${vpc.id}\n availabilityZone: ap-guangzhou-6\n cidrBlock: 10.0.20.0/28\n isMulticast: false\n # create security group\n exampleGroup:\n type: tencentcloud:Security:Group\n properties:\n description: sg desc.\n projectId: 0\n tags:\n example: test\n # create cvm\n exampleInstance:\n type: tencentcloud:Instance:Instance\n properties:\n instanceName: tf_example\n availabilityZone: ap-guangzhou-6\n imageId: img-9qrfy1xt\n instanceType: SA3.MEDIUM4\n systemDiskType: CLOUD_HSSD\n systemDiskSize: 100\n hostname: example\n projectId: 0\n vpcId: ${vpc.id}\n subnetId: ${subnet.id}\n dataDisks:\n - dataDiskType: CLOUD_HSSD\n dataDiskSize: 50\n encrypt: false\n tags:\n tagKey: tagValue\n # attachment security group\n exampleSecurityGroupAttachment:\n type: tencentcloud:Cvm:SecurityGroupAttachment\n properties:\n instanceId: ${exampleInstance.id}\n securityGroupId: ${exampleGroup.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\ncvm security_group_attachment can be imported using the id, e.g.\n\n```sh\n$ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp\n```\n\n", "properties": { "instanceId": { "type": "string", @@ -144347,7 +144623,7 @@ } }, "tencentcloud:Cvm/syncImage:SyncImage": { - "description": "Provides a resource to create a cvm sync_image\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst syncImage = new tencentcloud.cvm.SyncImage(\"syncImage\", {\n destinationRegions: [\n \"ap-guangzhou\",\n \"ap-shanghai\",\n ],\n imageId: \"img-xxxxxx\",\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nsync_image = tencentcloud.cvm.SyncImage(\"syncImage\",\n destination_regions=[\n \"ap-guangzhou\",\n \"ap-shanghai\",\n ],\n image_id=\"img-xxxxxx\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var syncImage = new Tencentcloud.Cvm.SyncImage(\"syncImage\", new()\n {\n DestinationRegions = new[]\n {\n \"ap-guangzhou\",\n \"ap-shanghai\",\n },\n ImageId = \"img-xxxxxx\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Cvm.NewSyncImage(ctx, \"syncImage\", \u0026Cvm.SyncImageArgs{\n\t\t\tDestinationRegions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"ap-guangzhou\"),\n\t\t\t\tpulumi.String(\"ap-shanghai\"),\n\t\t\t},\n\t\t\tImageId: pulumi.String(\"img-xxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Cvm.SyncImage;\nimport com.pulumi.tencentcloud.Cvm.SyncImageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var syncImage = new SyncImage(\"syncImage\", SyncImageArgs.builder() \n .destinationRegions( \n \"ap-guangzhou\",\n \"ap-shanghai\")\n .imageId(\"img-xxxxxx\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n syncImage:\n type: tencentcloud:Cvm:SyncImage\n properties:\n destinationRegions:\n - ap-guangzhou\n - ap-shanghai\n imageId: img-xxxxxx\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a resource to create a cvm sync_image\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst exampleInstance = tencentcloud.Images.getInstance({\n imageTypes: [\"PRIVATE_IMAGE\"],\n imageNameRegex: \"MyImage\",\n});\nconst exampleSyncImage = new tencentcloud.cvm.SyncImage(\"exampleSyncImage\", {\n imageId: exampleInstance.then(exampleInstance =\u003e exampleInstance.images?.[0]?.imageId),\n destinationRegions: [\n \"ap-guangzhou\",\n \"ap-shanghai\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\nimport tencentcloud_iac_pulumi as tencentcloud\n\nexample_instance = tencentcloud.Images.get_instance(image_types=[\"PRIVATE_IMAGE\"],\n image_name_regex=\"MyImage\")\nexample_sync_image = tencentcloud.cvm.SyncImage(\"exampleSyncImage\",\n image_id=example_instance.images[0].image_id,\n destination_regions=[\n \"ap-guangzhou\",\n \"ap-shanghai\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleInstance = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n ImageTypes = new[]\n {\n \"PRIVATE_IMAGE\",\n },\n ImageNameRegex = \"MyImage\",\n });\n\n var exampleSyncImage = new Tencentcloud.Cvm.SyncImage(\"exampleSyncImage\", new()\n {\n ImageId = exampleInstance.Apply(getInstanceResult =\u003e getInstanceResult.Images[0]?.ImageId),\n DestinationRegions = new[]\n {\n \"ap-guangzhou\",\n \"ap-shanghai\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleInstance, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tImageTypes: []string{\n\t\t\t\t\"PRIVATE_IMAGE\",\n\t\t\t},\n\t\t\tImageNameRegex: pulumi.StringRef(\"MyImage\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Cvm.NewSyncImage(ctx, \"exampleSyncImage\", \u0026Cvm.SyncImageArgs{\n\t\t\tImageId: pulumi.String(exampleInstance.Images[0].ImageId),\n\t\t\tDestinationRegions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"ap-guangzhou\"),\n\t\t\t\tpulumi.String(\"ap-shanghai\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport com.pulumi.tencentcloud.Cvm.SyncImage;\nimport com.pulumi.tencentcloud.Cvm.SyncImageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleInstance = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .imageTypes(\"PRIVATE_IMAGE\")\n .imageNameRegex(\"MyImage\")\n .build());\n\n var exampleSyncImage = new SyncImage(\"exampleSyncImage\", SyncImageArgs.builder() \n .imageId(exampleInstance.applyValue(getInstanceResult -\u003e getInstanceResult.images()[0].imageId()))\n .destinationRegions( \n \"ap-guangzhou\",\n \"ap-shanghai\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSyncImage:\n type: tencentcloud:Cvm:SyncImage\n properties:\n imageId: ${exampleInstance.images[0].imageId}\n destinationRegions:\n - ap-guangzhou\n - ap-shanghai\nvariables:\n exampleInstance:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n imageTypes:\n - PRIVATE_IMAGE\n imageNameRegex: MyImage\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "destinationRegions": { "type": "array", @@ -158663,7 +158939,7 @@ } }, "tencentcloud:Eip/addressTransform:AddressTransform": { - "description": "Provides a resource to create a eip address_transform\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst addressTransform = new tencentcloud.eip.AddressTransform(\"addressTransform\", {instanceId: \"\"});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\naddress_transform = tencentcloud.eip.AddressTransform(\"addressTransform\", instance_id=\"\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var addressTransform = new Tencentcloud.Eip.AddressTransform(\"addressTransform\", new()\n {\n InstanceId = \"\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eip.NewAddressTransform(ctx, \"addressTransform\", \u0026Eip.AddressTransformArgs{\n\t\t\tInstanceId: pulumi.String(\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eip.AddressTransform;\nimport com.pulumi.tencentcloud.Eip.AddressTransformArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var addressTransform = new AddressTransform(\"addressTransform\", AddressTransformArgs.builder() \n .instanceId(\"\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n addressTransform:\n type: tencentcloud:Eip:AddressTransform\n properties:\n instanceId:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\neip address_transform can be imported using the id, e.g.\n\n```sh\n$ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id\n```\n\n", + "description": "Provides a resource to create a eip address_transform\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\n// create vpc\nconst vpc = new tencentcloud.vpc.Instance(\"vpc\", {cidrBlock: \"10.0.0.0/16\"});\n// create vpc subnet\nconst subnet = new tencentcloud.subnet.Instance(\"subnet\", {\n vpcId: vpc.id,\n availabilityZone: \"ap-guangzhou-6\",\n cidrBlock: \"10.0.20.0/28\",\n isMulticast: false,\n});\n// create cvm\nconst exampleInstance = new tencentcloud.instance.Instance(\"exampleInstance\", {\n instanceName: \"tf_example\",\n availabilityZone: \"ap-guangzhou-6\",\n imageId: \"img-9qrfy1xt\",\n instanceType: \"SA3.MEDIUM4\",\n systemDiskType: \"CLOUD_HSSD\",\n systemDiskSize: 100,\n hostname: \"example\",\n projectId: 0,\n vpcId: vpc.id,\n subnetId: subnet.id,\n allocatePublicIp: true,\n internetMaxBandwidthOut: 10,\n dataDisks: [{\n dataDiskType: \"CLOUD_HSSD\",\n dataDiskSize: 50,\n encrypt: false,\n }],\n tags: {\n tagKey: \"tagValue\",\n },\n});\nconst exampleAddressTransform = new tencentcloud.eip.AddressTransform(\"exampleAddressTransform\", {instanceId: exampleInstance.id});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\n# create vpc\nvpc = tencentcloud.vpc.Instance(\"vpc\", cidr_block=\"10.0.0.0/16\")\n# create vpc subnet\nsubnet = tencentcloud.subnet.Instance(\"subnet\",\n vpc_id=vpc.id,\n availability_zone=\"ap-guangzhou-6\",\n cidr_block=\"10.0.20.0/28\",\n is_multicast=False)\n# create cvm\nexample_instance = tencentcloud.instance.Instance(\"exampleInstance\",\n instance_name=\"tf_example\",\n availability_zone=\"ap-guangzhou-6\",\n image_id=\"img-9qrfy1xt\",\n instance_type=\"SA3.MEDIUM4\",\n system_disk_type=\"CLOUD_HSSD\",\n system_disk_size=100,\n hostname=\"example\",\n project_id=0,\n vpc_id=vpc.id,\n subnet_id=subnet.id,\n allocate_public_ip=True,\n internet_max_bandwidth_out=10,\n data_disks=[tencentcloud.instance.InstanceDataDiskArgs(\n data_disk_type=\"CLOUD_HSSD\",\n data_disk_size=50,\n encrypt=False,\n )],\n tags={\n \"tagKey\": \"tagValue\",\n })\nexample_address_transform = tencentcloud.eip.AddressTransform(\"exampleAddressTransform\", instance_id=example_instance.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // create vpc\n var vpc = new Tencentcloud.Vpc.Instance(\"vpc\", new()\n {\n CidrBlock = \"10.0.0.0/16\",\n });\n\n // create vpc subnet\n var subnet = new Tencentcloud.Subnet.Instance(\"subnet\", new()\n {\n VpcId = vpc.Id,\n AvailabilityZone = \"ap-guangzhou-6\",\n CidrBlock = \"10.0.20.0/28\",\n IsMulticast = false,\n });\n\n // create cvm\n var exampleInstance = new Tencentcloud.Instance.Instance(\"exampleInstance\", new()\n {\n InstanceName = \"tf_example\",\n AvailabilityZone = \"ap-guangzhou-6\",\n ImageId = \"img-9qrfy1xt\",\n InstanceType = \"SA3.MEDIUM4\",\n SystemDiskType = \"CLOUD_HSSD\",\n SystemDiskSize = 100,\n Hostname = \"example\",\n ProjectId = 0,\n VpcId = vpc.Id,\n SubnetId = subnet.Id,\n AllocatePublicIp = true,\n InternetMaxBandwidthOut = 10,\n DataDisks = new[]\n {\n new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs\n {\n DataDiskType = \"CLOUD_HSSD\",\n DataDiskSize = 50,\n Encrypt = false,\n },\n },\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n });\n\n var exampleAddressTransform = new Tencentcloud.Eip.AddressTransform(\"exampleAddressTransform\", new()\n {\n InstanceId = exampleInstance.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// create vpc\n\t\tvpc, err := Vpc.NewInstance(ctx, \"vpc\", \u0026Vpc.InstanceArgs{\n\t\t\tCidrBlock: pulumi.String(\"10.0.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create vpc subnet\n\t\tsubnet, err := Subnet.NewInstance(ctx, \"subnet\", \u0026Subnet.InstanceArgs{\n\t\t\tVpcId: vpc.ID(),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tCidrBlock: pulumi.String(\"10.0.20.0/28\"),\n\t\t\tIsMulticast: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create cvm\n\t\texampleInstance, err := Instance.NewInstance(ctx, \"exampleInstance\", \u0026Instance.InstanceArgs{\n\t\t\tInstanceName: pulumi.String(\"tf_example\"),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tImageId: pulumi.String(\"img-9qrfy1xt\"),\n\t\t\tInstanceType: pulumi.String(\"SA3.MEDIUM4\"),\n\t\t\tSystemDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\tSystemDiskSize: pulumi.Int(100),\n\t\t\tHostname: pulumi.String(\"example\"),\n\t\t\tProjectId: pulumi.Int(0),\n\t\t\tVpcId: vpc.ID(),\n\t\t\tSubnetId: subnet.ID(),\n\t\t\tAllocatePublicIp: pulumi.Bool(true),\n\t\t\tInternetMaxBandwidthOut: pulumi.Int(10),\n\t\t\tDataDisks: instance.InstanceDataDiskArray{\n\t\t\t\t\u0026instance.InstanceDataDiskArgs{\n\t\t\t\t\tDataDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\t\t\tDataDiskSize: pulumi.Int(50),\n\t\t\t\t\tEncrypt: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tagKey\": pulumi.Any(\"tagValue\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Eip.NewAddressTransform(ctx, \"exampleAddressTransform\", \u0026Eip.AddressTransformArgs{\n\t\t\tInstanceId: exampleInstance.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Vpc.Instance;\nimport com.pulumi.tencentcloud.Vpc.InstanceArgs;\nimport com.pulumi.tencentcloud.Subnet.Instance;\nimport com.pulumi.tencentcloud.Subnet.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.Instance;\nimport com.pulumi.tencentcloud.Instance.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.inputs.InstanceDataDiskArgs;\nimport com.pulumi.tencentcloud.Eip.AddressTransform;\nimport com.pulumi.tencentcloud.Eip.AddressTransformArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // create vpc\n var vpc = new Instance(\"vpc\", InstanceArgs.builder() \n .cidrBlock(\"10.0.0.0/16\")\n .build());\n\n // create vpc subnet\n var subnet = new Instance(\"subnet\", InstanceArgs.builder() \n .vpcId(vpc.id())\n .availabilityZone(\"ap-guangzhou-6\")\n .cidrBlock(\"10.0.20.0/28\")\n .isMulticast(false)\n .build());\n\n // create cvm\n var exampleInstance = new Instance(\"exampleInstance\", InstanceArgs.builder() \n .instanceName(\"tf_example\")\n .availabilityZone(\"ap-guangzhou-6\")\n .imageId(\"img-9qrfy1xt\")\n .instanceType(\"SA3.MEDIUM4\")\n .systemDiskType(\"CLOUD_HSSD\")\n .systemDiskSize(100)\n .hostname(\"example\")\n .projectId(0)\n .vpcId(vpc.id())\n .subnetId(subnet.id())\n .allocatePublicIp(true)\n .internetMaxBandwidthOut(10)\n .dataDisks(InstanceDataDiskArgs.builder()\n .dataDiskType(\"CLOUD_HSSD\")\n .dataDiskSize(50)\n .encrypt(false)\n .build())\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .build());\n\n var exampleAddressTransform = new AddressTransform(\"exampleAddressTransform\", AddressTransformArgs.builder() \n .instanceId(exampleInstance.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # create vpc\n vpc:\n type: tencentcloud:Vpc:Instance\n properties:\n cidrBlock: 10.0.0.0/16\n # create vpc subnet\n subnet:\n type: tencentcloud:Subnet:Instance\n properties:\n vpcId: ${vpc.id}\n availabilityZone: ap-guangzhou-6\n cidrBlock: 10.0.20.0/28\n isMulticast: false\n # create cvm\n exampleInstance:\n type: tencentcloud:Instance:Instance\n properties:\n instanceName: tf_example\n availabilityZone: ap-guangzhou-6\n imageId: img-9qrfy1xt\n instanceType: SA3.MEDIUM4\n systemDiskType: CLOUD_HSSD\n systemDiskSize: 100\n hostname: example\n projectId: 0\n vpcId: ${vpc.id}\n subnetId: ${subnet.id}\n allocatePublicIp: true\n internetMaxBandwidthOut: 10\n dataDisks:\n - dataDiskType: CLOUD_HSSD\n dataDiskSize: 50\n encrypt: false\n tags:\n tagKey: tagValue\n exampleAddressTransform:\n type: tencentcloud:Eip:AddressTransform\n properties:\n instanceId: ${exampleInstance.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "instanceId": { "type": "string", @@ -158987,7 +159263,7 @@ } }, "tencentcloud:Eip/normalAddressReturn:NormalAddressReturn": { - "description": "Provides a resource to create a vpc normal_address_return\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst normalAddressReturn = new tencentcloud.eip.NormalAddressReturn(\"normalAddressReturn\", {addressIps: [\"172.16.17.32\"]});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nnormal_address_return = tencentcloud.eip.NormalAddressReturn(\"normalAddressReturn\", address_ips=[\"172.16.17.32\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var normalAddressReturn = new Tencentcloud.Eip.NormalAddressReturn(\"normalAddressReturn\", new()\n {\n AddressIps = new[]\n {\n \"172.16.17.32\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eip.NewNormalAddressReturn(ctx, \"normalAddressReturn\", \u0026Eip.NormalAddressReturnArgs{\n\t\t\tAddressIps: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"172.16.17.32\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eip.NormalAddressReturn;\nimport com.pulumi.tencentcloud.Eip.NormalAddressReturnArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var normalAddressReturn = new NormalAddressReturn(\"normalAddressReturn\", NormalAddressReturnArgs.builder() \n .addressIps(\"172.16.17.32\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n normalAddressReturn:\n type: tencentcloud:Eip:NormalAddressReturn\n properties:\n addressIps:\n - 172.16.17.32\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a resource to create a vpc normal_address_return\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = new tencentcloud.eip.NormalAddressReturn(\"example\", {addressIps: [\"172.16.17.32\"]});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\nexample = tencentcloud.eip.NormalAddressReturn(\"example\", address_ips=[\"172.16.17.32\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Tencentcloud.Eip.NormalAddressReturn(\"example\", new()\n {\n AddressIps = new[]\n {\n \"172.16.17.32\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eip.NewNormalAddressReturn(ctx, \"example\", \u0026Eip.NormalAddressReturnArgs{\n\t\t\tAddressIps: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"172.16.17.32\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eip.NormalAddressReturn;\nimport com.pulumi.tencentcloud.Eip.NormalAddressReturnArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new NormalAddressReturn(\"example\", NormalAddressReturnArgs.builder() \n .addressIps(\"172.16.17.32\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: tencentcloud:Eip:NormalAddressReturn\n properties:\n addressIps:\n - 172.16.17.32\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "addressIps": { "type": "array", @@ -159023,7 +159299,7 @@ } }, "tencentcloud:Eip/publicAddressAdjust:PublicAddressAdjust": { - "description": "Provides a resource to create a eip public_address_adjust\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst publicAddressAdjust = new tencentcloud.eip.PublicAddressAdjust(\"publicAddressAdjust\", {\n addressId: \"eip-erft45fu\",\n instanceId: \"ins-cr2rfq78\",\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\npublic_address_adjust = tencentcloud.eip.PublicAddressAdjust(\"publicAddressAdjust\",\n address_id=\"eip-erft45fu\",\n instance_id=\"ins-cr2rfq78\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var publicAddressAdjust = new Tencentcloud.Eip.PublicAddressAdjust(\"publicAddressAdjust\", new()\n {\n AddressId = \"eip-erft45fu\",\n InstanceId = \"ins-cr2rfq78\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eip.NewPublicAddressAdjust(ctx, \"publicAddressAdjust\", \u0026Eip.PublicAddressAdjustArgs{\n\t\t\tAddressId: pulumi.String(\"eip-erft45fu\"),\n\t\t\tInstanceId: pulumi.String(\"ins-cr2rfq78\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eip.PublicAddressAdjust;\nimport com.pulumi.tencentcloud.Eip.PublicAddressAdjustArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var publicAddressAdjust = new PublicAddressAdjust(\"publicAddressAdjust\", PublicAddressAdjustArgs.builder() \n .addressId(\"eip-erft45fu\")\n .instanceId(\"ins-cr2rfq78\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n publicAddressAdjust:\n type: tencentcloud:Eip:PublicAddressAdjust\n properties:\n addressId: eip-erft45fu\n instanceId: ins-cr2rfq78\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a resource to create a eip public_address_adjust\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\n// create vpc\nconst vpc = new tencentcloud.vpc.Instance(\"vpc\", {cidrBlock: \"10.0.0.0/16\"});\n// create vpc subnet\nconst subnet = new tencentcloud.subnet.Instance(\"subnet\", {\n vpcId: vpc.id,\n availabilityZone: \"ap-guangzhou-6\",\n cidrBlock: \"10.0.20.0/28\",\n isMulticast: false,\n});\n// create cvm\nconst exampleInstance = new tencentcloud.instance.Instance(\"exampleInstance\", {\n instanceName: \"tf_example\",\n availabilityZone: \"ap-guangzhou-6\",\n imageId: \"img-9qrfy1xt\",\n instanceType: \"SA3.MEDIUM4\",\n systemDiskType: \"CLOUD_HSSD\",\n systemDiskSize: 100,\n hostname: \"example\",\n projectId: 0,\n vpcId: vpc.id,\n subnetId: subnet.id,\n allocatePublicIp: true,\n internetMaxBandwidthOut: 10,\n dataDisks: [{\n dataDiskType: \"CLOUD_HSSD\",\n dataDiskSize: 50,\n encrypt: false,\n }],\n tags: {\n tagKey: \"tagValue\",\n },\n});\n// create eip\nconst exampleEip_instanceInstance = new tencentcloud.eip.Instance(\"exampleEip/instanceInstance\", {});\nconst examplePublicAddressAdjust = new tencentcloud.eip.PublicAddressAdjust(\"examplePublicAddressAdjust\", {\n instanceId: exampleInstance.id,\n addressId: exampleEip / instanceInstance.id,\n});\n```\n```python\nimport pulumi\nimport tencentcloud_iac_pulumi as tencentcloud\n\n# create vpc\nvpc = tencentcloud.vpc.Instance(\"vpc\", cidr_block=\"10.0.0.0/16\")\n# create vpc subnet\nsubnet = tencentcloud.subnet.Instance(\"subnet\",\n vpc_id=vpc.id,\n availability_zone=\"ap-guangzhou-6\",\n cidr_block=\"10.0.20.0/28\",\n is_multicast=False)\n# create cvm\nexample_instance = tencentcloud.instance.Instance(\"exampleInstance\",\n instance_name=\"tf_example\",\n availability_zone=\"ap-guangzhou-6\",\n image_id=\"img-9qrfy1xt\",\n instance_type=\"SA3.MEDIUM4\",\n system_disk_type=\"CLOUD_HSSD\",\n system_disk_size=100,\n hostname=\"example\",\n project_id=0,\n vpc_id=vpc.id,\n subnet_id=subnet.id,\n allocate_public_ip=True,\n internet_max_bandwidth_out=10,\n data_disks=[tencentcloud.instance.InstanceDataDiskArgs(\n data_disk_type=\"CLOUD_HSSD\",\n data_disk_size=50,\n encrypt=False,\n )],\n tags={\n \"tagKey\": \"tagValue\",\n })\n# create eip\nexample_eip_instance_instance = tencentcloud.eip.Instance(\"exampleEip/instanceInstance\")\nexample_public_address_adjust = tencentcloud.eip.PublicAddressAdjust(\"examplePublicAddressAdjust\",\n instance_id=example_instance.id,\n address_id=example_eip / instance_instance[\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // create vpc\n var vpc = new Tencentcloud.Vpc.Instance(\"vpc\", new()\n {\n CidrBlock = \"10.0.0.0/16\",\n });\n\n // create vpc subnet\n var subnet = new Tencentcloud.Subnet.Instance(\"subnet\", new()\n {\n VpcId = vpc.Id,\n AvailabilityZone = \"ap-guangzhou-6\",\n CidrBlock = \"10.0.20.0/28\",\n IsMulticast = false,\n });\n\n // create cvm\n var exampleInstance = new Tencentcloud.Instance.Instance(\"exampleInstance\", new()\n {\n InstanceName = \"tf_example\",\n AvailabilityZone = \"ap-guangzhou-6\",\n ImageId = \"img-9qrfy1xt\",\n InstanceType = \"SA3.MEDIUM4\",\n SystemDiskType = \"CLOUD_HSSD\",\n SystemDiskSize = 100,\n Hostname = \"example\",\n ProjectId = 0,\n VpcId = vpc.Id,\n SubnetId = subnet.Id,\n AllocatePublicIp = true,\n InternetMaxBandwidthOut = 10,\n DataDisks = new[]\n {\n new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs\n {\n DataDiskType = \"CLOUD_HSSD\",\n DataDiskSize = 50,\n Encrypt = false,\n },\n },\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n });\n\n // create eip\n var exampleEip_instanceInstance = new Tencentcloud.Eip.Instance(\"exampleEip/instanceInstance\");\n\n var examplePublicAddressAdjust = new Tencentcloud.Eip.PublicAddressAdjust(\"examplePublicAddressAdjust\", new()\n {\n InstanceId = exampleInstance.Id,\n AddressId = exampleEip / instanceInstance.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// create vpc\n\t\tvpc, err := Vpc.NewInstance(ctx, \"vpc\", \u0026Vpc.InstanceArgs{\n\t\t\tCidrBlock: pulumi.String(\"10.0.0.0/16\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create vpc subnet\n\t\tsubnet, err := Subnet.NewInstance(ctx, \"subnet\", \u0026Subnet.InstanceArgs{\n\t\t\tVpcId: vpc.ID(),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tCidrBlock: pulumi.String(\"10.0.20.0/28\"),\n\t\t\tIsMulticast: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create cvm\n\t\texampleInstance, err := Instance.NewInstance(ctx, \"exampleInstance\", \u0026Instance.InstanceArgs{\n\t\t\tInstanceName: pulumi.String(\"tf_example\"),\n\t\t\tAvailabilityZone: pulumi.String(\"ap-guangzhou-6\"),\n\t\t\tImageId: pulumi.String(\"img-9qrfy1xt\"),\n\t\t\tInstanceType: pulumi.String(\"SA3.MEDIUM4\"),\n\t\t\tSystemDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\tSystemDiskSize: pulumi.Int(100),\n\t\t\tHostname: pulumi.String(\"example\"),\n\t\t\tProjectId: pulumi.Int(0),\n\t\t\tVpcId: vpc.ID(),\n\t\t\tSubnetId: subnet.ID(),\n\t\t\tAllocatePublicIp: pulumi.Bool(true),\n\t\t\tInternetMaxBandwidthOut: pulumi.Int(10),\n\t\t\tDataDisks: instance.InstanceDataDiskArray{\n\t\t\t\t\u0026instance.InstanceDataDiskArgs{\n\t\t\t\t\tDataDiskType: pulumi.String(\"CLOUD_HSSD\"),\n\t\t\t\t\tDataDiskSize: pulumi.Int(50),\n\t\t\t\t\tEncrypt: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tagKey\": pulumi.Any(\"tagValue\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// create eip\n\t\t_, err = Eip.NewInstance(ctx, \"exampleEip/instanceInstance\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Eip.NewPublicAddressAdjust(ctx, \"examplePublicAddressAdjust\", \u0026Eip.PublicAddressAdjustArgs{\n\t\t\tInstanceId: exampleInstance.ID(),\n\t\t\tAddressId: exampleEip / instanceInstance.Id,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Vpc.Instance;\nimport com.pulumi.tencentcloud.Vpc.InstanceArgs;\nimport com.pulumi.tencentcloud.Subnet.Instance;\nimport com.pulumi.tencentcloud.Subnet.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.Instance;\nimport com.pulumi.tencentcloud.Instance.InstanceArgs;\nimport com.pulumi.tencentcloud.Instance.inputs.InstanceDataDiskArgs;\nimport com.pulumi.tencentcloud.Eip.Instance;\nimport com.pulumi.tencentcloud.Eip.PublicAddressAdjust;\nimport com.pulumi.tencentcloud.Eip.PublicAddressAdjustArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // create vpc\n var vpc = new Instance(\"vpc\", InstanceArgs.builder() \n .cidrBlock(\"10.0.0.0/16\")\n .build());\n\n // create vpc subnet\n var subnet = new Instance(\"subnet\", InstanceArgs.builder() \n .vpcId(vpc.id())\n .availabilityZone(\"ap-guangzhou-6\")\n .cidrBlock(\"10.0.20.0/28\")\n .isMulticast(false)\n .build());\n\n // create cvm\n var exampleInstance = new Instance(\"exampleInstance\", InstanceArgs.builder() \n .instanceName(\"tf_example\")\n .availabilityZone(\"ap-guangzhou-6\")\n .imageId(\"img-9qrfy1xt\")\n .instanceType(\"SA3.MEDIUM4\")\n .systemDiskType(\"CLOUD_HSSD\")\n .systemDiskSize(100)\n .hostname(\"example\")\n .projectId(0)\n .vpcId(vpc.id())\n .subnetId(subnet.id())\n .allocatePublicIp(true)\n .internetMaxBandwidthOut(10)\n .dataDisks(InstanceDataDiskArgs.builder()\n .dataDiskType(\"CLOUD_HSSD\")\n .dataDiskSize(50)\n .encrypt(false)\n .build())\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .build());\n\n // create eip\n var exampleEip_instanceInstance = new Instance(\"exampleEip/instanceInstance\");\n\n var examplePublicAddressAdjust = new PublicAddressAdjust(\"examplePublicAddressAdjust\", PublicAddressAdjustArgs.builder() \n .instanceId(exampleInstance.id())\n .addressId(exampleEip / instanceInstance.id())\n .build());\n\n }\n}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "addressId": { "type": "string", @@ -206073,8 +206349,15 @@ } }, "tencentcloud:Tdmq/rocketmqVipInstance:RocketmqVipInstance": { - "description": "Provides a resource to create a tdmq rocketmq_vip_instance\n\n\u003e **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`.\n\n", + "description": "Provides a resource to create a tdmq rocketmq_vip_instance\n\n\u003e **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`.\n\u003e **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported.\n\n", "properties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/types/tencentcloud:Tdmq/RocketmqVipInstanceIpRule:RocketmqVipInstanceIpRule" + }, + "description": "Public IP access control rules.\n" + }, "name": { "type": "string", "description": "Instance name.\n" @@ -206085,7 +206368,7 @@ }, "spec": { "type": "string", - "description": "Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" + "description": "Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" }, "storageSize": { "type": "integer", @@ -206117,6 +206400,13 @@ "zoneIds" ], "inputProperties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/types/tencentcloud:Tdmq/RocketmqVipInstanceIpRule:RocketmqVipInstanceIpRule" + }, + "description": "Public IP access control rules.\n" + }, "name": { "type": "string", "description": "Instance name.\n" @@ -206127,7 +206417,7 @@ }, "spec": { "type": "string", - "description": "Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" + "description": "Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" }, "storageSize": { "type": "integer", @@ -206160,6 +206450,13 @@ "stateInputs": { "description": "Input properties used for looking up and filtering RocketmqVipInstance resources.\n", "properties": { + "ipRules": { + "type": "array", + "items": { + "$ref": "#/types/tencentcloud:Tdmq/RocketmqVipInstanceIpRule:RocketmqVipInstanceIpRule" + }, + "description": "Public IP access control rules.\n" + }, "name": { "type": "string", "description": "Instance name.\n" @@ -206170,7 +206467,7 @@ }, "spec": { "type": "string", - "description": "Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" + "description": "Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`.\n" }, "storageSize": { "type": "integer", @@ -244374,7 +244671,7 @@ } }, "tencentcloud:Eips/getInstance:getInstance": { - "description": "Use this data source to query eip instances.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Eips.getInstance({\n eipId: \"eip-ry9h95hg\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Eips.get_instance(eip_id=\"eip-ry9h95hg\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Eips.GetInstance.Invoke(new()\n {\n EipId = \"eip-ry9h95hg\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, \u0026eips.GetInstanceArgs{\n\t\t\tEipId: pulumi.StringRef(\"eip-ry9h95hg\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = EipsFunctions.getInstance(GetInstanceArgs.builder()\n .eipId(\"eip-ry9h95hg\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments:\n eipId: eip-ry9h95hg\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query eip instances.\n\n## Example Usage\n\n### Query all eip instances\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Eips.getInstance({});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Eips.get_instance()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Eips.GetInstance.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EipsFunctions.getInstance();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query eip instances by eip ID\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Eips.getInstance({\n eipId: \"eip-ry9h95hg\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Eips.get_instance(eip_id=\"eip-ry9h95hg\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Eips.GetInstance.Invoke(new()\n {\n EipId = \"eip-ry9h95hg\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, \u0026eips.GetInstanceArgs{\n\t\t\tEipId: pulumi.StringRef(\"eip-ry9h95hg\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EipsFunctions.getInstance(GetInstanceArgs.builder()\n .eipId(\"eip-ry9h95hg\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments:\n eipId: eip-ry9h95hg\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query eip instances by eip name\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Eips.getInstance({\n eipName: \"tf-example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Eips.get_instance(eip_name=\"tf-example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Eips.GetInstance.Invoke(new()\n {\n EipName = \"tf-example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, \u0026eips.GetInstanceArgs{\n\t\t\tEipName: pulumi.StringRef(\"tf-example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EipsFunctions.getInstance(GetInstanceArgs.builder()\n .eipName(\"tf-example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments:\n eipName: tf-example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query eip instances by public ip\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Eips.getInstance({\n publicIp: \"1.12.62.3\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Eips.get_instance(public_ip=\"1.12.62.3\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Eips.GetInstance.Invoke(new()\n {\n PublicIp = \"1.12.62.3\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, \u0026eips.GetInstanceArgs{\n\t\t\tPublicIp: pulumi.StringRef(\"1.12.62.3\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EipsFunctions.getInstance(GetInstanceArgs.builder()\n .publicIp(\"1.12.62.3\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments:\n publicIp: 1.12.62.3\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query eip instances by tags\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Eips.getInstance({\n tags: {\n test: \"test\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Eips.get_instance(tags={\n \"test\": \"test\",\n})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Eips.GetInstance.Invoke(new()\n {\n Tags = \n {\n { \"test\", \"test\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Eips.GetInstance(ctx, \u0026eips.GetInstanceArgs{\n\t\t\tTags: map[string]interface{}{\n\t\t\t\t\"test\": \"test\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Eips.EipsFunctions;\nimport com.pulumi.tencentcloud.Eips.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EipsFunctions.getInstance(GetInstanceArgs.builder()\n .tags(Map.of(\"test\", \"test\"))\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Eips:getInstance\n Arguments:\n tags:\n test: test\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -247660,7 +247957,7 @@ } }, "tencentcloud:Image/getInstance:getInstance": { - "description": "Provides an available image for the user.\n\nThe Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market.\n\n\u003e **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst myFavorateImage = tencentcloud.Image.getInstance({\n filters: [{\n name: \"image-type\",\n values: [\"PUBLIC_IMAGE\"],\n }],\n osName: \"centos\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nmy_favorate_image = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs(\n name=\"image-type\",\n values=[\"PUBLIC_IMAGE\"],\n )],\n os_name=\"centos\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myFavorateImage = Tencentcloud.Image.GetInstance.Invoke(new()\n {\n Filters = new[]\n {\n new Tencentcloud.Image.Inputs.GetInstanceFilterInputArgs\n {\n Name = \"image-type\",\n Values = new[]\n {\n \"PUBLIC_IMAGE\",\n },\n },\n },\n OsName = \"centos\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Image.GetInstance(ctx, \u0026image.GetInstanceArgs{\n\t\t\tFilters: []image.GetInstanceFilter{\n\t\t\t\t{\n\t\t\t\t\tName: \"image-type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"PUBLIC_IMAGE\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsName: pulumi.StringRef(\"centos\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Image.ImageFunctions;\nimport com.pulumi.tencentcloud.Image.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var myFavorateImage = ImageFunctions.getInstance(GetInstanceArgs.builder()\n .filters(GetInstanceFilterArgs.builder()\n .name(\"image-type\")\n .values(\"PUBLIC_IMAGE\")\n .build())\n .osName(\"centos\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n myFavorateImage:\n fn::invoke:\n Function: tencentcloud:Image:getInstance\n Arguments:\n filters:\n - name: image-type\n values:\n - PUBLIC_IMAGE\n osName: centos\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides an available image for the user.\n\nThe Images data source fetch proper image, which could be one of the private images of the user and images of system\nresources provided by TencentCloud, as well as other public images and those available on the image market.\n\n\u003e **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead.\n\n## Example Usage\n\n### Query image\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Image.getInstance({});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Image.get_instance()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Image.GetInstance.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Image.GetInstance(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Image.ImageFunctions;\nimport com.pulumi.tencentcloud.Image.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImageFunctions.getInstance();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Image:getInstance\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query image by filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Image.getInstance({\n filters: [{\n name: \"image-type\",\n values: [\"PUBLIC_IMAGE\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs(\n name=\"image-type\",\n values=[\"PUBLIC_IMAGE\"],\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Image.GetInstance.Invoke(new()\n {\n Filters = new[]\n {\n new Tencentcloud.Image.Inputs.GetInstanceFilterInputArgs\n {\n Name = \"image-type\",\n Values = new[]\n {\n \"PUBLIC_IMAGE\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Image.GetInstance(ctx, \u0026image.GetInstanceArgs{\n\t\t\tFilters: []image.GetInstanceFilter{\n\t\t\t\t{\n\t\t\t\t\tName: \"image-type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"PUBLIC_IMAGE\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Image.ImageFunctions;\nimport com.pulumi.tencentcloud.Image.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImageFunctions.getInstance(GetInstanceArgs.builder()\n .filters(GetInstanceFilterArgs.builder()\n .name(\"image-type\")\n .values(\"PUBLIC_IMAGE\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Image:getInstance\n Arguments:\n filters:\n - name: image-type\n values:\n - PUBLIC_IMAGE\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query image by os name\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Image.getInstance({\n osName: \"centos\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Image.get_instance(os_name=\"centos\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Image.GetInstance.Invoke(new()\n {\n OsName = \"centos\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Image.GetInstance(ctx, \u0026image.GetInstanceArgs{\n\t\t\tOsName: pulumi.StringRef(\"centos\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Image.ImageFunctions;\nimport com.pulumi.tencentcloud.Image.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImageFunctions.getInstance(GetInstanceArgs.builder()\n .osName(\"centos\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Image:getInstance\n Arguments:\n osName: centos\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query image by image name regex\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Image.getInstance({\n imageNameRegex: \"^Windows\\\\s.*$\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Image.get_instance(image_name_regex=\"^Windows\\\\s.*$\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Image.GetInstance.Invoke(new()\n {\n ImageNameRegex = \"^Windows\\\\s.*$\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Image.GetInstance(ctx, \u0026image.GetInstanceArgs{\n\t\t\tImageNameRegex: pulumi.StringRef(\"^Windows\\\\s.*$\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Image.ImageFunctions;\nimport com.pulumi.tencentcloud.Image.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImageFunctions.getInstance(GetInstanceArgs.builder()\n .imageNameRegex(\"^Windows\\\\s.*$\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Image:getInstance\n Arguments:\n imageNameRegex: ^Windows\\s.*$\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -247726,7 +248023,7 @@ } }, "tencentcloud:Images/getInstance:getInstance": { - "description": "Use this data source to query images.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Images.getInstance({\n imageTypes: [\"PUBLIC_IMAGE\"],\n osName: \"centos 7.5\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Images.get_instance(image_types=[\"PUBLIC_IMAGE\"],\n os_name=\"centos 7.5\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n ImageTypes = new[]\n {\n \"PUBLIC_IMAGE\",\n },\n OsName = \"centos 7.5\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tImageTypes: []string{\n\t\t\t\t\"PUBLIC_IMAGE\",\n\t\t\t},\n\t\t\tOsName: pulumi.StringRef(\"centos 7.5\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .imageTypes(\"PUBLIC_IMAGE\")\n .osName(\"centos 7.5\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n imageTypes:\n - PUBLIC_IMAGE\n osName: centos 7.5\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query images.\n\n## Example Usage\n\n### Query all images\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query images by image ID\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({\n imageId: \"img-9qrfy1xt\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance(image_id=\"img-9qrfy1xt\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n ImageId = \"img-9qrfy1xt\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tImageId: pulumi.StringRef(\"img-9qrfy1xt\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .imageId(\"img-9qrfy1xt\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n imageId: img-9qrfy1xt\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query images by os name\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({\n osName: \"TencentOS Server 3.2 (Final)\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance(os_name=\"TencentOS Server 3.2 (Final)\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n OsName = \"TencentOS Server 3.2 (Final)\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tOsName: pulumi.StringRef(\"TencentOS Server 3.2 (Final)\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .osName(\"TencentOS Server 3.2 (Final)\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n osName: TencentOS Server 3.2 (Final)\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query images by image name regex\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({\n imageNameRegex: \"^TencentOS\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance(image_name_regex=\"^TencentOS\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n ImageNameRegex = \"^TencentOS\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tImageNameRegex: pulumi.StringRef(\"^TencentOS\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .imageNameRegex(\"^TencentOS\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n imageNameRegex: ^TencentOS\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query images by image type\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({\n imageTypes: [\"PUBLIC_IMAGE\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance(image_types=[\"PUBLIC_IMAGE\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n ImageTypes = new[]\n {\n \"PUBLIC_IMAGE\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tImageTypes: []string{\n\t\t\t\t\"PUBLIC_IMAGE\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .imageTypes(\"PUBLIC_IMAGE\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n imageTypes:\n - PUBLIC_IMAGE\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query images by instance type\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Images.getInstance({\n instanceType: \"S1.SMALL1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Images.get_instance(instance_type=\"S1.SMALL1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Images.GetInstance.Invoke(new()\n {\n InstanceType = \"S1.SMALL1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Images.GetInstance(ctx, \u0026images.GetInstanceArgs{\n\t\t\tInstanceType: pulumi.StringRef(\"S1.SMALL1\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Images.ImagesFunctions;\nimport com.pulumi.tencentcloud.Images.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ImagesFunctions.getInstance(GetInstanceArgs.builder()\n .instanceType(\"S1.SMALL1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Images:getInstance\n Arguments:\n instanceType: S1.SMALL1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -247807,7 +248104,7 @@ } }, "tencentcloud:Instance/getTypes:getTypes": { - "description": "Use this data source to query instances type.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Instance.getTypes({\n availabilityZone: \"ap-guangzhou-2\",\n cpuCoreCount: 2,\n memorySize: 4,\n});\nconst t1c1g = tencentcloud.Instance.getTypes({\n cpuCoreCount: 1,\n excludeSoldOut: true,\n filters: [\n {\n name: \"instance-charge-type\",\n values: [\"POSTPAID_BY_HOUR\"],\n },\n {\n name: \"zone\",\n values: [\"ap-shanghai-2\"],\n },\n ],\n memorySize: 1,\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Instance.get_types(availability_zone=\"ap-guangzhou-2\",\n cpu_core_count=2,\n memory_size=4)\nt1c1g = tencentcloud.Instance.get_types(cpu_core_count=1,\n exclude_sold_out=True,\n filters=[\n tencentcloud.instance.GetTypesFilterArgs(\n name=\"instance-charge-type\",\n values=[\"POSTPAID_BY_HOUR\"],\n ),\n tencentcloud.instance.GetTypesFilterArgs(\n name=\"zone\",\n values=[\"ap-shanghai-2\"],\n ),\n ],\n memory_size=1)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Instance.GetTypes.Invoke(new()\n {\n AvailabilityZone = \"ap-guangzhou-2\",\n CpuCoreCount = 2,\n MemorySize = 4,\n });\n\n var t1c1g = Tencentcloud.Instance.GetTypes.Invoke(new()\n {\n CpuCoreCount = 1,\n ExcludeSoldOut = true,\n Filters = new[]\n {\n new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs\n {\n Name = \"instance-charge-type\",\n Values = new[]\n {\n \"POSTPAID_BY_HOUR\",\n },\n },\n new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs\n {\n Name = \"zone\",\n Values = new[]\n {\n \"ap-shanghai-2\",\n },\n },\n },\n MemorySize = 1,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instance.GetTypes(ctx, \u0026instance.GetTypesArgs{\n\t\t\tAvailabilityZone: pulumi.StringRef(\"ap-guangzhou-2\"),\n\t\t\tCpuCoreCount: pulumi.IntRef(2),\n\t\t\tMemorySize: pulumi.IntRef(4),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Instance.GetTypes(ctx, \u0026instance.GetTypesArgs{\n\t\t\tCpuCoreCount: pulumi.IntRef(1),\n\t\t\tExcludeSoldOut: pulumi.BoolRef(true),\n\t\t\tFilters: []instance.GetTypesFilter{\n\t\t\t\t{\n\t\t\t\t\tName: \"instance-charge-type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"POSTPAID_BY_HOUR\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tName: \"zone\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"ap-shanghai-2\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMemorySize: pulumi.IntRef(1),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instance.InstanceFunctions;\nimport com.pulumi.tencentcloud.Instance.inputs.GetTypesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = InstanceFunctions.getTypes(GetTypesArgs.builder()\n .availabilityZone(\"ap-guangzhou-2\")\n .cpuCoreCount(2)\n .memorySize(4)\n .build());\n\n final var t1c1g = InstanceFunctions.getTypes(GetTypesArgs.builder()\n .cpuCoreCount(1)\n .excludeSoldOut(true)\n .filters( \n GetTypesFilterArgs.builder()\n .name(\"instance-charge-type\")\n .values(\"POSTPAID_BY_HOUR\")\n .build(),\n GetTypesFilterArgs.builder()\n .name(\"zone\")\n .values(\"ap-shanghai-2\")\n .build())\n .memorySize(1)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Instance:getTypes\n Arguments:\n availabilityZone: ap-guangzhou-2\n cpuCoreCount: 2\n memorySize: 4\n t1c1g:\n fn::invoke:\n Function: tencentcloud:Instance:getTypes\n Arguments:\n cpuCoreCount: 1\n excludeSoldOut: true\n filters:\n - name: instance-charge-type\n values:\n - POSTPAID_BY_HOUR\n - name: zone\n values:\n - ap-shanghai-2\n memorySize: 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query instances type.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instance.getTypes({\n availabilityZone: \"ap-guangzhou-6\",\n cpuCoreCount: 4,\n memorySize: 8,\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instance.get_types(availability_zone=\"ap-guangzhou-6\",\n cpu_core_count=4,\n memory_size=8)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instance.GetTypes.Invoke(new()\n {\n AvailabilityZone = \"ap-guangzhou-6\",\n CpuCoreCount = 4,\n MemorySize = 8,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instance.GetTypes(ctx, \u0026instance.GetTypesArgs{\n\t\t\tAvailabilityZone: pulumi.StringRef(\"ap-guangzhou-6\"),\n\t\t\tCpuCoreCount: pulumi.IntRef(4),\n\t\t\tMemorySize: pulumi.IntRef(8),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instance.InstanceFunctions;\nimport com.pulumi.tencentcloud.Instance.inputs.GetTypesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstanceFunctions.getTypes(GetTypesArgs.builder()\n .availabilityZone(\"ap-guangzhou-6\")\n .cpuCoreCount(4)\n .memorySize(8)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instance:getTypes\n Arguments:\n availabilityZone: ap-guangzhou-6\n cpuCoreCount: 4\n memorySize: 8\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Complete Example\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instance.getTypes({\n cpuCoreCount: 4,\n excludeSoldOut: true,\n filters: [\n {\n name: \"instance-family\",\n values: [\"SA2\"],\n },\n {\n name: \"zone\",\n values: [\"ap-guangzhou-6\"],\n },\n ],\n memorySize: 8,\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instance.get_types(cpu_core_count=4,\n exclude_sold_out=True,\n filters=[\n tencentcloud.instance.GetTypesFilterArgs(\n name=\"instance-family\",\n values=[\"SA2\"],\n ),\n tencentcloud.instance.GetTypesFilterArgs(\n name=\"zone\",\n values=[\"ap-guangzhou-6\"],\n ),\n ],\n memory_size=8)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instance.GetTypes.Invoke(new()\n {\n CpuCoreCount = 4,\n ExcludeSoldOut = true,\n Filters = new[]\n {\n new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs\n {\n Name = \"instance-family\",\n Values = new[]\n {\n \"SA2\",\n },\n },\n new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs\n {\n Name = \"zone\",\n Values = new[]\n {\n \"ap-guangzhou-6\",\n },\n },\n },\n MemorySize = 8,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instance.GetTypes(ctx, \u0026instance.GetTypesArgs{\n\t\t\tCpuCoreCount: pulumi.IntRef(4),\n\t\t\tExcludeSoldOut: pulumi.BoolRef(true),\n\t\t\tFilters: []instance.GetTypesFilter{\n\t\t\t\t{\n\t\t\t\t\tName: \"instance-family\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"SA2\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tName: \"zone\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"ap-guangzhou-6\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMemorySize: pulumi.IntRef(8),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instance.InstanceFunctions;\nimport com.pulumi.tencentcloud.Instance.inputs.GetTypesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstanceFunctions.getTypes(GetTypesArgs.builder()\n .cpuCoreCount(4)\n .excludeSoldOut(true)\n .filters( \n GetTypesFilterArgs.builder()\n .name(\"instance-family\")\n .values(\"SA2\")\n .build(),\n GetTypesFilterArgs.builder()\n .name(\"zone\")\n .values(\"ap-guangzhou-6\")\n .build())\n .memorySize(8)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instance:getTypes\n Arguments:\n cpuCoreCount: 4\n excludeSoldOut: true\n filters:\n - name: instance-family\n values:\n - SA2\n - name: zone\n values:\n - ap-guangzhou-6\n memorySize: 8\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTypes.\n", "properties": { @@ -247896,7 +248193,7 @@ } }, "tencentcloud:Instances/getInstance:getInstance": { - "description": "Use this data source to query cvm instances.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Instances.getInstance({\n instanceId: \"ins-da412f5a\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Instances.get_instance(instance_id=\"ins-da412f5a\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Instances.GetInstance.Invoke(new()\n {\n InstanceId = \"ins-da412f5a\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetInstance(ctx, \u0026instances.GetInstanceArgs{\n\t\t\tInstanceId: pulumi.StringRef(\"ins-da412f5a\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = InstancesFunctions.getInstance(GetInstanceArgs.builder()\n .instanceId(\"ins-da412f5a\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Instances:getInstance\n Arguments:\n instanceId: ins-da412f5a\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query cvm instances.\n\n## Example Usage\n\n### Query all cvm instances\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instances.getInstance({});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instances.get_instance()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instances.GetInstance.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetInstance(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstancesFunctions.getInstance();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instances:getInstance\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query cvm instances by filters\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instances.getInstance({\n availabilityZone: \"ap-guangzhou-6\",\n instanceId: \"ins-a81rnm8c\",\n instanceName: \"tf_example\",\n projectId: 0,\n subnetId: \"subnet-1to7t9au\",\n tags: {\n tagKey: \"tagValue\",\n },\n vpcId: \"vpc-l040hycv\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instances.get_instance(availability_zone=\"ap-guangzhou-6\",\n instance_id=\"ins-a81rnm8c\",\n instance_name=\"tf_example\",\n project_id=0,\n subnet_id=\"subnet-1to7t9au\",\n tags={\n \"tagKey\": \"tagValue\",\n },\n vpc_id=\"vpc-l040hycv\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instances.GetInstance.Invoke(new()\n {\n AvailabilityZone = \"ap-guangzhou-6\",\n InstanceId = \"ins-a81rnm8c\",\n InstanceName = \"tf_example\",\n ProjectId = 0,\n SubnetId = \"subnet-1to7t9au\",\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n VpcId = \"vpc-l040hycv\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetInstance(ctx, \u0026instances.GetInstanceArgs{\n\t\t\tAvailabilityZone: pulumi.StringRef(\"ap-guangzhou-6\"),\n\t\t\tInstanceId: pulumi.StringRef(\"ins-a81rnm8c\"),\n\t\t\tInstanceName: pulumi.StringRef(\"tf_example\"),\n\t\t\tProjectId: pulumi.IntRef(0),\n\t\t\tSubnetId: pulumi.StringRef(\"subnet-1to7t9au\"),\n\t\t\tTags: map[string]interface{}{\n\t\t\t\t\"tagKey\": \"tagValue\",\n\t\t\t},\n\t\t\tVpcId: pulumi.StringRef(\"vpc-l040hycv\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstancesFunctions.getInstance(GetInstanceArgs.builder()\n .availabilityZone(\"ap-guangzhou-6\")\n .instanceId(\"ins-a81rnm8c\")\n .instanceName(\"tf_example\")\n .projectId(0)\n .subnetId(\"subnet-1to7t9au\")\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .vpcId(\"vpc-l040hycv\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instances:getInstance\n Arguments:\n availabilityZone: ap-guangzhou-6\n instanceId: ins-a81rnm8c\n instanceName: tf_example\n projectId: 0\n subnetId: subnet-1to7t9au\n tags:\n tagKey: tagValue\n vpcId: vpc-l040hycv\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Or by instance set id list\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instances.getInstance({\n instanceSetIds: [\"ins-a81rnm8c\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instances.get_instance(instance_set_ids=[\"ins-a81rnm8c\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instances.GetInstance.Invoke(new()\n {\n InstanceSetIds = new[]\n {\n \"ins-a81rnm8c\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetInstance(ctx, \u0026instances.GetInstanceArgs{\n\t\t\tInstanceSetIds: []string{\n\t\t\t\t\"ins-a81rnm8c\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstancesFunctions.getInstance(GetInstanceArgs.builder()\n .instanceSetIds(\"ins-a81rnm8c\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instances:getInstance\n Arguments:\n instanceSetIds:\n - ins-a81rnm8c\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -248008,7 +248305,7 @@ } }, "tencentcloud:Instances/getSet:getSet": { - "description": "Use this data source to query cvm instances in parallel.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Instances.getSet({\n vpcId: \"vpc-4owdpnwr\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Instances.get_set(vpc_id=\"vpc-4owdpnwr\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Instances.GetSet.Invoke(new()\n {\n VpcId = \"vpc-4owdpnwr\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetSet(ctx, \u0026instances.GetSetArgs{\n\t\t\tVpcId: pulumi.StringRef(\"vpc-4owdpnwr\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = InstancesFunctions.getSet(GetSetArgs.builder()\n .vpcId(\"vpc-4owdpnwr\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Instances:getSet\n Arguments:\n vpcId: vpc-4owdpnwr\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query cvm instances in parallel.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Instances.getSet({\n availabilityZone: \"ap-guangzhou-6\",\n instanceId: \"ins-a81rnm8c\",\n instanceName: \"tf_example\",\n projectId: 0,\n subnetId: \"subnet-1to7t9au\",\n tags: {\n tagKey: \"tagValue\",\n },\n vpcId: \"vpc-l040hycv\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Instances.get_set(availability_zone=\"ap-guangzhou-6\",\n instance_id=\"ins-a81rnm8c\",\n instance_name=\"tf_example\",\n project_id=0,\n subnet_id=\"subnet-1to7t9au\",\n tags={\n \"tagKey\": \"tagValue\",\n },\n vpc_id=\"vpc-l040hycv\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Instances.GetSet.Invoke(new()\n {\n AvailabilityZone = \"ap-guangzhou-6\",\n InstanceId = \"ins-a81rnm8c\",\n InstanceName = \"tf_example\",\n ProjectId = 0,\n SubnetId = \"subnet-1to7t9au\",\n Tags = \n {\n { \"tagKey\", \"tagValue\" },\n },\n VpcId = \"vpc-l040hycv\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Instances.GetSet(ctx, \u0026instances.GetSetArgs{\n\t\t\tAvailabilityZone: pulumi.StringRef(\"ap-guangzhou-6\"),\n\t\t\tInstanceId: pulumi.StringRef(\"ins-a81rnm8c\"),\n\t\t\tInstanceName: pulumi.StringRef(\"tf_example\"),\n\t\t\tProjectId: pulumi.IntRef(0),\n\t\t\tSubnetId: pulumi.StringRef(\"subnet-1to7t9au\"),\n\t\t\tTags: map[string]interface{}{\n\t\t\t\t\"tagKey\": \"tagValue\",\n\t\t\t},\n\t\t\tVpcId: pulumi.StringRef(\"vpc-l040hycv\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Instances.InstancesFunctions;\nimport com.pulumi.tencentcloud.Instances.inputs.GetSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = InstancesFunctions.getSet(GetSetArgs.builder()\n .availabilityZone(\"ap-guangzhou-6\")\n .instanceId(\"ins-a81rnm8c\")\n .instanceName(\"tf_example\")\n .projectId(0)\n .subnetId(\"subnet-1to7t9au\")\n .tags(Map.of(\"tagKey\", \"tagValue\"))\n .vpcId(\"vpc-l040hycv\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Instances:getSet\n Arguments:\n availabilityZone: ap-guangzhou-6\n instanceId: ins-a81rnm8c\n instanceName: tf_example\n projectId: 0\n subnetId: subnet-1to7t9au\n tags:\n tagKey: tagValue\n vpcId: vpc-l040hycv\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSet.\n", "properties": { @@ -248107,7 +248404,7 @@ } }, "tencentcloud:Key/getPairs:getPairs": { - "description": "Use this data source to query key pairs.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Key.getPairs({\n keyId: \"skey-ie97i3ml\",\n});\nconst name = tencentcloud.Key.getPairs({\n keyName: \"^test$\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Key.get_pairs(key_id=\"skey-ie97i3ml\")\nname = tencentcloud.Key.get_pairs(key_name=\"^test$\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Key.GetPairs.Invoke(new()\n {\n KeyId = \"skey-ie97i3ml\",\n });\n\n var name = Tencentcloud.Key.GetPairs.Invoke(new()\n {\n KeyName = \"^test$\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Key\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Key.GetPairs(ctx, \u0026key.GetPairsArgs{\n\t\t\tKeyId: pulumi.StringRef(\"skey-ie97i3ml\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = Key.GetPairs(ctx, \u0026key.GetPairsArgs{\n\t\t\tKeyName: pulumi.StringRef(\"^test$\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Key.KeyFunctions;\nimport com.pulumi.tencentcloud.Key.inputs.GetPairsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = KeyFunctions.getPairs(GetPairsArgs.builder()\n .keyId(\"skey-ie97i3ml\")\n .build());\n\n final var name = KeyFunctions.getPairs(GetPairsArgs.builder()\n .keyName(\"^test$\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Key:getPairs\n Arguments:\n keyId: skey-ie97i3ml\n name:\n fn::invoke:\n Function: tencentcloud:Key:getPairs\n Arguments:\n keyName: ^test$\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query key pairs.\n\n## Example Usage\n\n### Query key pairs by key ID\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst keyId = tencentcloud.Key.getPairs({\n keyId: \"skey-ie97i3ml\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nkey_id = tencentcloud.Key.get_pairs(key_id=\"skey-ie97i3ml\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var keyId = Tencentcloud.Key.GetPairs.Invoke(new()\n {\n KeyId = \"skey-ie97i3ml\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Key\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Key.GetPairs(ctx, \u0026key.GetPairsArgs{\n\t\t\tKeyId: pulumi.StringRef(\"skey-ie97i3ml\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Key.KeyFunctions;\nimport com.pulumi.tencentcloud.Key.inputs.GetPairsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var keyId = KeyFunctions.getPairs(GetPairsArgs.builder()\n .keyId(\"skey-ie97i3ml\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n keyId:\n fn::invoke:\n Function: tencentcloud:Key:getPairs\n Arguments:\n keyId: skey-ie97i3ml\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Query key pairs by key name\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst keyName = tencentcloud.Key.getPairs({\n keyName: \"^test$\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nkey_name = tencentcloud.Key.get_pairs(key_name=\"^test$\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var keyName = Tencentcloud.Key.GetPairs.Invoke(new()\n {\n KeyName = \"^test$\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Key\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Key.GetPairs(ctx, \u0026key.GetPairsArgs{\n\t\t\tKeyName: pulumi.StringRef(\"^test$\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Key.KeyFunctions;\nimport com.pulumi.tencentcloud.Key.inputs.GetPairsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var keyName = KeyFunctions.getPairs(GetPairsArgs.builder()\n .keyName(\"^test$\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n keyName:\n fn::invoke:\n Function: tencentcloud:Key:getPairs\n Arguments:\n keyName: ^test$\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPairs.\n", "properties": { @@ -257085,7 +257382,7 @@ } }, "tencentcloud:Placement/getGroups:getGroups": { - "description": "Use this data source to query placement groups.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst foo = tencentcloud.Placement.getGroups({\n name: \"test\",\n placementGroupId: \"ps-21q9ibvr\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nfoo = tencentcloud.Placement.get_groups(name=\"test\",\n placement_group_id=\"ps-21q9ibvr\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Tencentcloud.Placement.GetGroups.Invoke(new()\n {\n Name = \"test\",\n PlacementGroupId = \"ps-21q9ibvr\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Placement\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Placement.GetGroups(ctx, \u0026placement.GetGroupsArgs{\n\t\t\tName: pulumi.StringRef(\"test\"),\n\t\t\tPlacementGroupId: pulumi.StringRef(\"ps-21q9ibvr\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Placement.PlacementFunctions;\nimport com.pulumi.tencentcloud.Placement.inputs.GetGroupsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = PlacementFunctions.getGroups(GetGroupsArgs.builder()\n .name(\"test\")\n .placementGroupId(\"ps-21q9ibvr\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: tencentcloud:Placement:getGroups\n Arguments:\n name: test\n placementGroupId: ps-21q9ibvr\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to query placement groups.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tencentcloud from \"@tencentcloud_iac/pulumi\";\n\nconst example = tencentcloud.Placement.getGroups({\n name: \"tf_example\",\n placementGroupId: \"ps-bwvst92h\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tencentcloud as tencentcloud\n\nexample = tencentcloud.Placement.get_groups(name=\"tf_example\",\n placement_group_id=\"ps-bwvst92h\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tencentcloud = Pulumi.Tencentcloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Tencentcloud.Placement.GetGroups.Invoke(new()\n {\n Name = \"tf_example\",\n PlacementGroupId = \"ps-bwvst92h\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Placement\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Placement.GetGroups(ctx, \u0026placement.GetGroupsArgs{\n\t\t\tName: pulumi.StringRef(\"tf_example\"),\n\t\t\tPlacementGroupId: pulumi.StringRef(\"ps-bwvst92h\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tencentcloud.Placement.PlacementFunctions;\nimport com.pulumi.tencentcloud.Placement.inputs.GetGroupsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = PlacementFunctions.getGroups(GetGroupsArgs.builder()\n .name(\"tf_example\")\n .placementGroupId(\"ps-bwvst92h\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: tencentcloud:Placement:getGroups\n Arguments:\n name: tf_example\n placementGroupId: ps-bwvst92h\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGroups.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index a6ce6adbd..4da21b13d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -6,7 +6,7 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf require ( github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0 - github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99 + github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100 ) require ( @@ -228,7 +228,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.860 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.860 // indirect - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 // indirect + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 // indirect @@ -274,7 +274,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcm v1.0.547 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 // indirect - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 // indirect + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.912 // indirect github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke v1.0.916 // indirect diff --git a/provider/go.sum b/provider/go.sum index d4b80fe80..f21a8512e 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -3065,8 +3065,9 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.873/go.mod github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.910/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.912/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.916/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 h1:Kmm4rJrdI7D29IMOTT2oNp70h0TGsZ3obaekS8hvYkU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 h1:MB1+Ll6JxWTpZw/v0dMRvMEJhlcDKxK/JMQ8O5owRVc= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860/go.mod h1:NZo1WplQcC314kMlCRUoy8NQju2BnolIJj7NAWgsuhY= 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 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696/go.mod h1:DgY9Kgh9093fBl2M/vEFGJZwytDIrPQlYoxoT4rE7O0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 h1:r6HQhmHzPp1oSGhwkNzUzIRlpnpb8Jhtcn1yKhg9ml4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533/go.mod h1:5sIIchyV9sXIVAqsD3UWts+qQJ0qoc55sL2WuiY8Ugs= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 h1:jIAqpu+EeiKK1U0Sb7l1I6hMATYyXtv7IU8ZWNHPrgM= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825/go.mod h1:aaOidZKQTtM6vVgs5pnHryaLj9f+egPBpdQEylQxka4= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 h1:qBMRApryLiQOJ91xEybn3fb6zkWfa9sp8Tdult5Y1vY= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932/go.mod h1:k2QG6A7u458viC4nZGM0Z0FNzKqQSJKgfqtxeqkqBDQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 h1:vBpQhUroO+FAslUmsDWGi8nvczsqZBWVgQwlnyT0Aj8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578/go.mod h1:UlojGQh/9wb7/uXPNi7PvMral1CNAskVDNgqJEV83l0= 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 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792/go.mod h1:Xz6vPV3gHlzPwtEcmWdWO1EUXJDgn2p7UMCXbJiVioQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY= -github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99 h1:uL5tfZj5XQ2668dw6HP936kAJLvGgppk48SkpDGI1iE= -github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99/go.mod h1:QaGuh9Zc1BL8B+AcDpbYCQ2TvV3oIE7KygRvMdiDGOA= +github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100 h1:9syR1lXF1kyebD1PmeI/dZ0HM8PLHY0qOfnh34MDeeY= +github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100/go.mod h1:OmTVEtu73P9ZVTg4OKge6ksMTyMo+GzChwH6UCu8CMc= github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f h1:yTMDoBvFuXjZat10d98DIKbPnN9FQG+drt1SbNfMW5U= github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f/go.mod h1:LUFnaqRmGk6pEHOaRmdn2dCZR2j0cSsM5xowWFPTPao= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= diff --git a/provider/info/info.go b/provider/info/info.go index 9d0126a7a..d48c31123 100644 --- a/provider/info/info.go +++ b/provider/info/info.go @@ -32,8 +32,7 @@ func GetResourceOutput() []*ResourceOutput { // skip the resources whose document cannot be generated correctly skippedResources := map[string]struct{}{ - "tencentcloud_audit": {}, - "tencentcloud_cls_index": {}, + "tencentcloud_audit": {}, } skipFilter := func(resource string) bool { _, exists := skippedResources[resource] diff --git a/sdk/dotnet/Tencentcloud/Cls/Index.cs b/sdk/dotnet/Tencentcloud/Cls/Index.cs new file mode 100644 index 000000000..17ff0e219 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Index.cs @@ -0,0 +1,288 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls +{ + /// + /// Provides a resource to create a cls index. + /// + /// ## Example Usage + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleLogset = new Tencentcloud.Cls.Logset("exampleLogset", new() + /// { + /// LogsetName = "tf_example", + /// Tags = + /// { + /// { "demo", "test" }, + /// }, + /// }); + /// + /// var exampleTopic = new Tencentcloud.Cls.Topic("exampleTopic", new() + /// { + /// TopicName = "tf_example", + /// LogsetId = exampleLogset.Id, + /// AutoSplit = false, + /// MaxSplitPartitions = 20, + /// PartitionCount = 1, + /// Period = 30, + /// StorageType = "hot", + /// Describes = "Test Demo.", + /// HotPeriod = 10, + /// Tags = + /// { + /// { "test", "test" }, + /// }, + /// }); + /// + /// var tokenizerValue = "@&?|#()='\",;:<>[]{}"; + /// + /// var exampleIndex = new Tencentcloud.Cls.Index("exampleIndex", new() + /// { + /// TopicId = exampleTopic.Id, + /// Rule = new Tencentcloud.Cls.Inputs.IndexRuleArgs + /// { + /// FullText = new Tencentcloud.Cls.Inputs.IndexRuleFullTextArgs + /// { + /// CaseSensitive = true, + /// Tokenizer = tokenizerValue, + /// ContainZH = true, + /// }, + /// KeyValue = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueArgs + /// { + /// CaseSensitive = true, + /// KeyValues = new[] + /// { + /// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs + /// { + /// Key = "hello", + /// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs + /// { + /// ContainZH = true, + /// SqlFlag = true, + /// Tokenizer = tokenizerValue, + /// Type = "text", + /// }, + /// }, + /// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs + /// { + /// Key = "world", + /// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs + /// { + /// ContainZH = true, + /// SqlFlag = true, + /// Tokenizer = tokenizerValue, + /// Type = "text", + /// }, + /// }, + /// }, + /// }, + /// Tag = new Tencentcloud.Cls.Inputs.IndexRuleTagArgs + /// { + /// CaseSensitive = true, + /// KeyValues = new[] + /// { + /// new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueArgs + /// { + /// Key = "terraform", + /// Value = new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueValueArgs + /// { + /// ContainZH = true, + /// SqlFlag = true, + /// Tokenizer = tokenizerValue, + /// Type = "text", + /// }, + /// }, + /// }, + /// }, + /// DynamicIndex = new Tencentcloud.Cls.Inputs.IndexRuleDynamicIndexArgs + /// { + /// Status = true, + /// }, + /// }, + /// Status = true, + /// IncludeInternalFields = true, + /// MetadataFlag = 1, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ## Import + /// + /// cls cos index can be imported using the id, e.g. + /// + /// ```sh + /// $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc + /// ``` + /// + [TencentcloudResourceType("tencentcloud:Cls/index:Index")] + public partial class Index : global::Pulumi.CustomResource + { + /// + /// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + /// + [Output("includeInternalFields")] + public Output IncludeInternalFields { get; private set; } = null!; + + /// + /// 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).. + /// + [Output("metadataFlag")] + public Output MetadataFlag { get; private set; } = null!; + + /// + /// Index rule. + /// + [Output("rule")] + public Output Rule { get; private set; } = null!; + + /// + /// Whether to take effect. Default value: true. + /// + [Output("status")] + public Output Status { get; private set; } = null!; + + /// + /// Log topic ID. + /// + [Output("topicId")] + public Output TopicId { get; private set; } = null!; + + + /// + /// Create a Index resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Index(string name, IndexArgs args, CustomResourceOptions? options = null) + : base("tencentcloud:Cls/index:Index", name, args ?? new IndexArgs(), MakeResourceOptions(options, "")) + { + } + + private Index(string name, Input id, IndexState? state = null, CustomResourceOptions? options = null) + : base("tencentcloud:Cls/index:Index", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/tencentcloudstack", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Index resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Index Get(string name, Input id, IndexState? state = null, CustomResourceOptions? options = null) + { + return new Index(name, id, state, options); + } + } + + public sealed class IndexArgs : global::Pulumi.ResourceArgs + { + /// + /// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + /// + [Input("includeInternalFields")] + public Input? IncludeInternalFields { get; set; } + + /// + /// 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).. + /// + [Input("metadataFlag")] + public Input? MetadataFlag { get; set; } + + /// + /// Index rule. + /// + [Input("rule")] + public Input? Rule { get; set; } + + /// + /// Whether to take effect. Default value: true. + /// + [Input("status")] + public Input? Status { get; set; } + + /// + /// Log topic ID. + /// + [Input("topicId", required: true)] + public Input TopicId { get; set; } = null!; + + public IndexArgs() + { + } + public static new IndexArgs Empty => new IndexArgs(); + } + + public sealed class IndexState : global::Pulumi.ResourceArgs + { + /// + /// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + /// + [Input("includeInternalFields")] + public Input? IncludeInternalFields { get; set; } + + /// + /// 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).. + /// + [Input("metadataFlag")] + public Input? MetadataFlag { get; set; } + + /// + /// Index rule. + /// + [Input("rule")] + public Input? Rule { get; set; } + + /// + /// Whether to take effect. Default value: true. + /// + [Input("status")] + public Input? Status { get; set; } + + /// + /// Log topic ID. + /// + [Input("topicId")] + public Input? TopicId { get; set; } + + public IndexState() + { + } + public static new IndexState Empty => new IndexState(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleArgs.cs new file mode 100644 index 000000000..620d9ef9e --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleArgs : global::Pulumi.ResourceArgs + { + /// + /// The key value index is automatically configured. If it is empty, it means that the function is not enabled. + /// + [Input("dynamicIndex")] + public Input? DynamicIndex { get; set; } + + /// + /// Full-Text index configuration. + /// + [Input("fullText")] + public Input? FullText { get; set; } + + /// + /// Key-Value index configuration. + /// + [Input("keyValue")] + public Input? KeyValue { get; set; } + + /// + /// Metafield index configuration. + /// + [Input("tag")] + public Input? Tag { get; set; } + + public IndexRuleArgs() + { + } + public static new IndexRuleArgs Empty => new IndexRuleArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexArgs.cs new file mode 100644 index 000000000..fbf693c60 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleDynamicIndexArgs : global::Pulumi.ResourceArgs + { + /// + /// index automatic configuration switch. + /// + [Input("status", required: true)] + public Input Status { get; set; } = null!; + + public IndexRuleDynamicIndexArgs() + { + } + public static new IndexRuleDynamicIndexArgs Empty => new IndexRuleDynamicIndexArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexGetArgs.cs new file mode 100644 index 000000000..fbf60520d --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleDynamicIndexGetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleDynamicIndexGetArgs : global::Pulumi.ResourceArgs + { + /// + /// index automatic configuration switch. + /// + [Input("status", required: true)] + public Input Status { get; set; } = null!; + + public IndexRuleDynamicIndexGetArgs() + { + } + public static new IndexRuleDynamicIndexGetArgs Empty => new IndexRuleDynamicIndexGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextArgs.cs new file mode 100644 index 000000000..ac28c74c2 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleFullTextArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH", required: true)] + public Input ContainZH { get; set; } = null!; + + /// + /// Full-Text index delimiter. Each character in the string represents a delimiter. + /// + [Input("tokenizer", required: true)] + public Input Tokenizer { get; set; } = null!; + + public IndexRuleFullTextArgs() + { + } + public static new IndexRuleFullTextArgs Empty => new IndexRuleFullTextArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextGetArgs.cs new file mode 100644 index 000000000..e9bcad0a9 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleFullTextGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleFullTextGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH", required: true)] + public Input ContainZH { get; set; } = null!; + + /// + /// Full-Text index delimiter. Each character in the string represents a delimiter. + /// + [Input("tokenizer", required: true)] + public Input Tokenizer { get; set; } = null!; + + public IndexRuleFullTextGetArgs() + { + } + public static new IndexRuleFullTextGetArgs Empty => new IndexRuleFullTextGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleGetArgs.cs new file mode 100644 index 000000000..0dd5e0e75 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleGetArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The key value index is automatically configured. If it is empty, it means that the function is not enabled. + /// + [Input("dynamicIndex")] + public Input? DynamicIndex { get; set; } + + /// + /// Full-Text index configuration. + /// + [Input("fullText")] + public Input? FullText { get; set; } + + /// + /// Key-Value index configuration. + /// + [Input("keyValue")] + public Input? KeyValue { get; set; } + + /// + /// Metafield index configuration. + /// + [Input("tag")] + public Input? Tag { get; set; } + + public IndexRuleGetArgs() + { + } + public static new IndexRuleGetArgs Empty => new IndexRuleGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueArgs.cs new file mode 100644 index 000000000..67ccaf0fa --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + [Input("keyValues")] + private InputList? _keyValues; + + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public InputList KeyValues + { + get => _keyValues ?? (_keyValues = new InputList()); + set => _keyValues = value; + } + + public IndexRuleKeyValueArgs() + { + } + public static new IndexRuleKeyValueArgs Empty => new IndexRuleKeyValueArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueGetArgs.cs new file mode 100644 index 000000000..3c67904df --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + [Input("keyValues")] + private InputList? _keyValues; + + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public InputList KeyValues + { + get => _keyValues ?? (_keyValues = new InputList()); + set => _keyValues = value; + } + + public IndexRuleKeyValueGetArgs() + { + } + public static new IndexRuleKeyValueGetArgs Empty => new IndexRuleKeyValueGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueArgs.cs new file mode 100644 index 000000000..388c86d98 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueKeyValueArgs : global::Pulumi.ResourceArgs + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Field index description information. + /// + [Input("value")] + public Input? Value { get; set; } + + public IndexRuleKeyValueKeyValueArgs() + { + } + public static new IndexRuleKeyValueKeyValueArgs Empty => new IndexRuleKeyValueKeyValueArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueGetArgs.cs new file mode 100644 index 000000000..90480557c --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueGetArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueKeyValueGetArgs : global::Pulumi.ResourceArgs + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Field index description information. + /// + [Input("value")] + public Input? Value { get; set; } + + public IndexRuleKeyValueKeyValueGetArgs() + { + } + public static new IndexRuleKeyValueKeyValueGetArgs Empty => new IndexRuleKeyValueKeyValueGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueArgs.cs new file mode 100644 index 000000000..680a0a27e --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueKeyValueValueArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH")] + public Input? ContainZH { get; set; } + + /// + /// Whether the analysis feature is enabled for the field. + /// + [Input("sqlFlag")] + public Input? SqlFlag { get; set; } + + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + [Input("tokenizer")] + public Input? Tokenizer { get; set; } + + /// + /// Field type. Valid values: long, text, double. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public IndexRuleKeyValueKeyValueValueArgs() + { + } + public static new IndexRuleKeyValueKeyValueValueArgs Empty => new IndexRuleKeyValueKeyValueValueArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueGetArgs.cs new file mode 100644 index 000000000..4828dce99 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleKeyValueKeyValueValueGetArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleKeyValueKeyValueValueGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH")] + public Input? ContainZH { get; set; } + + /// + /// Whether the analysis feature is enabled for the field. + /// + [Input("sqlFlag")] + public Input? SqlFlag { get; set; } + + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + [Input("tokenizer")] + public Input? Tokenizer { get; set; } + + /// + /// Field type. Valid values: long, text, double. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public IndexRuleKeyValueKeyValueValueGetArgs() + { + } + public static new IndexRuleKeyValueKeyValueValueGetArgs Empty => new IndexRuleKeyValueKeyValueValueGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagArgs.cs new file mode 100644 index 000000000..9c2916fe8 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + [Input("keyValues")] + private InputList? _keyValues; + + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public InputList KeyValues + { + get => _keyValues ?? (_keyValues = new InputList()); + set => _keyValues = value; + } + + public IndexRuleTagArgs() + { + } + public static new IndexRuleTagArgs Empty => new IndexRuleTagArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagGetArgs.cs new file mode 100644 index 000000000..1889a6f01 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Case sensitivity. + /// + [Input("caseSensitive", required: true)] + public Input CaseSensitive { get; set; } = null!; + + [Input("keyValues")] + private InputList? _keyValues; + + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public InputList KeyValues + { + get => _keyValues ?? (_keyValues = new InputList()); + set => _keyValues = value; + } + + public IndexRuleTagGetArgs() + { + } + public static new IndexRuleTagGetArgs Empty => new IndexRuleTagGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueArgs.cs new file mode 100644 index 000000000..b63bb082a --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagKeyValueArgs : global::Pulumi.ResourceArgs + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Field index description information. + /// + [Input("value")] + public Input? Value { get; set; } + + public IndexRuleTagKeyValueArgs() + { + } + public static new IndexRuleTagKeyValueArgs Empty => new IndexRuleTagKeyValueArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueGetArgs.cs new file mode 100644 index 000000000..455ff4a25 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueGetArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagKeyValueGetArgs : global::Pulumi.ResourceArgs + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Field index description information. + /// + [Input("value")] + public Input? Value { get; set; } + + public IndexRuleTagKeyValueGetArgs() + { + } + public static new IndexRuleTagKeyValueGetArgs Empty => new IndexRuleTagKeyValueGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueArgs.cs new file mode 100644 index 000000000..f92270440 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagKeyValueValueArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH")] + public Input? ContainZH { get; set; } + + /// + /// Whether the analysis feature is enabled for the field. + /// + [Input("sqlFlag")] + public Input? SqlFlag { get; set; } + + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + [Input("tokenizer")] + public Input? Tokenizer { get; set; } + + /// + /// Field type. Valid values: long, text, double. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public IndexRuleTagKeyValueValueArgs() + { + } + public static new IndexRuleTagKeyValueValueArgs Empty => new IndexRuleTagKeyValueValueArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueGetArgs.cs b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueGetArgs.cs new file mode 100644 index 000000000..f155d1c1f --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Inputs/IndexRuleTagKeyValueValueGetArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Inputs +{ + + public sealed class IndexRuleTagKeyValueValueGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether Chinese characters are contained. + /// + [Input("containZH")] + public Input? ContainZH { get; set; } + + /// + /// Whether the analysis feature is enabled for the field. + /// + [Input("sqlFlag")] + public Input? SqlFlag { get; set; } + + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + [Input("tokenizer")] + public Input? Tokenizer { get; set; } + + /// + /// Field type. Valid values: long, text, double. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public IndexRuleTagKeyValueValueGetArgs() + { + } + public static new IndexRuleTagKeyValueValueGetArgs Empty => new IndexRuleTagKeyValueValueGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRule.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRule.cs new file mode 100644 index 000000000..cd6f58659 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRule.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRule + { + /// + /// The key value index is automatically configured. If it is empty, it means that the function is not enabled. + /// + public readonly Outputs.IndexRuleDynamicIndex? DynamicIndex; + /// + /// Full-Text index configuration. + /// + public readonly Outputs.IndexRuleFullText? FullText; + /// + /// Key-Value index configuration. + /// + public readonly Outputs.IndexRuleKeyValue? KeyValue; + /// + /// Metafield index configuration. + /// + public readonly Outputs.IndexRuleTag? Tag; + + [OutputConstructor] + private IndexRule( + Outputs.IndexRuleDynamicIndex? dynamicIndex, + + Outputs.IndexRuleFullText? fullText, + + Outputs.IndexRuleKeyValue? keyValue, + + Outputs.IndexRuleTag? tag) + { + DynamicIndex = dynamicIndex; + FullText = fullText; + KeyValue = keyValue; + Tag = tag; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleDynamicIndex.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleDynamicIndex.cs new file mode 100644 index 000000000..285ee4e6c --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleDynamicIndex.cs @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleDynamicIndex + { + /// + /// index automatic configuration switch. + /// + public readonly bool Status; + + [OutputConstructor] + private IndexRuleDynamicIndex(bool status) + { + Status = status; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleFullText.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleFullText.cs new file mode 100644 index 000000000..d9e8e7d55 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleFullText.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleFullText + { + /// + /// Case sensitivity. + /// + public readonly bool CaseSensitive; + /// + /// Whether Chinese characters are contained. + /// + public readonly bool ContainZH; + /// + /// Full-Text index delimiter. Each character in the string represents a delimiter. + /// + public readonly string Tokenizer; + + [OutputConstructor] + private IndexRuleFullText( + bool caseSensitive, + + bool containZH, + + string tokenizer) + { + CaseSensitive = caseSensitive; + ContainZH = containZH; + Tokenizer = tokenizer; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValue.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValue.cs new file mode 100644 index 000000000..31a92a070 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValue.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleKeyValue + { + /// + /// Case sensitivity. + /// + public readonly bool CaseSensitive; + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public readonly ImmutableArray KeyValues; + + [OutputConstructor] + private IndexRuleKeyValue( + bool caseSensitive, + + ImmutableArray keyValues) + { + CaseSensitive = caseSensitive; + KeyValues = keyValues; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValue.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValue.cs new file mode 100644 index 000000000..b3a7af1a5 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValue.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleKeyValueKeyValue + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + public readonly string Key; + /// + /// Field index description information. + /// + public readonly Outputs.IndexRuleKeyValueKeyValueValue? Value; + + [OutputConstructor] + private IndexRuleKeyValueKeyValue( + string key, + + Outputs.IndexRuleKeyValueKeyValueValue? value) + { + Key = key; + Value = value; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValueValue.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValueValue.cs new file mode 100644 index 000000000..46722fce6 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleKeyValueKeyValueValue.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleKeyValueKeyValueValue + { + /// + /// Whether Chinese characters are contained. + /// + public readonly bool? ContainZH; + /// + /// Whether the analysis feature is enabled for the field. + /// + public readonly bool? SqlFlag; + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + public readonly string? Tokenizer; + /// + /// Field type. Valid values: long, text, double. + /// + public readonly string Type; + + [OutputConstructor] + private IndexRuleKeyValueKeyValueValue( + bool? containZH, + + bool? sqlFlag, + + string? tokenizer, + + string type) + { + ContainZH = containZH; + SqlFlag = sqlFlag; + Tokenizer = tokenizer; + Type = type; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTag.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTag.cs new file mode 100644 index 000000000..c9baf48a4 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTag.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleTag + { + /// + /// Case sensitivity. + /// + public readonly bool CaseSensitive; + /// + /// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + /// + public readonly ImmutableArray KeyValues; + + [OutputConstructor] + private IndexRuleTag( + bool caseSensitive, + + ImmutableArray keyValues) + { + CaseSensitive = caseSensitive; + KeyValues = keyValues; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValue.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValue.cs new file mode 100644 index 000000000..744cf2e21 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValue.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleTagKeyValue + { + /// + /// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + /// + public readonly string Key; + /// + /// Field index description information. + /// + public readonly Outputs.IndexRuleTagKeyValueValue? Value; + + [OutputConstructor] + private IndexRuleTagKeyValue( + string key, + + Outputs.IndexRuleTagKeyValueValue? value) + { + Key = key; + Value = value; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValueValue.cs b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValueValue.cs new file mode 100644 index 000000000..1afe2d94e --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Cls/Outputs/IndexRuleTagKeyValueValue.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cls.Outputs +{ + + [OutputType] + public sealed class IndexRuleTagKeyValueValue + { + /// + /// Whether Chinese characters are contained. + /// + public readonly bool? ContainZH; + /// + /// Whether the analysis feature is enabled for the field. + /// + public readonly bool? SqlFlag; + /// + /// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + /// + public readonly string? Tokenizer; + /// + /// Field type. Valid values: long, text, double. + /// + public readonly string Type; + + [OutputConstructor] + private IndexRuleTagKeyValueValue( + bool? containZH, + + bool? sqlFlag, + + string? tokenizer, + + string type) + { + ContainZH = containZH; + SqlFlag = sqlFlag; + Tokenizer = tokenizer; + Type = type; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Cvm/RenewInstance.cs b/sdk/dotnet/Tencentcloud/Cvm/RenewInstance.cs index f05ea3312..774bf9dc6 100644 --- a/sdk/dotnet/Tencentcloud/Cvm/RenewInstance.cs +++ b/sdk/dotnet/Tencentcloud/Cvm/RenewInstance.cs @@ -24,15 +24,63 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cvm /// /// return await Deployment.RunAsync(() => /// { - /// var renewInstance = new Tencentcloud.Cvm.RenewInstance("renewInstance", new() + /// // create vpc + /// var vpc = new Tencentcloud.Vpc.Instance("vpc", new() /// { + /// CidrBlock = "10.0.0.0/16", + /// }); + /// + /// // create vpc subnet + /// var subnet = new Tencentcloud.Subnet.Instance("subnet", new() + /// { + /// VpcId = vpc.Id, + /// AvailabilityZone = "ap-guangzhou-6", + /// CidrBlock = "10.0.20.0/28", + /// IsMulticast = false, + /// }); + /// + /// // create cvm + /// var exampleInstance = new Tencentcloud.Instance.Instance("exampleInstance", new() + /// { + /// InstanceName = "tf_example", + /// AvailabilityZone = "ap-guangzhou-6", + /// ImageId = "img-9qrfy1xt", + /// InstanceType = "SA3.MEDIUM4", + /// SystemDiskType = "CLOUD_HSSD", + /// SystemDiskSize = 100, + /// Hostname = "example", + /// ProjectId = 0, + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// ForceDelete = true, + /// InstanceChargeType = "PREPAID", + /// InstanceChargeTypePrepaidPeriod = 1, + /// InstanceChargeTypePrepaidRenewFlag = "NOTIFY_AND_MANUAL_RENEW", + /// DataDisks = new[] + /// { + /// new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs + /// { + /// DataDiskType = "CLOUD_HSSD", + /// DataDiskSize = 50, + /// Encrypt = false, + /// }, + /// }, + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// }); + /// + /// // renew instance + /// var exampleRenewInstance = new Tencentcloud.Cvm.RenewInstance("exampleRenewInstance", new() + /// { + /// InstanceId = exampleInstance.Id, + /// RenewPortableDataDisk = true, /// InstanceChargePrepaid = new Tencentcloud.Cvm.Inputs.RenewInstanceInstanceChargePrepaidArgs /// { /// Period = 1, - /// RenewFlag = "NOTIFY_AND_AUTO_RENEW", + /// RenewFlag = "NOTIFY_AND_MANUAL_RENEW", /// }, - /// InstanceId = "ins-f9jr4bd2", - /// RenewPortableDataDisk = true, /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Cvm/SecurityGroupAttachment.cs b/sdk/dotnet/Tencentcloud/Cvm/SecurityGroupAttachment.cs index 0c0a1353d..e0b3faf88 100644 --- a/sdk/dotnet/Tencentcloud/Cvm/SecurityGroupAttachment.cs +++ b/sdk/dotnet/Tencentcloud/Cvm/SecurityGroupAttachment.cs @@ -24,10 +24,65 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cvm /// /// return await Deployment.RunAsync(() => /// { - /// var securityGroupAttachment = new Tencentcloud.Cvm.SecurityGroupAttachment("securityGroupAttachment", new() + /// // create vpc + /// var vpc = new Tencentcloud.Vpc.Instance("vpc", new() /// { - /// InstanceId = "ins-xxxxxxxx", - /// SecurityGroupId = "sg-xxxxxxx", + /// CidrBlock = "10.0.0.0/16", + /// }); + /// + /// // create vpc subnet + /// var subnet = new Tencentcloud.Subnet.Instance("subnet", new() + /// { + /// VpcId = vpc.Id, + /// AvailabilityZone = "ap-guangzhou-6", + /// CidrBlock = "10.0.20.0/28", + /// IsMulticast = false, + /// }); + /// + /// // create security group + /// var exampleGroup = new Tencentcloud.Security.Group("exampleGroup", new() + /// { + /// Description = "sg desc.", + /// ProjectId = 0, + /// Tags = + /// { + /// { "example", "test" }, + /// }, + /// }); + /// + /// // create cvm + /// var exampleInstance = new Tencentcloud.Instance.Instance("exampleInstance", new() + /// { + /// InstanceName = "tf_example", + /// AvailabilityZone = "ap-guangzhou-6", + /// ImageId = "img-9qrfy1xt", + /// InstanceType = "SA3.MEDIUM4", + /// SystemDiskType = "CLOUD_HSSD", + /// SystemDiskSize = 100, + /// Hostname = "example", + /// ProjectId = 0, + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// DataDisks = new[] + /// { + /// new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs + /// { + /// DataDiskType = "CLOUD_HSSD", + /// DataDiskSize = 50, + /// Encrypt = false, + /// }, + /// }, + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// }); + /// + /// // attachment security group + /// var exampleSecurityGroupAttachment = new Tencentcloud.Cvm.SecurityGroupAttachment("exampleSecurityGroupAttachment", new() + /// { + /// InstanceId = exampleInstance.Id, + /// SecurityGroupId = exampleGroup.Id, /// }); /// /// }); @@ -39,7 +94,7 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cvm /// cvm security_group_attachment can be imported using the id, e.g. /// /// ```sh - /// $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id} + /// $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp /// ``` /// [TencentcloudResourceType("tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment")] diff --git a/sdk/dotnet/Tencentcloud/Cvm/SyncImage.cs b/sdk/dotnet/Tencentcloud/Cvm/SyncImage.cs index a63613e2c..399f0749a 100644 --- a/sdk/dotnet/Tencentcloud/Cvm/SyncImage.cs +++ b/sdk/dotnet/Tencentcloud/Cvm/SyncImage.cs @@ -20,18 +20,28 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cvm /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud; /// /// return await Deployment.RunAsync(() => /// { - /// var syncImage = new Tencentcloud.Cvm.SyncImage("syncImage", new() + /// var exampleInstance = Tencentcloud.Images.GetInstance.Invoke(new() /// { + /// ImageTypes = new[] + /// { + /// "PRIVATE_IMAGE", + /// }, + /// ImageNameRegex = "MyImage", + /// }); + /// + /// var exampleSyncImage = new Tencentcloud.Cvm.SyncImage("exampleSyncImage", new() + /// { + /// ImageId = exampleInstance.Apply(getInstanceResult => getInstanceResult.Images[0]?.ImageId), /// DestinationRegions = new[] /// { /// "ap-guangzhou", /// "ap-shanghai", /// }, - /// ImageId = "img-xxxxxx", /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Eip/AddressTransform.cs b/sdk/dotnet/Tencentcloud/Eip/AddressTransform.cs index 3227d560e..67a10754f 100644 --- a/sdk/dotnet/Tencentcloud/Eip/AddressTransform.cs +++ b/sdk/dotnet/Tencentcloud/Eip/AddressTransform.cs @@ -24,22 +24,59 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Eip /// /// return await Deployment.RunAsync(() => /// { - /// var addressTransform = new Tencentcloud.Eip.AddressTransform("addressTransform", new() + /// // create vpc + /// var vpc = new Tencentcloud.Vpc.Instance("vpc", new() /// { - /// InstanceId = "", + /// CidrBlock = "10.0.0.0/16", /// }); /// - /// }); - /// ``` - /// <!--End PulumiCodeChooser --> + /// // create vpc subnet + /// var subnet = new Tencentcloud.Subnet.Instance("subnet", new() + /// { + /// VpcId = vpc.Id, + /// AvailabilityZone = "ap-guangzhou-6", + /// CidrBlock = "10.0.20.0/28", + /// IsMulticast = false, + /// }); /// - /// ## Import + /// // create cvm + /// var exampleInstance = new Tencentcloud.Instance.Instance("exampleInstance", new() + /// { + /// InstanceName = "tf_example", + /// AvailabilityZone = "ap-guangzhou-6", + /// ImageId = "img-9qrfy1xt", + /// InstanceType = "SA3.MEDIUM4", + /// SystemDiskType = "CLOUD_HSSD", + /// SystemDiskSize = 100, + /// Hostname = "example", + /// ProjectId = 0, + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// AllocatePublicIp = true, + /// InternetMaxBandwidthOut = 10, + /// DataDisks = new[] + /// { + /// new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs + /// { + /// DataDiskType = "CLOUD_HSSD", + /// DataDiskSize = 50, + /// Encrypt = false, + /// }, + /// }, + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// }); /// - /// eip address_transform can be imported using the id, e.g. + /// var exampleAddressTransform = new Tencentcloud.Eip.AddressTransform("exampleAddressTransform", new() + /// { + /// InstanceId = exampleInstance.Id, + /// }); /// - /// ```sh - /// $ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id + /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [TencentcloudResourceType("tencentcloud:Eip/addressTransform:AddressTransform")] public partial class AddressTransform : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Tencentcloud/Eip/NormalAddressReturn.cs b/sdk/dotnet/Tencentcloud/Eip/NormalAddressReturn.cs index 93384398d..4ff8da4fe 100644 --- a/sdk/dotnet/Tencentcloud/Eip/NormalAddressReturn.cs +++ b/sdk/dotnet/Tencentcloud/Eip/NormalAddressReturn.cs @@ -24,7 +24,7 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Eip /// /// return await Deployment.RunAsync(() => /// { - /// var normalAddressReturn = new Tencentcloud.Eip.NormalAddressReturn("normalAddressReturn", new() + /// var example = new Tencentcloud.Eip.NormalAddressReturn("example", new() /// { /// AddressIps = new[] /// { diff --git a/sdk/dotnet/Tencentcloud/Eip/PublicAddressAdjust.cs b/sdk/dotnet/Tencentcloud/Eip/PublicAddressAdjust.cs index e287ada2d..cb0a38f6b 100644 --- a/sdk/dotnet/Tencentcloud/Eip/PublicAddressAdjust.cs +++ b/sdk/dotnet/Tencentcloud/Eip/PublicAddressAdjust.cs @@ -24,10 +24,58 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Eip /// /// return await Deployment.RunAsync(() => /// { - /// var publicAddressAdjust = new Tencentcloud.Eip.PublicAddressAdjust("publicAddressAdjust", new() + /// // create vpc + /// var vpc = new Tencentcloud.Vpc.Instance("vpc", new() /// { - /// AddressId = "eip-erft45fu", - /// InstanceId = "ins-cr2rfq78", + /// CidrBlock = "10.0.0.0/16", + /// }); + /// + /// // create vpc subnet + /// var subnet = new Tencentcloud.Subnet.Instance("subnet", new() + /// { + /// VpcId = vpc.Id, + /// AvailabilityZone = "ap-guangzhou-6", + /// CidrBlock = "10.0.20.0/28", + /// IsMulticast = false, + /// }); + /// + /// // create cvm + /// var exampleInstance = new Tencentcloud.Instance.Instance("exampleInstance", new() + /// { + /// InstanceName = "tf_example", + /// AvailabilityZone = "ap-guangzhou-6", + /// ImageId = "img-9qrfy1xt", + /// InstanceType = "SA3.MEDIUM4", + /// SystemDiskType = "CLOUD_HSSD", + /// SystemDiskSize = 100, + /// Hostname = "example", + /// ProjectId = 0, + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// AllocatePublicIp = true, + /// InternetMaxBandwidthOut = 10, + /// DataDisks = new[] + /// { + /// new Tencentcloud.Instance.Inputs.InstanceDataDiskArgs + /// { + /// DataDiskType = "CLOUD_HSSD", + /// DataDiskSize = 50, + /// Encrypt = false, + /// }, + /// }, + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// }); + /// + /// // create eip + /// var exampleEip_instanceInstance = new Tencentcloud.Eip.Instance("exampleEip/instanceInstance"); + /// + /// var examplePublicAddressAdjust = new Tencentcloud.Eip.PublicAddressAdjust("examplePublicAddressAdjust", new() + /// { + /// InstanceId = exampleInstance.Id, + /// AddressId = exampleEip / instanceInstance.Id, /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Eips/GetInstance.cs b/sdk/dotnet/Tencentcloud/Eips/GetInstance.cs index 6f648cecc..9b9a544db 100644 --- a/sdk/dotnet/Tencentcloud/Eips/GetInstance.cs +++ b/sdk/dotnet/Tencentcloud/Eips/GetInstance.cs @@ -17,6 +17,8 @@ public static class GetInstance /// /// ## Example Usage /// + /// ### Query all eip instances + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -26,7 +28,24 @@ public static class GetInstance /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Eips.GetInstance.Invoke(new() + /// var example = Tencentcloud.Eips.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by eip ID + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() /// { /// EipId = "eip-ry9h95hg", /// }); @@ -34,6 +53,69 @@ public static class GetInstance /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by eip name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// EipName = "tf-example", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by public ip + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// PublicIp = "1.12.62.3", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by tags + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// Tags = + /// { + /// { "test", "test" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetInstanceArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("tencentcloud:Eips/getInstance:getInstance", args ?? new GetInstanceArgs(), options.WithDefaults()); @@ -43,6 +125,8 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// ## Example Usage /// + /// ### Query all eip instances + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -52,7 +136,24 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Eips.GetInstance.Invoke(new() + /// var example = Tencentcloud.Eips.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by eip ID + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() /// { /// EipId = "eip-ry9h95hg", /// }); @@ -60,6 +161,69 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by eip name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// EipName = "tf-example", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by public ip + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// PublicIp = "1.12.62.3", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query eip instances by tags + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Eips.GetInstance.Invoke(new() + /// { + /// Tags = + /// { + /// { "test", "test" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetInstanceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("tencentcloud:Eips/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/Tencentcloud/Image/GetInstance.cs b/sdk/dotnet/Tencentcloud/Image/GetInstance.cs index db03ae008..b831dda64 100644 --- a/sdk/dotnet/Tencentcloud/Image/GetInstance.cs +++ b/sdk/dotnet/Tencentcloud/Image/GetInstance.cs @@ -15,12 +15,15 @@ public static class GetInstance /// /// Provides an available image for the user. /// - /// The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + /// The Images data source fetch proper image, which could be one of the private images of the user and images of system + /// resources provided by TencentCloud, as well as other public images and those available on the image market. /// /// > **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead. /// /// ## Example Usage /// + /// ### Query image + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -30,7 +33,24 @@ public static class GetInstance /// /// return await Deployment.RunAsync(() => /// { - /// var myFavorateImage = Tencentcloud.Image.GetInstance.Invoke(new() + /// var example = Tencentcloud.Image.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by filter + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() /// { /// Filters = new[] /// { @@ -43,12 +63,51 @@ public static class GetInstance /// }, /// }, /// }, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by os name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() + /// { /// OsName = "centos", /// }); /// /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by image name regex + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() + /// { + /// ImageNameRegex = "^Windows\\s.*$", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetInstanceArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("tencentcloud:Image/getInstance:getInstance", args ?? new GetInstanceArgs(), options.WithDefaults()); @@ -56,12 +115,15 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// Provides an available image for the user. /// - /// The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + /// The Images data source fetch proper image, which could be one of the private images of the user and images of system + /// resources provided by TencentCloud, as well as other public images and those available on the image market. /// /// > **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead. /// /// ## Example Usage /// + /// ### Query image + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -71,7 +133,24 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// return await Deployment.RunAsync(() => /// { - /// var myFavorateImage = Tencentcloud.Image.GetInstance.Invoke(new() + /// var example = Tencentcloud.Image.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by filter + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() /// { /// Filters = new[] /// { @@ -84,12 +163,51 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// }, /// }, /// }, + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by os name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() + /// { /// OsName = "centos", /// }); /// /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ### Query image by image name regex + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Image.GetInstance.Invoke(new() + /// { + /// ImageNameRegex = "^Windows\\s.*$", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetInstanceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("tencentcloud:Image/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/Tencentcloud/Images/GetInstance.cs b/sdk/dotnet/Tencentcloud/Images/GetInstance.cs index 7a7733957..9c03c41bf 100644 --- a/sdk/dotnet/Tencentcloud/Images/GetInstance.cs +++ b/sdk/dotnet/Tencentcloud/Images/GetInstance.cs @@ -17,6 +17,85 @@ public static class GetInstance /// /// ## Example Usage /// + /// ### Query all images + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image ID + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// ImageId = "img-9qrfy1xt", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by os name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// OsName = "TencentOS Server 3.2 (Final)", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image name regex + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// ImageNameRegex = "^TencentOS", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image type + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -26,13 +105,32 @@ public static class GetInstance /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Images.GetInstance.Invoke(new() + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() /// { /// ImageTypes = new[] /// { /// "PUBLIC_IMAGE", /// }, - /// OsName = "centos 7.5", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by instance type + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// InstanceType = "S1.SMALL1", /// }); /// /// }); @@ -47,6 +145,85 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// ## Example Usage /// + /// ### Query all images + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image ID + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// ImageId = "img-9qrfy1xt", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by os name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// OsName = "TencentOS Server 3.2 (Final)", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image name regex + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// ImageNameRegex = "^TencentOS", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by image type + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -56,13 +233,32 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Images.GetInstance.Invoke(new() + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() /// { /// ImageTypes = new[] /// { /// "PUBLIC_IMAGE", /// }, - /// OsName = "centos 7.5", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query images by instance type + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Images.GetInstance.Invoke(new() + /// { + /// InstanceType = "S1.SMALL1", /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Instance/GetTypes.cs b/sdk/dotnet/Tencentcloud/Instance/GetTypes.cs index 3a0e910e1..57a5aba75 100644 --- a/sdk/dotnet/Tencentcloud/Instance/GetTypes.cs +++ b/sdk/dotnet/Tencentcloud/Instance/GetTypes.cs @@ -26,25 +26,40 @@ public static class GetTypes /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instance.GetTypes.Invoke(new() + /// var example = Tencentcloud.Instance.GetTypes.Invoke(new() /// { - /// AvailabilityZone = "ap-guangzhou-2", - /// CpuCoreCount = 2, - /// MemorySize = 4, + /// AvailabilityZone = "ap-guangzhou-6", + /// CpuCoreCount = 4, + /// MemorySize = 8, /// }); /// - /// var t1c1g = Tencentcloud.Instance.GetTypes.Invoke(new() + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Complete Example + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instance.GetTypes.Invoke(new() /// { - /// CpuCoreCount = 1, + /// CpuCoreCount = 4, /// ExcludeSoldOut = true, /// Filters = new[] /// { /// new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs /// { - /// Name = "instance-charge-type", + /// Name = "instance-family", /// Values = new[] /// { - /// "POSTPAID_BY_HOUR", + /// "SA2", /// }, /// }, /// new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs @@ -52,11 +67,11 @@ public static class GetTypes /// Name = "zone", /// Values = new[] /// { - /// "ap-shanghai-2", + /// "ap-guangzhou-6", /// }, /// }, /// }, - /// MemorySize = 1, + /// MemorySize = 8, /// }); /// /// }); @@ -80,25 +95,40 @@ public static Task InvokeAsync(GetTypesArgs? args = null, Invoke /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instance.GetTypes.Invoke(new() + /// var example = Tencentcloud.Instance.GetTypes.Invoke(new() /// { - /// AvailabilityZone = "ap-guangzhou-2", - /// CpuCoreCount = 2, - /// MemorySize = 4, + /// AvailabilityZone = "ap-guangzhou-6", + /// CpuCoreCount = 4, + /// MemorySize = 8, /// }); /// - /// var t1c1g = Tencentcloud.Instance.GetTypes.Invoke(new() + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Complete Example + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instance.GetTypes.Invoke(new() /// { - /// CpuCoreCount = 1, + /// CpuCoreCount = 4, /// ExcludeSoldOut = true, /// Filters = new[] /// { /// new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs /// { - /// Name = "instance-charge-type", + /// Name = "instance-family", /// Values = new[] /// { - /// "POSTPAID_BY_HOUR", + /// "SA2", /// }, /// }, /// new Tencentcloud.Instance.Inputs.GetTypesFilterInputArgs @@ -106,11 +136,11 @@ public static Task InvokeAsync(GetTypesArgs? args = null, Invoke /// Name = "zone", /// Values = new[] /// { - /// "ap-shanghai-2", + /// "ap-guangzhou-6", /// }, /// }, /// }, - /// MemorySize = 1, + /// MemorySize = 8, /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Instances/GetInstance.cs b/sdk/dotnet/Tencentcloud/Instances/GetInstance.cs index ac713ffc4..8fdebdada 100644 --- a/sdk/dotnet/Tencentcloud/Instances/GetInstance.cs +++ b/sdk/dotnet/Tencentcloud/Instances/GetInstance.cs @@ -17,6 +17,54 @@ public static class GetInstance /// /// ## Example Usage /// + /// ### Query all cvm instances + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instances.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query cvm instances by filters + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instances.GetInstance.Invoke(new() + /// { + /// AvailabilityZone = "ap-guangzhou-6", + /// InstanceId = "ins-a81rnm8c", + /// InstanceName = "tf_example", + /// ProjectId = 0, + /// SubnetId = "subnet-1to7t9au", + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// VpcId = "vpc-l040hycv", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Or by instance set id list + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -26,9 +74,12 @@ public static class GetInstance /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instances.GetInstance.Invoke(new() + /// var example = Tencentcloud.Instances.GetInstance.Invoke(new() /// { - /// InstanceId = "ins-da412f5a", + /// InstanceSetIds = new[] + /// { + /// "ins-a81rnm8c", + /// }, /// }); /// /// }); @@ -43,6 +94,54 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// ## Example Usage /// + /// ### Query all cvm instances + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instances.GetInstance.Invoke(); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query cvm instances by filters + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Tencentcloud.Instances.GetInstance.Invoke(new() + /// { + /// AvailabilityZone = "ap-guangzhou-6", + /// InstanceId = "ins-a81rnm8c", + /// InstanceName = "tf_example", + /// ProjectId = 0, + /// SubnetId = "subnet-1to7t9au", + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// VpcId = "vpc-l040hycv", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Or by instance set id list + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -52,9 +151,12 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instances.GetInstance.Invoke(new() + /// var example = Tencentcloud.Instances.GetInstance.Invoke(new() /// { - /// InstanceId = "ins-da412f5a", + /// InstanceSetIds = new[] + /// { + /// "ins-a81rnm8c", + /// }, /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Instances/GetSet.cs b/sdk/dotnet/Tencentcloud/Instances/GetSet.cs index 6d7c2bd49..e57a62cc7 100644 --- a/sdk/dotnet/Tencentcloud/Instances/GetSet.cs +++ b/sdk/dotnet/Tencentcloud/Instances/GetSet.cs @@ -26,9 +26,18 @@ public static class GetSet /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instances.GetSet.Invoke(new() + /// var example = Tencentcloud.Instances.GetSet.Invoke(new() /// { - /// VpcId = "vpc-4owdpnwr", + /// AvailabilityZone = "ap-guangzhou-6", + /// InstanceId = "ins-a81rnm8c", + /// InstanceName = "tf_example", + /// ProjectId = 0, + /// SubnetId = "subnet-1to7t9au", + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// VpcId = "vpc-l040hycv", /// }); /// /// }); @@ -52,9 +61,18 @@ public static Task InvokeAsync(GetSetArgs? args = null, InvokeOpti /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Instances.GetSet.Invoke(new() + /// var example = Tencentcloud.Instances.GetSet.Invoke(new() /// { - /// VpcId = "vpc-4owdpnwr", + /// AvailabilityZone = "ap-guangzhou-6", + /// InstanceId = "ins-a81rnm8c", + /// InstanceName = "tf_example", + /// ProjectId = 0, + /// SubnetId = "subnet-1to7t9au", + /// Tags = + /// { + /// { "tagKey", "tagValue" }, + /// }, + /// VpcId = "vpc-l040hycv", /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Key/GetPairs.cs b/sdk/dotnet/Tencentcloud/Key/GetPairs.cs index a5602e8ff..471a0446d 100644 --- a/sdk/dotnet/Tencentcloud/Key/GetPairs.cs +++ b/sdk/dotnet/Tencentcloud/Key/GetPairs.cs @@ -17,6 +17,8 @@ public static class GetPairs /// /// ## Example Usage /// + /// ### Query key pairs by key ID + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -26,12 +28,27 @@ public static class GetPairs /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Key.GetPairs.Invoke(new() + /// var keyId = Tencentcloud.Key.GetPairs.Invoke(new() /// { /// KeyId = "skey-ie97i3ml", /// }); /// - /// var name = Tencentcloud.Key.GetPairs.Invoke(new() + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query key pairs by key name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var keyName = Tencentcloud.Key.GetPairs.Invoke(new() /// { /// KeyName = "^test$", /// }); @@ -48,6 +65,8 @@ public static Task InvokeAsync(GetPairsArgs? args = null, Invoke /// /// ## Example Usage /// + /// ### Query key pairs by key ID + /// /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; @@ -57,12 +76,27 @@ public static Task InvokeAsync(GetPairsArgs? args = null, Invoke /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Key.GetPairs.Invoke(new() + /// var keyId = Tencentcloud.Key.GetPairs.Invoke(new() /// { /// KeyId = "skey-ie97i3ml", /// }); /// - /// var name = Tencentcloud.Key.GetPairs.Invoke(new() + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> + /// + /// ### Query key pairs by key name + /// + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Tencentcloud = Pulumi.Tencentcloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var keyName = Tencentcloud.Key.GetPairs.Invoke(new() /// { /// KeyName = "^test$", /// }); diff --git a/sdk/dotnet/Tencentcloud/Placement/GetGroups.cs b/sdk/dotnet/Tencentcloud/Placement/GetGroups.cs index 2343421aa..6ede57847 100644 --- a/sdk/dotnet/Tencentcloud/Placement/GetGroups.cs +++ b/sdk/dotnet/Tencentcloud/Placement/GetGroups.cs @@ -26,10 +26,10 @@ public static class GetGroups /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Placement.GetGroups.Invoke(new() + /// var example = Tencentcloud.Placement.GetGroups.Invoke(new() /// { - /// Name = "test", - /// PlacementGroupId = "ps-21q9ibvr", + /// Name = "tf_example", + /// PlacementGroupId = "ps-bwvst92h", /// }); /// /// }); @@ -53,10 +53,10 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Tencentcloud.Placement.GetGroups.Invoke(new() + /// var example = Tencentcloud.Placement.GetGroups.Invoke(new() /// { - /// Name = "test", - /// PlacementGroupId = "ps-21q9ibvr", + /// Name = "tf_example", + /// PlacementGroupId = "ps-bwvst92h", /// }); /// /// }); diff --git a/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleArgs.cs b/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleArgs.cs new file mode 100644 index 000000000..7ca2a83f4 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq.Inputs +{ + + public sealed class RocketmqVipInstanceIpRuleArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether to allow or deny. + /// + [Input("allow", required: true)] + public Input Allow { get; set; } = null!; + + /// + /// IP address block information. + /// + [Input("ipRule", required: true)] + public Input IpRule { get; set; } = null!; + + /// + /// Remark. + /// + [Input("remark", required: true)] + public Input Remark { get; set; } = null!; + + public RocketmqVipInstanceIpRuleArgs() + { + } + public static new RocketmqVipInstanceIpRuleArgs Empty => new RocketmqVipInstanceIpRuleArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleGetArgs.cs b/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleGetArgs.cs new file mode 100644 index 000000000..3be9edc96 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Tdmq/Inputs/RocketmqVipInstanceIpRuleGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq.Inputs +{ + + public sealed class RocketmqVipInstanceIpRuleGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether to allow or deny. + /// + [Input("allow", required: true)] + public Input Allow { get; set; } = null!; + + /// + /// IP address block information. + /// + [Input("ipRule", required: true)] + public Input IpRule { get; set; } = null!; + + /// + /// Remark. + /// + [Input("remark", required: true)] + public Input Remark { get; set; } = null!; + + public RocketmqVipInstanceIpRuleGetArgs() + { + } + public static new RocketmqVipInstanceIpRuleGetArgs Empty => new RocketmqVipInstanceIpRuleGetArgs(); + } +} diff --git a/sdk/dotnet/Tencentcloud/Tdmq/Outputs/RocketmqVipInstanceIpRule.cs b/sdk/dotnet/Tencentcloud/Tdmq/Outputs/RocketmqVipInstanceIpRule.cs new file mode 100644 index 000000000..b9af53513 --- /dev/null +++ b/sdk/dotnet/Tencentcloud/Tdmq/Outputs/RocketmqVipInstanceIpRule.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq.Outputs +{ + + [OutputType] + public sealed class RocketmqVipInstanceIpRule + { + /// + /// Whether to allow or deny. + /// + public readonly bool Allow; + /// + /// IP address block information. + /// + public readonly string IpRule; + /// + /// Remark. + /// + public readonly string Remark; + + [OutputConstructor] + private RocketmqVipInstanceIpRule( + bool allow, + + string ipRule, + + string remark) + { + Allow = allow; + IpRule = ipRule; + Remark = remark; + } + } +} diff --git a/sdk/dotnet/Tencentcloud/Tdmq/RocketmqVipInstance.cs b/sdk/dotnet/Tencentcloud/Tdmq/RocketmqVipInstance.cs index ff00d280a..3c2ec556e 100644 --- a/sdk/dotnet/Tencentcloud/Tdmq/RocketmqVipInstance.cs +++ b/sdk/dotnet/Tencentcloud/Tdmq/RocketmqVipInstance.cs @@ -14,10 +14,17 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq /// Provides a resource to create a tdmq rocketmq_vip_instance /// /// > **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`. + /// **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported. /// [TencentcloudResourceType("tencentcloud:Tdmq/rocketmqVipInstance:RocketmqVipInstance")] public partial class RocketmqVipInstance : global::Pulumi.CustomResource { + /// + /// Public IP access control rules. + /// + [Output("ipRules")] + public Output> IpRules { get; private set; } = null!; + /// /// Instance name. /// @@ -31,7 +38,7 @@ public partial class RocketmqVipInstance : global::Pulumi.CustomResource public Output NodeCount { get; private set; } = null!; /// - /// Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + /// Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. /// [Output("spec")] public Output Spec { get; private set; } = null!; @@ -107,6 +114,18 @@ public static RocketmqVipInstance Get(string name, Input id, RocketmqVip public sealed class RocketmqVipInstanceArgs : global::Pulumi.ResourceArgs { + [Input("ipRules")] + private InputList? _ipRules; + + /// + /// Public IP access control rules. + /// + public InputList IpRules + { + get => _ipRules ?? (_ipRules = new InputList()); + set => _ipRules = value; + } + /// /// Instance name. /// @@ -120,7 +139,7 @@ public sealed class RocketmqVipInstanceArgs : global::Pulumi.ResourceArgs public Input NodeCount { get; set; } = null!; /// - /// Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + /// Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. /// [Input("spec", required: true)] public Input Spec { get; set; } = null!; @@ -163,6 +182,18 @@ public RocketmqVipInstanceArgs() public sealed class RocketmqVipInstanceState : global::Pulumi.ResourceArgs { + [Input("ipRules")] + private InputList? _ipRules; + + /// + /// Public IP access control rules. + /// + public InputList IpRules + { + get => _ipRules ?? (_ipRules = new InputList()); + set => _ipRules = value; + } + /// /// Instance name. /// @@ -176,7 +207,7 @@ public sealed class RocketmqVipInstanceState : global::Pulumi.ResourceArgs public Input? NodeCount { get; set; } /// - /// Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + /// Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. /// [Input("spec")] public Input? Spec { get; set; } diff --git a/sdk/go/tencentcloud/cls/index.go b/sdk/go/tencentcloud/cls/index.go new file mode 100644 index 000000000..14f4b0a7d --- /dev/null +++ b/sdk/go/tencentcloud/cls/index.go @@ -0,0 +1,392 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package cls + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/internal" +) + +// Provides a resource to create a cls index. +// +// ## Example Usage +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cls" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleLogset, err := Cls.NewLogset(ctx, "exampleLogset", &Cls.LogsetArgs{ +// LogsetName: pulumi.String("tf_example"), +// Tags: pulumi.Map{ +// "demo": pulumi.Any("test"), +// }, +// }) +// if err != nil { +// return err +// } +// exampleTopic, err := Cls.NewTopic(ctx, "exampleTopic", &Cls.TopicArgs{ +// TopicName: pulumi.String("tf_example"), +// LogsetId: exampleLogset.ID(), +// AutoSplit: pulumi.Bool(false), +// MaxSplitPartitions: pulumi.Int(20), +// PartitionCount: pulumi.Int(1), +// Period: pulumi.Int(30), +// StorageType: pulumi.String("hot"), +// Describes: pulumi.String("Test Demo."), +// HotPeriod: pulumi.Int(10), +// Tags: pulumi.Map{ +// "test": pulumi.Any("test"), +// }, +// }) +// if err != nil { +// return err +// } +// tokenizerValue := "@&?|#()='\",;:<>[]{}" +// _, err = Cls.NewIndex(ctx, "exampleIndex", &Cls.IndexArgs{ +// TopicId: exampleTopic.ID(), +// Rule: &cls.IndexRuleArgs{ +// FullText: &cls.IndexRuleFullTextArgs{ +// CaseSensitive: pulumi.Bool(true), +// Tokenizer: pulumi.String(tokenizerValue), +// ContainZH: pulumi.Bool(true), +// }, +// KeyValue: &cls.IndexRuleKeyValueArgs{ +// CaseSensitive: pulumi.Bool(true), +// KeyValues: cls.IndexRuleKeyValueKeyValueArray{ +// &cls.IndexRuleKeyValueKeyValueArgs{ +// Key: pulumi.String("hello"), +// Value: &cls.IndexRuleKeyValueKeyValueValueArgs{ +// ContainZH: pulumi.Bool(true), +// SqlFlag: pulumi.Bool(true), +// Tokenizer: pulumi.String(tokenizerValue), +// Type: pulumi.String("text"), +// }, +// }, +// &cls.IndexRuleKeyValueKeyValueArgs{ +// Key: pulumi.String("world"), +// Value: &cls.IndexRuleKeyValueKeyValueValueArgs{ +// ContainZH: pulumi.Bool(true), +// SqlFlag: pulumi.Bool(true), +// Tokenizer: pulumi.String(tokenizerValue), +// Type: pulumi.String("text"), +// }, +// }, +// }, +// }, +// Tag: &cls.IndexRuleTagArgs{ +// CaseSensitive: pulumi.Bool(true), +// KeyValues: cls.IndexRuleTagKeyValueArray{ +// &cls.IndexRuleTagKeyValueArgs{ +// Key: pulumi.String("terraform"), +// Value: &cls.IndexRuleTagKeyValueValueArgs{ +// ContainZH: pulumi.Bool(true), +// SqlFlag: pulumi.Bool(true), +// Tokenizer: pulumi.String(tokenizerValue), +// Type: pulumi.String("text"), +// }, +// }, +// }, +// }, +// DynamicIndex: &cls.IndexRuleDynamicIndexArgs{ +// Status: pulumi.Bool(true), +// }, +// }, +// Status: pulumi.Bool(true), +// IncludeInternalFields: pulumi.Bool(true), +// MetadataFlag: pulumi.Int(1), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ## Import +// +// cls cos index can be imported using the id, e.g. +// +// ```sh +// $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc +// ``` +type Index struct { + pulumi.CustomResourceState + + // Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + IncludeInternalFields pulumi.BoolPtrOutput `pulumi:"includeInternalFields"` + // 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).. + MetadataFlag pulumi.IntPtrOutput `pulumi:"metadataFlag"` + // Index rule. + Rule IndexRuleOutput `pulumi:"rule"` + // Whether to take effect. Default value: true. + Status pulumi.BoolOutput `pulumi:"status"` + // Log topic ID. + TopicId pulumi.StringOutput `pulumi:"topicId"` +} + +// NewIndex registers a new resource with the given unique name, arguments, and options. +func NewIndex(ctx *pulumi.Context, + name string, args *IndexArgs, opts ...pulumi.ResourceOption) (*Index, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.TopicId == nil { + return nil, errors.New("invalid value for required argument 'TopicId'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource Index + err := ctx.RegisterResource("tencentcloud:Cls/index:Index", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIndex gets an existing Index resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetIndex(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error) { + var resource Index + err := ctx.ReadResource("tencentcloud:Cls/index:Index", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Index resources. +type indexState struct { + // Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + IncludeInternalFields *bool `pulumi:"includeInternalFields"` + // 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).. + MetadataFlag *int `pulumi:"metadataFlag"` + // Index rule. + Rule *IndexRule `pulumi:"rule"` + // Whether to take effect. Default value: true. + Status *bool `pulumi:"status"` + // Log topic ID. + TopicId *string `pulumi:"topicId"` +} + +type IndexState struct { + // Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + IncludeInternalFields pulumi.BoolPtrInput + // 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).. + MetadataFlag pulumi.IntPtrInput + // Index rule. + Rule IndexRulePtrInput + // Whether to take effect. Default value: true. + Status pulumi.BoolPtrInput + // Log topic ID. + TopicId pulumi.StringPtrInput +} + +func (IndexState) ElementType() reflect.Type { + return reflect.TypeOf((*indexState)(nil)).Elem() +} + +type indexArgs struct { + // Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + IncludeInternalFields *bool `pulumi:"includeInternalFields"` + // 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).. + MetadataFlag *int `pulumi:"metadataFlag"` + // Index rule. + Rule *IndexRule `pulumi:"rule"` + // Whether to take effect. Default value: true. + Status *bool `pulumi:"status"` + // Log topic ID. + TopicId string `pulumi:"topicId"` +} + +// The set of arguments for constructing a Index resource. +type IndexArgs struct { + // Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + IncludeInternalFields pulumi.BoolPtrInput + // 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).. + MetadataFlag pulumi.IntPtrInput + // Index rule. + Rule IndexRulePtrInput + // Whether to take effect. Default value: true. + Status pulumi.BoolPtrInput + // Log topic ID. + TopicId pulumi.StringInput +} + +func (IndexArgs) ElementType() reflect.Type { + return reflect.TypeOf((*indexArgs)(nil)).Elem() +} + +type IndexInput interface { + pulumi.Input + + ToIndexOutput() IndexOutput + ToIndexOutputWithContext(ctx context.Context) IndexOutput +} + +func (*Index) ElementType() reflect.Type { + return reflect.TypeOf((**Index)(nil)).Elem() +} + +func (i *Index) ToIndexOutput() IndexOutput { + return i.ToIndexOutputWithContext(context.Background()) +} + +func (i *Index) ToIndexOutputWithContext(ctx context.Context) IndexOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexOutput) +} + +// IndexArrayInput is an input type that accepts IndexArray and IndexArrayOutput values. +// You can construct a concrete instance of `IndexArrayInput` via: +// +// IndexArray{ IndexArgs{...} } +type IndexArrayInput interface { + pulumi.Input + + ToIndexArrayOutput() IndexArrayOutput + ToIndexArrayOutputWithContext(context.Context) IndexArrayOutput +} + +type IndexArray []IndexInput + +func (IndexArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Index)(nil)).Elem() +} + +func (i IndexArray) ToIndexArrayOutput() IndexArrayOutput { + return i.ToIndexArrayOutputWithContext(context.Background()) +} + +func (i IndexArray) ToIndexArrayOutputWithContext(ctx context.Context) IndexArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexArrayOutput) +} + +// IndexMapInput is an input type that accepts IndexMap and IndexMapOutput values. +// You can construct a concrete instance of `IndexMapInput` via: +// +// IndexMap{ "key": IndexArgs{...} } +type IndexMapInput interface { + pulumi.Input + + ToIndexMapOutput() IndexMapOutput + ToIndexMapOutputWithContext(context.Context) IndexMapOutput +} + +type IndexMap map[string]IndexInput + +func (IndexMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Index)(nil)).Elem() +} + +func (i IndexMap) ToIndexMapOutput() IndexMapOutput { + return i.ToIndexMapOutputWithContext(context.Background()) +} + +func (i IndexMap) ToIndexMapOutputWithContext(ctx context.Context) IndexMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexMapOutput) +} + +type IndexOutput struct{ *pulumi.OutputState } + +func (IndexOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Index)(nil)).Elem() +} + +func (o IndexOutput) ToIndexOutput() IndexOutput { + return o +} + +func (o IndexOutput) ToIndexOutputWithContext(ctx context.Context) IndexOutput { + return o +} + +// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. +func (o IndexOutput) IncludeInternalFields() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *Index) pulumi.BoolPtrOutput { return v.IncludeInternalFields }).(pulumi.BoolPtrOutput) +} + +// 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).. +func (o IndexOutput) MetadataFlag() pulumi.IntPtrOutput { + return o.ApplyT(func(v *Index) pulumi.IntPtrOutput { return v.MetadataFlag }).(pulumi.IntPtrOutput) +} + +// Index rule. +func (o IndexOutput) Rule() IndexRuleOutput { + return o.ApplyT(func(v *Index) IndexRuleOutput { return v.Rule }).(IndexRuleOutput) +} + +// Whether to take effect. Default value: true. +func (o IndexOutput) Status() pulumi.BoolOutput { + return o.ApplyT(func(v *Index) pulumi.BoolOutput { return v.Status }).(pulumi.BoolOutput) +} + +// Log topic ID. +func (o IndexOutput) TopicId() pulumi.StringOutput { + return o.ApplyT(func(v *Index) pulumi.StringOutput { return v.TopicId }).(pulumi.StringOutput) +} + +type IndexArrayOutput struct{ *pulumi.OutputState } + +func (IndexArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Index)(nil)).Elem() +} + +func (o IndexArrayOutput) ToIndexArrayOutput() IndexArrayOutput { + return o +} + +func (o IndexArrayOutput) ToIndexArrayOutputWithContext(ctx context.Context) IndexArrayOutput { + return o +} + +func (o IndexArrayOutput) Index(i pulumi.IntInput) IndexOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Index { + return vs[0].([]*Index)[vs[1].(int)] + }).(IndexOutput) +} + +type IndexMapOutput struct{ *pulumi.OutputState } + +func (IndexMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Index)(nil)).Elem() +} + +func (o IndexMapOutput) ToIndexMapOutput() IndexMapOutput { + return o +} + +func (o IndexMapOutput) ToIndexMapOutputWithContext(ctx context.Context) IndexMapOutput { + return o +} + +func (o IndexMapOutput) MapIndex(k pulumi.StringInput) IndexOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Index { + return vs[0].(map[string]*Index)[vs[1].(string)] + }).(IndexOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*IndexInput)(nil)).Elem(), &Index{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexArrayInput)(nil)).Elem(), IndexArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexMapInput)(nil)).Elem(), IndexMap{}) + pulumi.RegisterOutputType(IndexOutput{}) + pulumi.RegisterOutputType(IndexArrayOutput{}) + pulumi.RegisterOutputType(IndexMapOutput{}) +} diff --git a/sdk/go/tencentcloud/cls/init.go b/sdk/go/tencentcloud/cls/init.go index 0b374982c..dd9313dd2 100644 --- a/sdk/go/tencentcloud/cls/init.go +++ b/sdk/go/tencentcloud/cls/init.go @@ -41,6 +41,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &DataTransform{} case "tencentcloud:Cls/export:Export": r = &Export{} + case "tencentcloud:Cls/index:Index": + r = &Index{} case "tencentcloud:Cls/kafkaRecharge:KafkaRecharge": r = &KafkaRecharge{} case "tencentcloud:Cls/logset:Logset": @@ -114,6 +116,11 @@ func init() { "Cls/export", &module{version}, ) + pulumi.RegisterResourceModule( + "tencentcloud", + "Cls/index", + &module{version}, + ) pulumi.RegisterResourceModule( "tencentcloud", "Cls/kafkaRecharge", diff --git a/sdk/go/tencentcloud/cls/pulumiTypes.go b/sdk/go/tencentcloud/cls/pulumiTypes.go index 7b054c442..3e76ae874 100644 --- a/sdk/go/tencentcloud/cls/pulumiTypes.go +++ b/sdk/go/tencentcloud/cls/pulumiTypes.go @@ -5280,6 +5280,1424 @@ func (o DataTransformDstResourceArrayOutput) Index(i pulumi.IntInput) DataTransf }).(DataTransformDstResourceOutput) } +type IndexRule struct { + // The key value index is automatically configured. If it is empty, it means that the function is not enabled. + DynamicIndex *IndexRuleDynamicIndex `pulumi:"dynamicIndex"` + // Full-Text index configuration. + FullText *IndexRuleFullText `pulumi:"fullText"` + // Key-Value index configuration. + KeyValue *IndexRuleKeyValue `pulumi:"keyValue"` + // Metafield index configuration. + Tag *IndexRuleTag `pulumi:"tag"` +} + +// IndexRuleInput is an input type that accepts IndexRuleArgs and IndexRuleOutput values. +// You can construct a concrete instance of `IndexRuleInput` via: +// +// IndexRuleArgs{...} +type IndexRuleInput interface { + pulumi.Input + + ToIndexRuleOutput() IndexRuleOutput + ToIndexRuleOutputWithContext(context.Context) IndexRuleOutput +} + +type IndexRuleArgs struct { + // The key value index is automatically configured. If it is empty, it means that the function is not enabled. + DynamicIndex IndexRuleDynamicIndexPtrInput `pulumi:"dynamicIndex"` + // Full-Text index configuration. + FullText IndexRuleFullTextPtrInput `pulumi:"fullText"` + // Key-Value index configuration. + KeyValue IndexRuleKeyValuePtrInput `pulumi:"keyValue"` + // Metafield index configuration. + Tag IndexRuleTagPtrInput `pulumi:"tag"` +} + +func (IndexRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRule)(nil)).Elem() +} + +func (i IndexRuleArgs) ToIndexRuleOutput() IndexRuleOutput { + return i.ToIndexRuleOutputWithContext(context.Background()) +} + +func (i IndexRuleArgs) ToIndexRuleOutputWithContext(ctx context.Context) IndexRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleOutput) +} + +func (i IndexRuleArgs) ToIndexRulePtrOutput() IndexRulePtrOutput { + return i.ToIndexRulePtrOutputWithContext(context.Background()) +} + +func (i IndexRuleArgs) ToIndexRulePtrOutputWithContext(ctx context.Context) IndexRulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleOutput).ToIndexRulePtrOutputWithContext(ctx) +} + +// IndexRulePtrInput is an input type that accepts IndexRuleArgs, IndexRulePtr and IndexRulePtrOutput values. +// You can construct a concrete instance of `IndexRulePtrInput` via: +// +// IndexRuleArgs{...} +// +// or: +// +// nil +type IndexRulePtrInput interface { + pulumi.Input + + ToIndexRulePtrOutput() IndexRulePtrOutput + ToIndexRulePtrOutputWithContext(context.Context) IndexRulePtrOutput +} + +type indexRulePtrType IndexRuleArgs + +func IndexRulePtr(v *IndexRuleArgs) IndexRulePtrInput { + return (*indexRulePtrType)(v) +} + +func (*indexRulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRule)(nil)).Elem() +} + +func (i *indexRulePtrType) ToIndexRulePtrOutput() IndexRulePtrOutput { + return i.ToIndexRulePtrOutputWithContext(context.Background()) +} + +func (i *indexRulePtrType) ToIndexRulePtrOutputWithContext(ctx context.Context) IndexRulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRulePtrOutput) +} + +type IndexRuleOutput struct{ *pulumi.OutputState } + +func (IndexRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRule)(nil)).Elem() +} + +func (o IndexRuleOutput) ToIndexRuleOutput() IndexRuleOutput { + return o +} + +func (o IndexRuleOutput) ToIndexRuleOutputWithContext(ctx context.Context) IndexRuleOutput { + return o +} + +func (o IndexRuleOutput) ToIndexRulePtrOutput() IndexRulePtrOutput { + return o.ToIndexRulePtrOutputWithContext(context.Background()) +} + +func (o IndexRuleOutput) ToIndexRulePtrOutputWithContext(ctx context.Context) IndexRulePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRule) *IndexRule { + return &v + }).(IndexRulePtrOutput) +} + +// The key value index is automatically configured. If it is empty, it means that the function is not enabled. +func (o IndexRuleOutput) DynamicIndex() IndexRuleDynamicIndexPtrOutput { + return o.ApplyT(func(v IndexRule) *IndexRuleDynamicIndex { return v.DynamicIndex }).(IndexRuleDynamicIndexPtrOutput) +} + +// Full-Text index configuration. +func (o IndexRuleOutput) FullText() IndexRuleFullTextPtrOutput { + return o.ApplyT(func(v IndexRule) *IndexRuleFullText { return v.FullText }).(IndexRuleFullTextPtrOutput) +} + +// Key-Value index configuration. +func (o IndexRuleOutput) KeyValue() IndexRuleKeyValuePtrOutput { + return o.ApplyT(func(v IndexRule) *IndexRuleKeyValue { return v.KeyValue }).(IndexRuleKeyValuePtrOutput) +} + +// Metafield index configuration. +func (o IndexRuleOutput) Tag() IndexRuleTagPtrOutput { + return o.ApplyT(func(v IndexRule) *IndexRuleTag { return v.Tag }).(IndexRuleTagPtrOutput) +} + +type IndexRulePtrOutput struct{ *pulumi.OutputState } + +func (IndexRulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRule)(nil)).Elem() +} + +func (o IndexRulePtrOutput) ToIndexRulePtrOutput() IndexRulePtrOutput { + return o +} + +func (o IndexRulePtrOutput) ToIndexRulePtrOutputWithContext(ctx context.Context) IndexRulePtrOutput { + return o +} + +func (o IndexRulePtrOutput) Elem() IndexRuleOutput { + return o.ApplyT(func(v *IndexRule) IndexRule { + if v != nil { + return *v + } + var ret IndexRule + return ret + }).(IndexRuleOutput) +} + +// The key value index is automatically configured. If it is empty, it means that the function is not enabled. +func (o IndexRulePtrOutput) DynamicIndex() IndexRuleDynamicIndexPtrOutput { + return o.ApplyT(func(v *IndexRule) *IndexRuleDynamicIndex { + if v == nil { + return nil + } + return v.DynamicIndex + }).(IndexRuleDynamicIndexPtrOutput) +} + +// Full-Text index configuration. +func (o IndexRulePtrOutput) FullText() IndexRuleFullTextPtrOutput { + return o.ApplyT(func(v *IndexRule) *IndexRuleFullText { + if v == nil { + return nil + } + return v.FullText + }).(IndexRuleFullTextPtrOutput) +} + +// Key-Value index configuration. +func (o IndexRulePtrOutput) KeyValue() IndexRuleKeyValuePtrOutput { + return o.ApplyT(func(v *IndexRule) *IndexRuleKeyValue { + if v == nil { + return nil + } + return v.KeyValue + }).(IndexRuleKeyValuePtrOutput) +} + +// Metafield index configuration. +func (o IndexRulePtrOutput) Tag() IndexRuleTagPtrOutput { + return o.ApplyT(func(v *IndexRule) *IndexRuleTag { + if v == nil { + return nil + } + return v.Tag + }).(IndexRuleTagPtrOutput) +} + +type IndexRuleDynamicIndex struct { + // index automatic configuration switch. + Status bool `pulumi:"status"` +} + +// IndexRuleDynamicIndexInput is an input type that accepts IndexRuleDynamicIndexArgs and IndexRuleDynamicIndexOutput values. +// You can construct a concrete instance of `IndexRuleDynamicIndexInput` via: +// +// IndexRuleDynamicIndexArgs{...} +type IndexRuleDynamicIndexInput interface { + pulumi.Input + + ToIndexRuleDynamicIndexOutput() IndexRuleDynamicIndexOutput + ToIndexRuleDynamicIndexOutputWithContext(context.Context) IndexRuleDynamicIndexOutput +} + +type IndexRuleDynamicIndexArgs struct { + // index automatic configuration switch. + Status pulumi.BoolInput `pulumi:"status"` +} + +func (IndexRuleDynamicIndexArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleDynamicIndex)(nil)).Elem() +} + +func (i IndexRuleDynamicIndexArgs) ToIndexRuleDynamicIndexOutput() IndexRuleDynamicIndexOutput { + return i.ToIndexRuleDynamicIndexOutputWithContext(context.Background()) +} + +func (i IndexRuleDynamicIndexArgs) ToIndexRuleDynamicIndexOutputWithContext(ctx context.Context) IndexRuleDynamicIndexOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleDynamicIndexOutput) +} + +func (i IndexRuleDynamicIndexArgs) ToIndexRuleDynamicIndexPtrOutput() IndexRuleDynamicIndexPtrOutput { + return i.ToIndexRuleDynamicIndexPtrOutputWithContext(context.Background()) +} + +func (i IndexRuleDynamicIndexArgs) ToIndexRuleDynamicIndexPtrOutputWithContext(ctx context.Context) IndexRuleDynamicIndexPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleDynamicIndexOutput).ToIndexRuleDynamicIndexPtrOutputWithContext(ctx) +} + +// IndexRuleDynamicIndexPtrInput is an input type that accepts IndexRuleDynamicIndexArgs, IndexRuleDynamicIndexPtr and IndexRuleDynamicIndexPtrOutput values. +// You can construct a concrete instance of `IndexRuleDynamicIndexPtrInput` via: +// +// IndexRuleDynamicIndexArgs{...} +// +// or: +// +// nil +type IndexRuleDynamicIndexPtrInput interface { + pulumi.Input + + ToIndexRuleDynamicIndexPtrOutput() IndexRuleDynamicIndexPtrOutput + ToIndexRuleDynamicIndexPtrOutputWithContext(context.Context) IndexRuleDynamicIndexPtrOutput +} + +type indexRuleDynamicIndexPtrType IndexRuleDynamicIndexArgs + +func IndexRuleDynamicIndexPtr(v *IndexRuleDynamicIndexArgs) IndexRuleDynamicIndexPtrInput { + return (*indexRuleDynamicIndexPtrType)(v) +} + +func (*indexRuleDynamicIndexPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleDynamicIndex)(nil)).Elem() +} + +func (i *indexRuleDynamicIndexPtrType) ToIndexRuleDynamicIndexPtrOutput() IndexRuleDynamicIndexPtrOutput { + return i.ToIndexRuleDynamicIndexPtrOutputWithContext(context.Background()) +} + +func (i *indexRuleDynamicIndexPtrType) ToIndexRuleDynamicIndexPtrOutputWithContext(ctx context.Context) IndexRuleDynamicIndexPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleDynamicIndexPtrOutput) +} + +type IndexRuleDynamicIndexOutput struct{ *pulumi.OutputState } + +func (IndexRuleDynamicIndexOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleDynamicIndex)(nil)).Elem() +} + +func (o IndexRuleDynamicIndexOutput) ToIndexRuleDynamicIndexOutput() IndexRuleDynamicIndexOutput { + return o +} + +func (o IndexRuleDynamicIndexOutput) ToIndexRuleDynamicIndexOutputWithContext(ctx context.Context) IndexRuleDynamicIndexOutput { + return o +} + +func (o IndexRuleDynamicIndexOutput) ToIndexRuleDynamicIndexPtrOutput() IndexRuleDynamicIndexPtrOutput { + return o.ToIndexRuleDynamicIndexPtrOutputWithContext(context.Background()) +} + +func (o IndexRuleDynamicIndexOutput) ToIndexRuleDynamicIndexPtrOutputWithContext(ctx context.Context) IndexRuleDynamicIndexPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleDynamicIndex) *IndexRuleDynamicIndex { + return &v + }).(IndexRuleDynamicIndexPtrOutput) +} + +// index automatic configuration switch. +func (o IndexRuleDynamicIndexOutput) Status() pulumi.BoolOutput { + return o.ApplyT(func(v IndexRuleDynamicIndex) bool { return v.Status }).(pulumi.BoolOutput) +} + +type IndexRuleDynamicIndexPtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleDynamicIndexPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleDynamicIndex)(nil)).Elem() +} + +func (o IndexRuleDynamicIndexPtrOutput) ToIndexRuleDynamicIndexPtrOutput() IndexRuleDynamicIndexPtrOutput { + return o +} + +func (o IndexRuleDynamicIndexPtrOutput) ToIndexRuleDynamicIndexPtrOutputWithContext(ctx context.Context) IndexRuleDynamicIndexPtrOutput { + return o +} + +func (o IndexRuleDynamicIndexPtrOutput) Elem() IndexRuleDynamicIndexOutput { + return o.ApplyT(func(v *IndexRuleDynamicIndex) IndexRuleDynamicIndex { + if v != nil { + return *v + } + var ret IndexRuleDynamicIndex + return ret + }).(IndexRuleDynamicIndexOutput) +} + +// index automatic configuration switch. +func (o IndexRuleDynamicIndexPtrOutput) Status() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleDynamicIndex) *bool { + if v == nil { + return nil + } + return &v.Status + }).(pulumi.BoolPtrOutput) +} + +type IndexRuleFullText struct { + // Case sensitivity. + CaseSensitive bool `pulumi:"caseSensitive"` + // Whether Chinese characters are contained. + ContainZH bool `pulumi:"containZH"` + // Full-Text index delimiter. Each character in the string represents a delimiter. + Tokenizer string `pulumi:"tokenizer"` +} + +// IndexRuleFullTextInput is an input type that accepts IndexRuleFullTextArgs and IndexRuleFullTextOutput values. +// You can construct a concrete instance of `IndexRuleFullTextInput` via: +// +// IndexRuleFullTextArgs{...} +type IndexRuleFullTextInput interface { + pulumi.Input + + ToIndexRuleFullTextOutput() IndexRuleFullTextOutput + ToIndexRuleFullTextOutputWithContext(context.Context) IndexRuleFullTextOutput +} + +type IndexRuleFullTextArgs struct { + // Case sensitivity. + CaseSensitive pulumi.BoolInput `pulumi:"caseSensitive"` + // Whether Chinese characters are contained. + ContainZH pulumi.BoolInput `pulumi:"containZH"` + // Full-Text index delimiter. Each character in the string represents a delimiter. + Tokenizer pulumi.StringInput `pulumi:"tokenizer"` +} + +func (IndexRuleFullTextArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleFullText)(nil)).Elem() +} + +func (i IndexRuleFullTextArgs) ToIndexRuleFullTextOutput() IndexRuleFullTextOutput { + return i.ToIndexRuleFullTextOutputWithContext(context.Background()) +} + +func (i IndexRuleFullTextArgs) ToIndexRuleFullTextOutputWithContext(ctx context.Context) IndexRuleFullTextOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleFullTextOutput) +} + +func (i IndexRuleFullTextArgs) ToIndexRuleFullTextPtrOutput() IndexRuleFullTextPtrOutput { + return i.ToIndexRuleFullTextPtrOutputWithContext(context.Background()) +} + +func (i IndexRuleFullTextArgs) ToIndexRuleFullTextPtrOutputWithContext(ctx context.Context) IndexRuleFullTextPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleFullTextOutput).ToIndexRuleFullTextPtrOutputWithContext(ctx) +} + +// IndexRuleFullTextPtrInput is an input type that accepts IndexRuleFullTextArgs, IndexRuleFullTextPtr and IndexRuleFullTextPtrOutput values. +// You can construct a concrete instance of `IndexRuleFullTextPtrInput` via: +// +// IndexRuleFullTextArgs{...} +// +// or: +// +// nil +type IndexRuleFullTextPtrInput interface { + pulumi.Input + + ToIndexRuleFullTextPtrOutput() IndexRuleFullTextPtrOutput + ToIndexRuleFullTextPtrOutputWithContext(context.Context) IndexRuleFullTextPtrOutput +} + +type indexRuleFullTextPtrType IndexRuleFullTextArgs + +func IndexRuleFullTextPtr(v *IndexRuleFullTextArgs) IndexRuleFullTextPtrInput { + return (*indexRuleFullTextPtrType)(v) +} + +func (*indexRuleFullTextPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleFullText)(nil)).Elem() +} + +func (i *indexRuleFullTextPtrType) ToIndexRuleFullTextPtrOutput() IndexRuleFullTextPtrOutput { + return i.ToIndexRuleFullTextPtrOutputWithContext(context.Background()) +} + +func (i *indexRuleFullTextPtrType) ToIndexRuleFullTextPtrOutputWithContext(ctx context.Context) IndexRuleFullTextPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleFullTextPtrOutput) +} + +type IndexRuleFullTextOutput struct{ *pulumi.OutputState } + +func (IndexRuleFullTextOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleFullText)(nil)).Elem() +} + +func (o IndexRuleFullTextOutput) ToIndexRuleFullTextOutput() IndexRuleFullTextOutput { + return o +} + +func (o IndexRuleFullTextOutput) ToIndexRuleFullTextOutputWithContext(ctx context.Context) IndexRuleFullTextOutput { + return o +} + +func (o IndexRuleFullTextOutput) ToIndexRuleFullTextPtrOutput() IndexRuleFullTextPtrOutput { + return o.ToIndexRuleFullTextPtrOutputWithContext(context.Background()) +} + +func (o IndexRuleFullTextOutput) ToIndexRuleFullTextPtrOutputWithContext(ctx context.Context) IndexRuleFullTextPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleFullText) *IndexRuleFullText { + return &v + }).(IndexRuleFullTextPtrOutput) +} + +// Case sensitivity. +func (o IndexRuleFullTextOutput) CaseSensitive() pulumi.BoolOutput { + return o.ApplyT(func(v IndexRuleFullText) bool { return v.CaseSensitive }).(pulumi.BoolOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleFullTextOutput) ContainZH() pulumi.BoolOutput { + return o.ApplyT(func(v IndexRuleFullText) bool { return v.ContainZH }).(pulumi.BoolOutput) +} + +// Full-Text index delimiter. Each character in the string represents a delimiter. +func (o IndexRuleFullTextOutput) Tokenizer() pulumi.StringOutput { + return o.ApplyT(func(v IndexRuleFullText) string { return v.Tokenizer }).(pulumi.StringOutput) +} + +type IndexRuleFullTextPtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleFullTextPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleFullText)(nil)).Elem() +} + +func (o IndexRuleFullTextPtrOutput) ToIndexRuleFullTextPtrOutput() IndexRuleFullTextPtrOutput { + return o +} + +func (o IndexRuleFullTextPtrOutput) ToIndexRuleFullTextPtrOutputWithContext(ctx context.Context) IndexRuleFullTextPtrOutput { + return o +} + +func (o IndexRuleFullTextPtrOutput) Elem() IndexRuleFullTextOutput { + return o.ApplyT(func(v *IndexRuleFullText) IndexRuleFullText { + if v != nil { + return *v + } + var ret IndexRuleFullText + return ret + }).(IndexRuleFullTextOutput) +} + +// Case sensitivity. +func (o IndexRuleFullTextPtrOutput) CaseSensitive() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleFullText) *bool { + if v == nil { + return nil + } + return &v.CaseSensitive + }).(pulumi.BoolPtrOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleFullTextPtrOutput) ContainZH() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleFullText) *bool { + if v == nil { + return nil + } + return &v.ContainZH + }).(pulumi.BoolPtrOutput) +} + +// Full-Text index delimiter. Each character in the string represents a delimiter. +func (o IndexRuleFullTextPtrOutput) Tokenizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IndexRuleFullText) *string { + if v == nil { + return nil + } + return &v.Tokenizer + }).(pulumi.StringPtrOutput) +} + +type IndexRuleKeyValue struct { + // Case sensitivity. + CaseSensitive bool `pulumi:"caseSensitive"` + // Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + KeyValues []IndexRuleKeyValueKeyValue `pulumi:"keyValues"` +} + +// IndexRuleKeyValueInput is an input type that accepts IndexRuleKeyValueArgs and IndexRuleKeyValueOutput values. +// You can construct a concrete instance of `IndexRuleKeyValueInput` via: +// +// IndexRuleKeyValueArgs{...} +type IndexRuleKeyValueInput interface { + pulumi.Input + + ToIndexRuleKeyValueOutput() IndexRuleKeyValueOutput + ToIndexRuleKeyValueOutputWithContext(context.Context) IndexRuleKeyValueOutput +} + +type IndexRuleKeyValueArgs struct { + // Case sensitivity. + CaseSensitive pulumi.BoolInput `pulumi:"caseSensitive"` + // Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + KeyValues IndexRuleKeyValueKeyValueArrayInput `pulumi:"keyValues"` +} + +func (IndexRuleKeyValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValue)(nil)).Elem() +} + +func (i IndexRuleKeyValueArgs) ToIndexRuleKeyValueOutput() IndexRuleKeyValueOutput { + return i.ToIndexRuleKeyValueOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueArgs) ToIndexRuleKeyValueOutputWithContext(ctx context.Context) IndexRuleKeyValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueOutput) +} + +func (i IndexRuleKeyValueArgs) ToIndexRuleKeyValuePtrOutput() IndexRuleKeyValuePtrOutput { + return i.ToIndexRuleKeyValuePtrOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueArgs) ToIndexRuleKeyValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueOutput).ToIndexRuleKeyValuePtrOutputWithContext(ctx) +} + +// IndexRuleKeyValuePtrInput is an input type that accepts IndexRuleKeyValueArgs, IndexRuleKeyValuePtr and IndexRuleKeyValuePtrOutput values. +// You can construct a concrete instance of `IndexRuleKeyValuePtrInput` via: +// +// IndexRuleKeyValueArgs{...} +// +// or: +// +// nil +type IndexRuleKeyValuePtrInput interface { + pulumi.Input + + ToIndexRuleKeyValuePtrOutput() IndexRuleKeyValuePtrOutput + ToIndexRuleKeyValuePtrOutputWithContext(context.Context) IndexRuleKeyValuePtrOutput +} + +type indexRuleKeyValuePtrType IndexRuleKeyValueArgs + +func IndexRuleKeyValuePtr(v *IndexRuleKeyValueArgs) IndexRuleKeyValuePtrInput { + return (*indexRuleKeyValuePtrType)(v) +} + +func (*indexRuleKeyValuePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleKeyValue)(nil)).Elem() +} + +func (i *indexRuleKeyValuePtrType) ToIndexRuleKeyValuePtrOutput() IndexRuleKeyValuePtrOutput { + return i.ToIndexRuleKeyValuePtrOutputWithContext(context.Background()) +} + +func (i *indexRuleKeyValuePtrType) ToIndexRuleKeyValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValuePtrOutput) +} + +type IndexRuleKeyValueOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValue)(nil)).Elem() +} + +func (o IndexRuleKeyValueOutput) ToIndexRuleKeyValueOutput() IndexRuleKeyValueOutput { + return o +} + +func (o IndexRuleKeyValueOutput) ToIndexRuleKeyValueOutputWithContext(ctx context.Context) IndexRuleKeyValueOutput { + return o +} + +func (o IndexRuleKeyValueOutput) ToIndexRuleKeyValuePtrOutput() IndexRuleKeyValuePtrOutput { + return o.ToIndexRuleKeyValuePtrOutputWithContext(context.Background()) +} + +func (o IndexRuleKeyValueOutput) ToIndexRuleKeyValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValuePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleKeyValue) *IndexRuleKeyValue { + return &v + }).(IndexRuleKeyValuePtrOutput) +} + +// Case sensitivity. +func (o IndexRuleKeyValueOutput) CaseSensitive() pulumi.BoolOutput { + return o.ApplyT(func(v IndexRuleKeyValue) bool { return v.CaseSensitive }).(pulumi.BoolOutput) +} + +// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. +func (o IndexRuleKeyValueOutput) KeyValues() IndexRuleKeyValueKeyValueArrayOutput { + return o.ApplyT(func(v IndexRuleKeyValue) []IndexRuleKeyValueKeyValue { return v.KeyValues }).(IndexRuleKeyValueKeyValueArrayOutput) +} + +type IndexRuleKeyValuePtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValuePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleKeyValue)(nil)).Elem() +} + +func (o IndexRuleKeyValuePtrOutput) ToIndexRuleKeyValuePtrOutput() IndexRuleKeyValuePtrOutput { + return o +} + +func (o IndexRuleKeyValuePtrOutput) ToIndexRuleKeyValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValuePtrOutput { + return o +} + +func (o IndexRuleKeyValuePtrOutput) Elem() IndexRuleKeyValueOutput { + return o.ApplyT(func(v *IndexRuleKeyValue) IndexRuleKeyValue { + if v != nil { + return *v + } + var ret IndexRuleKeyValue + return ret + }).(IndexRuleKeyValueOutput) +} + +// Case sensitivity. +func (o IndexRuleKeyValuePtrOutput) CaseSensitive() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleKeyValue) *bool { + if v == nil { + return nil + } + return &v.CaseSensitive + }).(pulumi.BoolPtrOutput) +} + +// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. +func (o IndexRuleKeyValuePtrOutput) KeyValues() IndexRuleKeyValueKeyValueArrayOutput { + return o.ApplyT(func(v *IndexRuleKeyValue) []IndexRuleKeyValueKeyValue { + if v == nil { + return nil + } + return v.KeyValues + }).(IndexRuleKeyValueKeyValueArrayOutput) +} + +type IndexRuleKeyValueKeyValue struct { + // When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + Key string `pulumi:"key"` + // Field index description information. + Value *IndexRuleKeyValueKeyValueValue `pulumi:"value"` +} + +// IndexRuleKeyValueKeyValueInput is an input type that accepts IndexRuleKeyValueKeyValueArgs and IndexRuleKeyValueKeyValueOutput values. +// You can construct a concrete instance of `IndexRuleKeyValueKeyValueInput` via: +// +// IndexRuleKeyValueKeyValueArgs{...} +type IndexRuleKeyValueKeyValueInput interface { + pulumi.Input + + ToIndexRuleKeyValueKeyValueOutput() IndexRuleKeyValueKeyValueOutput + ToIndexRuleKeyValueKeyValueOutputWithContext(context.Context) IndexRuleKeyValueKeyValueOutput +} + +type IndexRuleKeyValueKeyValueArgs struct { + // When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + Key pulumi.StringInput `pulumi:"key"` + // Field index description information. + Value IndexRuleKeyValueKeyValueValuePtrInput `pulumi:"value"` +} + +func (IndexRuleKeyValueKeyValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValueKeyValue)(nil)).Elem() +} + +func (i IndexRuleKeyValueKeyValueArgs) ToIndexRuleKeyValueKeyValueOutput() IndexRuleKeyValueKeyValueOutput { + return i.ToIndexRuleKeyValueKeyValueOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueKeyValueArgs) ToIndexRuleKeyValueKeyValueOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueKeyValueOutput) +} + +// IndexRuleKeyValueKeyValueArrayInput is an input type that accepts IndexRuleKeyValueKeyValueArray and IndexRuleKeyValueKeyValueArrayOutput values. +// You can construct a concrete instance of `IndexRuleKeyValueKeyValueArrayInput` via: +// +// IndexRuleKeyValueKeyValueArray{ IndexRuleKeyValueKeyValueArgs{...} } +type IndexRuleKeyValueKeyValueArrayInput interface { + pulumi.Input + + ToIndexRuleKeyValueKeyValueArrayOutput() IndexRuleKeyValueKeyValueArrayOutput + ToIndexRuleKeyValueKeyValueArrayOutputWithContext(context.Context) IndexRuleKeyValueKeyValueArrayOutput +} + +type IndexRuleKeyValueKeyValueArray []IndexRuleKeyValueKeyValueInput + +func (IndexRuleKeyValueKeyValueArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IndexRuleKeyValueKeyValue)(nil)).Elem() +} + +func (i IndexRuleKeyValueKeyValueArray) ToIndexRuleKeyValueKeyValueArrayOutput() IndexRuleKeyValueKeyValueArrayOutput { + return i.ToIndexRuleKeyValueKeyValueArrayOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueKeyValueArray) ToIndexRuleKeyValueKeyValueArrayOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueKeyValueArrayOutput) +} + +type IndexRuleKeyValueKeyValueOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValueKeyValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValueKeyValue)(nil)).Elem() +} + +func (o IndexRuleKeyValueKeyValueOutput) ToIndexRuleKeyValueKeyValueOutput() IndexRuleKeyValueKeyValueOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueOutput) ToIndexRuleKeyValueKeyValueOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueOutput { + return o +} + +// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. +func (o IndexRuleKeyValueKeyValueOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValue) string { return v.Key }).(pulumi.StringOutput) +} + +// Field index description information. +func (o IndexRuleKeyValueKeyValueOutput) Value() IndexRuleKeyValueKeyValueValuePtrOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValue) *IndexRuleKeyValueKeyValueValue { return v.Value }).(IndexRuleKeyValueKeyValueValuePtrOutput) +} + +type IndexRuleKeyValueKeyValueArrayOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValueKeyValueArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IndexRuleKeyValueKeyValue)(nil)).Elem() +} + +func (o IndexRuleKeyValueKeyValueArrayOutput) ToIndexRuleKeyValueKeyValueArrayOutput() IndexRuleKeyValueKeyValueArrayOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueArrayOutput) ToIndexRuleKeyValueKeyValueArrayOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueArrayOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueArrayOutput) Index(i pulumi.IntInput) IndexRuleKeyValueKeyValueOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IndexRuleKeyValueKeyValue { + return vs[0].([]IndexRuleKeyValueKeyValue)[vs[1].(int)] + }).(IndexRuleKeyValueKeyValueOutput) +} + +type IndexRuleKeyValueKeyValueValue struct { + // Whether Chinese characters are contained. + ContainZH *bool `pulumi:"containZH"` + // Whether the analysis feature is enabled for the field. + SqlFlag *bool `pulumi:"sqlFlag"` + // Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + Tokenizer *string `pulumi:"tokenizer"` + // Field type. Valid values: long, text, double. + Type string `pulumi:"type"` +} + +// IndexRuleKeyValueKeyValueValueInput is an input type that accepts IndexRuleKeyValueKeyValueValueArgs and IndexRuleKeyValueKeyValueValueOutput values. +// You can construct a concrete instance of `IndexRuleKeyValueKeyValueValueInput` via: +// +// IndexRuleKeyValueKeyValueValueArgs{...} +type IndexRuleKeyValueKeyValueValueInput interface { + pulumi.Input + + ToIndexRuleKeyValueKeyValueValueOutput() IndexRuleKeyValueKeyValueValueOutput + ToIndexRuleKeyValueKeyValueValueOutputWithContext(context.Context) IndexRuleKeyValueKeyValueValueOutput +} + +type IndexRuleKeyValueKeyValueValueArgs struct { + // Whether Chinese characters are contained. + ContainZH pulumi.BoolPtrInput `pulumi:"containZH"` + // Whether the analysis feature is enabled for the field. + SqlFlag pulumi.BoolPtrInput `pulumi:"sqlFlag"` + // Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + Tokenizer pulumi.StringPtrInput `pulumi:"tokenizer"` + // Field type. Valid values: long, text, double. + Type pulumi.StringInput `pulumi:"type"` +} + +func (IndexRuleKeyValueKeyValueValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValueKeyValueValue)(nil)).Elem() +} + +func (i IndexRuleKeyValueKeyValueValueArgs) ToIndexRuleKeyValueKeyValueValueOutput() IndexRuleKeyValueKeyValueValueOutput { + return i.ToIndexRuleKeyValueKeyValueValueOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueKeyValueValueArgs) ToIndexRuleKeyValueKeyValueValueOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueKeyValueValueOutput) +} + +func (i IndexRuleKeyValueKeyValueValueArgs) ToIndexRuleKeyValueKeyValueValuePtrOutput() IndexRuleKeyValueKeyValueValuePtrOutput { + return i.ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (i IndexRuleKeyValueKeyValueValueArgs) ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueKeyValueValueOutput).ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(ctx) +} + +// IndexRuleKeyValueKeyValueValuePtrInput is an input type that accepts IndexRuleKeyValueKeyValueValueArgs, IndexRuleKeyValueKeyValueValuePtr and IndexRuleKeyValueKeyValueValuePtrOutput values. +// You can construct a concrete instance of `IndexRuleKeyValueKeyValueValuePtrInput` via: +// +// IndexRuleKeyValueKeyValueValueArgs{...} +// +// or: +// +// nil +type IndexRuleKeyValueKeyValueValuePtrInput interface { + pulumi.Input + + ToIndexRuleKeyValueKeyValueValuePtrOutput() IndexRuleKeyValueKeyValueValuePtrOutput + ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(context.Context) IndexRuleKeyValueKeyValueValuePtrOutput +} + +type indexRuleKeyValueKeyValueValuePtrType IndexRuleKeyValueKeyValueValueArgs + +func IndexRuleKeyValueKeyValueValuePtr(v *IndexRuleKeyValueKeyValueValueArgs) IndexRuleKeyValueKeyValueValuePtrInput { + return (*indexRuleKeyValueKeyValueValuePtrType)(v) +} + +func (*indexRuleKeyValueKeyValueValuePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleKeyValueKeyValueValue)(nil)).Elem() +} + +func (i *indexRuleKeyValueKeyValueValuePtrType) ToIndexRuleKeyValueKeyValueValuePtrOutput() IndexRuleKeyValueKeyValueValuePtrOutput { + return i.ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (i *indexRuleKeyValueKeyValueValuePtrType) ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleKeyValueKeyValueValuePtrOutput) +} + +type IndexRuleKeyValueKeyValueValueOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValueKeyValueValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleKeyValueKeyValueValue)(nil)).Elem() +} + +func (o IndexRuleKeyValueKeyValueValueOutput) ToIndexRuleKeyValueKeyValueValueOutput() IndexRuleKeyValueKeyValueValueOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueValueOutput) ToIndexRuleKeyValueKeyValueValueOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValueOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueValueOutput) ToIndexRuleKeyValueKeyValueValuePtrOutput() IndexRuleKeyValueKeyValueValuePtrOutput { + return o.ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (o IndexRuleKeyValueKeyValueValueOutput) ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValuePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleKeyValueKeyValueValue) *IndexRuleKeyValueKeyValueValue { + return &v + }).(IndexRuleKeyValueKeyValueValuePtrOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleKeyValueKeyValueValueOutput) ContainZH() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValueValue) *bool { return v.ContainZH }).(pulumi.BoolPtrOutput) +} + +// Whether the analysis feature is enabled for the field. +func (o IndexRuleKeyValueKeyValueValueOutput) SqlFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValueValue) *bool { return v.SqlFlag }).(pulumi.BoolPtrOutput) +} + +// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. +func (o IndexRuleKeyValueKeyValueValueOutput) Tokenizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValueValue) *string { return v.Tokenizer }).(pulumi.StringPtrOutput) +} + +// Field type. Valid values: long, text, double. +func (o IndexRuleKeyValueKeyValueValueOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v IndexRuleKeyValueKeyValueValue) string { return v.Type }).(pulumi.StringOutput) +} + +type IndexRuleKeyValueKeyValueValuePtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleKeyValueKeyValueValuePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleKeyValueKeyValueValue)(nil)).Elem() +} + +func (o IndexRuleKeyValueKeyValueValuePtrOutput) ToIndexRuleKeyValueKeyValueValuePtrOutput() IndexRuleKeyValueKeyValueValuePtrOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueValuePtrOutput) ToIndexRuleKeyValueKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleKeyValueKeyValueValuePtrOutput { + return o +} + +func (o IndexRuleKeyValueKeyValueValuePtrOutput) Elem() IndexRuleKeyValueKeyValueValueOutput { + return o.ApplyT(func(v *IndexRuleKeyValueKeyValueValue) IndexRuleKeyValueKeyValueValue { + if v != nil { + return *v + } + var ret IndexRuleKeyValueKeyValueValue + return ret + }).(IndexRuleKeyValueKeyValueValueOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleKeyValueKeyValueValuePtrOutput) ContainZH() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleKeyValueKeyValueValue) *bool { + if v == nil { + return nil + } + return v.ContainZH + }).(pulumi.BoolPtrOutput) +} + +// Whether the analysis feature is enabled for the field. +func (o IndexRuleKeyValueKeyValueValuePtrOutput) SqlFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleKeyValueKeyValueValue) *bool { + if v == nil { + return nil + } + return v.SqlFlag + }).(pulumi.BoolPtrOutput) +} + +// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. +func (o IndexRuleKeyValueKeyValueValuePtrOutput) Tokenizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IndexRuleKeyValueKeyValueValue) *string { + if v == nil { + return nil + } + return v.Tokenizer + }).(pulumi.StringPtrOutput) +} + +// Field type. Valid values: long, text, double. +func (o IndexRuleKeyValueKeyValueValuePtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IndexRuleKeyValueKeyValueValue) *string { + if v == nil { + return nil + } + return &v.Type + }).(pulumi.StringPtrOutput) +} + +type IndexRuleTag struct { + // Case sensitivity. + CaseSensitive bool `pulumi:"caseSensitive"` + // Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + KeyValues []IndexRuleTagKeyValue `pulumi:"keyValues"` +} + +// IndexRuleTagInput is an input type that accepts IndexRuleTagArgs and IndexRuleTagOutput values. +// You can construct a concrete instance of `IndexRuleTagInput` via: +// +// IndexRuleTagArgs{...} +type IndexRuleTagInput interface { + pulumi.Input + + ToIndexRuleTagOutput() IndexRuleTagOutput + ToIndexRuleTagOutputWithContext(context.Context) IndexRuleTagOutput +} + +type IndexRuleTagArgs struct { + // Case sensitivity. + CaseSensitive pulumi.BoolInput `pulumi:"caseSensitive"` + // Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + KeyValues IndexRuleTagKeyValueArrayInput `pulumi:"keyValues"` +} + +func (IndexRuleTagArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTag)(nil)).Elem() +} + +func (i IndexRuleTagArgs) ToIndexRuleTagOutput() IndexRuleTagOutput { + return i.ToIndexRuleTagOutputWithContext(context.Background()) +} + +func (i IndexRuleTagArgs) ToIndexRuleTagOutputWithContext(ctx context.Context) IndexRuleTagOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagOutput) +} + +func (i IndexRuleTagArgs) ToIndexRuleTagPtrOutput() IndexRuleTagPtrOutput { + return i.ToIndexRuleTagPtrOutputWithContext(context.Background()) +} + +func (i IndexRuleTagArgs) ToIndexRuleTagPtrOutputWithContext(ctx context.Context) IndexRuleTagPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagOutput).ToIndexRuleTagPtrOutputWithContext(ctx) +} + +// IndexRuleTagPtrInput is an input type that accepts IndexRuleTagArgs, IndexRuleTagPtr and IndexRuleTagPtrOutput values. +// You can construct a concrete instance of `IndexRuleTagPtrInput` via: +// +// IndexRuleTagArgs{...} +// +// or: +// +// nil +type IndexRuleTagPtrInput interface { + pulumi.Input + + ToIndexRuleTagPtrOutput() IndexRuleTagPtrOutput + ToIndexRuleTagPtrOutputWithContext(context.Context) IndexRuleTagPtrOutput +} + +type indexRuleTagPtrType IndexRuleTagArgs + +func IndexRuleTagPtr(v *IndexRuleTagArgs) IndexRuleTagPtrInput { + return (*indexRuleTagPtrType)(v) +} + +func (*indexRuleTagPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleTag)(nil)).Elem() +} + +func (i *indexRuleTagPtrType) ToIndexRuleTagPtrOutput() IndexRuleTagPtrOutput { + return i.ToIndexRuleTagPtrOutputWithContext(context.Background()) +} + +func (i *indexRuleTagPtrType) ToIndexRuleTagPtrOutputWithContext(ctx context.Context) IndexRuleTagPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagPtrOutput) +} + +type IndexRuleTagOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTag)(nil)).Elem() +} + +func (o IndexRuleTagOutput) ToIndexRuleTagOutput() IndexRuleTagOutput { + return o +} + +func (o IndexRuleTagOutput) ToIndexRuleTagOutputWithContext(ctx context.Context) IndexRuleTagOutput { + return o +} + +func (o IndexRuleTagOutput) ToIndexRuleTagPtrOutput() IndexRuleTagPtrOutput { + return o.ToIndexRuleTagPtrOutputWithContext(context.Background()) +} + +func (o IndexRuleTagOutput) ToIndexRuleTagPtrOutputWithContext(ctx context.Context) IndexRuleTagPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleTag) *IndexRuleTag { + return &v + }).(IndexRuleTagPtrOutput) +} + +// Case sensitivity. +func (o IndexRuleTagOutput) CaseSensitive() pulumi.BoolOutput { + return o.ApplyT(func(v IndexRuleTag) bool { return v.CaseSensitive }).(pulumi.BoolOutput) +} + +// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. +func (o IndexRuleTagOutput) KeyValues() IndexRuleTagKeyValueArrayOutput { + return o.ApplyT(func(v IndexRuleTag) []IndexRuleTagKeyValue { return v.KeyValues }).(IndexRuleTagKeyValueArrayOutput) +} + +type IndexRuleTagPtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleTag)(nil)).Elem() +} + +func (o IndexRuleTagPtrOutput) ToIndexRuleTagPtrOutput() IndexRuleTagPtrOutput { + return o +} + +func (o IndexRuleTagPtrOutput) ToIndexRuleTagPtrOutputWithContext(ctx context.Context) IndexRuleTagPtrOutput { + return o +} + +func (o IndexRuleTagPtrOutput) Elem() IndexRuleTagOutput { + return o.ApplyT(func(v *IndexRuleTag) IndexRuleTag { + if v != nil { + return *v + } + var ret IndexRuleTag + return ret + }).(IndexRuleTagOutput) +} + +// Case sensitivity. +func (o IndexRuleTagPtrOutput) CaseSensitive() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleTag) *bool { + if v == nil { + return nil + } + return &v.CaseSensitive + }).(pulumi.BoolPtrOutput) +} + +// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. +func (o IndexRuleTagPtrOutput) KeyValues() IndexRuleTagKeyValueArrayOutput { + return o.ApplyT(func(v *IndexRuleTag) []IndexRuleTagKeyValue { + if v == nil { + return nil + } + return v.KeyValues + }).(IndexRuleTagKeyValueArrayOutput) +} + +type IndexRuleTagKeyValue struct { + // When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + Key string `pulumi:"key"` + // Field index description information. + Value *IndexRuleTagKeyValueValue `pulumi:"value"` +} + +// IndexRuleTagKeyValueInput is an input type that accepts IndexRuleTagKeyValueArgs and IndexRuleTagKeyValueOutput values. +// You can construct a concrete instance of `IndexRuleTagKeyValueInput` via: +// +// IndexRuleTagKeyValueArgs{...} +type IndexRuleTagKeyValueInput interface { + pulumi.Input + + ToIndexRuleTagKeyValueOutput() IndexRuleTagKeyValueOutput + ToIndexRuleTagKeyValueOutputWithContext(context.Context) IndexRuleTagKeyValueOutput +} + +type IndexRuleTagKeyValueArgs struct { + // When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + Key pulumi.StringInput `pulumi:"key"` + // Field index description information. + Value IndexRuleTagKeyValueValuePtrInput `pulumi:"value"` +} + +func (IndexRuleTagKeyValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTagKeyValue)(nil)).Elem() +} + +func (i IndexRuleTagKeyValueArgs) ToIndexRuleTagKeyValueOutput() IndexRuleTagKeyValueOutput { + return i.ToIndexRuleTagKeyValueOutputWithContext(context.Background()) +} + +func (i IndexRuleTagKeyValueArgs) ToIndexRuleTagKeyValueOutputWithContext(ctx context.Context) IndexRuleTagKeyValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagKeyValueOutput) +} + +// IndexRuleTagKeyValueArrayInput is an input type that accepts IndexRuleTagKeyValueArray and IndexRuleTagKeyValueArrayOutput values. +// You can construct a concrete instance of `IndexRuleTagKeyValueArrayInput` via: +// +// IndexRuleTagKeyValueArray{ IndexRuleTagKeyValueArgs{...} } +type IndexRuleTagKeyValueArrayInput interface { + pulumi.Input + + ToIndexRuleTagKeyValueArrayOutput() IndexRuleTagKeyValueArrayOutput + ToIndexRuleTagKeyValueArrayOutputWithContext(context.Context) IndexRuleTagKeyValueArrayOutput +} + +type IndexRuleTagKeyValueArray []IndexRuleTagKeyValueInput + +func (IndexRuleTagKeyValueArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IndexRuleTagKeyValue)(nil)).Elem() +} + +func (i IndexRuleTagKeyValueArray) ToIndexRuleTagKeyValueArrayOutput() IndexRuleTagKeyValueArrayOutput { + return i.ToIndexRuleTagKeyValueArrayOutputWithContext(context.Background()) +} + +func (i IndexRuleTagKeyValueArray) ToIndexRuleTagKeyValueArrayOutputWithContext(ctx context.Context) IndexRuleTagKeyValueArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagKeyValueArrayOutput) +} + +type IndexRuleTagKeyValueOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagKeyValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTagKeyValue)(nil)).Elem() +} + +func (o IndexRuleTagKeyValueOutput) ToIndexRuleTagKeyValueOutput() IndexRuleTagKeyValueOutput { + return o +} + +func (o IndexRuleTagKeyValueOutput) ToIndexRuleTagKeyValueOutputWithContext(ctx context.Context) IndexRuleTagKeyValueOutput { + return o +} + +// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. +func (o IndexRuleTagKeyValueOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v IndexRuleTagKeyValue) string { return v.Key }).(pulumi.StringOutput) +} + +// Field index description information. +func (o IndexRuleTagKeyValueOutput) Value() IndexRuleTagKeyValueValuePtrOutput { + return o.ApplyT(func(v IndexRuleTagKeyValue) *IndexRuleTagKeyValueValue { return v.Value }).(IndexRuleTagKeyValueValuePtrOutput) +} + +type IndexRuleTagKeyValueArrayOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagKeyValueArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IndexRuleTagKeyValue)(nil)).Elem() +} + +func (o IndexRuleTagKeyValueArrayOutput) ToIndexRuleTagKeyValueArrayOutput() IndexRuleTagKeyValueArrayOutput { + return o +} + +func (o IndexRuleTagKeyValueArrayOutput) ToIndexRuleTagKeyValueArrayOutputWithContext(ctx context.Context) IndexRuleTagKeyValueArrayOutput { + return o +} + +func (o IndexRuleTagKeyValueArrayOutput) Index(i pulumi.IntInput) IndexRuleTagKeyValueOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IndexRuleTagKeyValue { + return vs[0].([]IndexRuleTagKeyValue)[vs[1].(int)] + }).(IndexRuleTagKeyValueOutput) +} + +type IndexRuleTagKeyValueValue struct { + // Whether Chinese characters are contained. + ContainZH *bool `pulumi:"containZH"` + // Whether the analysis feature is enabled for the field. + SqlFlag *bool `pulumi:"sqlFlag"` + // Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + Tokenizer *string `pulumi:"tokenizer"` + // Field type. Valid values: long, text, double. + Type string `pulumi:"type"` +} + +// IndexRuleTagKeyValueValueInput is an input type that accepts IndexRuleTagKeyValueValueArgs and IndexRuleTagKeyValueValueOutput values. +// You can construct a concrete instance of `IndexRuleTagKeyValueValueInput` via: +// +// IndexRuleTagKeyValueValueArgs{...} +type IndexRuleTagKeyValueValueInput interface { + pulumi.Input + + ToIndexRuleTagKeyValueValueOutput() IndexRuleTagKeyValueValueOutput + ToIndexRuleTagKeyValueValueOutputWithContext(context.Context) IndexRuleTagKeyValueValueOutput +} + +type IndexRuleTagKeyValueValueArgs struct { + // Whether Chinese characters are contained. + ContainZH pulumi.BoolPtrInput `pulumi:"containZH"` + // Whether the analysis feature is enabled for the field. + SqlFlag pulumi.BoolPtrInput `pulumi:"sqlFlag"` + // Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + Tokenizer pulumi.StringPtrInput `pulumi:"tokenizer"` + // Field type. Valid values: long, text, double. + Type pulumi.StringInput `pulumi:"type"` +} + +func (IndexRuleTagKeyValueValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTagKeyValueValue)(nil)).Elem() +} + +func (i IndexRuleTagKeyValueValueArgs) ToIndexRuleTagKeyValueValueOutput() IndexRuleTagKeyValueValueOutput { + return i.ToIndexRuleTagKeyValueValueOutputWithContext(context.Background()) +} + +func (i IndexRuleTagKeyValueValueArgs) ToIndexRuleTagKeyValueValueOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagKeyValueValueOutput) +} + +func (i IndexRuleTagKeyValueValueArgs) ToIndexRuleTagKeyValueValuePtrOutput() IndexRuleTagKeyValueValuePtrOutput { + return i.ToIndexRuleTagKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (i IndexRuleTagKeyValueValueArgs) ToIndexRuleTagKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagKeyValueValueOutput).ToIndexRuleTagKeyValueValuePtrOutputWithContext(ctx) +} + +// IndexRuleTagKeyValueValuePtrInput is an input type that accepts IndexRuleTagKeyValueValueArgs, IndexRuleTagKeyValueValuePtr and IndexRuleTagKeyValueValuePtrOutput values. +// You can construct a concrete instance of `IndexRuleTagKeyValueValuePtrInput` via: +// +// IndexRuleTagKeyValueValueArgs{...} +// +// or: +// +// nil +type IndexRuleTagKeyValueValuePtrInput interface { + pulumi.Input + + ToIndexRuleTagKeyValueValuePtrOutput() IndexRuleTagKeyValueValuePtrOutput + ToIndexRuleTagKeyValueValuePtrOutputWithContext(context.Context) IndexRuleTagKeyValueValuePtrOutput +} + +type indexRuleTagKeyValueValuePtrType IndexRuleTagKeyValueValueArgs + +func IndexRuleTagKeyValueValuePtr(v *IndexRuleTagKeyValueValueArgs) IndexRuleTagKeyValueValuePtrInput { + return (*indexRuleTagKeyValueValuePtrType)(v) +} + +func (*indexRuleTagKeyValueValuePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleTagKeyValueValue)(nil)).Elem() +} + +func (i *indexRuleTagKeyValueValuePtrType) ToIndexRuleTagKeyValueValuePtrOutput() IndexRuleTagKeyValueValuePtrOutput { + return i.ToIndexRuleTagKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (i *indexRuleTagKeyValueValuePtrType) ToIndexRuleTagKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValuePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IndexRuleTagKeyValueValuePtrOutput) +} + +type IndexRuleTagKeyValueValueOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagKeyValueValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IndexRuleTagKeyValueValue)(nil)).Elem() +} + +func (o IndexRuleTagKeyValueValueOutput) ToIndexRuleTagKeyValueValueOutput() IndexRuleTagKeyValueValueOutput { + return o +} + +func (o IndexRuleTagKeyValueValueOutput) ToIndexRuleTagKeyValueValueOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValueOutput { + return o +} + +func (o IndexRuleTagKeyValueValueOutput) ToIndexRuleTagKeyValueValuePtrOutput() IndexRuleTagKeyValueValuePtrOutput { + return o.ToIndexRuleTagKeyValueValuePtrOutputWithContext(context.Background()) +} + +func (o IndexRuleTagKeyValueValueOutput) ToIndexRuleTagKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValuePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IndexRuleTagKeyValueValue) *IndexRuleTagKeyValueValue { + return &v + }).(IndexRuleTagKeyValueValuePtrOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleTagKeyValueValueOutput) ContainZH() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IndexRuleTagKeyValueValue) *bool { return v.ContainZH }).(pulumi.BoolPtrOutput) +} + +// Whether the analysis feature is enabled for the field. +func (o IndexRuleTagKeyValueValueOutput) SqlFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IndexRuleTagKeyValueValue) *bool { return v.SqlFlag }).(pulumi.BoolPtrOutput) +} + +// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. +func (o IndexRuleTagKeyValueValueOutput) Tokenizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v IndexRuleTagKeyValueValue) *string { return v.Tokenizer }).(pulumi.StringPtrOutput) +} + +// Field type. Valid values: long, text, double. +func (o IndexRuleTagKeyValueValueOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v IndexRuleTagKeyValueValue) string { return v.Type }).(pulumi.StringOutput) +} + +type IndexRuleTagKeyValueValuePtrOutput struct{ *pulumi.OutputState } + +func (IndexRuleTagKeyValueValuePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IndexRuleTagKeyValueValue)(nil)).Elem() +} + +func (o IndexRuleTagKeyValueValuePtrOutput) ToIndexRuleTagKeyValueValuePtrOutput() IndexRuleTagKeyValueValuePtrOutput { + return o +} + +func (o IndexRuleTagKeyValueValuePtrOutput) ToIndexRuleTagKeyValueValuePtrOutputWithContext(ctx context.Context) IndexRuleTagKeyValueValuePtrOutput { + return o +} + +func (o IndexRuleTagKeyValueValuePtrOutput) Elem() IndexRuleTagKeyValueValueOutput { + return o.ApplyT(func(v *IndexRuleTagKeyValueValue) IndexRuleTagKeyValueValue { + if v != nil { + return *v + } + var ret IndexRuleTagKeyValueValue + return ret + }).(IndexRuleTagKeyValueValueOutput) +} + +// Whether Chinese characters are contained. +func (o IndexRuleTagKeyValueValuePtrOutput) ContainZH() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleTagKeyValueValue) *bool { + if v == nil { + return nil + } + return v.ContainZH + }).(pulumi.BoolPtrOutput) +} + +// Whether the analysis feature is enabled for the field. +func (o IndexRuleTagKeyValueValuePtrOutput) SqlFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *IndexRuleTagKeyValueValue) *bool { + if v == nil { + return nil + } + return v.SqlFlag + }).(pulumi.BoolPtrOutput) +} + +// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. +func (o IndexRuleTagKeyValueValuePtrOutput) Tokenizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IndexRuleTagKeyValueValue) *string { + if v == nil { + return nil + } + return v.Tokenizer + }).(pulumi.StringPtrOutput) +} + +// Field type. Valid values: long, text, double. +func (o IndexRuleTagKeyValueValuePtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IndexRuleTagKeyValueValue) *string { + if v == nil { + return nil + } + return &v.Type + }).(pulumi.StringPtrOutput) +} + type KafkaRechargeLogRechargeRule struct { // default time from. DefaultTimeSrc *int `pulumi:"defaultTimeSrc"` @@ -7357,6 +8775,24 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*CosShipperFilterRuleArrayInput)(nil)).Elem(), CosShipperFilterRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DataTransformDstResourceInput)(nil)).Elem(), DataTransformDstResourceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DataTransformDstResourceArrayInput)(nil)).Elem(), DataTransformDstResourceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleInput)(nil)).Elem(), IndexRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRulePtrInput)(nil)).Elem(), IndexRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleDynamicIndexInput)(nil)).Elem(), IndexRuleDynamicIndexArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleDynamicIndexPtrInput)(nil)).Elem(), IndexRuleDynamicIndexArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleFullTextInput)(nil)).Elem(), IndexRuleFullTextArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleFullTextPtrInput)(nil)).Elem(), IndexRuleFullTextArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValueInput)(nil)).Elem(), IndexRuleKeyValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValuePtrInput)(nil)).Elem(), IndexRuleKeyValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValueKeyValueInput)(nil)).Elem(), IndexRuleKeyValueKeyValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValueKeyValueArrayInput)(nil)).Elem(), IndexRuleKeyValueKeyValueArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValueKeyValueValueInput)(nil)).Elem(), IndexRuleKeyValueKeyValueValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleKeyValueKeyValueValuePtrInput)(nil)).Elem(), IndexRuleKeyValueKeyValueValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagInput)(nil)).Elem(), IndexRuleTagArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagPtrInput)(nil)).Elem(), IndexRuleTagArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagKeyValueInput)(nil)).Elem(), IndexRuleTagKeyValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagKeyValueArrayInput)(nil)).Elem(), IndexRuleTagKeyValueArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagKeyValueValueInput)(nil)).Elem(), IndexRuleTagKeyValueValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IndexRuleTagKeyValueValuePtrInput)(nil)).Elem(), IndexRuleTagKeyValueValueArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*KafkaRechargeLogRechargeRuleInput)(nil)).Elem(), KafkaRechargeLogRechargeRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*KafkaRechargeLogRechargeRulePtrInput)(nil)).Elem(), KafkaRechargeLogRechargeRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*KafkaRechargeProtocolInput)(nil)).Elem(), KafkaRechargeProtocolArgs{}) @@ -7439,6 +8875,24 @@ func init() { pulumi.RegisterOutputType(CosShipperFilterRuleArrayOutput{}) pulumi.RegisterOutputType(DataTransformDstResourceOutput{}) pulumi.RegisterOutputType(DataTransformDstResourceArrayOutput{}) + pulumi.RegisterOutputType(IndexRuleOutput{}) + pulumi.RegisterOutputType(IndexRulePtrOutput{}) + pulumi.RegisterOutputType(IndexRuleDynamicIndexOutput{}) + pulumi.RegisterOutputType(IndexRuleDynamicIndexPtrOutput{}) + pulumi.RegisterOutputType(IndexRuleFullTextOutput{}) + pulumi.RegisterOutputType(IndexRuleFullTextPtrOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValueOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValuePtrOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValueKeyValueOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValueKeyValueArrayOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValueKeyValueValueOutput{}) + pulumi.RegisterOutputType(IndexRuleKeyValueKeyValueValuePtrOutput{}) + pulumi.RegisterOutputType(IndexRuleTagOutput{}) + pulumi.RegisterOutputType(IndexRuleTagPtrOutput{}) + pulumi.RegisterOutputType(IndexRuleTagKeyValueOutput{}) + pulumi.RegisterOutputType(IndexRuleTagKeyValueArrayOutput{}) + pulumi.RegisterOutputType(IndexRuleTagKeyValueValueOutput{}) + pulumi.RegisterOutputType(IndexRuleTagKeyValueValuePtrOutput{}) pulumi.RegisterOutputType(KafkaRechargeLogRechargeRuleOutput{}) pulumi.RegisterOutputType(KafkaRechargeLogRechargeRulePtrOutput{}) pulumi.RegisterOutputType(KafkaRechargeProtocolOutput{}) diff --git a/sdk/go/tencentcloud/cvm/renewInstance.go b/sdk/go/tencentcloud/cvm/renewInstance.go index 24f8683e5..44604cefc 100644 --- a/sdk/go/tencentcloud/cvm/renewInstance.go +++ b/sdk/go/tencentcloud/cvm/renewInstance.go @@ -24,18 +24,69 @@ import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Cvm.NewRenewInstance(ctx, "renewInstance", &Cvm.RenewInstanceArgs{ +// // create vpc +// vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ +// CidrBlock: pulumi.String("10.0.0.0/16"), +// }) +// if err != nil { +// return err +// } +// // create vpc subnet +// subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ +// VpcId: vpc.ID(), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// CidrBlock: pulumi.String("10.0.20.0/28"), +// IsMulticast: pulumi.Bool(false), +// }) +// if err != nil { +// return err +// } +// // create cvm +// exampleInstance, err := Instance.NewInstance(ctx, "exampleInstance", &Instance.InstanceArgs{ +// InstanceName: pulumi.String("tf_example"), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// ImageId: pulumi.String("img-9qrfy1xt"), +// InstanceType: pulumi.String("SA3.MEDIUM4"), +// SystemDiskType: pulumi.String("CLOUD_HSSD"), +// SystemDiskSize: pulumi.Int(100), +// Hostname: pulumi.String("example"), +// ProjectId: pulumi.Int(0), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// ForceDelete: pulumi.Bool(true), +// InstanceChargeType: pulumi.String("PREPAID"), +// InstanceChargeTypePrepaidPeriod: pulumi.Int(1), +// InstanceChargeTypePrepaidRenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"), +// DataDisks: instance.InstanceDataDiskArray{ +// &instance.InstanceDataDiskArgs{ +// DataDiskType: pulumi.String("CLOUD_HSSD"), +// DataDiskSize: pulumi.Int(50), +// Encrypt: pulumi.Bool(false), +// }, +// }, +// Tags: pulumi.Map{ +// "tagKey": pulumi.Any("tagValue"), +// }, +// }) +// if err != nil { +// return err +// } +// // renew instance +// _, err = Cvm.NewRenewInstance(ctx, "exampleRenewInstance", &Cvm.RenewInstanceArgs{ +// InstanceId: exampleInstance.ID(), +// RenewPortableDataDisk: pulumi.Bool(true), // InstanceChargePrepaid: &cvm.RenewInstanceInstanceChargePrepaidArgs{ // Period: pulumi.Int(1), -// RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"), +// RenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"), // }, -// InstanceId: pulumi.String("ins-f9jr4bd2"), -// RenewPortableDataDisk: pulumi.Bool(true), // }) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/cvm/securityGroupAttachment.go b/sdk/go/tencentcloud/cvm/securityGroupAttachment.go index 8a88df608..ac4c013e9 100644 --- a/sdk/go/tencentcloud/cvm/securityGroupAttachment.go +++ b/sdk/go/tencentcloud/cvm/securityGroupAttachment.go @@ -24,14 +24,73 @@ import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Security" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Cvm.NewSecurityGroupAttachment(ctx, "securityGroupAttachment", &Cvm.SecurityGroupAttachmentArgs{ -// InstanceId: pulumi.String("ins-xxxxxxxx"), -// SecurityGroupId: pulumi.String("sg-xxxxxxx"), +// // create vpc +// vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ +// CidrBlock: pulumi.String("10.0.0.0/16"), +// }) +// if err != nil { +// return err +// } +// // create vpc subnet +// subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ +// VpcId: vpc.ID(), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// CidrBlock: pulumi.String("10.0.20.0/28"), +// IsMulticast: pulumi.Bool(false), +// }) +// if err != nil { +// return err +// } +// // create security group +// exampleGroup, err := Security.NewGroup(ctx, "exampleGroup", &Security.GroupArgs{ +// Description: pulumi.String("sg desc."), +// ProjectId: pulumi.Int(0), +// Tags: pulumi.Map{ +// "example": pulumi.Any("test"), +// }, +// }) +// if err != nil { +// return err +// } +// // create cvm +// exampleInstance, err := Instance.NewInstance(ctx, "exampleInstance", &Instance.InstanceArgs{ +// InstanceName: pulumi.String("tf_example"), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// ImageId: pulumi.String("img-9qrfy1xt"), +// InstanceType: pulumi.String("SA3.MEDIUM4"), +// SystemDiskType: pulumi.String("CLOUD_HSSD"), +// SystemDiskSize: pulumi.Int(100), +// Hostname: pulumi.String("example"), +// ProjectId: pulumi.Int(0), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// DataDisks: instance.InstanceDataDiskArray{ +// &instance.InstanceDataDiskArgs{ +// DataDiskType: pulumi.String("CLOUD_HSSD"), +// DataDiskSize: pulumi.Int(50), +// Encrypt: pulumi.Bool(false), +// }, +// }, +// Tags: pulumi.Map{ +// "tagKey": pulumi.Any("tagValue"), +// }, +// }) +// if err != nil { +// return err +// } +// // attachment security group +// _, err = Cvm.NewSecurityGroupAttachment(ctx, "exampleSecurityGroupAttachment", &Cvm.SecurityGroupAttachmentArgs{ +// InstanceId: exampleInstance.ID(), +// SecurityGroupId: exampleGroup.ID(), // }) // if err != nil { // return err @@ -48,7 +107,7 @@ import ( // cvm security_group_attachment can be imported using the id, e.g. // // ```sh -// $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id} +// $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp // ``` type SecurityGroupAttachment struct { pulumi.CustomResourceState diff --git a/sdk/go/tencentcloud/cvm/syncImage.go b/sdk/go/tencentcloud/cvm/syncImage.go index 440567c62..5ee2e5e28 100644 --- a/sdk/go/tencentcloud/cvm/syncImage.go +++ b/sdk/go/tencentcloud/cvm/syncImage.go @@ -24,17 +24,27 @@ import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cvm" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Cvm.NewSyncImage(ctx, "syncImage", &Cvm.SyncImageArgs{ +// exampleInstance, err := Images.GetInstance(ctx, &images.GetInstanceArgs{ +// ImageTypes: []string{ +// "PRIVATE_IMAGE", +// }, +// ImageNameRegex: pulumi.StringRef("MyImage"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = Cvm.NewSyncImage(ctx, "exampleSyncImage", &Cvm.SyncImageArgs{ +// ImageId: pulumi.String(exampleInstance.Images[0].ImageId), // DestinationRegions: pulumi.StringArray{ // pulumi.String("ap-guangzhou"), // pulumi.String("ap-shanghai"), // }, -// ImageId: pulumi.String("img-xxxxxx"), // }) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/eip/addressTransform.go b/sdk/go/tencentcloud/eip/addressTransform.go index a751a9366..81e217601 100644 --- a/sdk/go/tencentcloud/eip/addressTransform.go +++ b/sdk/go/tencentcloud/eip/addressTransform.go @@ -24,13 +24,61 @@ import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Eip.NewAddressTransform(ctx, "addressTransform", &Eip.AddressTransformArgs{ -// InstanceId: pulumi.String(""), +// // create vpc +// vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ +// CidrBlock: pulumi.String("10.0.0.0/16"), +// }) +// if err != nil { +// return err +// } +// // create vpc subnet +// subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ +// VpcId: vpc.ID(), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// CidrBlock: pulumi.String("10.0.20.0/28"), +// IsMulticast: pulumi.Bool(false), +// }) +// if err != nil { +// return err +// } +// // create cvm +// exampleInstance, err := Instance.NewInstance(ctx, "exampleInstance", &Instance.InstanceArgs{ +// InstanceName: pulumi.String("tf_example"), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// ImageId: pulumi.String("img-9qrfy1xt"), +// InstanceType: pulumi.String("SA3.MEDIUM4"), +// SystemDiskType: pulumi.String("CLOUD_HSSD"), +// SystemDiskSize: pulumi.Int(100), +// Hostname: pulumi.String("example"), +// ProjectId: pulumi.Int(0), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// AllocatePublicIp: pulumi.Bool(true), +// InternetMaxBandwidthOut: pulumi.Int(10), +// DataDisks: instance.InstanceDataDiskArray{ +// &instance.InstanceDataDiskArgs{ +// DataDiskType: pulumi.String("CLOUD_HSSD"), +// DataDiskSize: pulumi.Int(50), +// Encrypt: pulumi.Bool(false), +// }, +// }, +// Tags: pulumi.Map{ +// "tagKey": pulumi.Any("tagValue"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = Eip.NewAddressTransform(ctx, "exampleAddressTransform", &Eip.AddressTransformArgs{ +// InstanceId: exampleInstance.ID(), // }) // if err != nil { // return err @@ -41,14 +89,6 @@ import ( // // ``` // -// -// ## Import -// -// eip address_transform can be imported using the id, e.g. -// -// ```sh -// $ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id -// ``` type AddressTransform struct { pulumi.CustomResourceState diff --git a/sdk/go/tencentcloud/eip/normalAddressReturn.go b/sdk/go/tencentcloud/eip/normalAddressReturn.go index f2d67b960..2ebf53853 100644 --- a/sdk/go/tencentcloud/eip/normalAddressReturn.go +++ b/sdk/go/tencentcloud/eip/normalAddressReturn.go @@ -28,7 +28,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Eip.NewNormalAddressReturn(ctx, "normalAddressReturn", &Eip.NormalAddressReturnArgs{ +// _, err := Eip.NewNormalAddressReturn(ctx, "example", &Eip.NormalAddressReturnArgs{ // AddressIps: pulumi.StringArray{ // pulumi.String("172.16.17.32"), // }, diff --git a/sdk/go/tencentcloud/eip/publicAddressAdjust.go b/sdk/go/tencentcloud/eip/publicAddressAdjust.go index e78a6ecd0..cd32176a8 100644 --- a/sdk/go/tencentcloud/eip/publicAddressAdjust.go +++ b/sdk/go/tencentcloud/eip/publicAddressAdjust.go @@ -23,14 +23,67 @@ import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eip" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Eip.NewPublicAddressAdjust(ctx, "publicAddressAdjust", &Eip.PublicAddressAdjustArgs{ -// AddressId: pulumi.String("eip-erft45fu"), -// InstanceId: pulumi.String("ins-cr2rfq78"), +// // create vpc +// vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ +// CidrBlock: pulumi.String("10.0.0.0/16"), +// }) +// if err != nil { +// return err +// } +// // create vpc subnet +// subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ +// VpcId: vpc.ID(), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// CidrBlock: pulumi.String("10.0.20.0/28"), +// IsMulticast: pulumi.Bool(false), +// }) +// if err != nil { +// return err +// } +// // create cvm +// exampleInstance, err := Instance.NewInstance(ctx, "exampleInstance", &Instance.InstanceArgs{ +// InstanceName: pulumi.String("tf_example"), +// AvailabilityZone: pulumi.String("ap-guangzhou-6"), +// ImageId: pulumi.String("img-9qrfy1xt"), +// InstanceType: pulumi.String("SA3.MEDIUM4"), +// SystemDiskType: pulumi.String("CLOUD_HSSD"), +// SystemDiskSize: pulumi.Int(100), +// Hostname: pulumi.String("example"), +// ProjectId: pulumi.Int(0), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// AllocatePublicIp: pulumi.Bool(true), +// InternetMaxBandwidthOut: pulumi.Int(10), +// DataDisks: instance.InstanceDataDiskArray{ +// &instance.InstanceDataDiskArgs{ +// DataDiskType: pulumi.String("CLOUD_HSSD"), +// DataDiskSize: pulumi.Int(50), +// Encrypt: pulumi.Bool(false), +// }, +// }, +// Tags: pulumi.Map{ +// "tagKey": pulumi.Any("tagValue"), +// }, +// }) +// if err != nil { +// return err +// } +// // create eip +// _, err = Eip.NewInstance(ctx, "exampleEip/instanceInstance", nil) +// if err != nil { +// return err +// } +// _, err = Eip.NewPublicAddressAdjust(ctx, "examplePublicAddressAdjust", &Eip.PublicAddressAdjustArgs{ +// InstanceId: exampleInstance.ID(), +// AddressId: exampleEip / instanceInstance.Id, // }) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/eips/getInstance.go b/sdk/go/tencentcloud/eips/getInstance.go index 5a97f5e47..bde697e30 100644 --- a/sdk/go/tencentcloud/eips/getInstance.go +++ b/sdk/go/tencentcloud/eips/getInstance.go @@ -15,6 +15,34 @@ import ( // // ## Example Usage // +// ### Query all eip instances +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Eips.GetInstance(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query eip instances by eip ID +// // // ```go // package main @@ -40,6 +68,92 @@ import ( // // ``` // +// +// ### Query eip instances by eip name +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Eips.GetInstance(ctx, &eips.GetInstanceArgs{ +// EipName: pulumi.StringRef("tf-example"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query eip instances by public ip +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Eips.GetInstance(ctx, &eips.GetInstanceArgs{ +// PublicIp: pulumi.StringRef("1.12.62.3"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query eip instances by tags +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Eips" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Eips.GetInstance(ctx, &eips.GetInstanceArgs{ +// Tags: map[string]interface{}{ +// "test": "test", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// func GetInstance(ctx *pulumi.Context, args *GetInstanceArgs, opts ...pulumi.InvokeOption) (*GetInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetInstanceResult diff --git a/sdk/go/tencentcloud/image/getInstance.go b/sdk/go/tencentcloud/image/getInstance.go index cfa11c448..63e1b7d57 100644 --- a/sdk/go/tencentcloud/image/getInstance.go +++ b/sdk/go/tencentcloud/image/getInstance.go @@ -13,12 +13,41 @@ import ( // Provides an available image for the user. // -// The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. +// The Images data source fetch proper image, which could be one of the private images of the user and images of system +// resources provided by TencentCloud, as well as other public images and those available on the image market. // // > **NOTE:** This data source will be deprecated, please use `Images.getInstance` instead. // // ## Example Usage // +// ### Query image +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Image.GetInstance(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query image by filter +// // // ```go // package main @@ -41,6 +70,33 @@ import ( // }, // }, // }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query image by os name +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Image.GetInstance(ctx, &image.GetInstanceArgs{ // OsName: pulumi.StringRef("centos"), // }, nil) // if err != nil { @@ -52,6 +108,34 @@ import ( // // ``` // +// +// ### Query image by image name regex +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Image" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Image.GetInstance(ctx, &image.GetInstanceArgs{ +// ImageNameRegex: pulumi.StringRef("^Windows\\s.*$"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstanceResult diff --git a/sdk/go/tencentcloud/images/getInstance.go b/sdk/go/tencentcloud/images/getInstance.go index 02adc6b49..1411eeeca 100644 --- a/sdk/go/tencentcloud/images/getInstance.go +++ b/sdk/go/tencentcloud/images/getInstance.go @@ -15,6 +15,118 @@ import ( // // ## Example Usage // +// ### Query all images +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Images.GetInstance(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query images by image ID +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Images.GetInstance(ctx, &images.GetInstanceArgs{ +// ImageId: pulumi.StringRef("img-9qrfy1xt"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query images by os name +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Images.GetInstance(ctx, &images.GetInstanceArgs{ +// OsName: pulumi.StringRef("TencentOS Server 3.2 (Final)"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query images by image name regex +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Images.GetInstance(ctx, &images.GetInstanceArgs{ +// ImageNameRegex: pulumi.StringRef("^TencentOS"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query images by image type +// // // ```go // package main @@ -32,7 +144,34 @@ import ( // ImageTypes: []string{ // "PUBLIC_IMAGE", // }, -// OsName: pulumi.StringRef("centos 7.5"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query images by instance type +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Images" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Images.GetInstance(ctx, &images.GetInstanceArgs{ +// InstanceType: pulumi.StringRef("S1.SMALL1"), // }, nil) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/instance/getTypes.go b/sdk/go/tencentcloud/instance/getTypes.go index 0bea5af25..e8c3fe93f 100644 --- a/sdk/go/tencentcloud/instance/getTypes.go +++ b/sdk/go/tencentcloud/instance/getTypes.go @@ -29,31 +29,53 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := Instance.GetTypes(ctx, &instance.GetTypesArgs{ -// AvailabilityZone: pulumi.StringRef("ap-guangzhou-2"), -// CpuCoreCount: pulumi.IntRef(2), -// MemorySize: pulumi.IntRef(4), +// AvailabilityZone: pulumi.StringRef("ap-guangzhou-6"), +// CpuCoreCount: pulumi.IntRef(4), +// MemorySize: pulumi.IntRef(8), // }, nil) // if err != nil { // return err // } -// _, err = Instance.GetTypes(ctx, &instance.GetTypesArgs{ -// CpuCoreCount: pulumi.IntRef(1), +// return nil +// }) +// } +// +// ``` +// +// +// ### Complete Example +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Instance.GetTypes(ctx, &instance.GetTypesArgs{ +// CpuCoreCount: pulumi.IntRef(4), // ExcludeSoldOut: pulumi.BoolRef(true), // Filters: []instance.GetTypesFilter{ // { -// Name: "instance-charge-type", +// Name: "instance-family", // Values: []string{ -// "POSTPAID_BY_HOUR", +// "SA2", // }, // }, // { // Name: "zone", // Values: []string{ -// "ap-shanghai-2", +// "ap-guangzhou-6", // }, // }, // }, -// MemorySize: pulumi.IntRef(1), +// MemorySize: pulumi.IntRef(8), // }, nil) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/instances/getInstance.go b/sdk/go/tencentcloud/instances/getInstance.go index bb891f9bc..2c21e5b9d 100644 --- a/sdk/go/tencentcloud/instances/getInstance.go +++ b/sdk/go/tencentcloud/instances/getInstance.go @@ -15,6 +15,70 @@ import ( // // ## Example Usage // +// ### Query all cvm instances +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Instances.GetInstance(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Query cvm instances by filters +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instances" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Instances.GetInstance(ctx, &instances.GetInstanceArgs{ +// AvailabilityZone: pulumi.StringRef("ap-guangzhou-6"), +// InstanceId: pulumi.StringRef("ins-a81rnm8c"), +// InstanceName: pulumi.StringRef("tf_example"), +// ProjectId: pulumi.IntRef(0), +// SubnetId: pulumi.StringRef("subnet-1to7t9au"), +// Tags: map[string]interface{}{ +// "tagKey": "tagValue", +// }, +// VpcId: pulumi.StringRef("vpc-l040hycv"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// +// ### Or by instance set id list +// // // ```go // package main @@ -29,7 +93,9 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := Instances.GetInstance(ctx, &instances.GetInstanceArgs{ -// InstanceId: pulumi.StringRef("ins-da412f5a"), +// InstanceSetIds: []string{ +// "ins-a81rnm8c", +// }, // }, nil) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/instances/getSet.go b/sdk/go/tencentcloud/instances/getSet.go index fc34052da..7508cff43 100644 --- a/sdk/go/tencentcloud/instances/getSet.go +++ b/sdk/go/tencentcloud/instances/getSet.go @@ -29,7 +29,15 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := Instances.GetSet(ctx, &instances.GetSetArgs{ -// VpcId: pulumi.StringRef("vpc-4owdpnwr"), +// AvailabilityZone: pulumi.StringRef("ap-guangzhou-6"), +// InstanceId: pulumi.StringRef("ins-a81rnm8c"), +// InstanceName: pulumi.StringRef("tf_example"), +// ProjectId: pulumi.IntRef(0), +// SubnetId: pulumi.StringRef("subnet-1to7t9au"), +// Tags: map[string]interface{}{ +// "tagKey": "tagValue", +// }, +// VpcId: pulumi.StringRef("vpc-l040hycv"), // }, nil) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/key/getPairs.go b/sdk/go/tencentcloud/key/getPairs.go index 7a70abc79..675523b90 100644 --- a/sdk/go/tencentcloud/key/getPairs.go +++ b/sdk/go/tencentcloud/key/getPairs.go @@ -15,6 +15,8 @@ import ( // // ## Example Usage // +// ### Query key pairs by key ID +// // // ```go // package main @@ -34,7 +36,29 @@ import ( // if err != nil { // return err // } -// _, err = Key.GetPairs(ctx, &key.GetPairsArgs{ +// return nil +// }) +// } +// +// ``` +// +// +// ### Query key pairs by key name +// +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Key" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := Key.GetPairs(ctx, &key.GetPairsArgs{ // KeyName: pulumi.StringRef("^test$"), // }, nil) // if err != nil { diff --git a/sdk/go/tencentcloud/placement/getGroups.go b/sdk/go/tencentcloud/placement/getGroups.go index f552ef82d..a52fdbbe6 100644 --- a/sdk/go/tencentcloud/placement/getGroups.go +++ b/sdk/go/tencentcloud/placement/getGroups.go @@ -29,8 +29,8 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := Placement.GetGroups(ctx, &placement.GetGroupsArgs{ -// Name: pulumi.StringRef("test"), -// PlacementGroupId: pulumi.StringRef("ps-21q9ibvr"), +// Name: pulumi.StringRef("tf_example"), +// PlacementGroupId: pulumi.StringRef("ps-bwvst92h"), // }, nil) // if err != nil { // return err diff --git a/sdk/go/tencentcloud/tdmq/pulumiTypes.go b/sdk/go/tencentcloud/tdmq/pulumiTypes.go index dc64ff1d6..61ec3632c 100644 --- a/sdk/go/tencentcloud/tdmq/pulumiTypes.go +++ b/sdk/go/tencentcloud/tdmq/pulumiTypes.go @@ -431,6 +431,121 @@ func (o RocketmqClusterVpcArrayOutput) Index(i pulumi.IntInput) RocketmqClusterV }).(RocketmqClusterVpcOutput) } +type RocketmqVipInstanceIpRule struct { + // Whether to allow or deny. + Allow bool `pulumi:"allow"` + // IP address block information. + IpRule string `pulumi:"ipRule"` + // Remark. + Remark string `pulumi:"remark"` +} + +// RocketmqVipInstanceIpRuleInput is an input type that accepts RocketmqVipInstanceIpRuleArgs and RocketmqVipInstanceIpRuleOutput values. +// You can construct a concrete instance of `RocketmqVipInstanceIpRuleInput` via: +// +// RocketmqVipInstanceIpRuleArgs{...} +type RocketmqVipInstanceIpRuleInput interface { + pulumi.Input + + ToRocketmqVipInstanceIpRuleOutput() RocketmqVipInstanceIpRuleOutput + ToRocketmqVipInstanceIpRuleOutputWithContext(context.Context) RocketmqVipInstanceIpRuleOutput +} + +type RocketmqVipInstanceIpRuleArgs struct { + // Whether to allow or deny. + Allow pulumi.BoolInput `pulumi:"allow"` + // IP address block information. + IpRule pulumi.StringInput `pulumi:"ipRule"` + // Remark. + Remark pulumi.StringInput `pulumi:"remark"` +} + +func (RocketmqVipInstanceIpRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RocketmqVipInstanceIpRule)(nil)).Elem() +} + +func (i RocketmqVipInstanceIpRuleArgs) ToRocketmqVipInstanceIpRuleOutput() RocketmqVipInstanceIpRuleOutput { + return i.ToRocketmqVipInstanceIpRuleOutputWithContext(context.Background()) +} + +func (i RocketmqVipInstanceIpRuleArgs) ToRocketmqVipInstanceIpRuleOutputWithContext(ctx context.Context) RocketmqVipInstanceIpRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(RocketmqVipInstanceIpRuleOutput) +} + +// RocketmqVipInstanceIpRuleArrayInput is an input type that accepts RocketmqVipInstanceIpRuleArray and RocketmqVipInstanceIpRuleArrayOutput values. +// You can construct a concrete instance of `RocketmqVipInstanceIpRuleArrayInput` via: +// +// RocketmqVipInstanceIpRuleArray{ RocketmqVipInstanceIpRuleArgs{...} } +type RocketmqVipInstanceIpRuleArrayInput interface { + pulumi.Input + + ToRocketmqVipInstanceIpRuleArrayOutput() RocketmqVipInstanceIpRuleArrayOutput + ToRocketmqVipInstanceIpRuleArrayOutputWithContext(context.Context) RocketmqVipInstanceIpRuleArrayOutput +} + +type RocketmqVipInstanceIpRuleArray []RocketmqVipInstanceIpRuleInput + +func (RocketmqVipInstanceIpRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RocketmqVipInstanceIpRule)(nil)).Elem() +} + +func (i RocketmqVipInstanceIpRuleArray) ToRocketmqVipInstanceIpRuleArrayOutput() RocketmqVipInstanceIpRuleArrayOutput { + return i.ToRocketmqVipInstanceIpRuleArrayOutputWithContext(context.Background()) +} + +func (i RocketmqVipInstanceIpRuleArray) ToRocketmqVipInstanceIpRuleArrayOutputWithContext(ctx context.Context) RocketmqVipInstanceIpRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RocketmqVipInstanceIpRuleArrayOutput) +} + +type RocketmqVipInstanceIpRuleOutput struct{ *pulumi.OutputState } + +func (RocketmqVipInstanceIpRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RocketmqVipInstanceIpRule)(nil)).Elem() +} + +func (o RocketmqVipInstanceIpRuleOutput) ToRocketmqVipInstanceIpRuleOutput() RocketmqVipInstanceIpRuleOutput { + return o +} + +func (o RocketmqVipInstanceIpRuleOutput) ToRocketmqVipInstanceIpRuleOutputWithContext(ctx context.Context) RocketmqVipInstanceIpRuleOutput { + return o +} + +// Whether to allow or deny. +func (o RocketmqVipInstanceIpRuleOutput) Allow() pulumi.BoolOutput { + return o.ApplyT(func(v RocketmqVipInstanceIpRule) bool { return v.Allow }).(pulumi.BoolOutput) +} + +// IP address block information. +func (o RocketmqVipInstanceIpRuleOutput) IpRule() pulumi.StringOutput { + return o.ApplyT(func(v RocketmqVipInstanceIpRule) string { return v.IpRule }).(pulumi.StringOutput) +} + +// Remark. +func (o RocketmqVipInstanceIpRuleOutput) Remark() pulumi.StringOutput { + return o.ApplyT(func(v RocketmqVipInstanceIpRule) string { return v.Remark }).(pulumi.StringOutput) +} + +type RocketmqVipInstanceIpRuleArrayOutput struct{ *pulumi.OutputState } + +func (RocketmqVipInstanceIpRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RocketmqVipInstanceIpRule)(nil)).Elem() +} + +func (o RocketmqVipInstanceIpRuleArrayOutput) ToRocketmqVipInstanceIpRuleArrayOutput() RocketmqVipInstanceIpRuleArrayOutput { + return o +} + +func (o RocketmqVipInstanceIpRuleArrayOutput) ToRocketmqVipInstanceIpRuleArrayOutputWithContext(ctx context.Context) RocketmqVipInstanceIpRuleArrayOutput { + return o +} + +func (o RocketmqVipInstanceIpRuleArrayOutput) Index(i pulumi.IntInput) RocketmqVipInstanceIpRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RocketmqVipInstanceIpRule { + return vs[0].([]RocketmqVipInstanceIpRule)[vs[1].(int)] + }).(RocketmqVipInstanceIpRuleOutput) +} + type RocketmqVipInstanceVpcInfo struct { // Subnet ID. SubnetId string `pulumi:"subnetId"` @@ -4689,6 +4804,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProfessionalClusterVpcPtrInput)(nil)).Elem(), ProfessionalClusterVpcArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RocketmqClusterVpcInput)(nil)).Elem(), RocketmqClusterVpcArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RocketmqClusterVpcArrayInput)(nil)).Elem(), RocketmqClusterVpcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RocketmqVipInstanceIpRuleInput)(nil)).Elem(), RocketmqVipInstanceIpRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RocketmqVipInstanceIpRuleArrayInput)(nil)).Elem(), RocketmqVipInstanceIpRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RocketmqVipInstanceVpcInfoInput)(nil)).Elem(), RocketmqVipInstanceVpcInfoArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RocketmqVipInstanceVpcInfoPtrInput)(nil)).Elem(), RocketmqVipInstanceVpcInfoArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetProInstanceDetailClusterInfoInput)(nil)).Elem(), GetProInstanceDetailClusterInfoArgs{}) @@ -4753,6 +4870,8 @@ func init() { pulumi.RegisterOutputType(ProfessionalClusterVpcPtrOutput{}) pulumi.RegisterOutputType(RocketmqClusterVpcOutput{}) pulumi.RegisterOutputType(RocketmqClusterVpcArrayOutput{}) + pulumi.RegisterOutputType(RocketmqVipInstanceIpRuleOutput{}) + pulumi.RegisterOutputType(RocketmqVipInstanceIpRuleArrayOutput{}) pulumi.RegisterOutputType(RocketmqVipInstanceVpcInfoOutput{}) pulumi.RegisterOutputType(RocketmqVipInstanceVpcInfoPtrOutput{}) pulumi.RegisterOutputType(GetProInstanceDetailClusterInfoOutput{}) diff --git a/sdk/go/tencentcloud/tdmq/rocketmqVipInstance.go b/sdk/go/tencentcloud/tdmq/rocketmqVipInstance.go index 4552ea485..a6cd4c8ea 100644 --- a/sdk/go/tencentcloud/tdmq/rocketmqVipInstance.go +++ b/sdk/go/tencentcloud/tdmq/rocketmqVipInstance.go @@ -15,14 +15,17 @@ import ( // Provides a resource to create a tdmq rocketmqVipInstance // // > **NOTE:** The instance cannot be downgraded, Include parameters `nodeCount`, `spec`, `storageSize`. +// **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported. type RocketmqVipInstance struct { pulumi.CustomResourceState + // Public IP access control rules. + IpRules RocketmqVipInstanceIpRuleArrayOutput `pulumi:"ipRules"` // Instance name. Name pulumi.StringOutput `pulumi:"name"` // Number of nodes, minimum 2, maximum 20. NodeCount pulumi.IntOutput `pulumi:"nodeCount"` - // Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + // Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. Spec pulumi.StringOutput `pulumi:"spec"` // Single node storage space, in GB, minimum 200GB. StorageSize pulumi.IntOutput `pulumi:"storageSize"` @@ -82,11 +85,13 @@ func GetRocketmqVipInstance(ctx *pulumi.Context, // Input properties used for looking up and filtering RocketmqVipInstance resources. type rocketmqVipInstanceState struct { + // Public IP access control rules. + IpRules []RocketmqVipInstanceIpRule `pulumi:"ipRules"` // Instance name. Name *string `pulumi:"name"` // Number of nodes, minimum 2, maximum 20. NodeCount *int `pulumi:"nodeCount"` - // Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + // Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. Spec *string `pulumi:"spec"` // Single node storage space, in GB, minimum 200GB. StorageSize *int `pulumi:"storageSize"` @@ -99,11 +104,13 @@ type rocketmqVipInstanceState struct { } type RocketmqVipInstanceState struct { + // Public IP access control rules. + IpRules RocketmqVipInstanceIpRuleArrayInput // Instance name. Name pulumi.StringPtrInput // Number of nodes, minimum 2, maximum 20. NodeCount pulumi.IntPtrInput - // Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + // Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. Spec pulumi.StringPtrInput // Single node storage space, in GB, minimum 200GB. StorageSize pulumi.IntPtrInput @@ -120,11 +127,13 @@ func (RocketmqVipInstanceState) ElementType() reflect.Type { } type rocketmqVipInstanceArgs struct { + // Public IP access control rules. + IpRules []RocketmqVipInstanceIpRule `pulumi:"ipRules"` // Instance name. Name *string `pulumi:"name"` // Number of nodes, minimum 2, maximum 20. NodeCount int `pulumi:"nodeCount"` - // Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + // Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. Spec string `pulumi:"spec"` // Single node storage space, in GB, minimum 200GB. StorageSize int `pulumi:"storageSize"` @@ -138,11 +147,13 @@ type rocketmqVipInstanceArgs struct { // The set of arguments for constructing a RocketmqVipInstance resource. type RocketmqVipInstanceArgs struct { + // Public IP access control rules. + IpRules RocketmqVipInstanceIpRuleArrayInput // Instance name. Name pulumi.StringPtrInput // Number of nodes, minimum 2, maximum 20. NodeCount pulumi.IntInput - // Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + // Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. Spec pulumi.StringInput // Single node storage space, in GB, minimum 200GB. StorageSize pulumi.IntInput @@ -241,6 +252,11 @@ func (o RocketmqVipInstanceOutput) ToRocketmqVipInstanceOutputWithContext(ctx co return o } +// Public IP access control rules. +func (o RocketmqVipInstanceOutput) IpRules() RocketmqVipInstanceIpRuleArrayOutput { + return o.ApplyT(func(v *RocketmqVipInstance) RocketmqVipInstanceIpRuleArrayOutput { return v.IpRules }).(RocketmqVipInstanceIpRuleArrayOutput) +} + // Instance name. func (o RocketmqVipInstanceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RocketmqVipInstance) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) @@ -251,7 +267,7 @@ func (o RocketmqVipInstanceOutput) NodeCount() pulumi.IntOutput { return o.ApplyT(func(v *RocketmqVipInstance) pulumi.IntOutput { return v.NodeCount }).(pulumi.IntOutput) } -// Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. +// Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. func (o RocketmqVipInstanceOutput) Spec() pulumi.StringOutput { return o.ApplyT(func(v *RocketmqVipInstance) pulumi.StringOutput { return v.Spec }).(pulumi.StringOutput) } diff --git a/sdk/nodejs/cls/index.ts b/sdk/nodejs/cls/index.ts index 4ad09d087..64a1aeb90 100644 --- a/sdk/nodejs/cls/index.ts +++ b/sdk/nodejs/cls/index.ts @@ -70,6 +70,11 @@ export const getShipperTasks: typeof import("./getShipperTasks").getShipperTasks export const getShipperTasksOutput: typeof import("./getShipperTasks").getShipperTasksOutput = null as any; utilities.lazyLoad(exports, ["getShipperTasks","getShipperTasksOutput"], () => require("./getShipperTasks")); +export { IndexArgs, IndexState } from "./index_"; +export type Index = import("./index_").Index; +export const Index: typeof import("./index_").Index = null as any; +utilities.lazyLoad(exports, ["Index"], () => require("./index_")); + export { KafkaRechargeArgs, KafkaRechargeState } from "./kafkaRecharge"; export type KafkaRecharge = import("./kafkaRecharge").KafkaRecharge; export const KafkaRecharge: typeof import("./kafkaRecharge").KafkaRecharge = null as any; @@ -120,6 +125,8 @@ const _module = { return new DataTransform(name, undefined, { urn }) case "tencentcloud:Cls/export:Export": return new Export(name, undefined, { urn }) + case "tencentcloud:Cls/index:Index": + return new Index(name, undefined, { urn }) case "tencentcloud:Cls/kafkaRecharge:KafkaRecharge": return new KafkaRecharge(name, undefined, { urn }) case "tencentcloud:Cls/logset:Logset": @@ -145,6 +152,7 @@ pulumi.runtime.registerResourceModule("tencentcloud", "Cls/cosRecharge", _module pulumi.runtime.registerResourceModule("tencentcloud", "Cls/cosShipper", _module) pulumi.runtime.registerResourceModule("tencentcloud", "Cls/dataTransform", _module) pulumi.runtime.registerResourceModule("tencentcloud", "Cls/export", _module) +pulumi.runtime.registerResourceModule("tencentcloud", "Cls/index", _module) pulumi.runtime.registerResourceModule("tencentcloud", "Cls/kafkaRecharge", _module) pulumi.runtime.registerResourceModule("tencentcloud", "Cls/logset", _module) pulumi.runtime.registerResourceModule("tencentcloud", "Cls/machineGroup", _module) diff --git a/sdk/nodejs/cls/index_.ts b/sdk/nodejs/cls/index_.ts new file mode 100644 index 000000000..daf595ea2 --- /dev/null +++ b/sdk/nodejs/cls/index_.ts @@ -0,0 +1,235 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +/** + * Provides a resource to create a cls index. + * + * ## Example Usage + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@tencentcloud_iac/pulumi"; + * + * const exampleLogset = new tencentcloud.cls.Logset("exampleLogset", { + * logsetName: "tf_example", + * tags: { + * demo: "test", + * }, + * }); + * const exampleTopic = new tencentcloud.cls.Topic("exampleTopic", { + * topicName: "tf_example", + * logsetId: exampleLogset.id, + * autoSplit: false, + * maxSplitPartitions: 20, + * partitionCount: 1, + * period: 30, + * storageType: "hot", + * describes: "Test Demo.", + * hotPeriod: 10, + * tags: { + * test: "test", + * }, + * }); + * const tokenizerValue = "@&?|#()='\",;:<>[]{}"; + * const exampleIndex = new tencentcloud.cls.Index("exampleIndex", { + * topicId: exampleTopic.id, + * rule: { + * fullText: { + * caseSensitive: true, + * tokenizer: tokenizerValue, + * containZH: true, + * }, + * keyValue: { + * caseSensitive: true, + * keyValues: [ + * { + * key: "hello", + * value: { + * containZH: true, + * sqlFlag: true, + * tokenizer: tokenizerValue, + * type: "text", + * }, + * }, + * { + * key: "world", + * value: { + * containZH: true, + * sqlFlag: true, + * tokenizer: tokenizerValue, + * type: "text", + * }, + * }, + * ], + * }, + * tag: { + * caseSensitive: true, + * keyValues: [{ + * key: "terraform", + * value: { + * containZH: true, + * sqlFlag: true, + * tokenizer: tokenizerValue, + * type: "text", + * }, + * }], + * }, + * dynamicIndex: { + * status: true, + * }, + * }, + * status: true, + * includeInternalFields: true, + * metadataFlag: 1, + * }); + * ``` + * + * + * ## Import + * + * cls cos index can be imported using the id, e.g. + * + * ```sh + * $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc + * ``` + */ +export class Index extends pulumi.CustomResource { + /** + * Get an existing Index resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: IndexState, opts?: pulumi.CustomResourceOptions): Index { + return new Index(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'tencentcloud:Cls/index:Index'; + + /** + * Returns true if the given object is an instance of Index. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Index { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Index.__pulumiType; + } + + /** + * Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + */ + public readonly includeInternalFields!: pulumi.Output; + /** + * 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).. + */ + public readonly metadataFlag!: pulumi.Output; + /** + * Index rule. + */ + public readonly rule!: pulumi.Output; + /** + * Whether to take effect. Default value: true. + */ + public readonly status!: pulumi.Output; + /** + * Log topic ID. + */ + public readonly topicId!: pulumi.Output; + + /** + * Create a Index resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: IndexArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: IndexArgs | IndexState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as IndexState | undefined; + resourceInputs["includeInternalFields"] = state ? state.includeInternalFields : undefined; + resourceInputs["metadataFlag"] = state ? state.metadataFlag : undefined; + resourceInputs["rule"] = state ? state.rule : undefined; + resourceInputs["status"] = state ? state.status : undefined; + resourceInputs["topicId"] = state ? state.topicId : undefined; + } else { + const args = argsOrState as IndexArgs | undefined; + if ((!args || args.topicId === undefined) && !opts.urn) { + throw new Error("Missing required property 'topicId'"); + } + resourceInputs["includeInternalFields"] = args ? args.includeInternalFields : undefined; + resourceInputs["metadataFlag"] = args ? args.metadataFlag : undefined; + resourceInputs["rule"] = args ? args.rule : undefined; + resourceInputs["status"] = args ? args.status : undefined; + resourceInputs["topicId"] = args ? args.topicId : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(Index.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Index resources. + */ +export interface IndexState { + /** + * Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + */ + includeInternalFields?: pulumi.Input; + /** + * 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).. + */ + metadataFlag?: pulumi.Input; + /** + * Index rule. + */ + rule?: pulumi.Input; + /** + * Whether to take effect. Default value: true. + */ + status?: pulumi.Input; + /** + * Log topic ID. + */ + topicId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Index resource. + */ +export interface IndexArgs { + /** + * Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields. + */ + includeInternalFields?: pulumi.Input; + /** + * 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).. + */ + metadataFlag?: pulumi.Input; + /** + * Index rule. + */ + rule?: pulumi.Input; + /** + * Whether to take effect. Default value: true. + */ + status?: pulumi.Input; + /** + * Log topic ID. + */ + topicId: pulumi.Input; +} diff --git a/sdk/nodejs/cvm/renewInstance.ts b/sdk/nodejs/cvm/renewInstance.ts index d74c49e67..98aedfd6f 100644 --- a/sdk/nodejs/cvm/renewInstance.ts +++ b/sdk/nodejs/cvm/renewInstance.ts @@ -16,13 +16,48 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const renewInstance = new tencentcloud.cvm.RenewInstance("renewInstance", { + * // create vpc + * const vpc = new tencentcloud.vpc.Instance("vpc", {cidrBlock: "10.0.0.0/16"}); + * // create vpc subnet + * const subnet = new tencentcloud.subnet.Instance("subnet", { + * vpcId: vpc.id, + * availabilityZone: "ap-guangzhou-6", + * cidrBlock: "10.0.20.0/28", + * isMulticast: false, + * }); + * // create cvm + * const exampleInstance = new tencentcloud.instance.Instance("exampleInstance", { + * instanceName: "tf_example", + * availabilityZone: "ap-guangzhou-6", + * imageId: "img-9qrfy1xt", + * instanceType: "SA3.MEDIUM4", + * systemDiskType: "CLOUD_HSSD", + * systemDiskSize: 100, + * hostname: "example", + * projectId: 0, + * vpcId: vpc.id, + * subnetId: subnet.id, + * forceDelete: true, + * instanceChargeType: "PREPAID", + * instanceChargeTypePrepaidPeriod: 1, + * instanceChargeTypePrepaidRenewFlag: "NOTIFY_AND_MANUAL_RENEW", + * dataDisks: [{ + * dataDiskType: "CLOUD_HSSD", + * dataDiskSize: 50, + * encrypt: false, + * }], + * tags: { + * tagKey: "tagValue", + * }, + * }); + * // renew instance + * const exampleRenewInstance = new tencentcloud.cvm.RenewInstance("exampleRenewInstance", { + * instanceId: exampleInstance.id, + * renewPortableDataDisk: true, * instanceChargePrepaid: { * period: 1, - * renewFlag: "NOTIFY_AND_AUTO_RENEW", + * renewFlag: "NOTIFY_AND_MANUAL_RENEW", * }, - * instanceId: "ins-f9jr4bd2", - * renewPortableDataDisk: true, * }); * ``` * diff --git a/sdk/nodejs/cvm/securityGroupAttachment.ts b/sdk/nodejs/cvm/securityGroupAttachment.ts index c3ae07e1c..c50609dc8 100644 --- a/sdk/nodejs/cvm/securityGroupAttachment.ts +++ b/sdk/nodejs/cvm/securityGroupAttachment.ts @@ -14,9 +14,48 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const securityGroupAttachment = new tencentcloud.cvm.SecurityGroupAttachment("securityGroupAttachment", { - * instanceId: "ins-xxxxxxxx", - * securityGroupId: "sg-xxxxxxx", + * // create vpc + * const vpc = new tencentcloud.vpc.Instance("vpc", {cidrBlock: "10.0.0.0/16"}); + * // create vpc subnet + * const subnet = new tencentcloud.subnet.Instance("subnet", { + * vpcId: vpc.id, + * availabilityZone: "ap-guangzhou-6", + * cidrBlock: "10.0.20.0/28", + * isMulticast: false, + * }); + * // create security group + * const exampleGroup = new tencentcloud.security.Group("exampleGroup", { + * description: "sg desc.", + * projectId: 0, + * tags: { + * example: "test", + * }, + * }); + * // create cvm + * const exampleInstance = new tencentcloud.instance.Instance("exampleInstance", { + * instanceName: "tf_example", + * availabilityZone: "ap-guangzhou-6", + * imageId: "img-9qrfy1xt", + * instanceType: "SA3.MEDIUM4", + * systemDiskType: "CLOUD_HSSD", + * systemDiskSize: 100, + * hostname: "example", + * projectId: 0, + * vpcId: vpc.id, + * subnetId: subnet.id, + * dataDisks: [{ + * dataDiskType: "CLOUD_HSSD", + * dataDiskSize: 50, + * encrypt: false, + * }], + * tags: { + * tagKey: "tagValue", + * }, + * }); + * // attachment security group + * const exampleSecurityGroupAttachment = new tencentcloud.cvm.SecurityGroupAttachment("exampleSecurityGroupAttachment", { + * instanceId: exampleInstance.id, + * securityGroupId: exampleGroup.id, * }); * ``` * @@ -26,7 +65,7 @@ import * as utilities from "../utilities"; * cvm security_group_attachment can be imported using the id, e.g. * * ```sh - * $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id} + * $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp * ``` */ export class SecurityGroupAttachment extends pulumi.CustomResource { diff --git a/sdk/nodejs/cvm/syncImage.ts b/sdk/nodejs/cvm/syncImage.ts index c23b62c3c..8dc8c5e75 100644 --- a/sdk/nodejs/cvm/syncImage.ts +++ b/sdk/nodejs/cvm/syncImage.ts @@ -12,14 +12,19 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const syncImage = new tencentcloud.cvm.SyncImage("syncImage", { + * const exampleInstance = tencentcloud.Images.getInstance({ + * imageTypes: ["PRIVATE_IMAGE"], + * imageNameRegex: "MyImage", + * }); + * const exampleSyncImage = new tencentcloud.cvm.SyncImage("exampleSyncImage", { + * imageId: exampleInstance.then(exampleInstance => exampleInstance.images?.[0]?.imageId), * destinationRegions: [ * "ap-guangzhou", * "ap-shanghai", * ], - * imageId: "img-xxxxxx", * }); * ``` * diff --git a/sdk/nodejs/eip/addressTransform.ts b/sdk/nodejs/eip/addressTransform.ts index 5fe3cdcc9..037c08272 100644 --- a/sdk/nodejs/eip/addressTransform.ts +++ b/sdk/nodejs/eip/addressTransform.ts @@ -14,17 +14,41 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const addressTransform = new tencentcloud.eip.AddressTransform("addressTransform", {instanceId: ""}); + * // create vpc + * const vpc = new tencentcloud.vpc.Instance("vpc", {cidrBlock: "10.0.0.0/16"}); + * // create vpc subnet + * const subnet = new tencentcloud.subnet.Instance("subnet", { + * vpcId: vpc.id, + * availabilityZone: "ap-guangzhou-6", + * cidrBlock: "10.0.20.0/28", + * isMulticast: false, + * }); + * // create cvm + * const exampleInstance = new tencentcloud.instance.Instance("exampleInstance", { + * instanceName: "tf_example", + * availabilityZone: "ap-guangzhou-6", + * imageId: "img-9qrfy1xt", + * instanceType: "SA3.MEDIUM4", + * systemDiskType: "CLOUD_HSSD", + * systemDiskSize: 100, + * hostname: "example", + * projectId: 0, + * vpcId: vpc.id, + * subnetId: subnet.id, + * allocatePublicIp: true, + * internetMaxBandwidthOut: 10, + * dataDisks: [{ + * dataDiskType: "CLOUD_HSSD", + * dataDiskSize: 50, + * encrypt: false, + * }], + * tags: { + * tagKey: "tagValue", + * }, + * }); + * const exampleAddressTransform = new tencentcloud.eip.AddressTransform("exampleAddressTransform", {instanceId: exampleInstance.id}); * ``` * - * - * ## Import - * - * eip address_transform can be imported using the id, e.g. - * - * ```sh - * $ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id - * ``` */ export class AddressTransform extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/eip/normalAddressReturn.ts b/sdk/nodejs/eip/normalAddressReturn.ts index ff2ca1e33..e56f30ee6 100644 --- a/sdk/nodejs/eip/normalAddressReturn.ts +++ b/sdk/nodejs/eip/normalAddressReturn.ts @@ -14,7 +14,7 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const normalAddressReturn = new tencentcloud.eip.NormalAddressReturn("normalAddressReturn", {addressIps: ["172.16.17.32"]}); + * const example = new tencentcloud.eip.NormalAddressReturn("example", {addressIps: ["172.16.17.32"]}); * ``` * */ diff --git a/sdk/nodejs/eip/publicAddressAdjust.ts b/sdk/nodejs/eip/publicAddressAdjust.ts index 6f44af662..8b50b95cc 100644 --- a/sdk/nodejs/eip/publicAddressAdjust.ts +++ b/sdk/nodejs/eip/publicAddressAdjust.ts @@ -14,9 +14,43 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const publicAddressAdjust = new tencentcloud.eip.PublicAddressAdjust("publicAddressAdjust", { - * addressId: "eip-erft45fu", - * instanceId: "ins-cr2rfq78", + * // create vpc + * const vpc = new tencentcloud.vpc.Instance("vpc", {cidrBlock: "10.0.0.0/16"}); + * // create vpc subnet + * const subnet = new tencentcloud.subnet.Instance("subnet", { + * vpcId: vpc.id, + * availabilityZone: "ap-guangzhou-6", + * cidrBlock: "10.0.20.0/28", + * isMulticast: false, + * }); + * // create cvm + * const exampleInstance = new tencentcloud.instance.Instance("exampleInstance", { + * instanceName: "tf_example", + * availabilityZone: "ap-guangzhou-6", + * imageId: "img-9qrfy1xt", + * instanceType: "SA3.MEDIUM4", + * systemDiskType: "CLOUD_HSSD", + * systemDiskSize: 100, + * hostname: "example", + * projectId: 0, + * vpcId: vpc.id, + * subnetId: subnet.id, + * allocatePublicIp: true, + * internetMaxBandwidthOut: 10, + * dataDisks: [{ + * dataDiskType: "CLOUD_HSSD", + * dataDiskSize: 50, + * encrypt: false, + * }], + * tags: { + * tagKey: "tagValue", + * }, + * }); + * // create eip + * const exampleEip_instanceInstance = new tencentcloud.eip.Instance("exampleEip/instanceInstance", {}); + * const examplePublicAddressAdjust = new tencentcloud.eip.PublicAddressAdjust("examplePublicAddressAdjust", { + * instanceId: exampleInstance.id, + * addressId: exampleEip / instanceInstance.id, * }); * ``` * diff --git a/sdk/nodejs/eips/getInstance.ts b/sdk/nodejs/eips/getInstance.ts index 740747fcc..498fd19e2 100644 --- a/sdk/nodejs/eips/getInstance.ts +++ b/sdk/nodejs/eips/getInstance.ts @@ -11,16 +11,70 @@ import * as utilities from "../utilities"; * * ## Example Usage * + * ### Query all eip instances + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({}); + * ``` + * + * + * ### Query eip instances by eip ID + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Eips.getInstance({ + * const example = tencentcloud.Eips.getInstance({ * eipId: "eip-ry9h95hg", * }); * ``` * + * + * ### Query eip instances by eip name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * eipName: "tf-example", + * }); + * ``` + * + * + * ### Query eip instances by public ip + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * publicIp: "1.12.62.3", + * }); + * ``` + * + * + * ### Query eip instances by tags + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * tags: { + * test: "test", + * }, + * }); + * ``` + * */ export function getInstance(args?: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -96,16 +150,70 @@ export interface GetInstanceResult { * * ## Example Usage * + * ### Query all eip instances + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({}); + * ``` + * + * + * ### Query eip instances by eip ID + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Eips.getInstance({ + * const example = tencentcloud.Eips.getInstance({ * eipId: "eip-ry9h95hg", * }); * ``` * + * + * ### Query eip instances by eip name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * eipName: "tf-example", + * }); + * ``` + * + * + * ### Query eip instances by public ip + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * publicIp: "1.12.62.3", + * }); + * ``` + * + * + * ### Query eip instances by tags + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Eips.getInstance({ + * tags: { + * test: "test", + * }, + * }); + * ``` + * */ export function getInstanceOutput(args?: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstance(a, opts)) diff --git a/sdk/nodejs/image/getInstance.ts b/sdk/nodejs/image/getInstance.ts index 831144403..81fcee91e 100644 --- a/sdk/nodejs/image/getInstance.ts +++ b/sdk/nodejs/image/getInstance.ts @@ -9,26 +9,65 @@ import * as utilities from "../utilities"; /** * Provides an available image for the user. * - * The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + * The Images data source fetch proper image, which could be one of the private images of the user and images of system + * resources provided by TencentCloud, as well as other public images and those available on the image market. * * > **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead. * * ## Example Usage * + * ### Query image + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const myFavorateImage = tencentcloud.Image.getInstance({ + * const example = tencentcloud.Image.getInstance({}); + * ``` + * + * + * ### Query image by filter + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ * filters: [{ * name: "image-type", * values: ["PUBLIC_IMAGE"], * }], + * }); + * ``` + * + * + * ### Query image by os name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ * osName: "centos", * }); * ``` * + * + * ### Query image by image name regex + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ + * imageNameRegex: "^Windows\\s.*$", + * }); + * ``` + * */ export function getInstance(args?: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -88,26 +127,65 @@ export interface GetInstanceResult { /** * Provides an available image for the user. * - * The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + * The Images data source fetch proper image, which could be one of the private images of the user and images of system + * resources provided by TencentCloud, as well as other public images and those available on the image market. * * > **NOTE:** This data source will be deprecated, please use `tencentcloud.Images.getInstance` instead. * * ## Example Usage * + * ### Query image + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const myFavorateImage = tencentcloud.Image.getInstance({ + * const example = tencentcloud.Image.getInstance({}); + * ``` + * + * + * ### Query image by filter + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ * filters: [{ * name: "image-type", * values: ["PUBLIC_IMAGE"], * }], + * }); + * ``` + * + * + * ### Query image by os name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ * osName: "centos", * }); * ``` * + * + * ### Query image by image name regex + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Image.getInstance({ + * imageNameRegex: "^Windows\\s.*$", + * }); + * ``` + * */ export function getInstanceOutput(args?: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstance(a, opts)) diff --git a/sdk/nodejs/images/getInstance.ts b/sdk/nodejs/images/getInstance.ts index 4e7ad955f..5828d639c 100644 --- a/sdk/nodejs/images/getInstance.ts +++ b/sdk/nodejs/images/getInstance.ts @@ -11,14 +11,78 @@ import * as utilities from "../utilities"; * * ## Example Usage * + * ### Query all images + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({}); + * ``` + * + * + * ### Query images by image ID + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * imageId: "img-9qrfy1xt", + * }); + * ``` + * + * + * ### Query images by os name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * osName: "TencentOS Server 3.2 (Final)", + * }); + * ``` + * + * + * ### Query images by image name regex + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Images.getInstance({ + * const example = tencentcloud.Images.getInstance({ + * imageNameRegex: "^TencentOS", + * }); + * ``` + * + * + * ### Query images by image type + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ * imageTypes: ["PUBLIC_IMAGE"], - * osName: "centos 7.5", + * }); + * ``` + * + * + * ### Query images by instance type + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * instanceType: "S1.SMALL1", * }); * ``` * @@ -100,14 +164,78 @@ export interface GetInstanceResult { * * ## Example Usage * + * ### Query all images + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({}); + * ``` + * + * + * ### Query images by image ID + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * imageId: "img-9qrfy1xt", + * }); + * ``` + * + * + * ### Query images by os name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * osName: "TencentOS Server 3.2 (Final)", + * }); + * ``` + * + * + * ### Query images by image name regex + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Images.getInstance({ + * const example = tencentcloud.Images.getInstance({ + * imageNameRegex: "^TencentOS", + * }); + * ``` + * + * + * ### Query images by image type + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ * imageTypes: ["PUBLIC_IMAGE"], - * osName: "centos 7.5", + * }); + * ``` + * + * + * ### Query images by instance type + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Images.getInstance({ + * instanceType: "S1.SMALL1", * }); * ``` * diff --git a/sdk/nodejs/instance/getTypes.ts b/sdk/nodejs/instance/getTypes.ts index e6a916efb..cecfe2aca 100644 --- a/sdk/nodejs/instance/getTypes.ts +++ b/sdk/nodejs/instance/getTypes.ts @@ -16,25 +16,35 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instance.getTypes({ - * availabilityZone: "ap-guangzhou-2", - * cpuCoreCount: 2, - * memorySize: 4, + * const example = tencentcloud.Instance.getTypes({ + * availabilityZone: "ap-guangzhou-6", + * cpuCoreCount: 4, + * memorySize: 8, * }); - * const t1c1g = tencentcloud.Instance.getTypes({ - * cpuCoreCount: 1, + * ``` + * + * + * ### Complete Example + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instance.getTypes({ + * cpuCoreCount: 4, * excludeSoldOut: true, * filters: [ * { - * name: "instance-charge-type", - * values: ["POSTPAID_BY_HOUR"], + * name: "instance-family", + * values: ["SA2"], * }, * { * name: "zone", - * values: ["ap-shanghai-2"], + * values: ["ap-guangzhou-6"], * }, * ], - * memorySize: 1, + * memorySize: 8, * }); * ``` * @@ -130,25 +140,35 @@ export interface GetTypesResult { * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instance.getTypes({ - * availabilityZone: "ap-guangzhou-2", - * cpuCoreCount: 2, - * memorySize: 4, + * const example = tencentcloud.Instance.getTypes({ + * availabilityZone: "ap-guangzhou-6", + * cpuCoreCount: 4, + * memorySize: 8, * }); - * const t1c1g = tencentcloud.Instance.getTypes({ - * cpuCoreCount: 1, + * ``` + * + * + * ### Complete Example + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instance.getTypes({ + * cpuCoreCount: 4, * excludeSoldOut: true, * filters: [ * { - * name: "instance-charge-type", - * values: ["POSTPAID_BY_HOUR"], + * name: "instance-family", + * values: ["SA2"], * }, * { * name: "zone", - * values: ["ap-shanghai-2"], + * values: ["ap-guangzhou-6"], * }, * ], - * memorySize: 1, + * memorySize: 8, * }); * ``` * diff --git a/sdk/nodejs/instances/getInstance.ts b/sdk/nodejs/instances/getInstance.ts index 2b458f1c7..efe2f97df 100644 --- a/sdk/nodejs/instances/getInstance.ts +++ b/sdk/nodejs/instances/getInstance.ts @@ -11,13 +11,47 @@ import * as utilities from "../utilities"; * * ## Example Usage * + * ### Query all cvm instances + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instances.getInstance({}); + * ``` + * + * + * ### Query cvm instances by filters + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instances.getInstance({ + * availabilityZone: "ap-guangzhou-6", + * instanceId: "ins-a81rnm8c", + * instanceName: "tf_example", + * projectId: 0, + * subnetId: "subnet-1to7t9au", + * tags: { + * tagKey: "tagValue", + * }, + * vpcId: "vpc-l040hycv", + * }); + * ``` + * + * + * ### Or by instance set id list + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instances.getInstance({ - * instanceId: "ins-da412f5a", + * const example = tencentcloud.Instances.getInstance({ + * instanceSetIds: ["ins-a81rnm8c"], * }); * ``` * @@ -129,13 +163,47 @@ export interface GetInstanceResult { * * ## Example Usage * + * ### Query all cvm instances + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instances.getInstance({}); + * ``` + * + * + * ### Query cvm instances by filters + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const example = tencentcloud.Instances.getInstance({ + * availabilityZone: "ap-guangzhou-6", + * instanceId: "ins-a81rnm8c", + * instanceName: "tf_example", + * projectId: 0, + * subnetId: "subnet-1to7t9au", + * tags: { + * tagKey: "tagValue", + * }, + * vpcId: "vpc-l040hycv", + * }); + * ``` + * + * + * ### Or by instance set id list + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instances.getInstance({ - * instanceId: "ins-da412f5a", + * const example = tencentcloud.Instances.getInstance({ + * instanceSetIds: ["ins-a81rnm8c"], * }); * ``` * diff --git a/sdk/nodejs/instances/getSet.ts b/sdk/nodejs/instances/getSet.ts index de1f6ea6d..2a17b7b78 100644 --- a/sdk/nodejs/instances/getSet.ts +++ b/sdk/nodejs/instances/getSet.ts @@ -16,8 +16,16 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instances.getSet({ - * vpcId: "vpc-4owdpnwr", + * const example = tencentcloud.Instances.getSet({ + * availabilityZone: "ap-guangzhou-6", + * instanceId: "ins-a81rnm8c", + * instanceName: "tf_example", + * projectId: 0, + * subnetId: "subnet-1to7t9au", + * tags: { + * tagKey: "tagValue", + * }, + * vpcId: "vpc-l040hycv", * }); * ``` * @@ -128,8 +136,16 @@ export interface GetSetResult { * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Instances.getSet({ - * vpcId: "vpc-4owdpnwr", + * const example = tencentcloud.Instances.getSet({ + * availabilityZone: "ap-guangzhou-6", + * instanceId: "ins-a81rnm8c", + * instanceName: "tf_example", + * projectId: 0, + * subnetId: "subnet-1to7t9au", + * tags: { + * tagKey: "tagValue", + * }, + * vpcId: "vpc-l040hycv", * }); * ``` * diff --git a/sdk/nodejs/key/getPairs.ts b/sdk/nodejs/key/getPairs.ts index abe38aae8..3d665f979 100644 --- a/sdk/nodejs/key/getPairs.ts +++ b/sdk/nodejs/key/getPairs.ts @@ -11,15 +11,27 @@ import * as utilities from "../utilities"; * * ## Example Usage * + * ### Query key pairs by key ID + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Key.getPairs({ + * const keyId = tencentcloud.Key.getPairs({ * keyId: "skey-ie97i3ml", * }); - * const name = tencentcloud.Key.getPairs({ + * ``` + * + * + * ### Query key pairs by key name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const keyName = tencentcloud.Key.getPairs({ * keyName: "^test$", * }); * ``` @@ -90,15 +102,27 @@ export interface GetPairsResult { * * ## Example Usage * + * ### Query key pairs by key ID + * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Key.getPairs({ + * const keyId = tencentcloud.Key.getPairs({ * keyId: "skey-ie97i3ml", * }); - * const name = tencentcloud.Key.getPairs({ + * ``` + * + * + * ### Query key pairs by key name + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as tencentcloud from "@pulumi/tencentcloud"; + * + * const keyName = tencentcloud.Key.getPairs({ * keyName: "^test$", * }); * ``` diff --git a/sdk/nodejs/placement/getGroups.ts b/sdk/nodejs/placement/getGroups.ts index 5e2698a9a..4d6cd0816 100644 --- a/sdk/nodejs/placement/getGroups.ts +++ b/sdk/nodejs/placement/getGroups.ts @@ -16,9 +16,9 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Placement.getGroups({ - * name: "test", - * placementGroupId: "ps-21q9ibvr", + * const example = tencentcloud.Placement.getGroups({ + * name: "tf_example", + * placementGroupId: "ps-bwvst92h", * }); * ``` * @@ -84,9 +84,9 @@ export interface GetGroupsResult { * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@pulumi/tencentcloud"; * - * const foo = tencentcloud.Placement.getGroups({ - * name: "test", - * placementGroupId: "ps-21q9ibvr", + * const example = tencentcloud.Placement.getGroups({ + * name: "tf_example", + * placementGroupId: "ps-bwvst92h", * }); * ``` * diff --git a/sdk/nodejs/tdmq/rocketmqVipInstance.ts b/sdk/nodejs/tdmq/rocketmqVipInstance.ts index 26b6ffadd..36de8ee61 100644 --- a/sdk/nodejs/tdmq/rocketmqVipInstance.ts +++ b/sdk/nodejs/tdmq/rocketmqVipInstance.ts @@ -10,6 +10,7 @@ import * as utilities from "../utilities"; * Provides a resource to create a tdmq rocketmqVipInstance * * > **NOTE:** The instance cannot be downgraded, Include parameters `nodeCount`, `spec`, `storageSize`. + * **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported. */ export class RocketmqVipInstance extends pulumi.CustomResource { /** @@ -39,6 +40,10 @@ export class RocketmqVipInstance extends pulumi.CustomResource { return obj['__pulumiType'] === RocketmqVipInstance.__pulumiType; } + /** + * Public IP access control rules. + */ + public readonly ipRules!: pulumi.Output; /** * Instance name. */ @@ -48,7 +53,7 @@ export class RocketmqVipInstance extends pulumi.CustomResource { */ public readonly nodeCount!: pulumi.Output; /** - * Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + * Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. */ public readonly spec!: pulumi.Output; /** @@ -81,6 +86,7 @@ export class RocketmqVipInstance extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as RocketmqVipInstanceState | undefined; + resourceInputs["ipRules"] = state ? state.ipRules : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nodeCount"] = state ? state.nodeCount : undefined; resourceInputs["spec"] = state ? state.spec : undefined; @@ -108,6 +114,7 @@ export class RocketmqVipInstance extends pulumi.CustomResource { if ((!args || args.zoneIds === undefined) && !opts.urn) { throw new Error("Missing required property 'zoneIds'"); } + resourceInputs["ipRules"] = args ? args.ipRules : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nodeCount"] = args ? args.nodeCount : undefined; resourceInputs["spec"] = args ? args.spec : undefined; @@ -125,6 +132,10 @@ export class RocketmqVipInstance extends pulumi.CustomResource { * Input properties used for looking up and filtering RocketmqVipInstance resources. */ export interface RocketmqVipInstanceState { + /** + * Public IP access control rules. + */ + ipRules?: pulumi.Input[]>; /** * Instance name. */ @@ -134,7 +145,7 @@ export interface RocketmqVipInstanceState { */ nodeCount?: pulumi.Input; /** - * Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + * Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. */ spec?: pulumi.Input; /** @@ -159,6 +170,10 @@ export interface RocketmqVipInstanceState { * The set of arguments for constructing a RocketmqVipInstance resource. */ export interface RocketmqVipInstanceArgs { + /** + * Public IP access control rules. + */ + ipRules?: pulumi.Input[]>; /** * Instance name. */ @@ -168,7 +183,7 @@ export interface RocketmqVipInstanceArgs { */ nodeCount: pulumi.Input; /** - * Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + * Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. */ spec: pulumi.Input; /** diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 29bd07586..c3f1a7df3 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -370,6 +370,7 @@ "cls/getMachines.ts", "cls/getShipperTasks.ts", "cls/index.ts", + "cls/index_.ts", "cls/kafkaRecharge.ts", "cls/logset.ts", "cls/machineGroup.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 703ec47a6..ce3eae965 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -8115,6 +8115,129 @@ export namespace Cls { topicId: pulumi.Input; } + export interface IndexRule { + /** + * The key value index is automatically configured. If it is empty, it means that the function is not enabled. + */ + dynamicIndex?: pulumi.Input; + /** + * Full-Text index configuration. + */ + fullText?: pulumi.Input; + /** + * Key-Value index configuration. + */ + keyValue?: pulumi.Input; + /** + * Metafield index configuration. + */ + tag?: pulumi.Input; + } + + export interface IndexRuleDynamicIndex { + /** + * index automatic configuration switch. + */ + status: pulumi.Input; + } + + export interface IndexRuleFullText { + /** + * Case sensitivity. + */ + caseSensitive: pulumi.Input; + /** + * Whether Chinese characters are contained. + */ + containZH: pulumi.Input; + /** + * Full-Text index delimiter. Each character in the string represents a delimiter. + */ + tokenizer: pulumi.Input; + } + + export interface IndexRuleKeyValue { + /** + * Case sensitivity. + */ + caseSensitive: pulumi.Input; + /** + * Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + */ + keyValues?: pulumi.Input[]>; + } + + export interface IndexRuleKeyValueKeyValue { + /** + * When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + */ + key: pulumi.Input; + /** + * Field index description information. + */ + value?: pulumi.Input; + } + + export interface IndexRuleKeyValueKeyValueValue { + /** + * Whether Chinese characters are contained. + */ + containZH?: pulumi.Input; + /** + * Whether the analysis feature is enabled for the field. + */ + sqlFlag?: pulumi.Input; + /** + * Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + */ + tokenizer?: pulumi.Input; + /** + * Field type. Valid values: long, text, double. + */ + type: pulumi.Input; + } + + export interface IndexRuleTag { + /** + * Case sensitivity. + */ + caseSensitive: pulumi.Input; + /** + * Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + */ + keyValues?: pulumi.Input[]>; + } + + export interface IndexRuleTagKeyValue { + /** + * When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + */ + key: pulumi.Input; + /** + * Field index description information. + */ + value?: pulumi.Input; + } + + export interface IndexRuleTagKeyValueValue { + /** + * Whether Chinese characters are contained. + */ + containZH?: pulumi.Input; + /** + * Whether the analysis feature is enabled for the field. + */ + sqlFlag?: pulumi.Input; + /** + * Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + */ + tokenizer?: pulumi.Input; + /** + * Field type. Valid values: long, text, double. + */ + type: pulumi.Input; + } + export interface KafkaRechargeLogRechargeRule { /** * default time from. @@ -27309,6 +27432,21 @@ export namespace Tdmq { vpcId?: pulumi.Input; } + export interface RocketmqVipInstanceIpRule { + /** + * Whether to allow or deny. + */ + allow: pulumi.Input; + /** + * IP address block information. + */ + ipRule: pulumi.Input; + /** + * Remark. + */ + remark: pulumi.Input; + } + export interface RocketmqVipInstanceVpcInfo { /** * Subnet ID. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 2e09eb0b8..a7c33dae4 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -17844,6 +17844,129 @@ export namespace Cls { topicId: string; } + export interface IndexRule { + /** + * The key value index is automatically configured. If it is empty, it means that the function is not enabled. + */ + dynamicIndex?: outputs.Cls.IndexRuleDynamicIndex; + /** + * Full-Text index configuration. + */ + fullText?: outputs.Cls.IndexRuleFullText; + /** + * Key-Value index configuration. + */ + keyValue?: outputs.Cls.IndexRuleKeyValue; + /** + * Metafield index configuration. + */ + tag?: outputs.Cls.IndexRuleTag; + } + + export interface IndexRuleDynamicIndex { + /** + * index automatic configuration switch. + */ + status: boolean; + } + + export interface IndexRuleFullText { + /** + * Case sensitivity. + */ + caseSensitive: boolean; + /** + * Whether Chinese characters are contained. + */ + containZH: boolean; + /** + * Full-Text index delimiter. Each character in the string represents a delimiter. + */ + tokenizer: string; + } + + export interface IndexRuleKeyValue { + /** + * Case sensitivity. + */ + caseSensitive: boolean; + /** + * Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + */ + keyValues?: outputs.Cls.IndexRuleKeyValueKeyValue[]; + } + + export interface IndexRuleKeyValueKeyValue { + /** + * When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + */ + key: string; + /** + * Field index description information. + */ + value?: outputs.Cls.IndexRuleKeyValueKeyValueValue; + } + + export interface IndexRuleKeyValueKeyValueValue { + /** + * Whether Chinese characters are contained. + */ + containZH?: boolean; + /** + * Whether the analysis feature is enabled for the field. + */ + sqlFlag?: boolean; + /** + * Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + */ + tokenizer?: string; + /** + * Field type. Valid values: long, text, double. + */ + type: string; + } + + export interface IndexRuleTag { + /** + * Case sensitivity. + */ + caseSensitive: boolean; + /** + * Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + */ + keyValues?: outputs.Cls.IndexRuleTagKeyValue[]; + } + + export interface IndexRuleTagKeyValue { + /** + * When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + */ + key: string; + /** + * Field index description information. + */ + value?: outputs.Cls.IndexRuleTagKeyValueValue; + } + + export interface IndexRuleTagKeyValueValue { + /** + * Whether Chinese characters are contained. + */ + containZH?: boolean; + /** + * Whether the analysis feature is enabled for the field. + */ + sqlFlag?: boolean; + /** + * Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + */ + tokenizer?: string; + /** + * Field type. Valid values: long, text, double. + */ + type: string; + } + export interface KafkaRechargeLogRechargeRule { /** * default time from. @@ -65389,6 +65512,21 @@ export namespace Tdmq { vpcId: string; } + export interface RocketmqVipInstanceIpRule { + /** + * Whether to allow or deny. + */ + allow: boolean; + /** + * IP address block information. + */ + ipRule: string; + /** + * Remark. + */ + remark: string; + } + export interface RocketmqVipInstanceVpcInfo { /** * Subnet ID. diff --git a/sdk/python/tencentcloud_iac_pulumi/__init__.py b/sdk/python/tencentcloud_iac_pulumi/__init__.py index 5dfef4dc1..4baf358dd 100644 --- a/sdk/python/tencentcloud_iac_pulumi/__init__.py +++ b/sdk/python/tencentcloud_iac_pulumi/__init__.py @@ -1937,6 +1937,14 @@ "tencentcloud:Cls/export:Export": "Export" } }, + { + "pkg": "tencentcloud", + "mod": "Cls/index", + "fqn": "tencentcloud_iac_pulumi.cls", + "classes": { + "tencentcloud:Cls/index:Index": "Index" + } + }, { "pkg": "tencentcloud", "mod": "Cls/kafkaRecharge", diff --git a/sdk/python/tencentcloud_iac_pulumi/cls/__init__.py b/sdk/python/tencentcloud_iac_pulumi/cls/__init__.py index 769754f5a..7dfdbaf31 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cls/__init__.py +++ b/sdk/python/tencentcloud_iac_pulumi/cls/__init__.py @@ -18,6 +18,7 @@ from .get_machine_group_configs import * from .get_machines import * from .get_shipper_tasks import * +from .index import * from .kafka_recharge import * from .logset import * from .machine_group import * diff --git a/sdk/python/tencentcloud_iac_pulumi/cls/_inputs.py b/sdk/python/tencentcloud_iac_pulumi/cls/_inputs.py index d39e643cd..fe83b3715 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cls/_inputs.py +++ b/sdk/python/tencentcloud_iac_pulumi/cls/_inputs.py @@ -40,6 +40,15 @@ 'CosShipperContentJsonArgs', 'CosShipperFilterRuleArgs', 'DataTransformDstResourceArgs', + 'IndexRuleArgs', + 'IndexRuleDynamicIndexArgs', + 'IndexRuleFullTextArgs', + 'IndexRuleKeyValueArgs', + 'IndexRuleKeyValueKeyValueArgs', + 'IndexRuleKeyValueKeyValueValueArgs', + 'IndexRuleTagArgs', + 'IndexRuleTagKeyValueArgs', + 'IndexRuleTagKeyValueValueArgs', 'KafkaRechargeLogRechargeRuleArgs', 'KafkaRechargeProtocolArgs', 'MachineGroupMachineGroupTypeArgs', @@ -2428,6 +2437,443 @@ def topic_id(self, value: pulumi.Input[str]): pulumi.set(self, "topic_id", value) +@pulumi.input_type +class IndexRuleArgs: + def __init__(__self__, *, + dynamic_index: Optional[pulumi.Input['IndexRuleDynamicIndexArgs']] = None, + full_text: Optional[pulumi.Input['IndexRuleFullTextArgs']] = None, + key_value: Optional[pulumi.Input['IndexRuleKeyValueArgs']] = None, + tag: Optional[pulumi.Input['IndexRuleTagArgs']] = None): + """ + :param pulumi.Input['IndexRuleDynamicIndexArgs'] dynamic_index: The key value index is automatically configured. If it is empty, it means that the function is not enabled. + :param pulumi.Input['IndexRuleFullTextArgs'] full_text: Full-Text index configuration. + :param pulumi.Input['IndexRuleKeyValueArgs'] key_value: Key-Value index configuration. + :param pulumi.Input['IndexRuleTagArgs'] tag: Metafield index configuration. + """ + if dynamic_index is not None: + pulumi.set(__self__, "dynamic_index", dynamic_index) + if full_text is not None: + pulumi.set(__self__, "full_text", full_text) + if key_value is not None: + pulumi.set(__self__, "key_value", key_value) + if tag is not None: + pulumi.set(__self__, "tag", tag) + + @property + @pulumi.getter(name="dynamicIndex") + def dynamic_index(self) -> Optional[pulumi.Input['IndexRuleDynamicIndexArgs']]: + """ + The key value index is automatically configured. If it is empty, it means that the function is not enabled. + """ + return pulumi.get(self, "dynamic_index") + + @dynamic_index.setter + def dynamic_index(self, value: Optional[pulumi.Input['IndexRuleDynamicIndexArgs']]): + pulumi.set(self, "dynamic_index", value) + + @property + @pulumi.getter(name="fullText") + def full_text(self) -> Optional[pulumi.Input['IndexRuleFullTextArgs']]: + """ + Full-Text index configuration. + """ + return pulumi.get(self, "full_text") + + @full_text.setter + def full_text(self, value: Optional[pulumi.Input['IndexRuleFullTextArgs']]): + pulumi.set(self, "full_text", value) + + @property + @pulumi.getter(name="keyValue") + def key_value(self) -> Optional[pulumi.Input['IndexRuleKeyValueArgs']]: + """ + Key-Value index configuration. + """ + return pulumi.get(self, "key_value") + + @key_value.setter + def key_value(self, value: Optional[pulumi.Input['IndexRuleKeyValueArgs']]): + pulumi.set(self, "key_value", value) + + @property + @pulumi.getter + def tag(self) -> Optional[pulumi.Input['IndexRuleTagArgs']]: + """ + Metafield index configuration. + """ + return pulumi.get(self, "tag") + + @tag.setter + def tag(self, value: Optional[pulumi.Input['IndexRuleTagArgs']]): + pulumi.set(self, "tag", value) + + +@pulumi.input_type +class IndexRuleDynamicIndexArgs: + def __init__(__self__, *, + status: pulumi.Input[bool]): + """ + :param pulumi.Input[bool] status: index automatic configuration switch. + """ + pulumi.set(__self__, "status", status) + + @property + @pulumi.getter + def status(self) -> pulumi.Input[bool]: + """ + index automatic configuration switch. + """ + return pulumi.get(self, "status") + + @status.setter + def status(self, value: pulumi.Input[bool]): + pulumi.set(self, "status", value) + + +@pulumi.input_type +class IndexRuleFullTextArgs: + def __init__(__self__, *, + case_sensitive: pulumi.Input[bool], + contain_zh: pulumi.Input[bool], + tokenizer: pulumi.Input[str]): + """ + :param pulumi.Input[bool] case_sensitive: Case sensitivity. + :param pulumi.Input[bool] contain_zh: Whether Chinese characters are contained. + :param pulumi.Input[str] tokenizer: Full-Text index delimiter. Each character in the string represents a delimiter. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + pulumi.set(__self__, "contain_zh", contain_zh) + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> pulumi.Input[bool]: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @case_sensitive.setter + def case_sensitive(self, value: pulumi.Input[bool]): + pulumi.set(self, "case_sensitive", value) + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> pulumi.Input[bool]: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @contain_zh.setter + def contain_zh(self, value: pulumi.Input[bool]): + pulumi.set(self, "contain_zh", value) + + @property + @pulumi.getter + def tokenizer(self) -> pulumi.Input[str]: + """ + Full-Text index delimiter. Each character in the string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + @tokenizer.setter + def tokenizer(self, value: pulumi.Input[str]): + pulumi.set(self, "tokenizer", value) + + +@pulumi.input_type +class IndexRuleKeyValueArgs: + def __init__(__self__, *, + case_sensitive: pulumi.Input[bool], + key_values: Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleKeyValueKeyValueArgs']]]] = None): + """ + :param pulumi.Input[bool] case_sensitive: Case sensitivity. + :param pulumi.Input[Sequence[pulumi.Input['IndexRuleKeyValueKeyValueArgs']]] key_values: Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + if key_values is not None: + pulumi.set(__self__, "key_values", key_values) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> pulumi.Input[bool]: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @case_sensitive.setter + def case_sensitive(self, value: pulumi.Input[bool]): + pulumi.set(self, "case_sensitive", value) + + @property + @pulumi.getter(name="keyValues") + def key_values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleKeyValueKeyValueArgs']]]]: + """ + Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + return pulumi.get(self, "key_values") + + @key_values.setter + def key_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleKeyValueKeyValueArgs']]]]): + pulumi.set(self, "key_values", value) + + +@pulumi.input_type +class IndexRuleKeyValueKeyValueArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + value: Optional[pulumi.Input['IndexRuleKeyValueKeyValueValueArgs']] = None): + """ + :param pulumi.Input[str] key: When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + :param pulumi.Input['IndexRuleKeyValueKeyValueValueArgs'] value: Field index description information. + """ + pulumi.set(__self__, "key", key) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def key(self) -> pulumi.Input[str]: + """ + When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + """ + return pulumi.get(self, "key") + + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input['IndexRuleKeyValueKeyValueValueArgs']]: + """ + Field index description information. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input['IndexRuleKeyValueKeyValueValueArgs']]): + pulumi.set(self, "value", value) + + +@pulumi.input_type +class IndexRuleKeyValueKeyValueValueArgs: + def __init__(__self__, *, + type: pulumi.Input[str], + contain_zh: Optional[pulumi.Input[bool]] = None, + sql_flag: Optional[pulumi.Input[bool]] = None, + tokenizer: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] type: Field type. Valid values: long, text, double. + :param pulumi.Input[bool] contain_zh: Whether Chinese characters are contained. + :param pulumi.Input[bool] sql_flag: Whether the analysis feature is enabled for the field. + :param pulumi.Input[str] tokenizer: Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + pulumi.set(__self__, "type", type) + if contain_zh is not None: + pulumi.set(__self__, "contain_zh", contain_zh) + if sql_flag is not None: + pulumi.set(__self__, "sql_flag", sql_flag) + if tokenizer is not None: + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + Field type. Valid values: long, text, double. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> Optional[pulumi.Input[bool]]: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @contain_zh.setter + def contain_zh(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "contain_zh", value) + + @property + @pulumi.getter(name="sqlFlag") + def sql_flag(self) -> Optional[pulumi.Input[bool]]: + """ + Whether the analysis feature is enabled for the field. + """ + return pulumi.get(self, "sql_flag") + + @sql_flag.setter + def sql_flag(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "sql_flag", value) + + @property + @pulumi.getter + def tokenizer(self) -> Optional[pulumi.Input[str]]: + """ + Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + @tokenizer.setter + def tokenizer(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "tokenizer", value) + + +@pulumi.input_type +class IndexRuleTagArgs: + def __init__(__self__, *, + case_sensitive: pulumi.Input[bool], + key_values: Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleTagKeyValueArgs']]]] = None): + """ + :param pulumi.Input[bool] case_sensitive: Case sensitivity. + :param pulumi.Input[Sequence[pulumi.Input['IndexRuleTagKeyValueArgs']]] key_values: Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + if key_values is not None: + pulumi.set(__self__, "key_values", key_values) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> pulumi.Input[bool]: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @case_sensitive.setter + def case_sensitive(self, value: pulumi.Input[bool]): + pulumi.set(self, "case_sensitive", value) + + @property + @pulumi.getter(name="keyValues") + def key_values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleTagKeyValueArgs']]]]: + """ + Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + return pulumi.get(self, "key_values") + + @key_values.setter + def key_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IndexRuleTagKeyValueArgs']]]]): + pulumi.set(self, "key_values", value) + + +@pulumi.input_type +class IndexRuleTagKeyValueArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + value: Optional[pulumi.Input['IndexRuleTagKeyValueValueArgs']] = None): + """ + :param pulumi.Input[str] key: When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + :param pulumi.Input['IndexRuleTagKeyValueValueArgs'] value: Field index description information. + """ + pulumi.set(__self__, "key", key) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def key(self) -> pulumi.Input[str]: + """ + When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + """ + return pulumi.get(self, "key") + + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input['IndexRuleTagKeyValueValueArgs']]: + """ + Field index description information. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input['IndexRuleTagKeyValueValueArgs']]): + pulumi.set(self, "value", value) + + +@pulumi.input_type +class IndexRuleTagKeyValueValueArgs: + def __init__(__self__, *, + type: pulumi.Input[str], + contain_zh: Optional[pulumi.Input[bool]] = None, + sql_flag: Optional[pulumi.Input[bool]] = None, + tokenizer: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] type: Field type. Valid values: long, text, double. + :param pulumi.Input[bool] contain_zh: Whether Chinese characters are contained. + :param pulumi.Input[bool] sql_flag: Whether the analysis feature is enabled for the field. + :param pulumi.Input[str] tokenizer: Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + pulumi.set(__self__, "type", type) + if contain_zh is not None: + pulumi.set(__self__, "contain_zh", contain_zh) + if sql_flag is not None: + pulumi.set(__self__, "sql_flag", sql_flag) + if tokenizer is not None: + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + Field type. Valid values: long, text, double. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> Optional[pulumi.Input[bool]]: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @contain_zh.setter + def contain_zh(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "contain_zh", value) + + @property + @pulumi.getter(name="sqlFlag") + def sql_flag(self) -> Optional[pulumi.Input[bool]]: + """ + Whether the analysis feature is enabled for the field. + """ + return pulumi.get(self, "sql_flag") + + @sql_flag.setter + def sql_flag(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "sql_flag", value) + + @property + @pulumi.getter + def tokenizer(self) -> Optional[pulumi.Input[str]]: + """ + Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + @tokenizer.setter + def tokenizer(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "tokenizer", value) + + @pulumi.input_type class KafkaRechargeLogRechargeRuleArgs: def __init__(__self__, *, diff --git a/sdk/python/tencentcloud_iac_pulumi/cls/index.py b/sdk/python/tencentcloud_iac_pulumi/cls/index.py index c8514f2a5..0c8f36615 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cls/index.py +++ b/sdk/python/tencentcloud_iac_pulumi/cls/index.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -201,12 +202,91 @@ def __init__(__self__, """ Provides a resource to create a cls index. + ## Example Usage + + + ```python + import pulumi + import tencentcloud_iac_pulumi as tencentcloud + + example_logset = tencentcloud.cls.Logset("exampleLogset", + logset_name="tf_example", + tags={ + "demo": "test", + }) + example_topic = tencentcloud.cls.Topic("exampleTopic", + topic_name="tf_example", + logset_id=example_logset.id, + auto_split=False, + max_split_partitions=20, + partition_count=1, + period=30, + storage_type="hot", + describes="Test Demo.", + hot_period=10, + tags={ + "test": "test", + }) + tokenizer_value = "@&?|#()='\\",;:<>[]{}" + example_index = tencentcloud.cls.Index("exampleIndex", + topic_id=example_topic.id, + rule=tencentcloud.cls.IndexRuleArgs( + full_text=tencentcloud.cls.IndexRuleFullTextArgs( + case_sensitive=True, + tokenizer=tokenizer_value, + contain_zh=True, + ), + key_value=tencentcloud.cls.IndexRuleKeyValueArgs( + case_sensitive=True, + key_values=[ + tencentcloud.cls.IndexRuleKeyValueKeyValueArgs( + key="hello", + value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + ), + tencentcloud.cls.IndexRuleKeyValueKeyValueArgs( + key="world", + value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + ), + ], + ), + tag=tencentcloud.cls.IndexRuleTagArgs( + case_sensitive=True, + key_values=[tencentcloud.cls.IndexRuleTagKeyValueArgs( + key="terraform", + value=tencentcloud.cls.IndexRuleTagKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + )], + ), + dynamic_index=tencentcloud.cls.IndexRuleDynamicIndexArgs( + status=True, + ), + ), + status=True, + include_internal_fields=True, + metadata_flag=1) + ``` + + ## Import cls cos index can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Cls/index:Index index 0937e56f-4008-49d2-ad2d-69c52a9f11cc + $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc ``` :param str resource_name: The name of the resource. @@ -226,12 +306,91 @@ def __init__(__self__, """ Provides a resource to create a cls index. + ## Example Usage + + + ```python + import pulumi + import tencentcloud_iac_pulumi as tencentcloud + + example_logset = tencentcloud.cls.Logset("exampleLogset", + logset_name="tf_example", + tags={ + "demo": "test", + }) + example_topic = tencentcloud.cls.Topic("exampleTopic", + topic_name="tf_example", + logset_id=example_logset.id, + auto_split=False, + max_split_partitions=20, + partition_count=1, + period=30, + storage_type="hot", + describes="Test Demo.", + hot_period=10, + tags={ + "test": "test", + }) + tokenizer_value = "@&?|#()='\\",;:<>[]{}" + example_index = tencentcloud.cls.Index("exampleIndex", + topic_id=example_topic.id, + rule=tencentcloud.cls.IndexRuleArgs( + full_text=tencentcloud.cls.IndexRuleFullTextArgs( + case_sensitive=True, + tokenizer=tokenizer_value, + contain_zh=True, + ), + key_value=tencentcloud.cls.IndexRuleKeyValueArgs( + case_sensitive=True, + key_values=[ + tencentcloud.cls.IndexRuleKeyValueKeyValueArgs( + key="hello", + value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + ), + tencentcloud.cls.IndexRuleKeyValueKeyValueArgs( + key="world", + value=tencentcloud.cls.IndexRuleKeyValueKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + ), + ], + ), + tag=tencentcloud.cls.IndexRuleTagArgs( + case_sensitive=True, + key_values=[tencentcloud.cls.IndexRuleTagKeyValueArgs( + key="terraform", + value=tencentcloud.cls.IndexRuleTagKeyValueValueArgs( + contain_zh=True, + sql_flag=True, + tokenizer=tokenizer_value, + type="text", + ), + )], + ), + dynamic_index=tencentcloud.cls.IndexRuleDynamicIndexArgs( + status=True, + ), + ), + status=True, + include_internal_fields=True, + metadata_flag=1) + ``` + + ## Import cls cos index can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Cls/index:Index index 0937e56f-4008-49d2-ad2d-69c52a9f11cc + $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc ``` :param str resource_name: The name of the resource. @@ -255,14 +414,9 @@ def _internal_init(__self__, status: Optional[pulumi.Input[bool]] = None, topic_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() - if opts.plugin_download_url is None: - opts.plugin_download_url = _utilities.get_plugin_download_url() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/tencentcloud_iac_pulumi/cls/outputs.py b/sdk/python/tencentcloud_iac_pulumi/cls/outputs.py index 68f6e2c16..4a01ed3c7 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cls/outputs.py +++ b/sdk/python/tencentcloud_iac_pulumi/cls/outputs.py @@ -41,6 +41,15 @@ 'CosShipperContentJson', 'CosShipperFilterRule', 'DataTransformDstResource', + 'IndexRule', + 'IndexRuleDynamicIndex', + 'IndexRuleFullText', + 'IndexRuleKeyValue', + 'IndexRuleKeyValueKeyValue', + 'IndexRuleKeyValueKeyValueValue', + 'IndexRuleTag', + 'IndexRuleTagKeyValue', + 'IndexRuleTagKeyValueValue', 'KafkaRechargeLogRechargeRule', 'KafkaRechargeProtocol', 'MachineGroupMachineGroupType', @@ -2245,6 +2254,463 @@ def topic_id(self) -> str: return pulumi.get(self, "topic_id") +@pulumi.output_type +class IndexRule(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "dynamicIndex": + suggest = "dynamic_index" + elif key == "fullText": + suggest = "full_text" + elif key == "keyValue": + suggest = "key_value" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRule. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRule.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRule.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + dynamic_index: Optional['outputs.IndexRuleDynamicIndex'] = None, + full_text: Optional['outputs.IndexRuleFullText'] = None, + key_value: Optional['outputs.IndexRuleKeyValue'] = None, + tag: Optional['outputs.IndexRuleTag'] = None): + """ + :param 'IndexRuleDynamicIndexArgs' dynamic_index: The key value index is automatically configured. If it is empty, it means that the function is not enabled. + :param 'IndexRuleFullTextArgs' full_text: Full-Text index configuration. + :param 'IndexRuleKeyValueArgs' key_value: Key-Value index configuration. + :param 'IndexRuleTagArgs' tag: Metafield index configuration. + """ + if dynamic_index is not None: + pulumi.set(__self__, "dynamic_index", dynamic_index) + if full_text is not None: + pulumi.set(__self__, "full_text", full_text) + if key_value is not None: + pulumi.set(__self__, "key_value", key_value) + if tag is not None: + pulumi.set(__self__, "tag", tag) + + @property + @pulumi.getter(name="dynamicIndex") + def dynamic_index(self) -> Optional['outputs.IndexRuleDynamicIndex']: + """ + The key value index is automatically configured. If it is empty, it means that the function is not enabled. + """ + return pulumi.get(self, "dynamic_index") + + @property + @pulumi.getter(name="fullText") + def full_text(self) -> Optional['outputs.IndexRuleFullText']: + """ + Full-Text index configuration. + """ + return pulumi.get(self, "full_text") + + @property + @pulumi.getter(name="keyValue") + def key_value(self) -> Optional['outputs.IndexRuleKeyValue']: + """ + Key-Value index configuration. + """ + return pulumi.get(self, "key_value") + + @property + @pulumi.getter + def tag(self) -> Optional['outputs.IndexRuleTag']: + """ + Metafield index configuration. + """ + return pulumi.get(self, "tag") + + +@pulumi.output_type +class IndexRuleDynamicIndex(dict): + def __init__(__self__, *, + status: bool): + """ + :param bool status: index automatic configuration switch. + """ + pulumi.set(__self__, "status", status) + + @property + @pulumi.getter + def status(self) -> bool: + """ + index automatic configuration switch. + """ + return pulumi.get(self, "status") + + +@pulumi.output_type +class IndexRuleFullText(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "caseSensitive": + suggest = "case_sensitive" + elif key == "containZH": + suggest = "contain_zh" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRuleFullText. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRuleFullText.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRuleFullText.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + case_sensitive: bool, + contain_zh: bool, + tokenizer: str): + """ + :param bool case_sensitive: Case sensitivity. + :param bool contain_zh: Whether Chinese characters are contained. + :param str tokenizer: Full-Text index delimiter. Each character in the string represents a delimiter. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + pulumi.set(__self__, "contain_zh", contain_zh) + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> bool: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> bool: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @property + @pulumi.getter + def tokenizer(self) -> str: + """ + Full-Text index delimiter. Each character in the string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + +@pulumi.output_type +class IndexRuleKeyValue(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "caseSensitive": + suggest = "case_sensitive" + elif key == "keyValues": + suggest = "key_values" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRuleKeyValue. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRuleKeyValue.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRuleKeyValue.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + case_sensitive: bool, + key_values: Optional[Sequence['outputs.IndexRuleKeyValueKeyValue']] = None): + """ + :param bool case_sensitive: Case sensitivity. + :param Sequence['IndexRuleKeyValueKeyValueArgs'] key_values: Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + if key_values is not None: + pulumi.set(__self__, "key_values", key_values) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> bool: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @property + @pulumi.getter(name="keyValues") + def key_values(self) -> Optional[Sequence['outputs.IndexRuleKeyValueKeyValue']]: + """ + Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + return pulumi.get(self, "key_values") + + +@pulumi.output_type +class IndexRuleKeyValueKeyValue(dict): + def __init__(__self__, *, + key: str, + value: Optional['outputs.IndexRuleKeyValueKeyValueValue'] = None): + """ + :param str key: When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + :param 'IndexRuleKeyValueKeyValueValueArgs' value: Field index description information. + """ + pulumi.set(__self__, "key", key) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def key(self) -> str: + """ + When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def value(self) -> Optional['outputs.IndexRuleKeyValueKeyValueValue']: + """ + Field index description information. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class IndexRuleKeyValueKeyValueValue(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "containZH": + suggest = "contain_zh" + elif key == "sqlFlag": + suggest = "sql_flag" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRuleKeyValueKeyValueValue. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRuleKeyValueKeyValueValue.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRuleKeyValueKeyValueValue.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + type: str, + contain_zh: Optional[bool] = None, + sql_flag: Optional[bool] = None, + tokenizer: Optional[str] = None): + """ + :param str type: Field type. Valid values: long, text, double. + :param bool contain_zh: Whether Chinese characters are contained. + :param bool sql_flag: Whether the analysis feature is enabled for the field. + :param str tokenizer: Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + pulumi.set(__self__, "type", type) + if contain_zh is not None: + pulumi.set(__self__, "contain_zh", contain_zh) + if sql_flag is not None: + pulumi.set(__self__, "sql_flag", sql_flag) + if tokenizer is not None: + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter + def type(self) -> str: + """ + Field type. Valid values: long, text, double. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> Optional[bool]: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @property + @pulumi.getter(name="sqlFlag") + def sql_flag(self) -> Optional[bool]: + """ + Whether the analysis feature is enabled for the field. + """ + return pulumi.get(self, "sql_flag") + + @property + @pulumi.getter + def tokenizer(self) -> Optional[str]: + """ + Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + +@pulumi.output_type +class IndexRuleTag(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "caseSensitive": + suggest = "case_sensitive" + elif key == "keyValues": + suggest = "key_values" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRuleTag. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRuleTag.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRuleTag.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + case_sensitive: bool, + key_values: Optional[Sequence['outputs.IndexRuleTagKeyValue']] = None): + """ + :param bool case_sensitive: Case sensitivity. + :param Sequence['IndexRuleTagKeyValueArgs'] key_values: Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + pulumi.set(__self__, "case_sensitive", case_sensitive) + if key_values is not None: + pulumi.set(__self__, "key_values", key_values) + + @property + @pulumi.getter(name="caseSensitive") + def case_sensitive(self) -> bool: + """ + Case sensitivity. + """ + return pulumi.get(self, "case_sensitive") + + @property + @pulumi.getter(name="keyValues") + def key_values(self) -> Optional[Sequence['outputs.IndexRuleTagKeyValue']]: + """ + Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured. + """ + return pulumi.get(self, "key_values") + + +@pulumi.output_type +class IndexRuleTagKeyValue(dict): + def __init__(__self__, *, + key: str, + value: Optional['outputs.IndexRuleTagKeyValueValue'] = None): + """ + :param str key: When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + :param 'IndexRuleTagKeyValueValueArgs' value: Field index description information. + """ + pulumi.set(__self__, "key", key) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def key(self) -> str: + """ + When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console.. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def value(self) -> Optional['outputs.IndexRuleTagKeyValueValue']: + """ + Field index description information. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class IndexRuleTagKeyValueValue(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "containZH": + suggest = "contain_zh" + elif key == "sqlFlag": + suggest = "sql_flag" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in IndexRuleTagKeyValueValue. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + IndexRuleTagKeyValueValue.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + IndexRuleTagKeyValueValue.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + type: str, + contain_zh: Optional[bool] = None, + sql_flag: Optional[bool] = None, + tokenizer: Optional[str] = None): + """ + :param str type: Field type. Valid values: long, text, double. + :param bool contain_zh: Whether Chinese characters are contained. + :param bool sql_flag: Whether the analysis feature is enabled for the field. + :param str tokenizer: Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + pulumi.set(__self__, "type", type) + if contain_zh is not None: + pulumi.set(__self__, "contain_zh", contain_zh) + if sql_flag is not None: + pulumi.set(__self__, "sql_flag", sql_flag) + if tokenizer is not None: + pulumi.set(__self__, "tokenizer", tokenizer) + + @property + @pulumi.getter + def type(self) -> str: + """ + Field type. Valid values: long, text, double. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter(name="containZH") + def contain_zh(self) -> Optional[bool]: + """ + Whether Chinese characters are contained. + """ + return pulumi.get(self, "contain_zh") + + @property + @pulumi.getter(name="sqlFlag") + def sql_flag(self) -> Optional[bool]: + """ + Whether the analysis feature is enabled for the field. + """ + return pulumi.get(self, "sql_flag") + + @property + @pulumi.getter + def tokenizer(self) -> Optional[str]: + """ + Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter. + """ + return pulumi.get(self, "tokenizer") + + @pulumi.output_type class KafkaRechargeLogRechargeRule(dict): @staticmethod diff --git a/sdk/python/tencentcloud_iac_pulumi/cvm/renew_instance.py b/sdk/python/tencentcloud_iac_pulumi/cvm/renew_instance.py index b92d1d19b..88e47611b 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cvm/renew_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/cvm/renew_instance.py @@ -143,13 +143,46 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - renew_instance = tencentcloud.cvm.RenewInstance("renewInstance", + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + force_delete=True, + instance_charge_type="PREPAID", + instance_charge_type_prepaid_period=1, + instance_charge_type_prepaid_renew_flag="NOTIFY_AND_MANUAL_RENEW", + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # renew instance + example_renew_instance = tencentcloud.cvm.RenewInstance("exampleRenewInstance", + instance_id=example_instance.id, + renew_portable_data_disk=True, instance_charge_prepaid=tencentcloud.cvm.RenewInstanceInstanceChargePrepaidArgs( period=1, - renew_flag="NOTIFY_AND_AUTO_RENEW", - ), - instance_id="ins-f9jr4bd2", - renew_portable_data_disk=True) + renew_flag="NOTIFY_AND_MANUAL_RENEW", + )) ``` @@ -175,13 +208,46 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - renew_instance = tencentcloud.cvm.RenewInstance("renewInstance", + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + force_delete=True, + instance_charge_type="PREPAID", + instance_charge_type_prepaid_period=1, + instance_charge_type_prepaid_renew_flag="NOTIFY_AND_MANUAL_RENEW", + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # renew instance + example_renew_instance = tencentcloud.cvm.RenewInstance("exampleRenewInstance", + instance_id=example_instance.id, + renew_portable_data_disk=True, instance_charge_prepaid=tencentcloud.cvm.RenewInstanceInstanceChargePrepaidArgs( period=1, - renew_flag="NOTIFY_AND_AUTO_RENEW", - ), - instance_id="ins-f9jr4bd2", - renew_portable_data_disk=True) + renew_flag="NOTIFY_AND_MANUAL_RENEW", + )) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/cvm/security_group_attachment.py b/sdk/python/tencentcloud_iac_pulumi/cvm/security_group_attachment.py index 12ffdf353..01cf17734 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cvm/security_group_attachment.py +++ b/sdk/python/tencentcloud_iac_pulumi/cvm/security_group_attachment.py @@ -107,9 +107,45 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - security_group_attachment = tencentcloud.cvm.SecurityGroupAttachment("securityGroupAttachment", - instance_id="ins-xxxxxxxx", - security_group_id="sg-xxxxxxx") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create security group + example_group = tencentcloud.security.Group("exampleGroup", + description="sg desc.", + project_id=0, + tags={ + "example": "test", + }) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # attachment security group + example_security_group_attachment = tencentcloud.cvm.SecurityGroupAttachment("exampleSecurityGroupAttachment", + instance_id=example_instance.id, + security_group_id=example_group.id) ``` @@ -118,7 +154,7 @@ def __init__(__self__, cvm security_group_attachment can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id} + $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp ``` :param str resource_name: The name of the resource. @@ -142,9 +178,45 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - security_group_attachment = tencentcloud.cvm.SecurityGroupAttachment("securityGroupAttachment", - instance_id="ins-xxxxxxxx", - security_group_id="sg-xxxxxxx") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create security group + example_group = tencentcloud.security.Group("exampleGroup", + description="sg desc.", + project_id=0, + tags={ + "example": "test", + }) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # attachment security group + example_security_group_attachment = tencentcloud.cvm.SecurityGroupAttachment("exampleSecurityGroupAttachment", + instance_id=example_instance.id, + security_group_id=example_group.id) ``` @@ -153,7 +225,7 @@ def __init__(__self__, cvm security_group_attachment can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment security_group_attachment ${instance_id}#${security_group_id} + $ pulumi import tencentcloud:Cvm/securityGroupAttachment:SecurityGroupAttachment example ins-odl0lrcy#sg-5275dorp ``` :param str resource_name: The name of the resource. diff --git a/sdk/python/tencentcloud_iac_pulumi/cvm/sync_image.py b/sdk/python/tencentcloud_iac_pulumi/cvm/sync_image.py index dc698efd1..94a60b511 100644 --- a/sdk/python/tencentcloud_iac_pulumi/cvm/sync_image.py +++ b/sdk/python/tencentcloud_iac_pulumi/cvm/sync_image.py @@ -204,14 +204,17 @@ def __init__(__self__, ```python import pulumi + import pulumi_tencentcloud as tencentcloud import tencentcloud_iac_pulumi as tencentcloud - sync_image = tencentcloud.cvm.SyncImage("syncImage", + example_instance = tencentcloud.Images.get_instance(image_types=["PRIVATE_IMAGE"], + image_name_regex="MyImage") + example_sync_image = tencentcloud.cvm.SyncImage("exampleSyncImage", + image_id=example_instance.images[0].image_id, destination_regions=[ "ap-guangzhou", "ap-shanghai", - ], - image_id="img-xxxxxx") + ]) ``` @@ -237,14 +240,17 @@ def __init__(__self__, ```python import pulumi + import pulumi_tencentcloud as tencentcloud import tencentcloud_iac_pulumi as tencentcloud - sync_image = tencentcloud.cvm.SyncImage("syncImage", + example_instance = tencentcloud.Images.get_instance(image_types=["PRIVATE_IMAGE"], + image_name_regex="MyImage") + example_sync_image = tencentcloud.cvm.SyncImage("exampleSyncImage", + image_id=example_instance.images[0].image_id, destination_regions=[ "ap-guangzhou", "ap-shanghai", - ], - image_id="img-xxxxxx") + ]) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/eip/address_transform.py b/sdk/python/tencentcloud_iac_pulumi/eip/address_transform.py index 83ccb685f..41ec58745 100644 --- a/sdk/python/tencentcloud_iac_pulumi/eip/address_transform.py +++ b/sdk/python/tencentcloud_iac_pulumi/eip/address_transform.py @@ -75,18 +75,40 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - address_transform = tencentcloud.eip.AddressTransform("addressTransform", instance_id="") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + allocate_public_ip=True, + internet_max_bandwidth_out=10, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + example_address_transform = tencentcloud.eip.AddressTransform("exampleAddressTransform", instance_id=example_instance.id) ``` - ## Import - - eip address_transform can be imported using the id, e.g. - - ```sh - $ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id - ``` - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] instance_id: the instance ID of a normal public network IP to be operated. eg:ins-23mk45jn. @@ -107,18 +129,40 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - address_transform = tencentcloud.eip.AddressTransform("addressTransform", instance_id="") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + allocate_public_ip=True, + internet_max_bandwidth_out=10, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + example_address_transform = tencentcloud.eip.AddressTransform("exampleAddressTransform", instance_id=example_instance.id) ``` - ## Import - - eip address_transform can be imported using the id, e.g. - - ```sh - $ pulumi import tencentcloud:Eip/addressTransform:AddressTransform address_transform address_transform_id - ``` - :param str resource_name: The name of the resource. :param AddressTransformArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/tencentcloud_iac_pulumi/eip/normal_address_return.py b/sdk/python/tencentcloud_iac_pulumi/eip/normal_address_return.py index 853b5b1f5..fd3476479 100644 --- a/sdk/python/tencentcloud_iac_pulumi/eip/normal_address_return.py +++ b/sdk/python/tencentcloud_iac_pulumi/eip/normal_address_return.py @@ -76,7 +76,7 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - normal_address_return = tencentcloud.eip.NormalAddressReturn("normalAddressReturn", address_ips=["172.16.17.32"]) + example = tencentcloud.eip.NormalAddressReturn("example", address_ips=["172.16.17.32"]) ``` @@ -100,7 +100,7 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - normal_address_return = tencentcloud.eip.NormalAddressReturn("normalAddressReturn", address_ips=["172.16.17.32"]) + example = tencentcloud.eip.NormalAddressReturn("example", address_ips=["172.16.17.32"]) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/eip/public_address_adjust.py b/sdk/python/tencentcloud_iac_pulumi/eip/public_address_adjust.py index 2723aec1d..8549d4936 100644 --- a/sdk/python/tencentcloud_iac_pulumi/eip/public_address_adjust.py +++ b/sdk/python/tencentcloud_iac_pulumi/eip/public_address_adjust.py @@ -109,9 +109,41 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - public_address_adjust = tencentcloud.eip.PublicAddressAdjust("publicAddressAdjust", - address_id="eip-erft45fu", - instance_id="ins-cr2rfq78") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + allocate_public_ip=True, + internet_max_bandwidth_out=10, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # create eip + example_eip_instance_instance = tencentcloud.eip.Instance("exampleEip/instanceInstance") + example_public_address_adjust = tencentcloud.eip.PublicAddressAdjust("examplePublicAddressAdjust", + instance_id=example_instance.id, + address_id=example_eip / instance_instance["id"]) ``` @@ -136,9 +168,41 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - public_address_adjust = tencentcloud.eip.PublicAddressAdjust("publicAddressAdjust", - address_id="eip-erft45fu", - instance_id="ins-cr2rfq78") + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + vpc_id=vpc.id, + availability_zone="ap-guangzhou-6", + cidr_block="10.0.20.0/28", + is_multicast=False) + # create cvm + example_instance = tencentcloud.instance.Instance("exampleInstance", + instance_name="tf_example", + availability_zone="ap-guangzhou-6", + image_id="img-9qrfy1xt", + instance_type="SA3.MEDIUM4", + system_disk_type="CLOUD_HSSD", + system_disk_size=100, + hostname="example", + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + allocate_public_ip=True, + internet_max_bandwidth_out=10, + data_disks=[tencentcloud.instance.InstanceDataDiskArgs( + data_disk_type="CLOUD_HSSD", + data_disk_size=50, + encrypt=False, + )], + tags={ + "tagKey": "tagValue", + }) + # create eip + example_eip_instance_instance = tencentcloud.eip.Instance("exampleEip/instanceInstance") + example_public_address_adjust = tencentcloud.eip.PublicAddressAdjust("examplePublicAddressAdjust", + instance_id=example_instance.id, + address_id=example_eip / instance_instance["id"]) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/eips/get_instance.py b/sdk/python/tencentcloud_iac_pulumi/eips/get_instance.py index ce92665ec..026950285 100644 --- a/sdk/python/tencentcloud_iac_pulumi/eips/get_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/eips/get_instance.py @@ -125,12 +125,60 @@ def get_instance(eip_id: Optional[str] = None, ## Example Usage + ### Query all eip instances + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance() + ``` + + + ### Query eip instances by eip ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(eip_id="eip-ry9h95hg") + ``` + + + ### Query eip instances by eip name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(eip_name="tf-example") + ``` + + + ### Query eip instances by public ip + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(public_ip="1.12.62.3") + ``` + + + ### Query eip instances by tags + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Eips.get_instance(eip_id="eip-ry9h95hg") + example = tencentcloud.Eips.get_instance(tags={ + "test": "test", + }) ``` @@ -172,12 +220,60 @@ def get_instance_output(eip_id: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ### Query all eip instances + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance() + ``` + + + ### Query eip instances by eip ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(eip_id="eip-ry9h95hg") + ``` + + + ### Query eip instances by eip name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(eip_name="tf-example") + ``` + + + ### Query eip instances by public ip + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Eips.get_instance(public_ip="1.12.62.3") + ``` + + + ### Query eip instances by tags + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Eips.get_instance(eip_id="eip-ry9h95hg") + example = tencentcloud.Eips.get_instance(tags={ + "test": "test", + }) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/image/get_instance.py b/sdk/python/tencentcloud_iac_pulumi/image/get_instance.py index e8abecc7b..e710ebaf6 100644 --- a/sdk/python/tencentcloud_iac_pulumi/image/get_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/image/get_instance.py @@ -114,22 +114,57 @@ def get_instance(filters: Optional[Sequence[pulumi.InputType['GetInstanceFilterA """ Provides an available image for the user. - The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + The Images data source fetch proper image, which could be one of the private images of the user and images of system + resources provided by TencentCloud, as well as other public images and those available on the image market. > **NOTE:** This data source will be deprecated, please use `images_get_instance` instead. ## Example Usage + ### Query image + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance() + ``` + + + ### Query image by filter + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs( + name="image-type", + values=["PUBLIC_IMAGE"], + )]) + ``` + + + ### Query image by os name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance(os_name="centos") + ``` + + + ### Query image by image name regex + ```python import pulumi import pulumi_tencentcloud as tencentcloud - my_favorate_image = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs( - name="image-type", - values=["PUBLIC_IMAGE"], - )], - os_name="centos") + example = tencentcloud.Image.get_instance(image_name_regex="^Windows\\\\s.*$") ``` @@ -166,22 +201,57 @@ def get_instance_output(filters: Optional[pulumi.Input[Optional[Sequence[pulumi. """ Provides an available image for the user. - The Images data source fetch proper image, which could be one of the private images of the user and images of system resources provided by TencentCloud, as well as other public images and those available on the image market. + The Images data source fetch proper image, which could be one of the private images of the user and images of system + resources provided by TencentCloud, as well as other public images and those available on the image market. > **NOTE:** This data source will be deprecated, please use `images_get_instance` instead. ## Example Usage + ### Query image + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance() + ``` + + + ### Query image by filter + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs( + name="image-type", + values=["PUBLIC_IMAGE"], + )]) + ``` + + + ### Query image by os name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Image.get_instance(os_name="centos") + ``` + + + ### Query image by image name regex + ```python import pulumi import pulumi_tencentcloud as tencentcloud - my_favorate_image = tencentcloud.Image.get_instance(filters=[tencentcloud.image.GetInstanceFilterArgs( - name="image-type", - values=["PUBLIC_IMAGE"], - )], - os_name="centos") + example = tencentcloud.Image.get_instance(image_name_regex="^Windows\\\\s.*$") ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/images/get_instance.py b/sdk/python/tencentcloud_iac_pulumi/images/get_instance.py index 5c492907a..abae273c2 100644 --- a/sdk/python/tencentcloud_iac_pulumi/images/get_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/images/get_instance.py @@ -132,13 +132,69 @@ def get_instance(image_id: Optional[str] = None, ## Example Usage + ### Query all images + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance() + ``` + + + ### Query images by image ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_id="img-9qrfy1xt") + ``` + + + ### Query images by os name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(os_name="TencentOS Server 3.2 (Final)") + ``` + + + ### Query images by image name regex + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_name_regex="^TencentOS") + ``` + + + ### Query images by image type + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_types=["PUBLIC_IMAGE"]) + ``` + + + ### Query images by instance type + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Images.get_instance(image_types=["PUBLIC_IMAGE"], - os_name="centos 7.5") + example = tencentcloud.Images.get_instance(instance_type="S1.SMALL1") ``` @@ -184,13 +240,69 @@ def get_instance_output(image_id: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ### Query all images + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance() + ``` + + + ### Query images by image ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_id="img-9qrfy1xt") + ``` + + + ### Query images by os name + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(os_name="TencentOS Server 3.2 (Final)") + ``` + + + ### Query images by image name regex + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_name_regex="^TencentOS") + ``` + + + ### Query images by image type + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Images.get_instance(image_types=["PUBLIC_IMAGE"]) + ``` + + + ### Query images by instance type + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Images.get_instance(image_types=["PUBLIC_IMAGE"], - os_name="centos 7.5") + example = tencentcloud.Images.get_instance(instance_type="S1.SMALL1") ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/instance/get_types.py b/sdk/python/tencentcloud_iac_pulumi/instance/get_types.py index 717c037a2..1a24bee3e 100644 --- a/sdk/python/tencentcloud_iac_pulumi/instance/get_types.py +++ b/sdk/python/tencentcloud_iac_pulumi/instance/get_types.py @@ -151,22 +151,32 @@ def get_types(availability_zone: Optional[str] = None, import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instance.get_types(availability_zone="ap-guangzhou-2", - cpu_core_count=2, - memory_size=4) - t1c1g = tencentcloud.Instance.get_types(cpu_core_count=1, + example = tencentcloud.Instance.get_types(availability_zone="ap-guangzhou-6", + cpu_core_count=4, + memory_size=8) + ``` + + + ### Complete Example + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instance.get_types(cpu_core_count=4, exclude_sold_out=True, filters=[ tencentcloud.instance.GetTypesFilterArgs( - name="instance-charge-type", - values=["POSTPAID_BY_HOUR"], + name="instance-family", + values=["SA2"], ), tencentcloud.instance.GetTypesFilterArgs( name="zone", - values=["ap-shanghai-2"], + values=["ap-guangzhou-6"], ), ], - memory_size=1) + memory_size=8) ``` @@ -221,22 +231,32 @@ def get_types_output(availability_zone: Optional[pulumi.Input[Optional[str]]] = import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instance.get_types(availability_zone="ap-guangzhou-2", - cpu_core_count=2, - memory_size=4) - t1c1g = tencentcloud.Instance.get_types(cpu_core_count=1, + example = tencentcloud.Instance.get_types(availability_zone="ap-guangzhou-6", + cpu_core_count=4, + memory_size=8) + ``` + + + ### Complete Example + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instance.get_types(cpu_core_count=4, exclude_sold_out=True, filters=[ tencentcloud.instance.GetTypesFilterArgs( - name="instance-charge-type", - values=["POSTPAID_BY_HOUR"], + name="instance-family", + values=["SA2"], ), tencentcloud.instance.GetTypesFilterArgs( name="zone", - values=["ap-shanghai-2"], + values=["ap-guangzhou-6"], ), ], - memory_size=1) + memory_size=8) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/instances/get_instance.py b/sdk/python/tencentcloud_iac_pulumi/instances/get_instance.py index 4d08d47cf..d97c67b93 100644 --- a/sdk/python/tencentcloud_iac_pulumi/instances/get_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/instances/get_instance.py @@ -174,12 +174,44 @@ def get_instance(availability_zone: Optional[str] = None, ## Example Usage + ### Query all cvm instances + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instances.get_instance() + ``` + + + ### Query cvm instances by filters + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instances.get_instance(availability_zone="ap-guangzhou-6", + instance_id="ins-a81rnm8c", + instance_name="tf_example", + project_id=0, + subnet_id="subnet-1to7t9au", + tags={ + "tagKey": "tagValue", + }, + vpc_id="vpc-l040hycv") + ``` + + + ### Or by instance set id list + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instances.get_instance(instance_id="ins-da412f5a") + example = tencentcloud.Instances.get_instance(instance_set_ids=["ins-a81rnm8c"]) ``` @@ -237,12 +269,44 @@ def get_instance_output(availability_zone: Optional[pulumi.Input[Optional[str]]] ## Example Usage + ### Query all cvm instances + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instances.get_instance() + ``` + + + ### Query cvm instances by filters + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + example = tencentcloud.Instances.get_instance(availability_zone="ap-guangzhou-6", + instance_id="ins-a81rnm8c", + instance_name="tf_example", + project_id=0, + subnet_id="subnet-1to7t9au", + tags={ + "tagKey": "tagValue", + }, + vpc_id="vpc-l040hycv") + ``` + + + ### Or by instance set id list + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instances.get_instance(instance_id="ins-da412f5a") + example = tencentcloud.Instances.get_instance(instance_set_ids=["ins-a81rnm8c"]) ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/instances/get_set.py b/sdk/python/tencentcloud_iac_pulumi/instances/get_set.py index 1c7aca2eb..e066f6381 100644 --- a/sdk/python/tencentcloud_iac_pulumi/instances/get_set.py +++ b/sdk/python/tencentcloud_iac_pulumi/instances/get_set.py @@ -169,7 +169,15 @@ def get_set(availability_zone: Optional[str] = None, import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instances.get_set(vpc_id="vpc-4owdpnwr") + example = tencentcloud.Instances.get_set(availability_zone="ap-guangzhou-6", + instance_id="ins-a81rnm8c", + instance_name="tf_example", + project_id=0, + subnet_id="subnet-1to7t9au", + tags={ + "tagKey": "tagValue", + }, + vpc_id="vpc-l040hycv") ``` @@ -228,7 +236,15 @@ def get_set_output(availability_zone: Optional[pulumi.Input[Optional[str]]] = No import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Instances.get_set(vpc_id="vpc-4owdpnwr") + example = tencentcloud.Instances.get_set(availability_zone="ap-guangzhou-6", + instance_id="ins-a81rnm8c", + instance_name="tf_example", + project_id=0, + subnet_id="subnet-1to7t9au", + tags={ + "tagKey": "tagValue", + }, + vpc_id="vpc-l040hycv") ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/key/get_pairs.py b/sdk/python/tencentcloud_iac_pulumi/key/get_pairs.py index 8f4c772bf..a2c679ec6 100644 --- a/sdk/python/tencentcloud_iac_pulumi/key/get_pairs.py +++ b/sdk/python/tencentcloud_iac_pulumi/key/get_pairs.py @@ -112,13 +112,25 @@ def get_pairs(key_id: Optional[str] = None, ## Example Usage + ### Query key pairs by key ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + key_id = tencentcloud.Key.get_pairs(key_id="skey-ie97i3ml") + ``` + + + ### Query key pairs by key name + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Key.get_pairs(key_id="skey-ie97i3ml") - name = tencentcloud.Key.get_pairs(key_name="^test$") + key_name = tencentcloud.Key.get_pairs(key_name="^test$") ``` @@ -156,13 +168,25 @@ def get_pairs_output(key_id: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ### Query key pairs by key ID + + + ```python + import pulumi + import pulumi_tencentcloud as tencentcloud + + key_id = tencentcloud.Key.get_pairs(key_id="skey-ie97i3ml") + ``` + + + ### Query key pairs by key name + ```python import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Key.get_pairs(key_id="skey-ie97i3ml") - name = tencentcloud.Key.get_pairs(key_name="^test$") + key_name = tencentcloud.Key.get_pairs(key_name="^test$") ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/placement/get_groups.py b/sdk/python/tencentcloud_iac_pulumi/placement/get_groups.py index 3260ed839..0f4ec439b 100644 --- a/sdk/python/tencentcloud_iac_pulumi/placement/get_groups.py +++ b/sdk/python/tencentcloud_iac_pulumi/placement/get_groups.py @@ -104,8 +104,8 @@ def get_groups(name: Optional[str] = None, import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Placement.get_groups(name="test", - placement_group_id="ps-21q9ibvr") + example = tencentcloud.Placement.get_groups(name="tf_example", + placement_group_id="ps-bwvst92h") ``` @@ -144,8 +144,8 @@ def get_groups_output(name: Optional[pulumi.Input[Optional[str]]] = None, import pulumi import pulumi_tencentcloud as tencentcloud - foo = tencentcloud.Placement.get_groups(name="test", - placement_group_id="ps-21q9ibvr") + example = tencentcloud.Placement.get_groups(name="tf_example", + placement_group_id="ps-bwvst92h") ``` diff --git a/sdk/python/tencentcloud_iac_pulumi/tdmq/_inputs.py b/sdk/python/tencentcloud_iac_pulumi/tdmq/_inputs.py index 5baa1acea..a21010ec6 100644 --- a/sdk/python/tencentcloud_iac_pulumi/tdmq/_inputs.py +++ b/sdk/python/tencentcloud_iac_pulumi/tdmq/_inputs.py @@ -13,6 +13,7 @@ 'NamespaceRetentionPolicyArgs', 'ProfessionalClusterVpcArgs', 'RocketmqClusterVpcArgs', + 'RocketmqVipInstanceIpRuleArgs', 'RocketmqVipInstanceVpcInfoArgs', 'GetProInstancesFilterArgs', 'GetPublishersFilterArgs', @@ -136,6 +137,58 @@ def vpc_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vpc_id", value) +@pulumi.input_type +class RocketmqVipInstanceIpRuleArgs: + def __init__(__self__, *, + allow: pulumi.Input[bool], + ip_rule: pulumi.Input[str], + remark: pulumi.Input[str]): + """ + :param pulumi.Input[bool] allow: Whether to allow or deny. + :param pulumi.Input[str] ip_rule: IP address block information. + :param pulumi.Input[str] remark: Remark. + """ + pulumi.set(__self__, "allow", allow) + pulumi.set(__self__, "ip_rule", ip_rule) + pulumi.set(__self__, "remark", remark) + + @property + @pulumi.getter + def allow(self) -> pulumi.Input[bool]: + """ + Whether to allow or deny. + """ + return pulumi.get(self, "allow") + + @allow.setter + def allow(self, value: pulumi.Input[bool]): + pulumi.set(self, "allow", value) + + @property + @pulumi.getter(name="ipRule") + def ip_rule(self) -> pulumi.Input[str]: + """ + IP address block information. + """ + return pulumi.get(self, "ip_rule") + + @ip_rule.setter + def ip_rule(self, value: pulumi.Input[str]): + pulumi.set(self, "ip_rule", value) + + @property + @pulumi.getter + def remark(self) -> pulumi.Input[str]: + """ + Remark. + """ + return pulumi.get(self, "remark") + + @remark.setter + def remark(self, value: pulumi.Input[str]): + pulumi.set(self, "remark", value) + + @pulumi.input_type class RocketmqVipInstanceVpcInfoArgs: def __init__(__self__, *, diff --git a/sdk/python/tencentcloud_iac_pulumi/tdmq/outputs.py b/sdk/python/tencentcloud_iac_pulumi/tdmq/outputs.py index 1e83723f9..6e6a2cf6e 100644 --- a/sdk/python/tencentcloud_iac_pulumi/tdmq/outputs.py +++ b/sdk/python/tencentcloud_iac_pulumi/tdmq/outputs.py @@ -14,6 +14,7 @@ 'NamespaceRetentionPolicy', 'ProfessionalClusterVpc', 'RocketmqClusterVpc', + 'RocketmqVipInstanceIpRule', 'RocketmqVipInstanceVpcInfo', 'GetProInstanceDetailClusterInfoResult', 'GetProInstanceDetailClusterInfoNodeDistributionResult', @@ -193,6 +194,63 @@ def vpc_id(self) -> Optional[str]: return pulumi.get(self, "vpc_id") +@pulumi.output_type +class RocketmqVipInstanceIpRule(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "ipRule": + suggest = "ip_rule" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RocketmqVipInstanceIpRule. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RocketmqVipInstanceIpRule.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RocketmqVipInstanceIpRule.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + allow: bool, + ip_rule: str, + remark: str): + """ + :param bool allow: Whether to allow or deny. + :param str ip_rule: IP address block information. + :param str remark: Remark. + """ + pulumi.set(__self__, "allow", allow) + pulumi.set(__self__, "ip_rule", ip_rule) + pulumi.set(__self__, "remark", remark) + + @property + @pulumi.getter + def allow(self) -> bool: + """ + Whether to allow or deny. + """ + return pulumi.get(self, "allow") + + @property + @pulumi.getter(name="ipRule") + def ip_rule(self) -> str: + """ + IP address block information. + """ + return pulumi.get(self, "ip_rule") + + @property + @pulumi.getter + def remark(self) -> str: + """ + Remark. + """ + return pulumi.get(self, "remark") + + @pulumi.output_type class RocketmqVipInstanceVpcInfo(dict): @staticmethod diff --git a/sdk/python/tencentcloud_iac_pulumi/tdmq/rocketmq_vip_instance.py b/sdk/python/tencentcloud_iac_pulumi/tdmq/rocketmq_vip_instance.py index 27f18465c..a3cb3926b 100644 --- a/sdk/python/tencentcloud_iac_pulumi/tdmq/rocketmq_vip_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/tdmq/rocketmq_vip_instance.py @@ -22,15 +22,17 @@ def __init__(__self__, *, time_span: pulumi.Input[int], vpc_info: pulumi.Input['RocketmqVipInstanceVpcInfoArgs'], zone_ids: pulumi.Input[Sequence[pulumi.Input[str]]], + ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]] = None, name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a RocketmqVipInstance resource. :param pulumi.Input[int] node_count: Number of nodes, minimum 2, maximum 20. - :param pulumi.Input[str] spec: Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + :param pulumi.Input[str] spec: Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. :param pulumi.Input[int] storage_size: Single node storage space, in GB, minimum 200GB. :param pulumi.Input[int] time_span: Purchase period, in months. :param pulumi.Input['RocketmqVipInstanceVpcInfoArgs'] vpc_info: VPC information. :param pulumi.Input[Sequence[pulumi.Input[str]]] zone_ids: The Zone ID list for node deployment, such as Guangzhou Zone 1, is 100001. For details, please refer to the official website of Tencent Cloud. + :param pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]] ip_rules: Public IP access control rules. :param pulumi.Input[str] name: Instance name. """ pulumi.set(__self__, "node_count", node_count) @@ -39,6 +41,8 @@ def __init__(__self__, *, pulumi.set(__self__, "time_span", time_span) pulumi.set(__self__, "vpc_info", vpc_info) pulumi.set(__self__, "zone_ids", zone_ids) + if ip_rules is not None: + pulumi.set(__self__, "ip_rules", ip_rules) if name is not None: pulumi.set(__self__, "name", name) @@ -58,7 +62,7 @@ def node_count(self, value: pulumi.Input[int]): @pulumi.getter def spec(self) -> pulumi.Input[str]: """ - Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. """ return pulumi.get(self, "spec") @@ -114,6 +118,18 @@ def zone_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: def zone_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "zone_ids", value) + @property + @pulumi.getter(name="ipRules") + def ip_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]]: + """ + Public IP access control rules. + """ + return pulumi.get(self, "ip_rules") + + @ip_rules.setter + def ip_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]]): + pulumi.set(self, "ip_rules", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -130,6 +146,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class _RocketmqVipInstanceState: def __init__(__self__, *, + ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]] = None, name: Optional[pulumi.Input[str]] = None, node_count: Optional[pulumi.Input[int]] = None, spec: Optional[pulumi.Input[str]] = None, @@ -139,14 +156,17 @@ def __init__(__self__, *, zone_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering RocketmqVipInstance resources. + :param pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]] ip_rules: Public IP access control rules. :param pulumi.Input[str] name: Instance name. :param pulumi.Input[int] node_count: Number of nodes, minimum 2, maximum 20. - :param pulumi.Input[str] spec: Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + :param pulumi.Input[str] spec: Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. :param pulumi.Input[int] storage_size: Single node storage space, in GB, minimum 200GB. :param pulumi.Input[int] time_span: Purchase period, in months. :param pulumi.Input['RocketmqVipInstanceVpcInfoArgs'] vpc_info: VPC information. :param pulumi.Input[Sequence[pulumi.Input[str]]] zone_ids: The Zone ID list for node deployment, such as Guangzhou Zone 1, is 100001. For details, please refer to the official website of Tencent Cloud. """ + if ip_rules is not None: + pulumi.set(__self__, "ip_rules", ip_rules) if name is not None: pulumi.set(__self__, "name", name) if node_count is not None: @@ -162,6 +182,18 @@ def __init__(__self__, *, if zone_ids is not None: pulumi.set(__self__, "zone_ids", zone_ids) + @property + @pulumi.getter(name="ipRules") + def ip_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]]: + """ + Public IP access control rules. + """ + return pulumi.get(self, "ip_rules") + + @ip_rules.setter + def ip_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RocketmqVipInstanceIpRuleArgs']]]]): + pulumi.set(self, "ip_rules", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -190,7 +222,7 @@ def node_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def spec(self) -> Optional[pulumi.Input[str]]: """ - Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. """ return pulumi.get(self, "spec") @@ -252,6 +284,7 @@ class RocketmqVipInstance(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RocketmqVipInstanceIpRuleArgs']]]]] = None, name: Optional[pulumi.Input[str]] = None, node_count: Optional[pulumi.Input[int]] = None, spec: Optional[pulumi.Input[str]] = None, @@ -264,12 +297,14 @@ def __init__(__self__, Provides a resource to create a tdmq rocketmq_vip_instance > **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`. + **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RocketmqVipInstanceIpRuleArgs']]]] ip_rules: Public IP access control rules. :param pulumi.Input[str] name: Instance name. :param pulumi.Input[int] node_count: Number of nodes, minimum 2, maximum 20. - :param pulumi.Input[str] spec: Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + :param pulumi.Input[str] spec: Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. :param pulumi.Input[int] storage_size: Single node storage space, in GB, minimum 200GB. :param pulumi.Input[int] time_span: Purchase period, in months. :param pulumi.Input[pulumi.InputType['RocketmqVipInstanceVpcInfoArgs']] vpc_info: VPC information. @@ -285,6 +320,7 @@ def __init__(__self__, Provides a resource to create a tdmq rocketmq_vip_instance > **NOTE:** The instance cannot be downgraded, Include parameters `node_count`, `spec`, `storage_size`. + **NOTE:** If `spec` is `rocket-vip-basic-2`, configuration changes are not supported. :param str resource_name: The name of the resource. :param RocketmqVipInstanceArgs args: The arguments to use to populate this resource's properties. @@ -301,6 +337,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RocketmqVipInstanceIpRuleArgs']]]]] = None, name: Optional[pulumi.Input[str]] = None, node_count: Optional[pulumi.Input[int]] = None, spec: Optional[pulumi.Input[str]] = None, @@ -317,6 +354,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = RocketmqVipInstanceArgs.__new__(RocketmqVipInstanceArgs) + __props__.__dict__["ip_rules"] = ip_rules __props__.__dict__["name"] = name if node_count is None and not opts.urn: raise TypeError("Missing required property 'node_count'") @@ -346,6 +384,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + ip_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RocketmqVipInstanceIpRuleArgs']]]]] = None, name: Optional[pulumi.Input[str]] = None, node_count: Optional[pulumi.Input[int]] = None, spec: Optional[pulumi.Input[str]] = None, @@ -360,9 +399,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RocketmqVipInstanceIpRuleArgs']]]] ip_rules: Public IP access control rules. :param pulumi.Input[str] name: Instance name. :param pulumi.Input[int] node_count: Number of nodes, minimum 2, maximum 20. - :param pulumi.Input[str] spec: Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + :param pulumi.Input[str] spec: Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. :param pulumi.Input[int] storage_size: Single node storage space, in GB, minimum 200GB. :param pulumi.Input[int] time_span: Purchase period, in months. :param pulumi.Input[pulumi.InputType['RocketmqVipInstanceVpcInfoArgs']] vpc_info: VPC information. @@ -372,6 +412,7 @@ def get(resource_name: str, __props__ = _RocketmqVipInstanceState.__new__(_RocketmqVipInstanceState) + __props__.__dict__["ip_rules"] = ip_rules __props__.__dict__["name"] = name __props__.__dict__["node_count"] = node_count __props__.__dict__["spec"] = spec @@ -381,6 +422,14 @@ def get(resource_name: str, __props__.__dict__["zone_ids"] = zone_ids return RocketmqVipInstance(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="ipRules") + def ip_rules(self) -> pulumi.Output[Optional[Sequence['outputs.RocketmqVipInstanceIpRule']]]: + """ + Public IP access control rules. + """ + return pulumi.get(self, "ip_rules") + @property @pulumi.getter def name(self) -> pulumi.Output[str]: @@ -401,7 +450,7 @@ def node_count(self) -> pulumi.Output[int]: @pulumi.getter def spec(self) -> pulumi.Output[str]: """ - Instance specification: Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. + Instance specification: Universal type, rocket-vip-basic-0, Basic type: `rocket-vip-basic-1`, Standard type: `rocket-vip-basic-2`, Advanced Type I: `rocket-vip-basic-3`, Advanced Type II: `rocket-vip-basic-4`. """ return pulumi.get(self, "spec")