Skip to content

Commit 7f09429

Browse files
committed
add doc examples for mscsub, message_service
1 parent eec375c commit 7f09429

File tree

15 files changed

+205
-0
lines changed

15 files changed

+205
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Introduction
3+
4+
This example is used to create a `alicloud_msc_sub_contact` resource.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_msc_sub_contact.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/msc_sub_contact) | resource |
17+
18+
## Inputs
19+
20+
| Name | Description | Type | Default | Required |
21+
|------|-------------|------|---------|:--------:|
22+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"tfexample"` | no |
23+
<!-- END_TF_DOCS -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
variable "name" {
2+
default = "tfexample"
3+
}
4+
5+
resource "alicloud_msc_sub_contact" "default" {
6+
contact_name = var.name
7+
position = "CEO"
8+
email = "123@163.com"
9+
mobile = "15388888888"
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Introduction
3+
4+
This example is used to create a `alicloud_msc_sub_subscription` resource.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_msc_sub_subscription.example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/msc_sub_subscription) | resource |
17+
18+
## Inputs
19+
20+
No inputs.
21+
<!-- END_TF_DOCS -->
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resource "alicloud_msc_sub_subscription" "example" {
2+
item_name = "Notifications of Product Expiration"
3+
sms_status = "1"
4+
email_status = "1"
5+
pmsg_status = "1"
6+
tts_status = "1"
7+
webhook_status = "0"
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Introduction
3+
4+
This example is used to create a `alicloud_message_service_queue` resource.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_message_service_queue.queue](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/message_service_queue) | resource |
17+
18+
## Inputs
19+
20+
| Name | Description | Type | Default | Required |
21+
|------|-------------|------|---------|:--------:|
22+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"tf-example"` | no |
23+
<!-- END_TF_DOCS -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
variable "name" {
2+
default = "tf-example"
3+
}
4+
resource "alicloud_message_service_queue" "queue" {
5+
queue_name = var.name
6+
delay_seconds = 60478
7+
maximum_message_size = 12357
8+
message_retention_period = 256000
9+
visibility_timeout = 30
10+
polling_wait_seconds = 3
11+
logging_enabled = true
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Introduction
3+
4+
This example is used to create a `alicloud_message_service_subscription` resource.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_message_service_subscription.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/message_service_subscription) | resource |
17+
| [alicloud_message_service_topic.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/message_service_topic) | resource |
18+
19+
## Inputs
20+
21+
| Name | Description | Type | Default | Required |
22+
|------|-------------|------|---------|:--------:|
23+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"tf-example"` | no |
24+
<!-- END_TF_DOCS -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
variable "name" {
2+
default = "tf-example"
3+
}
4+
resource "alicloud_message_service_topic" "default" {
5+
topic_name = var.name
6+
max_message_size = 12357
7+
logging_enabled = true
8+
}
9+
10+
resource "alicloud_message_service_subscription" "default" {
11+
topic_name = alicloud_message_service_topic.default.topic_name
12+
subscription_name = var.name
13+
endpoint = "http://example.com"
14+
push_type = "http"
15+
filter_tag = "tf-example"
16+
notify_content_format = "XML"
17+
notify_strategy = "BACKOFF_RETRY"
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Introduction
3+
4+
This example is used to create a `alicloud_message_service_topic` resource.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_message_service_topic.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/message_service_topic) | resource |
17+
18+
## Inputs
19+
20+
| Name | Description | Type | Default | Required |
21+
|------|-------------|------|---------|:--------:|
22+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"tf-example"` | no |
23+
<!-- END_TF_DOCS -->
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
variable "name" {
2+
default = "tf-example"
3+
}
4+
resource "alicloud_message_service_topic" "default" {
5+
topic_name = var.name
6+
max_message_size = 12357
7+
logging_enabled = true
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)