You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/cdn_distribution.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ Read-Only:
51
51
52
52
-`backend` (Attributes) The configured backend for the distribution (see [below for nested schema](#nestedatt--config--backend))
53
53
-`optimizer` (Attributes) Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience. (see [below for nested schema](#nestedatt--config--optimizer))
54
+
-`redirects` (Attributes) A wrapper for a list of redirect rules that allows for redirect settings on a distribution (see [below for nested schema](#nestedatt--config--redirects))
54
55
-`regions` (List of String) The configured regions where content will be hosted
55
56
56
57
<aid="nestedatt--config--backend"></a>
@@ -74,6 +75,36 @@ Read-Only:
74
75
-`enabled` (Boolean)
75
76
76
77
78
+
<aid="nestedatt--config--redirects"></a>
79
+
### Nested Schema for `config.redirects`
80
+
81
+
Read-Only:
82
+
83
+
-`rules` (Attributes List) A list of redirect rules. The order of rules matters for evaluation (see [below for nested schema](#nestedatt--config--redirects--rules))
84
+
85
+
<aid="nestedatt--config--redirects--rules"></a>
86
+
### Nested Schema for `config.redirects.rules`
87
+
88
+
Read-Only:
89
+
90
+
-`description` (String) An optional description for the redirect rule
91
+
-`enabled` (Boolean) A toggle to enable or disable the redirect rule. Default to true
92
+
-`matchers` (Attributes List) A list of matchers that define when this rule should apply. At least one matcher is required (see [below for nested schema](#nestedatt--config--redirects--rules--matchers))
93
+
-`rule_match_condition` (String) Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
94
+
-`status_code` (Number) The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
95
+
-`target_url` (String) The target URL to redirect to. Must be a valid URI
Copy file name to clipboardExpand all lines: docs/resources/cdn_distribution.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ Optional:
96
96
97
97
-`blocked_countries` (List of String) The configured countries where distribution of content is blocked
98
98
-`optimizer` (Attributes) Configuration for the Image Optimizer. This is a paid feature that automatically optimizes images to reduce their file size for faster delivery, leading to improved website performance and a better user experience. (see [below for nested schema](#nestedatt--config--optimizer))
99
+
-`redirects` (Attributes) A wrapper for a list of redirect rules that allows for redirect settings on a distribution (see [below for nested schema](#nestedatt--config--redirects))
99
100
100
101
<aid="nestedatt--config--backend"></a>
101
102
### Nested Schema for `config.backend`
@@ -131,6 +132,42 @@ Optional:
131
132
-`enabled` (Boolean)
132
133
133
134
135
+
<aid="nestedatt--config--redirects"></a>
136
+
### Nested Schema for `config.redirects`
137
+
138
+
Required:
139
+
140
+
-`rules` (Attributes List) A list of redirect rules. The order of rules matters for evaluation (see [below for nested schema](#nestedatt--config--redirects--rules))
141
+
142
+
<aid="nestedatt--config--redirects--rules"></a>
143
+
### Nested Schema for `config.redirects.rules`
144
+
145
+
Required:
146
+
147
+
-`matchers` (Attributes List) A list of matchers that define when this rule should apply. At least one matcher is required (see [below for nested schema](#nestedatt--config--redirects--rules--matchers))
148
+
-`status_code` (Number) The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
149
+
-`target_url` (String) The target URL to redirect to. Must be a valid URI
150
+
151
+
Optional:
152
+
153
+
-`description` (String) An optional description for the redirect rule
154
+
-`enabled` (Boolean) A toggle to enable or disable the redirect rule. Default to true
155
+
-`rule_match_condition` (String) Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
0 commit comments