From 1e8f8bcc88935f1c6fffff665334591760966983 Mon Sep 17 00:00:00 2001 From: Trent Clarke Date: Thu, 5 Dec 2024 16:50:09 +1100 Subject: [PATCH] doc --- .../terraform-provider/data-sources/app.mdx | 2 +- .../terraform-provider/resources/app.mdx | 2 +- .../terraform/tfschema/types_terraform.go | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/pages/reference/terraform-provider/data-sources/app.mdx b/docs/pages/reference/terraform-provider/data-sources/app.mdx index 663b306cd6d25..db743284d4819 100644 --- a/docs/pages/reference/terraform-provider/data-sources/app.mdx +++ b/docs/pages/reference/terraform-provider/data-sources/app.mdx @@ -95,7 +95,7 @@ Optional: Optional: - `arn` (String) ARN is the fully-formed ARN of the Permission Set. -- `assignment_name` (String) AssignmentName is the name of the account assignment that represents this permission set on the account enclosing this permission set +- `assignment_name` (String) AssignmentID is the ID of the Teelport Account Assignment resource that represents this permission being assigned on the enclosing Account. - `name` (String) Name is the human-readable name of the Permission Set. diff --git a/docs/pages/reference/terraform-provider/resources/app.mdx b/docs/pages/reference/terraform-provider/resources/app.mdx index faac7a3c2668f..5176f3452e1f1 100644 --- a/docs/pages/reference/terraform-provider/resources/app.mdx +++ b/docs/pages/reference/terraform-provider/resources/app.mdx @@ -114,7 +114,7 @@ Optional: Optional: - `arn` (String) ARN is the fully-formed ARN of the Permission Set. -- `assignment_name` (String) AssignmentName is the name of the account assignment that represents this permission set on the account enclosing this permission set +- `assignment_name` (String) AssignmentID is the ID of the Teelport Account Assignment resource that represents this permission being assigned on the enclosing Account. - `name` (String) Name is the human-readable name of the Permission Set. diff --git a/integrations/terraform/tfschema/types_terraform.go b/integrations/terraform/tfschema/types_terraform.go index 54e8ade8375c1..a3c2deb6d0d69 100644 --- a/integrations/terraform/tfschema/types_terraform.go +++ b/integrations/terraform/tfschema/types_terraform.go @@ -929,7 +929,7 @@ func GenSchemaAppV3(ctx context.Context) (github_com_hashicorp_terraform_plugin_ Type: github_com_hashicorp_terraform_plugin_framework_types.StringType, }, "assignment_name": { - Description: "AssignmentName is the name of the account assignment that represents this permission set on the account enclosing this permission set", + Description: "AssignmentID is the ID of the Teelport Account Assignment resource that represents this permission being assigned on the enclosing Account.", Optional: true, Type: github_com_hashicorp_terraform_plugin_framework_types.StringType, }, @@ -10938,17 +10938,17 @@ func CopyAppV3FromTerraform(_ context.Context, tf github_com_hashicorp_terraform { a, ok := tf.Attrs["assignment_name"] if !ok { - diags.Append(attrReadMissingDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentName"}) + diags.Append(attrReadMissingDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentID"}) } else { v, ok := a.(github_com_hashicorp_terraform_plugin_framework_types.String) if !ok { - diags.Append(attrReadConversionFailureDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentName", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + diags.Append(attrReadConversionFailureDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentID", "github.com/hashicorp/terraform-plugin-framework/types.String"}) } else { var t string if !v.Null && !v.Unknown { t = string(v.Value) } - obj.AssignmentName = t + obj.AssignmentID = t } } } @@ -12384,21 +12384,21 @@ func CopyAppV3ToTerraform(ctx context.Context, obj *github_com_gravitational_tel { t, ok := tf.AttrTypes["assignment_name"] if !ok { - diags.Append(attrWriteMissingDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentName"}) + diags.Append(attrWriteMissingDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentID"}) } else { v, ok := tf.Attrs["assignment_name"].(github_com_hashicorp_terraform_plugin_framework_types.String) if !ok { i, err := t.ValueFromTerraform(ctx, github_com_hashicorp_terraform_plugin_go_tftypes.NewValue(t.TerraformType(ctx), nil)) if err != nil { - diags.Append(attrWriteGeneralError{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentName", err}) + diags.Append(attrWriteGeneralError{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentID", err}) } v, ok = i.(github_com_hashicorp_terraform_plugin_framework_types.String) if !ok { - diags.Append(attrWriteConversionFailureDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentName", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + diags.Append(attrWriteConversionFailureDiag{"AppV3.Spec.IdentityCenter.PermissionSets.AssignmentID", "github.com/hashicorp/terraform-plugin-framework/types.String"}) } - v.Null = string(obj.AssignmentName) == "" + v.Null = string(obj.AssignmentID) == "" } - v.Value = string(obj.AssignmentName) + v.Value = string(obj.AssignmentID) v.Unknown = false tf.Attrs["assignment_name"] = v }