From 02d16a7ffae1f8831a5688dff8f21c4b247812d0 Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Wed, 21 Aug 2024 15:37:34 +0200 Subject: [PATCH] feat: support description attribute for orchestrate rule (#393) Related to https://github.com/hashicorp/tfc-agent/pull/759 --- internal/schema/stacks/1.9/orchestrate_block.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/schema/stacks/1.9/orchestrate_block.go b/internal/schema/stacks/1.9/orchestrate_block.go index 4af6629..e60984b 100644 --- a/internal/schema/stacks/1.9/orchestrate_block.go +++ b/internal/schema/stacks/1.9/orchestrate_block.go @@ -47,6 +47,13 @@ func orchestrateBlockSchema() *schema.BlockSchema { }, }, }, + Attributes: map[string]*schema.AttributeSchema{ + "description": { + Constraint: schema.LiteralType{Type: cty.String}, + IsOptional: true, + Description: lang.PlainText("Human-readable description of the orchestration rule (for documentation and UI)"), + }, + }, }, } }