diff --git a/internal/schema/1.2/output.go b/internal/schema/1.2/output.go deleted file mode 100644 index f6fabd54..00000000 --- a/internal/schema/1.2/output.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package schema - -import ( - "github.com/hashicorp/hcl-lang/lang" - "github.com/hashicorp/hcl-lang/schema" -) - -func outputLifecycleBlock() *schema.BlockSchema { - return &schema.BlockSchema{ - Description: lang.Markdown("Lifecycle customizations, to set a validity condition of the output"), - Body: &schema.BodySchema{ - Blocks: map[string]*schema.BlockSchema{ - "precondition": { - Body: conditionBody(false), - }, - }, - }, - } -} diff --git a/internal/schema/1.2/root.go b/internal/schema/1.2/root.go index e3302468..ceb34ca4 100644 --- a/internal/schema/1.2/root.go +++ b/internal/schema/1.2/root.go @@ -19,7 +19,9 @@ func ModuleSchema(v *version.Version) *schema.BodySchema { } bs.Blocks["resource"].Body.Blocks["lifecycle"] = resourceLifecycleBlock() bs.Blocks["output"].Body.Blocks = map[string]*schema.BlockSchema{ - "lifecycle": outputLifecycleBlock(), + "precondition": { + Body: conditionBody(false), + }, } return bs