Skip to content

Commit e6f66b5

Browse files
committed
Revert "fix: change interface{} to any (modern-check)"
This reverts commit 6a7741f.
1 parent 6a7741f commit e6f66b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/service/opensearch/domain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ func resourceDomainRead(ctx context.Context, d *schema.ResourceData, meta any) d
953953
}
954954
}
955955
if ds.AIMLOptions != nil {
956-
if err := d.Set("aiml_options", []any{flattenAIMLOptionsOutput(ds.AIMLOptions)}); err != nil {
956+
if err := d.Set("aiml_options", []interface{}{flattenAIMLOptionsOutput(ds.AIMLOptions)}); err != nil {
957957
return sdkdiag.AppendErrorf(diags, "setting aiml_options: %s", err)
958958
}
959959
} else {

internal/service/opensearch/domain_structure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ func flattenAIMLOptionsOutput(apiObject *awstypes.AIMLOptionsOutput) map[string]
302302
tfMap := map[string]any{}
303303

304304
if v := apiObject.NaturalLanguageQueryGenerationOptions; v != nil {
305-
tfMap["natural_language_query_generation_options"] = []any{flattenNaturalLanguageQueryGenerationOptionsOutput(v)}
305+
tfMap["natural_language_query_generation_options"] = []interface{}{flattenNaturalLanguageQueryGenerationOptionsOutput(v)}
306306
}
307307

308308
if v := apiObject.S3VectorsEngine; v != nil {
309-
tfMap["s3_vectors_engine"] = []any{flattenS3VectorsEngine(v)}
309+
tfMap["s3_vectors_engine"] = []interface{}{flattenS3VectorsEngine(v)}
310310
}
311311

312312
return tfMap

0 commit comments

Comments
 (0)