@@ -13,6 +13,7 @@ import (
1313 "github.com/hashicorp/terraform-plugin-framework/resource"
1414 "github.com/hashicorp/terraform-plugin-framework/resource/schema"
1515 "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
16+ "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
1617 "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
1718 "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1819 "github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -92,6 +93,28 @@ func (r *OIDCProviderResource) Schema(_ context.Context, _ resource.SchemaReques
9293 Optional : true ,
9394 ElementType : types .StringType ,
9495 },
96+ "bindings" : schema.SetNestedAttribute {
97+ Description : "The users and groups able to utilize this provider.." ,
98+ MarkdownDescription : "The users and groups able to utilize this provider." ,
99+ Optional : true ,
100+ NestedObject : schema.NestedAttributeObject {
101+ Attributes : map [string ]schema.Attribute {
102+ "group_id" : schema.StringAttribute {
103+ Optional : true ,
104+ PlanModifiers : []planmodifier.String {stringplanmodifier .RequiresReplace ()},
105+ },
106+ "id" : schema.StringAttribute {
107+ Optional : true ,
108+ PlanModifiers : []planmodifier.String {stringplanmodifier .RequiresReplace ()},
109+ },
110+ "user_id" : schema.StringAttribute {
111+ Optional : true ,
112+ PlanModifiers : []planmodifier.String {stringplanmodifier .RequiresReplace ()},
113+ },
114+ },
115+ },
116+ PlanModifiers : []planmodifier.Set {setplanmodifier .RequiresReplace ()},
117+ },
95118 },
96119 }
97120}
0 commit comments