@@ -88,30 +88,41 @@ func schemaChannelDataSource() schema.Schema {
8888 },
8989 },
9090 },
91- "slack" : schema.ListAttribute {
91+ "slack" : schema.ListNestedAttribute {
9292 Description : schemaChannelSlackDesc ,
9393 Computed : true ,
94- ElementType : types. ObjectType {
95- AttrTypes : map [string ]attr. Type {
96- "url" : types . StringType ,
97- "mentions" : types. MapType {
98- ElemType : types . StringType ,
94+ NestedObject : schema. NestedAttributeObject {
95+ Attributes : map [string ]schema. Attribute {
96+ "url" : schema. StringAttribute {
97+ Computed : true ,
98+ Sensitive : true ,
9999 },
100- "enabled_graph_image" : types .BoolType ,
101- "events" : types.SetType {
102- ElemType : types .StringType ,
100+ "mentions" : schema.MapAttribute {
101+ ElementType : types .StringType ,
102+ Computed : true ,
103+ },
104+ "enabled_graph_image" : schema.BoolAttribute {
105+ Computed : true ,
106+ },
107+ "events" : schema.SetAttribute {
108+ ElementType : types .StringType ,
109+ Computed : true ,
103110 },
104111 },
105112 },
106113 },
107- "webhook" : schema.ListAttribute {
114+ "webhook" : schema.ListNestedAttribute {
108115 Description : schemaChannelWebhookDesc ,
109116 Computed : true ,
110- ElementType : types.ObjectType {
111- AttrTypes : map [string ]attr.Type {
112- "url" : types .StringType ,
113- "events" : types.SetType {
114- ElemType : types .StringType ,
117+ NestedObject : schema.NestedAttributeObject {
118+ Attributes : map [string ]schema.Attribute {
119+ "url" : schema.StringAttribute {
120+ Computed : true ,
121+ Sensitive : true ,
122+ },
123+ "events" : schema.SetAttribute {
124+ ElementType : types .StringType ,
125+ Computed : true ,
115126 },
116127 },
117128 },
0 commit comments