From 2c17a612bd279c70d928fc9c4df3df0457ab876f Mon Sep 17 00:00:00 2001 From: Anna Khmelnitsky Date: Tue, 22 Oct 2024 17:48:57 +0000 Subject: [PATCH] Remove redundant context attr from tgw attachment In addition, refine documentaion for this resource Signed-off-by: Anna Khmelnitsky --- ...esource_nsxt_policy_transit_gateway_attachment.go | 1 - .../policy_transit_gateway_attachment.html.markdown | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/nsxt/resource_nsxt_policy_transit_gateway_attachment.go b/nsxt/resource_nsxt_policy_transit_gateway_attachment.go index 6786ba9e2..4bb27b353 100644 --- a/nsxt/resource_nsxt_policy_transit_gateway_attachment.go +++ b/nsxt/resource_nsxt_policy_transit_gateway_attachment.go @@ -24,7 +24,6 @@ var transitGatewayAttachmentSchema = map[string]*metadata.ExtendedSchema{ "description": metadata.GetExtendedSchema(getDescriptionSchema()), "revision": metadata.GetExtendedSchema(getRevisionSchema()), "tag": metadata.GetExtendedSchema(getTagsSchema()), - "context": metadata.GetExtendedSchema(getContextSchema(false, false, false)), "parent_path": metadata.GetExtendedSchema(getPolicyPathSchema(true, true, "Policy path of the parent")), "connection_path": { Schema: schema.Schema{ diff --git a/website/docs/r/policy_transit_gateway_attachment.html.markdown b/website/docs/r/policy_transit_gateway_attachment.html.markdown index 07c939846..712ec2774 100644 --- a/website/docs/r/policy_transit_gateway_attachment.html.markdown +++ b/website/docs/r/policy_transit_gateway_attachment.html.markdown @@ -2,14 +2,14 @@ subcategory: "Beta" layout: "nsxt" page_title: "NSXT: nsxt_policy_transit_gateway_attachment" -description: A resource to configure a TransitGatewayAttachment. +description: A resource to configure a Transit Gateway Attachment. --- # nsxt_policy_transit_gateway_attachment -This resource provides a method for the management of a TransitGatewayAttachment. +This resource provides a method for the management of a Transit Gateway Attachment. -This resource is applicable to NSX Global Manager, NSX Policy Manager and VMC. +This resource is applicable to NSX Policy Manager. ## Example Usage @@ -31,10 +31,6 @@ resource "nsxt_policy_gateway_connection" "test_gw_conn" { } resource "nsxt_policy_transit_gateway_attachment" "test_tgw_att" { - context { - project_id = nsxt_policy_project.test_proj.id - } - display_name = "test" parent_path = nsxt_policy_transit_gateway.test_tgw.path connection_path = nsxt_policy_gateway_connection.test_gw_conn.path @@ -70,4 +66,4 @@ An existing object can be [imported][docs-import] into this resource, via the fo terraform import nsxt_policy_transit_gateway_attachment.test PATH ``` -The above command imports TransitGatewayAttachment named `test` with the policy path `PATH`. +The above command imports Transit Gateway Attachment named `test` with the policy path `PATH`.