diff --git a/cloudsmith/resource_repository_retention_rule.go b/cloudsmith/resource_repository_retention_rule.go index 27950d5..1adc676 100644 --- a/cloudsmith/resource_repository_retention_rule.go +++ b/cloudsmith/resource_repository_retention_rule.go @@ -165,10 +165,9 @@ func resourceRepoRetentionRule() *schema.Resource { Description: "If true, retention will apply to packages by package type rather than across all package types for one or more formats.", }, "retention_size_limit": { - Type: schema.TypeInt, - Optional: true, - Description: "The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480.", - ValidateFunc: validation.IntBetween(0, 21474836480), + Type: schema.TypeInt, + Optional: true, + Description: "The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480 (21.47 GB / 21474.83 MB).", }, }, } diff --git a/docs/resources/repository_retention.md b/docs/resources/repository_retention.md index 6c8abe6..5f1cf25 100644 --- a/docs/resources/repository_retention.md +++ b/docs/resources/repository_retention.md @@ -44,11 +44,11 @@ The following arguments are supported: * [`namespace`]("Go to definition") - (Required) The namespace of the repository. * [`repository`]("Go to definition") - (Required) If true, the retention lifecycle rules will be activated for the repository and settings will be updated. * [`retention_enabled`]("Go to definition") - (Required) If true, the retention lifecycle rules will be activated for the repository and settings will be updated.* [`retention_count_limit`]("Go to definition") - (Optional) The maximum number of packages to retain. Must be between 0 and 10000. -* [`retention_days_limit`]("Go to definition") - (Optional) The number of days of packages to retain. Must be between 0 and 180. +* [`retention_days_limit`]("Go to definition") - (Optional) The number of days of packages to retain. Must be between `0` and `180`. * [`retention_group_by_name`]("Go to definition") - (Optional) If true, retention will apply to groups of packages by name rather than all packages. * [`retention_group_by_format`]("Go to definition") - (Optional) If true, retention will apply to packages by package formats rather than across all package formats. * [`retention_group_by_package_type`]("Go to definition") - (Optional) If true, retention will apply to packages by package type rather than across all package types for one or more formats. -* [`retention_size_limit`]("Go to definition") - (Optional) The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480. +* [`retention_size_limit`]("Go to definition") - (Optional) The maximum total size (in bytes) of packages to retain. Must be between `0` and `21474836480` (21.47 GB / 21474.83 MB). ## Import