@@ -17,9 +17,7 @@ import (
1717 "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
1818 "github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
1919 "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
20- "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator"
2120 "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
22- "github.com/hashicorp/terraform-plugin-framework/path"
2321 "github.com/hashicorp/terraform-plugin-framework/resource"
2422 "github.com/hashicorp/terraform-plugin-framework/resource/schema"
2523 "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
@@ -498,53 +496,6 @@ func (r *knowledgeBaseResource) Schema(ctx context.Context, request resource.Sch
498496 },
499497 },
500498 },
501- "s3_vectors_configuration" : schema.ListNestedBlock {
502- CustomType : fwtypes.NewListNestedObjectTypeOf [s3VectorsConfigurationModel ](ctx ),
503- Validators : []validator.List {
504- listvalidator .SizeAtMost (1 ),
505- },
506- PlanModifiers : []planmodifier.List {
507- listplanmodifier .RequiresReplace (),
508- },
509- NestedObject : schema.NestedBlockObject {
510- Attributes : map [string ]schema.Attribute {
511- "index_arn" : schema.StringAttribute {
512- CustomType : fwtypes .ARNType ,
513- Optional : true ,
514- PlanModifiers : []planmodifier.String {
515- stringplanmodifier .RequiresReplace (),
516- },
517- Validators : []validator.String {
518- stringvalidator .ConflictsWith (path .MatchRelative ().AtParent ().AtName ("index_name" ), path .MatchRelative ().AtParent ().AtName ("vector_bucket_arn" )),
519- },
520- },
521- "index_name" : schema.StringAttribute {
522- Optional : true ,
523- PlanModifiers : []planmodifier.String {
524- stringplanmodifier .RequiresReplace (),
525- },
526- Validators : []validator.String {
527- stringvalidator .AlsoRequires (path .MatchRelative ().AtParent ().AtName ("vector_bucket_arn" )),
528- stringvalidator .ConflictsWith (path .MatchRelative ().AtParent ().AtName ("index_arn" )),
529- },
530- },
531- "vector_bucket_arn" : schema.StringAttribute {
532- CustomType : fwtypes .ARNType ,
533- Optional : true ,
534- PlanModifiers : []planmodifier.String {
535- stringplanmodifier .RequiresReplace (),
536- },
537- Validators : []validator.String {
538- stringvalidator .AlsoRequires (path .MatchRelative ().AtParent ().AtName ("index_name" )),
539- stringvalidator .ConflictsWith (path .MatchRelative ().AtParent ().AtName ("index_arn" )),
540- },
541- },
542- },
543- Validators : []validator.Object {
544- objectvalidator .AtLeastOneOf (path .MatchRelative ().AtName ("index_arn" ), path .MatchRelative ().AtName ("index_name" )),
545- },
546- },
547- },
548499 },
549500 },
550501 },
@@ -889,7 +840,6 @@ type storageConfigurationModel struct {
889840 PineconeConfiguration fwtypes.ListNestedObjectValueOf [pineconeConfigurationModel ] `tfsdk:"pinecone_configuration"`
890841 RDSConfiguration fwtypes.ListNestedObjectValueOf [rdsConfigurationModel ] `tfsdk:"rds_configuration"`
891842 RedisEnterpriseCloudConfiguration fwtypes.ListNestedObjectValueOf [redisEnterpriseCloudConfigurationModel ] `tfsdk:"redis_enterprise_cloud_configuration"`
892- S3VectorsConfiguration fwtypes.ListNestedObjectValueOf [s3VectorsConfigurationModel ] `tfsdk:"s3_vectors_configuration"`
893843 Type types.String `tfsdk:"type"`
894844}
895845
@@ -945,9 +895,3 @@ type redisEnterpriseCloudFieldMappingModel struct {
945895 TextField types.String `tfsdk:"text_field"`
946896 VectorField types.String `tfsdk:"vector_field"`
947897}
948-
949- type s3VectorsConfigurationModel struct {
950- IndexARN fwtypes.ARN `tfsdk:"index_arn"`
951- IndexName types.String `tfsdk:"index_name"`
952- VectorBucketARN fwtypes.ARN `tfsdk:"vector_bucket_arn"`
953- }
0 commit comments