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
-`blocked_countries` (List of String) The configured countries where distribution of content is blocked
98
116
-`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))
117
+
-`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
118
100
119
<aid="nestedatt--config--backend"></a>
101
120
### Nested Schema for `config.backend`
@@ -131,6 +150,42 @@ Optional:
131
150
-`enabled` (Boolean)
132
151
133
152
153
+
<aid="nestedatt--config--redirects"></a>
154
+
### Nested Schema for `config.redirects`
155
+
156
+
Required:
157
+
158
+
-`rules` (Attributes List) A list of redirect rules. The order of rules matters for evaluation (see [below for nested schema](#nestedatt--config--redirects--rules))
159
+
160
+
<aid="nestedatt--config--redirects--rules"></a>
161
+
### Nested Schema for `config.redirects.rules`
162
+
163
+
Required:
164
+
165
+
-`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))
166
+
-`status_code` (Number) The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308.
167
+
-`target_url` (String) The target URL to redirect to. Must be a valid URI
168
+
169
+
Optional:
170
+
171
+
-`description` (String) An optional description for the redirect rule
172
+
-`enabled` (Boolean) A toggle to enable or disable the redirect rule. Default to true
173
+
-`rule_match_condition` (String) Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY.
0 commit comments