Skip to content

Commit ba09541

Browse files
committed
SUMO-260843: Final doc updates
1 parent 1dbd229 commit ba09541

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

website/docs/r/macro.html.markdown

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ description: |-
88
# sumologic_macro (beta)
99
Provides a [Sumologic Macro (Beta)][1].
1010

11-
The feature is in beta, talk to sumologic support engineer to have it enabled.
11+
The feature is in beta, will not function if not enabled for your org. Please reach out to sumologic support engineer to have the feature enabled for your org.
1212

1313
## Example Usage
14+
Single macro
1415
```hcl
1516
1617
resource "sumologic_macro" "ip_macro" {
@@ -27,6 +28,21 @@ resource "sumologic_macro" "ip_macro" {
2728
}
2829
```
2930

31+
Macros with dependencies
32+
```hcl
33+
34+
resource "sumologic_macro" "ip_macro" {
35+
depends_on = [sumologic_macro.ip_macro_nested]
36+
name = "ip_macro"
37+
definition = "_sourceCategory=yourcategory | `ip_macro_nested`"
38+
}
39+
40+
resource "sumologic_macro" "ip_macro_nested" {
41+
name = "ip_macro_nested"
42+
definition = "_sourceCategory=yourcategory | count"
43+
}
44+
```
45+
3046
## Argument reference
3147

3248
The following arguments are supported:
@@ -54,3 +70,5 @@ In addition to all arguments above, the following attributes are exported:
5470

5571

5672
[1]: https://help.sumologic.com/docs/search/search-query-language/search-operators/macro/
73+
74+

0 commit comments

Comments
 (0)