@@ -47,31 +47,33 @@ resource "tencentcloud_tdmq_rabbitmq_virtual_host" "example" {
4747
4848# create user permission
4949resource "tencentcloud_tdmq_rabbitmq_user_permission" "example" {
50- instance_id = tencentcloud_tdmq_rabbitmq_vip_instance.example.id
51- user = tencentcloud_tdmq_rabbitmq_user.example.user
52- virtual_host = tencentcloud_tdmq_rabbitmq_virtual_host.example.virtual_host
53- config_regexp = ".*"
54- write_regexp = ".*"
55- read_regexp = ".*"
50+ instance_id = tencentcloud_tdmq_rabbitmq_vip_instance.example.id
51+ user = tencentcloud_tdmq_rabbitmq_user.example.user
52+ virtual_host = tencentcloud_tdmq_rabbitmq_virtual_host.example.virtual_host
53+ config_regexp = ".*"
54+ write_regexp = ".*"
55+ read_regexp = ".*"
5656}
5757```
5858
5959## Argument Reference
6060
6161The following arguments are supported:
6262
63+ * ` config_regexp ` - (Required, String) Configure permission regexp, controls which resources can be declared.
6364* ` instance_id ` - (Required, String, ForceNew) Cluster instance ID.
65+ * ` read_regexp ` - (Required, String) Read permission regexp, controls which resources can be read.
6466* ` user ` - (Required, String, ForceNew) Username.
6567* ` virtual_host ` - (Required, String, ForceNew) VirtualHost name.
66- * ` config_regexp ` - (Required, String) Configure permission regexp, controls which resources can be declared.
6768* ` write_regexp ` - (Required, String) Write permission regexp, controls which resources can be written.
68- * ` read_regexp ` - (Required, String) Read permission regexp, controls which resources can be read.
6969
7070## Attributes Reference
7171
7272In addition to all arguments above, the following attributes are exported:
7373
74- * ` id ` - ID of the resource. Format: ` {instanceId}#{user}#{virtualHost} ` .
74+ * ` id ` - ID of the resource.
75+
76+
7577
7678## Import
7779
@@ -80,3 +82,4 @@ tdmq rabbitmq_user_permission can be imported using the id, e.g.
8082```
8183terraform import tencentcloud_tdmq_rabbitmq_user_permission.example amqp-xxxxxxxx#user#vhost
8284```
85+
0 commit comments