From 7fb2f19f20256089cef4f25d74b2dae9292678c0 Mon Sep 17 00:00:00 2001 From: Thomas Hudry Date: Fri, 14 Jun 2024 09:32:43 +0200 Subject: [PATCH] generate documentation --- docs/resources/ilm_policy.md | 23 ++++++++++-- docs/resources/ilm_tier.md | 72 ++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 docs/resources/ilm_tier.md diff --git a/docs/resources/ilm_policy.md b/docs/resources/ilm_policy.md index 492ac2ee..e94f615e 100644 --- a/docs/resources/ilm_policy.md +++ b/docs/resources/ilm_policy.md @@ -42,14 +42,31 @@ resource "minio_ilm_policy" "bucket-lifecycle-rules" { ### Nested Schema for `rule` +Required: + +- `id` (String) + Optional: -- `expiration` (String) +- `expiration` (String) Value may be duration (5d), date (1970-01-01), or "DeleteMarker" to expire delete markers if `noncurrent_version_expiration_days` is used - `filter` (String) -- `noncurrent_version_expiration_days` (Int) +- `noncurrent_version_expiration_days` (Number) +- `noncurrent_version_transition_days` (Number) - `tags` (Map of String) +- `transition` (Block List, Max: 1) (see [below for nested schema](#nestedblock--rule--transition)) Read-Only: -- `id` (String) The ID of this resource. - `status` (String) + + +### Nested Schema for `rule.transition` + +Required: + +- `storage_class` (String) + +Optional: + +- `date` (String) +- `days` (String) diff --git a/docs/resources/ilm_tier.md b/docs/resources/ilm_tier.md new file mode 100644 index 00000000..f520c3df --- /dev/null +++ b/docs/resources/ilm_tier.md @@ -0,0 +1,72 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "minio_ilm_tier Resource - terraform-provider-minio" +subcategory: "" +description: |- + minio_ilm_tier handles remote tiers +--- + +# minio_ilm_tier (Resource) + +`minio_ilm_tier` handles remote tiers + + + + +## Schema + +### Required + +- `bucket` (String) +- `name` (String) +- `type` (String) + +### Optional + +- `azure_config` (Block List, Max: 1) (see [below for nested schema](#nestedblock--azure_config)) +- `endpoint` (String) +- `force_new_credentials` (Boolean) +- `gcs_config` (Block List, Max: 1) (see [below for nested schema](#nestedblock--gcs_config)) +- `minio_config` (Block List, Max: 1) (see [below for nested schema](#nestedblock--minio_config)) +- `prefix` (String) +- `region` (String) +- `s3_config` (Block List, Max: 1) (see [below for nested schema](#nestedblock--s3_config)) + +### Read-Only + +- `id` (String) The ID of this resource. + + +### Nested Schema for `azure_config` + +Optional: + +- `account_key` (String, Sensitive) +- `container` (String) + + + +### Nested Schema for `gcs_config` + +Optional: + +- `credentials` (String, Sensitive) + + + +### Nested Schema for `minio_config` + +Optional: + +- `access_key` (String) +- `secret_key` (String, Sensitive) + + + +### Nested Schema for `s3_config` + +Optional: + +- `access_key` (String) +- `secret_key` (String, Sensitive) +- `storage_class` (String)