diff --git a/sdk/dotnet/Tencentcloud/Apm/Instance.cs b/sdk/dotnet/Tencentcloud/Apm/Instance.cs index eae7cc3fe..0c929123f 100644 --- a/sdk/dotnet/Tencentcloud/Apm/Instance.cs +++ b/sdk/dotnet/Tencentcloud/Apm/Instance.cs @@ -26,10 +26,10 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Apm /// /// return await Deployment.RunAsync(() => /// { - /// var instance = new Tencentcloud.Apm.Instance("instance", new() + /// var example = new Tencentcloud.Apm.Instance("example", new() /// { - /// Description = "for terraform test", - /// SpanDailyCounters = 20, + /// Description = "desc.", + /// SpanDailyCounters = 0, /// Tags = /// { /// { "createdBy", "terraform" }, @@ -46,7 +46,7 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Apm /// apm instance can be imported using the id, e.g. /// /// ```sh - /// $ pulumi import tencentcloud:Apm/instance:Instance instance instance_id + /// $ pulumi import tencentcloud:Apm/instance:Instance example apm-IMVrxXl1K /// ``` /// [TencentcloudResourceType("tencentcloud:Apm/instance:Instance")] diff --git a/sdk/dotnet/Tencentcloud/Elasticsearch/Instance.cs b/sdk/dotnet/Tencentcloud/Elasticsearch/Instance.cs index bf67ec401..431fbe3e3 100644 --- a/sdk/dotnet/Tencentcloud/Elasticsearch/Instance.cs +++ b/sdk/dotnet/Tencentcloud/Elasticsearch/Instance.cs @@ -267,6 +267,12 @@ public partial class Instance : global::Pulumi.CustomResource [Output("instanceName")] public Output InstanceName { get; private set; } = null!; + /// + /// Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + /// + [Output("kibanaPublicAccess")] + public Output KibanaPublicAccess { get; private set; } = null!; + /// /// Kibana access URL. /// @@ -426,6 +432,12 @@ public sealed class InstanceArgs : global::Pulumi.ResourceArgs [Input("instanceName")] public Input? InstanceName { get; set; } + /// + /// Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + /// + [Input("kibanaPublicAccess")] + public Input? KibanaPublicAccess { get; set; } + /// /// License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. /// @@ -594,6 +606,12 @@ public sealed class InstanceState : global::Pulumi.ResourceArgs [Input("instanceName")] public Input? InstanceName { get; set; } + /// + /// Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + /// + [Input("kibanaPublicAccess")] + public Input? KibanaPublicAccess { get; set; } + /// /// Kibana access URL. /// diff --git a/sdk/dotnet/Tencentcloud/Mongodb/InstanceBackupRule.cs b/sdk/dotnet/Tencentcloud/Mongodb/InstanceBackupRule.cs index 1c9cbad49..ca02b4a3c 100644 --- a/sdk/dotnet/Tencentcloud/Mongodb/InstanceBackupRule.cs +++ b/sdk/dotnet/Tencentcloud/Mongodb/InstanceBackupRule.cs @@ -11,11 +11,11 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Mongodb { /// - /// Provides a resource to create mongodb backup rule + /// Provides a resource to create mongodb instance backup rule /// /// ## Import /// - /// mongodb backup_rule can be imported using the id, e.g. + /// mongodb instance backup rule can be imported using the id, e.g. /// /// ```sh /// $ pulumi import tencentcloud:Mongodb/instanceBackupRule:InstanceBackupRule backup_rule ${instanceId} diff --git a/sdk/dotnet/Tencentcloud/Monitor/TmpInstance.cs b/sdk/dotnet/Tencentcloud/Monitor/TmpInstance.cs index 8e03a831e..54544be75 100644 --- a/sdk/dotnet/Tencentcloud/Monitor/TmpInstance.cs +++ b/sdk/dotnet/Tencentcloud/Monitor/TmpInstance.cs @@ -38,7 +38,7 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Monitor /// CidrBlock = "10.0.1.0/24", /// }); /// - /// var foo = new Tencentcloud.Monitor.TmpInstance("foo", new() + /// var example = new Tencentcloud.Monitor.TmpInstance("example", new() /// { /// InstanceName = "tf-tmp-instance", /// VpcId = vpc.Id, @@ -60,7 +60,7 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Monitor /// monitor tmpInstance can be imported using the id, e.g. /// /// ```sh - /// $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance tmpInstance tmpInstance_id + /// $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance example prom-1uvo0tjm /// ``` /// [TencentcloudResourceType("tencentcloud:Monitor/tmpInstance:TmpInstance")] @@ -73,7 +73,7 @@ public partial class TmpInstance : global::Pulumi.CustomResource public Output ApiRootPath { get; private set; } = null!; /// - /// Data retention time. + /// Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. /// [Output("dataRetentionTime")] public Output DataRetentionTime { get; private set; } = null!; @@ -174,7 +174,7 @@ public static TmpInstance Get(string name, Input id, TmpInstanceState? s public sealed class TmpInstanceArgs : global::Pulumi.ResourceArgs { /// - /// Data retention time. + /// Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. /// [Input("dataRetentionTime", required: true)] public Input DataRetentionTime { get; set; } = null!; @@ -230,7 +230,7 @@ public sealed class TmpInstanceState : global::Pulumi.ResourceArgs public Input? ApiRootPath { get; set; } /// - /// Data retention time. + /// Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. /// [Input("dataRetentionTime")] public Input? DataRetentionTime { get; set; } diff --git a/sdk/dotnet/Tencentcloud/Postgresql/ReadonlyGroup.cs b/sdk/dotnet/Tencentcloud/Postgresql/ReadonlyGroup.cs index 2c2ab89ea..181e5ed00 100644 --- a/sdk/dotnet/Tencentcloud/Postgresql/ReadonlyGroup.cs +++ b/sdk/dotnet/Tencentcloud/Postgresql/ReadonlyGroup.cs @@ -24,22 +24,83 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Postgresql /// /// return await Deployment.RunAsync(() => /// { - /// var @group = new Tencentcloud.Postgresql.ReadonlyGroup("group", new() + /// var config = new Config(); + /// var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3"; + /// // create vpc + /// var vpc = new Tencentcloud.Vpc.Instance("vpc", new() /// { - /// MasterDbInstanceId = "postgres-gzg9jb2n", - /// MaxReplayLag = 100, - /// MaxReplayLatency = 512, - /// MinDelayEliminateReserve = 1, + /// CidrBlock = "10.0.0.0/16", + /// }); + /// + /// // create vpc subnet + /// var subnet = new Tencentcloud.Subnet.Instance("subnet", new() + /// { + /// AvailabilityZone = availabilityZone, + /// VpcId = vpc.Id, + /// CidrBlock = "10.0.20.0/28", + /// IsMulticast = false, + /// }); + /// + /// // create postgresql + /// var exampleInstance = new Tencentcloud.Postgresql.Instance("exampleInstance", new() + /// { + /// AvailabilityZone = availabilityZone, + /// ChargeType = "POSTPAID_BY_HOUR", + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// EngineVersion = "10.4", + /// RootUser = "root123", + /// RootPassword = "Root123$", + /// Charset = "UTF8", + /// ProjectId = 0, + /// Memory = 4, + /// Cpu = 2, + /// Storage = 50, + /// Tags = + /// { + /// { "test", "tf" }, + /// }, + /// }); + /// + /// // create security group + /// var exampleGroup = new Tencentcloud.Security.Group("exampleGroup", new() + /// { + /// Description = "sg desc.", + /// ProjectId = 0, + /// Tags = + /// { + /// { "example", "test" }, + /// }, + /// }); + /// + /// var exampleReadonlyGroup = new Tencentcloud.Postgresql.ReadonlyGroup("exampleReadonlyGroup", new() + /// { + /// MasterDbInstanceId = exampleInstance.Id, /// ProjectId = 0, + /// VpcId = vpc.Id, + /// SubnetId = subnet.Id, + /// SecurityGroupsIds = new[] + /// { + /// exampleGroup.Id, + /// }, /// ReplayLagEliminate = 1, /// ReplayLatencyEliminate = 1, - /// SubnetId = "subnet-enm92y0m", - /// VpcId = "vpc-86v957zb", + /// MaxReplayLag = 100, + /// MaxReplayLatency = 512, + /// MinDelayEliminateReserve = 1, /// }); /// /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ## Import + /// + /// postgresql readonly group can be imported, e.g. + /// + /// ```sh + /// $ pulumi import tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup example pgrogrp-lckioi2a + /// ``` /// [TencentcloudResourceType("tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup")] public partial class ReadonlyGroup : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqUser.cs b/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqUser.cs index a1e0c8328..88e2d2c79 100644 --- a/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqUser.cs +++ b/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqUser.cs @@ -13,35 +13,13 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq /// /// Provides a resource to create a tdmq rabbitmq_user /// - /// ## Example Usage + /// ## Import /// - /// <!--Start PulumiCodeChooser --> - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud; + /// tdmq rabbitmq_user can be imported using the id, e.g. /// - /// return await Deployment.RunAsync(() => - /// { - /// var rabbitmqUser = new Tencentcloud.Tdmq.RabbitmqUser("rabbitmqUser", new() - /// { - /// Description = "test user", - /// InstanceId = "amqp-kzbe8p3n", - /// MaxChannels = 3, - /// MaxConnections = 3, - /// Password = "asdf1234", - /// Tags = new[] - /// { - /// "management", - /// "monitoring", - /// }, - /// User = "keep-user", - /// }); - /// - /// }); + /// ```sh + /// $ pulumi import tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser example amqp-8xzx822q#tf-example-user /// ``` - /// <!--End PulumiCodeChooser --> /// [TencentcloudResourceType("tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser")] public partial class RabbitmqUser : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqVirtualHost.cs b/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqVirtualHost.cs index 19aa0a2ed..75050b0a3 100644 --- a/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqVirtualHost.cs +++ b/sdk/dotnet/Tencentcloud/Tdmq/RabbitmqVirtualHost.cs @@ -13,28 +13,13 @@ namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq /// /// Provides a resource to create a tdmq rabbitmq_virtual_host /// - /// ## Example Usage + /// ## Import /// - /// <!--Start PulumiCodeChooser --> - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud; + /// tdmq rabbitmq_virtual_host can be imported using the id, e.g. /// - /// return await Deployment.RunAsync(() => - /// { - /// var rabbitmqVirtualHost = new Tencentcloud.Tdmq.RabbitmqVirtualHost("rabbitmqVirtualHost", new() - /// { - /// Description = "desc", - /// InstanceId = "amqp-kzbe8p3n", - /// TraceFlag = false, - /// VirtualHost = "vh-test-1", - /// }); - /// - /// }); + /// ```sh + /// $ pulumi import tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost example amqp-pbavw2wd#tf-example-vhost /// ``` - /// <!--End PulumiCodeChooser --> /// [TencentcloudResourceType("tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost")] public partial class RabbitmqVirtualHost : global::Pulumi.CustomResource @@ -55,7 +40,7 @@ public partial class RabbitmqVirtualHost : global::Pulumi.CustomResource /// Message track switch, true is on, false is off, default is off. /// [Output("traceFlag")] - public Output TraceFlag { get; private set; } = null!; + public Output TraceFlag { get; private set; } = null!; /// /// vhost name. diff --git a/sdk/go/tencentcloud/apm/instance.go b/sdk/go/tencentcloud/apm/instance.go index 07ae9365a..4c3274fe4 100644 --- a/sdk/go/tencentcloud/apm/instance.go +++ b/sdk/go/tencentcloud/apm/instance.go @@ -30,9 +30,9 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Apm.NewInstance(ctx, "instance", &Apm.InstanceArgs{ -// Description: pulumi.String("for terraform test"), -// SpanDailyCounters: pulumi.Int(20), +// _, err := Apm.NewInstance(ctx, "example", &Apm.InstanceArgs{ +// Description: pulumi.String("desc."), +// SpanDailyCounters: pulumi.Int(0), // Tags: pulumi.Map{ // "createdBy": pulumi.Any("terraform"), // }, @@ -53,7 +53,7 @@ import ( // apm instance can be imported using the id, e.g. // // ```sh -// $ pulumi import tencentcloud:Apm/instance:Instance instance instance_id +// $ pulumi import tencentcloud:Apm/instance:Instance example apm-IMVrxXl1K // ``` type Instance struct { pulumi.CustomResourceState diff --git a/sdk/go/tencentcloud/elasticsearch/instance.go b/sdk/go/tencentcloud/elasticsearch/instance.go index 400ba6e79..b1dbecad7 100644 --- a/sdk/go/tencentcloud/elasticsearch/instance.go +++ b/sdk/go/tencentcloud/elasticsearch/instance.go @@ -232,6 +232,8 @@ type Instance struct { EsAcl InstanceEsAclOutput `pulumi:"esAcl"` // Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"` + // Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + KibanaPublicAccess pulumi.StringOutput `pulumi:"kibanaPublicAccess"` // Kibana access URL. KibanaUrl pulumi.StringOutput `pulumi:"kibanaUrl"` // License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. @@ -327,6 +329,8 @@ type instanceState struct { EsAcl *InstanceEsAcl `pulumi:"esAcl"` // Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). InstanceName *string `pulumi:"instanceName"` + // Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + KibanaPublicAccess *string `pulumi:"kibanaPublicAccess"` // Kibana access URL. KibanaUrl *string `pulumi:"kibanaUrl"` // License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. @@ -374,6 +378,8 @@ type InstanceState struct { EsAcl InstanceEsAclPtrInput // Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). InstanceName pulumi.StringPtrInput + // Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + KibanaPublicAccess pulumi.StringPtrInput // Kibana access URL. KibanaUrl pulumi.StringPtrInput // License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. @@ -417,6 +423,8 @@ type instanceArgs struct { EsAcl *InstanceEsAcl `pulumi:"esAcl"` // Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). InstanceName *string `pulumi:"instanceName"` + // Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + KibanaPublicAccess *string `pulumi:"kibanaPublicAccess"` // License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. LicenseType *string `pulumi:"licenseType"` // Details of AZs in multi-AZ deployment mode (which is required when deployMode is `1`). @@ -455,6 +463,8 @@ type InstanceArgs struct { EsAcl InstanceEsAclPtrInput // Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). InstanceName pulumi.StringPtrInput + // Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + KibanaPublicAccess pulumi.StringPtrInput // License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. LicenseType pulumi.StringPtrInput // Details of AZs in multi-AZ deployment mode (which is required when deployMode is `1`). @@ -619,6 +629,11 @@ func (o InstanceOutput) InstanceName() pulumi.StringPtrOutput { return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.InstanceName }).(pulumi.StringPtrOutput) } +// Kibana public network access status. Valid values are `OPEN` and `CLOSE`. +func (o InstanceOutput) KibanaPublicAccess() pulumi.StringOutput { + return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.KibanaPublicAccess }).(pulumi.StringOutput) +} + // Kibana access URL. func (o InstanceOutput) KibanaUrl() pulumi.StringOutput { return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.KibanaUrl }).(pulumi.StringOutput) diff --git a/sdk/go/tencentcloud/mongodb/instanceBackupRule.go b/sdk/go/tencentcloud/mongodb/instanceBackupRule.go index 98de22eff..d406c1147 100644 --- a/sdk/go/tencentcloud/mongodb/instanceBackupRule.go +++ b/sdk/go/tencentcloud/mongodb/instanceBackupRule.go @@ -12,11 +12,11 @@ import ( "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/internal" ) -// Provides a resource to create mongodb backup rule +// Provides a resource to create mongodb instance backup rule // // ## Import // -// mongodb backup_rule can be imported using the id, e.g. +// mongodb instance backup rule can be imported using the id, e.g. // // ```sh // $ pulumi import tencentcloud:Mongodb/instanceBackupRule:InstanceBackupRule backup_rule ${instanceId} diff --git a/sdk/go/tencentcloud/monitor/tmpInstance.go b/sdk/go/tencentcloud/monitor/tmpInstance.go index 76bb87c22..1e4a48b84 100644 --- a/sdk/go/tencentcloud/monitor/tmpInstance.go +++ b/sdk/go/tencentcloud/monitor/tmpInstance.go @@ -51,7 +51,7 @@ import ( // if err != nil { // return err // } -// _, err = Monitor.NewTmpInstance(ctx, "foo", &Monitor.TmpInstanceArgs{ +// _, err = Monitor.NewTmpInstance(ctx, "example", &Monitor.TmpInstanceArgs{ // InstanceName: pulumi.String("tf-tmp-instance"), // VpcId: vpc.ID(), // SubnetId: subnet.ID(), @@ -76,14 +76,14 @@ import ( // monitor tmpInstance can be imported using the id, e.g. // // ```sh -// $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance tmpInstance tmpInstance_id +// $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance example prom-1uvo0tjm // ``` type TmpInstance struct { pulumi.CustomResourceState // Prometheus HTTP API root address. ApiRootPath pulumi.StringOutput `pulumi:"apiRootPath"` - // Data retention time. + // Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. DataRetentionTime pulumi.IntOutput `pulumi:"dataRetentionTime"` // Instance name. InstanceName pulumi.StringOutput `pulumi:"instanceName"` @@ -150,7 +150,7 @@ func GetTmpInstance(ctx *pulumi.Context, type tmpInstanceState struct { // Prometheus HTTP API root address. ApiRootPath *string `pulumi:"apiRootPath"` - // Data retention time. + // Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. DataRetentionTime *int `pulumi:"dataRetentionTime"` // Instance name. InstanceName *string `pulumi:"instanceName"` @@ -173,7 +173,7 @@ type tmpInstanceState struct { type TmpInstanceState struct { // Prometheus HTTP API root address. ApiRootPath pulumi.StringPtrInput - // Data retention time. + // Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. DataRetentionTime pulumi.IntPtrInput // Instance name. InstanceName pulumi.StringPtrInput @@ -198,7 +198,7 @@ func (TmpInstanceState) ElementType() reflect.Type { } type tmpInstanceArgs struct { - // Data retention time. + // Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. DataRetentionTime int `pulumi:"dataRetentionTime"` // Instance name. InstanceName string `pulumi:"instanceName"` @@ -214,7 +214,7 @@ type tmpInstanceArgs struct { // The set of arguments for constructing a TmpInstance resource. type TmpInstanceArgs struct { - // Data retention time. + // Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. DataRetentionTime pulumi.IntInput // Instance name. InstanceName pulumi.StringInput @@ -320,7 +320,7 @@ func (o TmpInstanceOutput) ApiRootPath() pulumi.StringOutput { return o.ApplyT(func(v *TmpInstance) pulumi.StringOutput { return v.ApiRootPath }).(pulumi.StringOutput) } -// Data retention time. +// Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. func (o TmpInstanceOutput) DataRetentionTime() pulumi.IntOutput { return o.ApplyT(func(v *TmpInstance) pulumi.IntOutput { return v.DataRetentionTime }).(pulumi.IntOutput) } diff --git a/sdk/go/tencentcloud/postgresql/readonlyGroup.go b/sdk/go/tencentcloud/postgresql/readonlyGroup.go index b73244406..6bd8c9666 100644 --- a/sdk/go/tencentcloud/postgresql/readonlyGroup.go +++ b/sdk/go/tencentcloud/postgresql/readonlyGroup.go @@ -23,22 +23,83 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" // "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Postgresql" +// "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 := Postgresql.NewReadonlyGroup(ctx, "group", &Postgresql.ReadonlyGroupArgs{ -// MasterDbInstanceId: pulumi.String("postgres-gzg9jb2n"), +// cfg := config.New(ctx, "") +// availabilityZone := "ap-guangzhou-3" +// if param := cfg.Get("availabilityZone"); param != "" { +// availabilityZone = param +// } +// // 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{ +// AvailabilityZone: pulumi.String(availabilityZone), +// VpcId: vpc.ID(), +// CidrBlock: pulumi.String("10.0.20.0/28"), +// IsMulticast: pulumi.Bool(false), +// }) +// if err != nil { +// return err +// } +// // create postgresql +// exampleInstance, err := Postgresql.NewInstance(ctx, "exampleInstance", &Postgresql.InstanceArgs{ +// AvailabilityZone: pulumi.String(availabilityZone), +// ChargeType: pulumi.String("POSTPAID_BY_HOUR"), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// EngineVersion: pulumi.String("10.4"), +// RootUser: pulumi.String("root123"), +// RootPassword: pulumi.String("Root123$"), +// Charset: pulumi.String("UTF8"), +// ProjectId: pulumi.Int(0), +// Memory: pulumi.Int(4), +// Cpu: pulumi.Int(2), +// Storage: pulumi.Int(50), +// Tags: pulumi.Map{ +// "test": pulumi.Any("tf"), +// }, +// }) +// 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 +// } +// _, err = Postgresql.NewReadonlyGroup(ctx, "exampleReadonlyGroup", &Postgresql.ReadonlyGroupArgs{ +// MasterDbInstanceId: exampleInstance.ID(), +// ProjectId: pulumi.Int(0), +// VpcId: vpc.ID(), +// SubnetId: subnet.ID(), +// SecurityGroupsIds: pulumi.StringArray{ +// exampleGroup.ID(), +// }, +// ReplayLagEliminate: pulumi.Int(1), +// ReplayLatencyEliminate: pulumi.Int(1), // MaxReplayLag: pulumi.Int(100), // MaxReplayLatency: pulumi.Int(512), // MinDelayEliminateReserve: pulumi.Int(1), -// ProjectId: pulumi.Int(0), -// ReplayLagEliminate: pulumi.Int(1), -// ReplayLatencyEliminate: pulumi.Int(1), -// SubnetId: pulumi.String("subnet-enm92y0m"), -// VpcId: pulumi.String("vpc-86v957zb"), // }) // if err != nil { // return err @@ -49,6 +110,14 @@ import ( // // ``` // +// +// ## Import +// +// postgresql readonly group can be imported, e.g. +// +// ```sh +// $ pulumi import tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup example pgrogrp-lckioi2a +// ``` type ReadonlyGroup struct { pulumi.CustomResourceState diff --git a/sdk/go/tencentcloud/tdmq/rabbitmqUser.go b/sdk/go/tencentcloud/tdmq/rabbitmqUser.go index 3c0c6937c..4bd5c4f61 100644 --- a/sdk/go/tencentcloud/tdmq/rabbitmqUser.go +++ b/sdk/go/tencentcloud/tdmq/rabbitmqUser.go @@ -14,42 +14,13 @@ import ( // Provides a resource to create a tdmq rabbitmqUser // -// ## Example Usage +// ## Import // -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tdmq" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Tdmq.NewRabbitmqUser(ctx, "rabbitmqUser", &Tdmq.RabbitmqUserArgs{ -// Description: pulumi.String("test user"), -// InstanceId: pulumi.String("amqp-kzbe8p3n"), -// MaxChannels: pulumi.Int(3), -// MaxConnections: pulumi.Int(3), -// Password: pulumi.String("asdf1234"), -// Tags: pulumi.StringArray{ -// pulumi.String("management"), -// pulumi.String("monitoring"), -// }, -// User: pulumi.String("keep-user"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// tdmq rabbitmq_user can be imported using the id, e.g. // +// ```sh +// $ pulumi import tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser example amqp-8xzx822q#tf-example-user // ``` -// type RabbitmqUser struct { pulumi.CustomResourceState diff --git a/sdk/go/tencentcloud/tdmq/rabbitmqVirtualHost.go b/sdk/go/tencentcloud/tdmq/rabbitmqVirtualHost.go index 55d50aef3..7c0336a5f 100644 --- a/sdk/go/tencentcloud/tdmq/rabbitmqVirtualHost.go +++ b/sdk/go/tencentcloud/tdmq/rabbitmqVirtualHost.go @@ -14,36 +14,13 @@ import ( // Provides a resource to create a tdmq rabbitmqVirtualHost // -// ## Example Usage +// ## Import // -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tdmq" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := Tdmq.NewRabbitmqVirtualHost(ctx, "rabbitmqVirtualHost", &Tdmq.RabbitmqVirtualHostArgs{ -// Description: pulumi.String("desc"), -// InstanceId: pulumi.String("amqp-kzbe8p3n"), -// TraceFlag: pulumi.Bool(false), -// VirtualHost: pulumi.String("vh-test-1"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// tdmq rabbitmq_virtual_host can be imported using the id, e.g. // +// ```sh +// $ pulumi import tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost example amqp-pbavw2wd#tf-example-vhost // ``` -// type RabbitmqVirtualHost struct { pulumi.CustomResourceState @@ -52,7 +29,7 @@ type RabbitmqVirtualHost struct { // Cluster instance ID. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // Message track switch, true is on, false is off, default is off. - TraceFlag pulumi.BoolPtrOutput `pulumi:"traceFlag"` + TraceFlag pulumi.BoolOutput `pulumi:"traceFlag"` // vhost name. VirtualHost pulumi.StringOutput `pulumi:"virtualHost"` } @@ -239,8 +216,8 @@ func (o RabbitmqVirtualHostOutput) InstanceId() pulumi.StringOutput { } // Message track switch, true is on, false is off, default is off. -func (o RabbitmqVirtualHostOutput) TraceFlag() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RabbitmqVirtualHost) pulumi.BoolPtrOutput { return v.TraceFlag }).(pulumi.BoolPtrOutput) +func (o RabbitmqVirtualHostOutput) TraceFlag() pulumi.BoolOutput { + return o.ApplyT(func(v *RabbitmqVirtualHost) pulumi.BoolOutput { return v.TraceFlag }).(pulumi.BoolOutput) } // vhost name. diff --git a/sdk/nodejs/apm/instance.ts b/sdk/nodejs/apm/instance.ts index fcc7342c2..e03482f6a 100644 --- a/sdk/nodejs/apm/instance.ts +++ b/sdk/nodejs/apm/instance.ts @@ -16,9 +16,9 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const instance = new tencentcloud.apm.Instance("instance", { - * description: "for terraform test", - * spanDailyCounters: 20, + * const example = new tencentcloud.apm.Instance("example", { + * description: "desc.", + * spanDailyCounters: 0, * tags: { * createdBy: "terraform", * }, @@ -32,7 +32,7 @@ import * as utilities from "../utilities"; * apm instance can be imported using the id, e.g. * * ```sh - * $ pulumi import tencentcloud:Apm/instance:Instance instance instance_id + * $ pulumi import tencentcloud:Apm/instance:Instance example apm-IMVrxXl1K * ``` */ export class Instance extends pulumi.CustomResource { diff --git a/sdk/nodejs/elasticsearch/instance.ts b/sdk/nodejs/elasticsearch/instance.ts index 7060b1b78..4fd1d70fa 100644 --- a/sdk/nodejs/elasticsearch/instance.ts +++ b/sdk/nodejs/elasticsearch/instance.ts @@ -206,6 +206,10 @@ export class Instance extends pulumi.CustomResource { * Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). */ public readonly instanceName!: pulumi.Output; + /** + * Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + */ + public readonly kibanaPublicAccess!: pulumi.Output; /** * Kibana access URL. */ @@ -249,7 +253,7 @@ export class Instance extends pulumi.CustomResource { /** * Visual node configuration. */ - public readonly webNodeTypeInfos!: pulumi.Output; + public readonly webNodeTypeInfos!: pulumi.Output; /** * Create a Instance resource with the given unique name, arguments, and options. @@ -275,6 +279,7 @@ export class Instance extends pulumi.CustomResource { resourceInputs["elasticsearchVip"] = state ? state.elasticsearchVip : undefined; resourceInputs["esAcl"] = state ? state.esAcl : undefined; resourceInputs["instanceName"] = state ? state.instanceName : undefined; + resourceInputs["kibanaPublicAccess"] = state ? state.kibanaPublicAccess : undefined; resourceInputs["kibanaUrl"] = state ? state.kibanaUrl : undefined; resourceInputs["licenseType"] = state ? state.licenseType : undefined; resourceInputs["multiZoneInfos"] = state ? state.multiZoneInfos : undefined; @@ -307,6 +312,7 @@ export class Instance extends pulumi.CustomResource { resourceInputs["deployMode"] = args ? args.deployMode : undefined; resourceInputs["esAcl"] = args ? args.esAcl : undefined; resourceInputs["instanceName"] = args ? args.instanceName : undefined; + resourceInputs["kibanaPublicAccess"] = args ? args.kibanaPublicAccess : undefined; resourceInputs["licenseType"] = args ? args.licenseType : undefined; resourceInputs["multiZoneInfos"] = args ? args.multiZoneInfos : undefined; resourceInputs["nodeInfoLists"] = args ? args.nodeInfoLists : undefined; @@ -378,6 +384,10 @@ export interface InstanceState { * Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). */ instanceName?: pulumi.Input; + /** + * Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + */ + kibanaPublicAccess?: pulumi.Input; /** * Kibana access URL. */ @@ -456,6 +466,10 @@ export interface InstanceArgs { * Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). */ instanceName?: pulumi.Input; + /** + * Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + */ + kibanaPublicAccess?: pulumi.Input; /** * License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. */ diff --git a/sdk/nodejs/mongodb/instanceBackupRule.ts b/sdk/nodejs/mongodb/instanceBackupRule.ts index ef5b8ac5f..8f00249c0 100644 --- a/sdk/nodejs/mongodb/instanceBackupRule.ts +++ b/sdk/nodejs/mongodb/instanceBackupRule.ts @@ -5,11 +5,11 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** - * Provides a resource to create mongodb backup rule + * Provides a resource to create mongodb instance backup rule * * ## Import * - * mongodb backup_rule can be imported using the id, e.g. + * mongodb instance backup rule can be imported using the id, e.g. * * ```sh * $ pulumi import tencentcloud:Mongodb/instanceBackupRule:InstanceBackupRule backup_rule ${instanceId} diff --git a/sdk/nodejs/monitor/tmpInstance.ts b/sdk/nodejs/monitor/tmpInstance.ts index 1fa8ab27e..4c3e3f4ab 100644 --- a/sdk/nodejs/monitor/tmpInstance.ts +++ b/sdk/nodejs/monitor/tmpInstance.ts @@ -22,7 +22,7 @@ import * as utilities from "../utilities"; * availabilityZone: availabilityZone, * cidrBlock: "10.0.1.0/24", * }); - * const foo = new tencentcloud.monitor.TmpInstance("foo", { + * const example = new tencentcloud.monitor.TmpInstance("example", { * instanceName: "tf-tmp-instance", * vpcId: vpc.id, * subnetId: subnet.id, @@ -40,7 +40,7 @@ import * as utilities from "../utilities"; * monitor tmpInstance can be imported using the id, e.g. * * ```sh - * $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance tmpInstance tmpInstance_id + * $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance example prom-1uvo0tjm * ``` */ export class TmpInstance extends pulumi.CustomResource { @@ -76,7 +76,7 @@ export class TmpInstance extends pulumi.CustomResource { */ public /*out*/ readonly apiRootPath!: pulumi.Output; /** - * Data retention time. + * Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. */ public readonly dataRetentionTime!: pulumi.Output; /** @@ -177,7 +177,7 @@ export interface TmpInstanceState { */ apiRootPath?: pulumi.Input; /** - * Data retention time. + * Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. */ dataRetentionTime?: pulumi.Input; /** @@ -219,7 +219,7 @@ export interface TmpInstanceState { */ export interface TmpInstanceArgs { /** - * Data retention time. + * Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. */ dataRetentionTime: pulumi.Input; /** diff --git a/sdk/nodejs/postgresql/readonlyGroup.ts b/sdk/nodejs/postgresql/readonlyGroup.ts index 237f2fd7a..220dc5ed4 100644 --- a/sdk/nodejs/postgresql/readonlyGroup.ts +++ b/sdk/nodejs/postgresql/readonlyGroup.ts @@ -16,19 +16,65 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as tencentcloud from "@tencentcloud_iac/pulumi"; * - * const group = new tencentcloud.postgresql.ReadonlyGroup("group", { - * masterDbInstanceId: "postgres-gzg9jb2n", - * maxReplayLag: 100, - * maxReplayLatency: 512, - * minDelayEliminateReserve: 1, + * const config = new pulumi.Config(); + * const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3"; + * // 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", { + * availabilityZone: availabilityZone, + * vpcId: vpc.id, + * cidrBlock: "10.0.20.0/28", + * isMulticast: false, + * }); + * // create postgresql + * const exampleInstance = new tencentcloud.postgresql.Instance("exampleInstance", { + * availabilityZone: availabilityZone, + * chargeType: "POSTPAID_BY_HOUR", + * vpcId: vpc.id, + * subnetId: subnet.id, + * engineVersion: "10.4", + * rootUser: "root123", + * rootPassword: "Root123$", + * charset: "UTF8", + * projectId: 0, + * memory: 4, + * cpu: 2, + * storage: 50, + * tags: { + * test: "tf", + * }, + * }); + * // create security group + * const exampleGroup = new tencentcloud.security.Group("exampleGroup", { + * description: "sg desc.", + * projectId: 0, + * tags: { + * example: "test", + * }, + * }); + * const exampleReadonlyGroup = new tencentcloud.postgresql.ReadonlyGroup("exampleReadonlyGroup", { + * masterDbInstanceId: exampleInstance.id, * projectId: 0, + * vpcId: vpc.id, + * subnetId: subnet.id, + * securityGroupsIds: [exampleGroup.id], * replayLagEliminate: 1, * replayLatencyEliminate: 1, - * subnetId: "subnet-enm92y0m", - * vpcId: "vpc-86v957zb", + * maxReplayLag: 100, + * maxReplayLatency: 512, + * minDelayEliminateReserve: 1, * }); * ``` * + * + * ## Import + * + * postgresql readonly group can be imported, e.g. + * + * ```sh + * $ pulumi import tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup example pgrogrp-lckioi2a + * ``` */ export class ReadonlyGroup extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/tdmq/rabbitmqUser.ts b/sdk/nodejs/tdmq/rabbitmqUser.ts index 6d8d103fb..4cb638673 100644 --- a/sdk/nodejs/tdmq/rabbitmqUser.ts +++ b/sdk/nodejs/tdmq/rabbitmqUser.ts @@ -7,27 +7,13 @@ import * as utilities from "../utilities"; /** * Provides a resource to create a tdmq rabbitmqUser * - * ## Example Usage + * ## Import * - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as tencentcloud from "@tencentcloud_iac/pulumi"; + * tdmq rabbitmq_user can be imported using the id, e.g. * - * const rabbitmqUser = new tencentcloud.tdmq.RabbitmqUser("rabbitmqUser", { - * description: "test user", - * instanceId: "amqp-kzbe8p3n", - * maxChannels: 3, - * maxConnections: 3, - * password: "asdf1234", - * tags: [ - * "management", - * "monitoring", - * ], - * user: "keep-user", - * }); + * ```sh + * $ pulumi import tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser example amqp-8xzx822q#tf-example-user * ``` - * */ export class RabbitmqUser extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/tdmq/rabbitmqVirtualHost.ts b/sdk/nodejs/tdmq/rabbitmqVirtualHost.ts index 2fb9893eb..d90c61902 100644 --- a/sdk/nodejs/tdmq/rabbitmqVirtualHost.ts +++ b/sdk/nodejs/tdmq/rabbitmqVirtualHost.ts @@ -7,21 +7,13 @@ import * as utilities from "../utilities"; /** * Provides a resource to create a tdmq rabbitmqVirtualHost * - * ## Example Usage + * ## Import * - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as tencentcloud from "@tencentcloud_iac/pulumi"; + * tdmq rabbitmq_virtual_host can be imported using the id, e.g. * - * const rabbitmqVirtualHost = new tencentcloud.tdmq.RabbitmqVirtualHost("rabbitmqVirtualHost", { - * description: "desc", - * instanceId: "amqp-kzbe8p3n", - * traceFlag: false, - * virtualHost: "vh-test-1", - * }); + * ```sh + * $ pulumi import tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost example amqp-pbavw2wd#tf-example-vhost * ``` - * */ export class RabbitmqVirtualHost extends pulumi.CustomResource { /** @@ -62,7 +54,7 @@ export class RabbitmqVirtualHost extends pulumi.CustomResource { /** * Message track switch, true is on, false is off, default is off. */ - public readonly traceFlag!: pulumi.Output; + public readonly traceFlag!: pulumi.Output; /** * vhost name. */ diff --git a/sdk/python/tencentcloud_iac_pulumi/apm/instance.py b/sdk/python/tencentcloud_iac_pulumi/apm/instance.py index 40d0e6470..d4d76aa12 100644 --- a/sdk/python/tencentcloud_iac_pulumi/apm/instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/apm/instance.py @@ -243,9 +243,9 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - instance = tencentcloud.apm.Instance("instance", - description="for terraform test", - span_daily_counters=20, + example = tencentcloud.apm.Instance("example", + description="desc.", + span_daily_counters=0, tags={ "createdBy": "terraform", }, @@ -258,7 +258,7 @@ def __init__(__self__, apm instance can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Apm/instance:Instance instance instance_id + $ pulumi import tencentcloud:Apm/instance:Instance example apm-IMVrxXl1K ``` :param str resource_name: The name of the resource. @@ -288,9 +288,9 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - instance = tencentcloud.apm.Instance("instance", - description="for terraform test", - span_daily_counters=20, + example = tencentcloud.apm.Instance("example", + description="desc.", + span_daily_counters=0, tags={ "createdBy": "terraform", }, @@ -303,7 +303,7 @@ def __init__(__self__, apm instance can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Apm/instance:Instance instance instance_id + $ pulumi import tencentcloud:Apm/instance:Instance example apm-IMVrxXl1K ``` :param str resource_name: The name of the resource. diff --git a/sdk/python/tencentcloud_iac_pulumi/elasticsearch/instance.py b/sdk/python/tencentcloud_iac_pulumi/elasticsearch/instance.py index ffb166be3..fc487d3fa 100644 --- a/sdk/python/tencentcloud_iac_pulumi/elasticsearch/instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/elasticsearch/instance.py @@ -27,6 +27,7 @@ def __init__(__self__, *, deploy_mode: Optional[pulumi.Input[int]] = None, es_acl: Optional[pulumi.Input['InstanceEsAclArgs']] = None, instance_name: Optional[pulumi.Input[str]] = None, + kibana_public_access: Optional[pulumi.Input[str]] = None, license_type: Optional[pulumi.Input[str]] = None, multi_zone_infos: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceMultiZoneInfoArgs']]]] = None, renew_flag: Optional[pulumi.Input[str]] = None, @@ -46,6 +47,7 @@ def __init__(__self__, *, :param pulumi.Input[int] deploy_mode: Cluster deployment mode. Valid values are `0` and `1`. `0` is single-AZ deployment, and `1` is multi-AZ deployment. Default value is `0`. :param pulumi.Input['InstanceEsAclArgs'] es_acl: Kibana Access Control Configuration. :param pulumi.Input[str] instance_name: Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). + :param pulumi.Input[str] kibana_public_access: Kibana public network access status. Valid values are `OPEN` and `CLOSE`. :param pulumi.Input[str] license_type: License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. :param pulumi.Input[Sequence[pulumi.Input['InstanceMultiZoneInfoArgs']]] multi_zone_infos: Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`). :param pulumi.Input[str] renew_flag: When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `RENEW_FLAG_AUTO` and `RENEW_FLAG_MANUAL`. NOTE: it only works when charge_type is set to `PREPAID`. @@ -71,6 +73,8 @@ def __init__(__self__, *, pulumi.set(__self__, "es_acl", es_acl) if instance_name is not None: pulumi.set(__self__, "instance_name", instance_name) + if kibana_public_access is not None: + pulumi.set(__self__, "kibana_public_access", kibana_public_access) if license_type is not None: pulumi.set(__self__, "license_type", license_type) if multi_zone_infos is not None: @@ -216,6 +220,18 @@ def instance_name(self) -> Optional[pulumi.Input[str]]: def instance_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "instance_name", value) + @property + @pulumi.getter(name="kibanaPublicAccess") + def kibana_public_access(self) -> Optional[pulumi.Input[str]]: + """ + Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + """ + return pulumi.get(self, "kibana_public_access") + + @kibana_public_access.setter + def kibana_public_access(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kibana_public_access", value) + @property @pulumi.getter(name="licenseType") def license_type(self) -> Optional[pulumi.Input[str]]: @@ -303,6 +319,7 @@ def __init__(__self__, *, elasticsearch_vip: Optional[pulumi.Input[str]] = None, es_acl: Optional[pulumi.Input['InstanceEsAclArgs']] = None, instance_name: Optional[pulumi.Input[str]] = None, + kibana_public_access: Optional[pulumi.Input[str]] = None, kibana_url: Optional[pulumi.Input[str]] = None, license_type: Optional[pulumi.Input[str]] = None, multi_zone_infos: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceMultiZoneInfoArgs']]]] = None, @@ -327,6 +344,7 @@ def __init__(__self__, *, :param pulumi.Input[str] elasticsearch_vip: Elasticsearch VIP. :param pulumi.Input['InstanceEsAclArgs'] es_acl: Kibana Access Control Configuration. :param pulumi.Input[str] instance_name: Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). + :param pulumi.Input[str] kibana_public_access: Kibana public network access status. Valid values are `OPEN` and `CLOSE`. :param pulumi.Input[str] kibana_url: Kibana access URL. :param pulumi.Input[str] license_type: License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. :param pulumi.Input[Sequence[pulumi.Input['InstanceMultiZoneInfoArgs']]] multi_zone_infos: Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`). @@ -361,6 +379,8 @@ def __init__(__self__, *, pulumi.set(__self__, "es_acl", es_acl) if instance_name is not None: pulumi.set(__self__, "instance_name", instance_name) + if kibana_public_access is not None: + pulumi.set(__self__, "kibana_public_access", kibana_public_access) if kibana_url is not None: pulumi.set(__self__, "kibana_url", kibana_url) if license_type is not None: @@ -516,6 +536,18 @@ def instance_name(self) -> Optional[pulumi.Input[str]]: def instance_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "instance_name", value) + @property + @pulumi.getter(name="kibanaPublicAccess") + def kibana_public_access(self) -> Optional[pulumi.Input[str]]: + """ + Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + """ + return pulumi.get(self, "kibana_public_access") + + @kibana_public_access.setter + def kibana_public_access(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kibana_public_access", value) + @property @pulumi.getter(name="kibanaUrl") def kibana_url(self) -> Optional[pulumi.Input[str]]: @@ -661,6 +693,7 @@ def __init__(__self__, deploy_mode: Optional[pulumi.Input[int]] = None, es_acl: Optional[pulumi.Input[pulumi.InputType['InstanceEsAclArgs']]] = None, instance_name: Optional[pulumi.Input[str]] = None, + kibana_public_access: Optional[pulumi.Input[str]] = None, license_type: Optional[pulumi.Input[str]] = None, multi_zone_infos: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceMultiZoneInfoArgs']]]]] = None, node_info_lists: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNodeInfoListArgs']]]]] = None, @@ -800,6 +833,7 @@ def __init__(__self__, :param pulumi.Input[int] deploy_mode: Cluster deployment mode. Valid values are `0` and `1`. `0` is single-AZ deployment, and `1` is multi-AZ deployment. Default value is `0`. :param pulumi.Input[pulumi.InputType['InstanceEsAclArgs']] es_acl: Kibana Access Control Configuration. :param pulumi.Input[str] instance_name: Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). + :param pulumi.Input[str] kibana_public_access: Kibana public network access status. Valid values are `OPEN` and `CLOSE`. :param pulumi.Input[str] license_type: License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceMultiZoneInfoArgs']]]] multi_zone_infos: Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNodeInfoListArgs']]]] node_info_lists: Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size. @@ -958,6 +992,7 @@ def _internal_init(__self__, deploy_mode: Optional[pulumi.Input[int]] = None, es_acl: Optional[pulumi.Input[pulumi.InputType['InstanceEsAclArgs']]] = None, instance_name: Optional[pulumi.Input[str]] = None, + kibana_public_access: Optional[pulumi.Input[str]] = None, license_type: Optional[pulumi.Input[str]] = None, multi_zone_infos: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceMultiZoneInfoArgs']]]]] = None, node_info_lists: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNodeInfoListArgs']]]]] = None, @@ -984,6 +1019,7 @@ def _internal_init(__self__, __props__.__dict__["deploy_mode"] = deploy_mode __props__.__dict__["es_acl"] = es_acl __props__.__dict__["instance_name"] = instance_name + __props__.__dict__["kibana_public_access"] = kibana_public_access __props__.__dict__["license_type"] = license_type __props__.__dict__["multi_zone_infos"] = multi_zone_infos if node_info_lists is None and not opts.urn: @@ -1030,6 +1066,7 @@ def get(resource_name: str, elasticsearch_vip: Optional[pulumi.Input[str]] = None, es_acl: Optional[pulumi.Input[pulumi.InputType['InstanceEsAclArgs']]] = None, instance_name: Optional[pulumi.Input[str]] = None, + kibana_public_access: Optional[pulumi.Input[str]] = None, kibana_url: Optional[pulumi.Input[str]] = None, license_type: Optional[pulumi.Input[str]] = None, multi_zone_infos: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceMultiZoneInfoArgs']]]]] = None, @@ -1059,6 +1096,7 @@ def get(resource_name: str, :param pulumi.Input[str] elasticsearch_vip: Elasticsearch VIP. :param pulumi.Input[pulumi.InputType['InstanceEsAclArgs']] es_acl: Kibana Access Control Configuration. :param pulumi.Input[str] instance_name: Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_). + :param pulumi.Input[str] kibana_public_access: Kibana public network access status. Valid values are `OPEN` and `CLOSE`. :param pulumi.Input[str] kibana_url: Kibana access URL. :param pulumi.Input[str] license_type: License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceMultiZoneInfoArgs']]]] multi_zone_infos: Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`). @@ -1086,6 +1124,7 @@ def get(resource_name: str, __props__.__dict__["elasticsearch_vip"] = elasticsearch_vip __props__.__dict__["es_acl"] = es_acl __props__.__dict__["instance_name"] = instance_name + __props__.__dict__["kibana_public_access"] = kibana_public_access __props__.__dict__["kibana_url"] = kibana_url __props__.__dict__["license_type"] = license_type __props__.__dict__["multi_zone_infos"] = multi_zone_infos @@ -1187,6 +1226,14 @@ def instance_name(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "instance_name") + @property + @pulumi.getter(name="kibanaPublicAccess") + def kibana_public_access(self) -> pulumi.Output[str]: + """ + Kibana public network access status. Valid values are `OPEN` and `CLOSE`. + """ + return pulumi.get(self, "kibana_public_access") + @property @pulumi.getter(name="kibanaUrl") def kibana_url(self) -> pulumi.Output[str]: @@ -1269,7 +1316,7 @@ def vpc_id(self) -> pulumi.Output[str]: @property @pulumi.getter(name="webNodeTypeInfos") - def web_node_type_infos(self) -> pulumi.Output[Optional[Sequence['outputs.InstanceWebNodeTypeInfo']]]: + def web_node_type_infos(self) -> pulumi.Output[Sequence['outputs.InstanceWebNodeTypeInfo']]: """ Visual node configuration. """ diff --git a/sdk/python/tencentcloud_iac_pulumi/mongodb/instance_backup_rule.py b/sdk/python/tencentcloud_iac_pulumi/mongodb/instance_backup_rule.py index 37a7fb23c..dee457b0d 100644 --- a/sdk/python/tencentcloud_iac_pulumi/mongodb/instance_backup_rule.py +++ b/sdk/python/tencentcloud_iac_pulumi/mongodb/instance_backup_rule.py @@ -175,11 +175,11 @@ def __init__(__self__, instance_id: Optional[pulumi.Input[str]] = None, __props__=None): """ - Provides a resource to create mongodb backup rule + Provides a resource to create mongodb instance backup rule ## Import - mongodb backup_rule can be imported using the id, e.g. + mongodb instance backup rule can be imported using the id, e.g. ```sh $ pulumi import tencentcloud:Mongodb/instanceBackupRule:InstanceBackupRule backup_rule ${instanceId} @@ -202,11 +202,11 @@ def __init__(__self__, args: InstanceBackupRuleArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Provides a resource to create mongodb backup rule + Provides a resource to create mongodb instance backup rule ## Import - mongodb backup_rule can be imported using the id, e.g. + mongodb instance backup rule can be imported using the id, e.g. ```sh $ pulumi import tencentcloud:Mongodb/instanceBackupRule:InstanceBackupRule backup_rule ${instanceId} diff --git a/sdk/python/tencentcloud_iac_pulumi/monitor/tmp_instance.py b/sdk/python/tencentcloud_iac_pulumi/monitor/tmp_instance.py index ded7979d2..0c2311199 100644 --- a/sdk/python/tencentcloud_iac_pulumi/monitor/tmp_instance.py +++ b/sdk/python/tencentcloud_iac_pulumi/monitor/tmp_instance.py @@ -22,7 +22,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None): """ The set of arguments for constructing a TmpInstance resource. - :param pulumi.Input[int] data_retention_time: Data retention time. + :param pulumi.Input[int] data_retention_time: Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. :param pulumi.Input[str] instance_name: Instance name. :param pulumi.Input[str] subnet_id: Subnet Id. :param pulumi.Input[str] vpc_id: Vpc Id. @@ -41,7 +41,7 @@ def __init__(__self__, *, @pulumi.getter(name="dataRetentionTime") def data_retention_time(self) -> pulumi.Input[int]: """ - Data retention time. + Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. """ return pulumi.get(self, "data_retention_time") @@ -126,7 +126,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering TmpInstance resources. :param pulumi.Input[str] api_root_path: Prometheus HTTP API root address. - :param pulumi.Input[int] data_retention_time: Data retention time. + :param pulumi.Input[int] data_retention_time: Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. :param pulumi.Input[str] instance_name: Instance name. :param pulumi.Input[str] ipv4_address: Instance IPv4 address. :param pulumi.Input[str] proxy_address: Proxy address. @@ -173,7 +173,7 @@ def api_root_path(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dataRetentionTime") def data_retention_time(self) -> Optional[pulumi.Input[int]]: """ - Data retention time. + Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. """ return pulumi.get(self, "data_retention_time") @@ -309,7 +309,7 @@ def __init__(__self__, vpc_id=vpc.id, availability_zone=availability_zone, cidr_block="10.0.1.0/24") - foo = tencentcloud.monitor.TmpInstance("foo", + example = tencentcloud.monitor.TmpInstance("example", instance_name="tf-tmp-instance", vpc_id=vpc.id, subnet_id=subnet.id, @@ -326,12 +326,12 @@ def __init__(__self__, monitor tmpInstance can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance tmpInstance tmpInstance_id + $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance example prom-1uvo0tjm ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[int] data_retention_time: Data retention time. + :param pulumi.Input[int] data_retention_time: Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. :param pulumi.Input[str] instance_name: Instance name. :param pulumi.Input[str] subnet_id: Subnet Id. :param pulumi.Input[Mapping[str, Any]] tags: Tag description list. @@ -363,7 +363,7 @@ def __init__(__self__, vpc_id=vpc.id, availability_zone=availability_zone, cidr_block="10.0.1.0/24") - foo = tencentcloud.monitor.TmpInstance("foo", + example = tencentcloud.monitor.TmpInstance("example", instance_name="tf-tmp-instance", vpc_id=vpc.id, subnet_id=subnet.id, @@ -380,7 +380,7 @@ def __init__(__self__, monitor tmpInstance can be imported using the id, e.g. ```sh - $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance tmpInstance tmpInstance_id + $ pulumi import tencentcloud:Monitor/tmpInstance:TmpInstance example prom-1uvo0tjm ``` :param str resource_name: The name of the resource. @@ -461,7 +461,7 @@ def get(resource_name: str, :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[str] api_root_path: Prometheus HTTP API root address. - :param pulumi.Input[int] data_retention_time: Data retention time. + :param pulumi.Input[int] data_retention_time: Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. :param pulumi.Input[str] instance_name: Instance name. :param pulumi.Input[str] ipv4_address: Instance IPv4 address. :param pulumi.Input[str] proxy_address: Proxy address. @@ -499,7 +499,7 @@ def api_root_path(self) -> pulumi.Output[str]: @pulumi.getter(name="dataRetentionTime") def data_retention_time(self) -> pulumi.Output[int]: """ - Data retention time. + Data retention time(in days). Value range: 15, 30, 45, 90, 180, 360, 720. """ return pulumi.get(self, "data_retention_time") diff --git a/sdk/python/tencentcloud_iac_pulumi/postgresql/readonly_group.py b/sdk/python/tencentcloud_iac_pulumi/postgresql/readonly_group.py index 2d5c0a48f..14ebe237d 100644 --- a/sdk/python/tencentcloud_iac_pulumi/postgresql/readonly_group.py +++ b/sdk/python/tencentcloud_iac_pulumi/postgresql/readonly_group.py @@ -431,19 +431,64 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - group = tencentcloud.postgresql.ReadonlyGroup("group", - master_db_instance_id="postgres-gzg9jb2n", - max_replay_lag=100, - max_replay_latency=512, - min_delay_eliminate_reserve=1, + config = pulumi.Config() + availability_zone = config.get("availabilityZone") + if availability_zone is None: + availability_zone = "ap-guangzhou-3" + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + availability_zone=availability_zone, + vpc_id=vpc.id, + cidr_block="10.0.20.0/28", + is_multicast=False) + # create postgresql + example_instance = tencentcloud.postgresql.Instance("exampleInstance", + availability_zone=availability_zone, + charge_type="POSTPAID_BY_HOUR", + vpc_id=vpc.id, + subnet_id=subnet.id, + engine_version="10.4", + root_user="root123", + root_password="Root123$", + charset="UTF8", + project_id=0, + memory=4, + cpu=2, + storage=50, + tags={ + "test": "tf", + }) + # create security group + example_group = tencentcloud.security.Group("exampleGroup", + description="sg desc.", project_id=0, + tags={ + "example": "test", + }) + example_readonly_group = tencentcloud.postgresql.ReadonlyGroup("exampleReadonlyGroup", + master_db_instance_id=example_instance.id, + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + security_groups_ids=[example_group.id], replay_lag_eliminate=1, replay_latency_eliminate=1, - subnet_id="subnet-enm92y0m", - vpc_id="vpc-86v957zb") + max_replay_lag=100, + max_replay_latency=512, + min_delay_eliminate_reserve=1) ``` + ## Import + + postgresql readonly group can be imported, e.g. + + ```sh + $ pulumi import tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup example pgrogrp-lckioi2a + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] master_db_instance_id: Primary instance ID. @@ -474,19 +519,64 @@ def __init__(__self__, import pulumi import tencentcloud_iac_pulumi as tencentcloud - group = tencentcloud.postgresql.ReadonlyGroup("group", - master_db_instance_id="postgres-gzg9jb2n", - max_replay_lag=100, - max_replay_latency=512, - min_delay_eliminate_reserve=1, + config = pulumi.Config() + availability_zone = config.get("availabilityZone") + if availability_zone is None: + availability_zone = "ap-guangzhou-3" + # create vpc + vpc = tencentcloud.vpc.Instance("vpc", cidr_block="10.0.0.0/16") + # create vpc subnet + subnet = tencentcloud.subnet.Instance("subnet", + availability_zone=availability_zone, + vpc_id=vpc.id, + cidr_block="10.0.20.0/28", + is_multicast=False) + # create postgresql + example_instance = tencentcloud.postgresql.Instance("exampleInstance", + availability_zone=availability_zone, + charge_type="POSTPAID_BY_HOUR", + vpc_id=vpc.id, + subnet_id=subnet.id, + engine_version="10.4", + root_user="root123", + root_password="Root123$", + charset="UTF8", + project_id=0, + memory=4, + cpu=2, + storage=50, + tags={ + "test": "tf", + }) + # create security group + example_group = tencentcloud.security.Group("exampleGroup", + description="sg desc.", project_id=0, + tags={ + "example": "test", + }) + example_readonly_group = tencentcloud.postgresql.ReadonlyGroup("exampleReadonlyGroup", + master_db_instance_id=example_instance.id, + project_id=0, + vpc_id=vpc.id, + subnet_id=subnet.id, + security_groups_ids=[example_group.id], replay_lag_eliminate=1, replay_latency_eliminate=1, - subnet_id="subnet-enm92y0m", - vpc_id="vpc-86v957zb") + max_replay_lag=100, + max_replay_latency=512, + min_delay_eliminate_reserve=1) ``` + ## Import + + postgresql readonly group can be imported, e.g. + + ```sh + $ pulumi import tencentcloud:Postgresql/readonlyGroup:ReadonlyGroup example pgrogrp-lckioi2a + ``` + :param str resource_name: The name of the resource. :param ReadonlyGroupArgs 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/tdmq/rabbitmq_user.py b/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_user.py index cb41cfeab..6a9c5bd43 100644 --- a/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_user.py +++ b/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_user.py @@ -264,26 +264,13 @@ def __init__(__self__, """ Provides a resource to create a tdmq rabbitmq_user - ## Example Usage - - - ```python - import pulumi - import tencentcloud_iac_pulumi as tencentcloud - - rabbitmq_user = tencentcloud.tdmq.RabbitmqUser("rabbitmqUser", - description="test user", - instance_id="amqp-kzbe8p3n", - max_channels=3, - max_connections=3, - password="asdf1234", - tags=[ - "management", - "monitoring", - ], - user="keep-user") + ## Import + + tdmq rabbitmq_user can be imported using the id, e.g. + + ```sh + $ pulumi import tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser example amqp-8xzx822q#tf-example-user ``` - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -304,26 +291,13 @@ def __init__(__self__, """ Provides a resource to create a tdmq rabbitmq_user - ## Example Usage - - - ```python - import pulumi - import tencentcloud_iac_pulumi as tencentcloud - - rabbitmq_user = tencentcloud.tdmq.RabbitmqUser("rabbitmqUser", - description="test user", - instance_id="amqp-kzbe8p3n", - max_channels=3, - max_connections=3, - password="asdf1234", - tags=[ - "management", - "monitoring", - ], - user="keep-user") + ## Import + + tdmq rabbitmq_user can be imported using the id, e.g. + + ```sh + $ pulumi import tencentcloud:Tdmq/rabbitmqUser:RabbitmqUser example amqp-8xzx822q#tf-example-user ``` - :param str resource_name: The name of the resource. :param RabbitmqUserArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_virtual_host.py b/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_virtual_host.py index 388454f6d..2b28b1603 100644 --- a/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_virtual_host.py +++ b/sdk/python/tencentcloud_iac_pulumi/tdmq/rabbitmq_virtual_host.py @@ -166,20 +166,13 @@ def __init__(__self__, """ Provides a resource to create a tdmq rabbitmq_virtual_host - ## Example Usage - - - ```python - import pulumi - import tencentcloud_iac_pulumi as tencentcloud - - rabbitmq_virtual_host = tencentcloud.tdmq.RabbitmqVirtualHost("rabbitmqVirtualHost", - description="desc", - instance_id="amqp-kzbe8p3n", - trace_flag=False, - virtual_host="vh-test-1") + ## Import + + tdmq rabbitmq_virtual_host can be imported using the id, e.g. + + ```sh + $ pulumi import tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost example amqp-pbavw2wd#tf-example-vhost ``` - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -197,20 +190,13 @@ def __init__(__self__, """ Provides a resource to create a tdmq rabbitmq_virtual_host - ## Example Usage + ## Import - - ```python - import pulumi - import tencentcloud_iac_pulumi as tencentcloud + tdmq rabbitmq_virtual_host can be imported using the id, e.g. - rabbitmq_virtual_host = tencentcloud.tdmq.RabbitmqVirtualHost("rabbitmqVirtualHost", - description="desc", - instance_id="amqp-kzbe8p3n", - trace_flag=False, - virtual_host="vh-test-1") + ```sh + $ pulumi import tencentcloud:Tdmq/rabbitmqVirtualHost:RabbitmqVirtualHost example amqp-pbavw2wd#tf-example-vhost ``` - :param str resource_name: The name of the resource. :param RabbitmqVirtualHostArgs args: The arguments to use to populate this resource's properties. @@ -302,7 +288,7 @@ def instance_id(self) -> pulumi.Output[str]: @property @pulumi.getter(name="traceFlag") - def trace_flag(self) -> pulumi.Output[Optional[bool]]: + def trace_flag(self) -> pulumi.Output[bool]: """ Message track switch, true is on, false is off, default is off. """