streamtime_package_rule (Resource)
A rule that decides which versions of a repository are supported and which is the default. Managing the catalog needs the catalog permission, normally held by the root organization.
Example Usage
resource "streamtime_package_rule" "kafka" {
name = "kafka-3x"
repository = "kafka"
version_constraint = ">=3.6.0 <4.0.0"
target_status = "supported"
default_version = "3.8.0"
}
Schema
Required
name(String) A name for the rule. It is also the ID you use to import it. Changing it creates a new rule.repository(String) The repository the rule applies to.
Optional
allowed_registries(List of String) The registries matching versions may come from.default_version(String) The version offered by default.description(String) What the rule is for.enabled(Boolean) Whether the rule is applied.max_age_days(Number) Only versions published in the last this many days match.preferred_registry(String) The registry to pull matching versions from.priority(Number) Which rule wins when more than one matches. A higher number wins.registry_url(String) Limits the rule to one registry.target_status(String) The status matching versions get: active, supported, deprecated, latest or preview.unmatch_status(String) The status versions that do not match get: active, supported, deprecated, latest or preview.version_constraint(String) Versions the rule matches, for example >=3.6.0 <4.0.0.version_list(List of String) Exact versions the rule matches.
Read-Only
id(String) ID of the package rule. Use it to import an existing one.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Import by the rule's name.
terraform import streamtime_package_rule.kafka kafka-3x