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
-`blocked_countries` (List of String) The configured countries where distribution of content is blocked
62
65
-`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))
"blocked_countries": "\"CU\", \"AQ\"", // Do NOT use DE or AT here, because the request might be blocked by bunny at the time of creation - don't lock yourself out
27
28
"custom_domain_prefix": uuid.NewString(), // we use a different domain prefix each test run due to inconsistent upstream release of domains, which might impair consecutive test runs
@@ -57,6 +57,7 @@ var schemaDescriptions = map[string]string{
57
57
"config_optimizer": "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.",
58
58
"config_backend_origin_url": "The configured backend type for the distribution",
59
59
"config_backend_origin_request_headers": "The configured origin request headers for the backend",
60
+
"config_blocked_countries": "The configured countries where distribution of content is blocked",
60
61
"domain_name": "The name of the domain",
61
62
"domain_status": "The status of the domain",
62
63
"domain_type": "The type of the domain. Each distribution has one domain of type \"managed\", and domains of type \"custom\" may be additionally created by the user",
@@ -76,22 +77,26 @@ type Model struct {
76
77
}
77
78
78
79
typedistributionConfigstruct {
79
-
Backendbackend`tfsdk:"backend"`// The backend associated with the distribution
80
-
Regions*[]string`tfsdk:"regions"`// The regions in which data will be cached
81
-
Optimizer types.Object`tfsdk:"optimizer"`// The optimizer configuration
80
+
Backendbackend`tfsdk:"backend"`// The backend associated with the distribution
81
+
Regions*[]string`tfsdk:"regions"`// The regions in which data will be cached
82
+
BlockedCountries*[]string`tfsdk:"blocked_countries"`// The countries for which content will be blocked
83
+
Optimizer types.Object`tfsdk:"optimizer"`// The optimizer configuration
82
84
}
85
+
83
86
typeoptimizerConfigstruct {
84
87
Enabled types.Bool`tfsdk:"enabled"`
85
88
}
89
+
86
90
typebackendstruct {
87
91
Typestring`tfsdk:"type"`// The type of the backend. Currently, only "http" backend is supported
88
92
OriginURLstring`tfsdk:"origin_url"`// The origin URL of the backend
89
93
OriginRequestHeaders*map[string]string`tfsdk:"origin_request_headers"`// Request headers that should be added by the CDN distribution to incoming requests
0 commit comments