aws-sdk-s3vectors 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3vectors/client.rb +259 -152
- data/lib/aws-sdk-s3vectors/client_api.rb +88 -2
- data/lib/aws-sdk-s3vectors/types.rb +167 -94
- data/lib/aws-sdk-s3vectors.rb +1 -1
- data/sig/client.rbs +38 -2
- data/sig/types.rbs +33 -2
- metadata +1 -1
|
@@ -476,21 +476,19 @@ module Aws::S3Vectors
|
|
|
476
476
|
|
|
477
477
|
# @!group API Operations
|
|
478
478
|
|
|
479
|
-
#
|
|
480
|
-
# S3 and is subject
|
|
481
|
-
# to change.
|
|
482
|
-
#
|
|
483
|
-
# </note>
|
|
484
|
-
#
|
|
485
|
-
# Creates a vector index within a vector bucket. To specify the vector
|
|
479
|
+
# Creates a vector index within a vector bucket. To specify the vector
|
|
486
480
|
# bucket, you must use either the vector bucket name or the vector
|
|
487
481
|
# bucket Amazon Resource Name (ARN).
|
|
488
482
|
#
|
|
489
|
-
#
|
|
483
|
+
# Permissions
|
|
490
484
|
#
|
|
491
|
-
#
|
|
485
|
+
# : You must have the `s3vectors:CreateIndex` permission to use this
|
|
492
486
|
# operation.
|
|
493
487
|
#
|
|
488
|
+
# You must have the `s3vectors:TagResource` permission in addition to
|
|
489
|
+
# `s3vectors:CreateIndex` permission to create a vector index with
|
|
490
|
+
# tags.
|
|
491
|
+
#
|
|
494
492
|
# @option params [String] :vector_bucket_name
|
|
495
493
|
# The name of the vector bucket to create the vector index in.
|
|
496
494
|
#
|
|
@@ -513,6 +511,27 @@ module Aws::S3Vectors
|
|
|
513
511
|
# @option params [Types::MetadataConfiguration] :metadata_configuration
|
|
514
512
|
# The metadata configuration for the vector index.
|
|
515
513
|
#
|
|
514
|
+
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
515
|
+
# The encryption configuration for a vector index. By default, if you
|
|
516
|
+
# don't specify, all new vectors in the vector index will use the
|
|
517
|
+
# encryption configuration of the vector bucket.
|
|
518
|
+
#
|
|
519
|
+
# @option params [Hash<String,String>] :tags
|
|
520
|
+
# An array of user-defined tags that you would like to apply to the
|
|
521
|
+
# vector index that you are creating. A tag is a key-value pair that you
|
|
522
|
+
# apply to your resources. Tags can help you organize, track costs, and
|
|
523
|
+
# control access to resources. For more information, see [Tagging for
|
|
524
|
+
# cost allocation or attribute-based access control (ABAC)][1].
|
|
525
|
+
#
|
|
526
|
+
# <note markdown="1"> You must have the `s3vectors:TagResource` permission in addition to
|
|
527
|
+
# `s3vectors:CreateIndex` permission to create a vector index with tags.
|
|
528
|
+
#
|
|
529
|
+
# </note>
|
|
530
|
+
#
|
|
531
|
+
#
|
|
532
|
+
#
|
|
533
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html
|
|
534
|
+
#
|
|
516
535
|
# @return [Types::CreateIndexOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
517
536
|
#
|
|
518
537
|
# * {Types::CreateIndexOutput#index_arn #index_arn} => String
|
|
@@ -529,6 +548,13 @@ module Aws::S3Vectors
|
|
|
529
548
|
# metadata_configuration: {
|
|
530
549
|
# non_filterable_metadata_keys: ["MetadataKey"], # required
|
|
531
550
|
# },
|
|
551
|
+
# encryption_configuration: {
|
|
552
|
+
# sse_type: "AES256", # accepts AES256, aws:kms
|
|
553
|
+
# kms_key_arn: "KmsKeyArn",
|
|
554
|
+
# },
|
|
555
|
+
# tags: {
|
|
556
|
+
# "TagKey" => "TagValue",
|
|
557
|
+
# },
|
|
532
558
|
# })
|
|
533
559
|
#
|
|
534
560
|
# @example Response structure
|
|
@@ -544,20 +570,18 @@ module Aws::S3Vectors
|
|
|
544
570
|
req.send_request(options)
|
|
545
571
|
end
|
|
546
572
|
|
|
547
|
-
#
|
|
548
|
-
# S3 and is subject
|
|
549
|
-
# to change.
|
|
550
|
-
#
|
|
551
|
-
# </note>
|
|
552
|
-
#
|
|
553
|
-
# Creates a vector bucket in the Amazon Web Services Region that you
|
|
573
|
+
# Creates a vector bucket in the Amazon Web Services Region that you
|
|
554
574
|
# want your bucket to be in.
|
|
555
575
|
#
|
|
556
|
-
#
|
|
576
|
+
# Permissions
|
|
557
577
|
#
|
|
558
|
-
#
|
|
578
|
+
# : You must have the `s3vectors:CreateVectorBucket` permission to use
|
|
559
579
|
# this operation.
|
|
560
580
|
#
|
|
581
|
+
# You must have the `s3vectors:TagResource` permission in addition to
|
|
582
|
+
# `s3vectors:CreateVectorBucket` permission to create a vector bucket
|
|
583
|
+
# with tags.
|
|
584
|
+
#
|
|
561
585
|
# @option params [required, String] :vector_bucket_name
|
|
562
586
|
# The name of the vector bucket to create.
|
|
563
587
|
#
|
|
@@ -567,6 +591,23 @@ module Aws::S3Vectors
|
|
|
567
591
|
# server-side encryption with Amazon S3 managed keys (SSE-S3),
|
|
568
592
|
# specifically `AES256`.
|
|
569
593
|
#
|
|
594
|
+
# @option params [Hash<String,String>] :tags
|
|
595
|
+
# An array of user-defined tags that you would like to apply to the
|
|
596
|
+
# vector bucket that you are creating. A tag is a key-value pair that
|
|
597
|
+
# you apply to your resources. Tags can help you organize and control
|
|
598
|
+
# access to resources. For more information, see [Tagging for cost
|
|
599
|
+
# allocation or attribute-based access control (ABAC)][1].
|
|
600
|
+
#
|
|
601
|
+
# <note markdown="1"> You must have the `s3vectors:TagResource` permission in addition to
|
|
602
|
+
# `s3vectors:CreateVectorBucket` permission to create a vector bucket
|
|
603
|
+
# with tags.
|
|
604
|
+
#
|
|
605
|
+
# </note>
|
|
606
|
+
#
|
|
607
|
+
#
|
|
608
|
+
#
|
|
609
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html
|
|
610
|
+
#
|
|
570
611
|
# @return [Types::CreateVectorBucketOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
571
612
|
#
|
|
572
613
|
# * {Types::CreateVectorBucketOutput#vector_bucket_arn #vector_bucket_arn} => String
|
|
@@ -579,6 +620,9 @@ module Aws::S3Vectors
|
|
|
579
620
|
# sse_type: "AES256", # accepts AES256, aws:kms
|
|
580
621
|
# kms_key_arn: "KmsKeyArn",
|
|
581
622
|
# },
|
|
623
|
+
# tags: {
|
|
624
|
+
# "TagKey" => "TagValue",
|
|
625
|
+
# },
|
|
582
626
|
# })
|
|
583
627
|
#
|
|
584
628
|
# @example Response structure
|
|
@@ -594,19 +638,13 @@ module Aws::S3Vectors
|
|
|
594
638
|
req.send_request(options)
|
|
595
639
|
end
|
|
596
640
|
|
|
597
|
-
#
|
|
598
|
-
# S3 and is subject
|
|
599
|
-
# to change.
|
|
600
|
-
#
|
|
601
|
-
# </note>
|
|
602
|
-
#
|
|
603
|
-
# Deletes a vector index. To specify the vector index, you can either
|
|
641
|
+
# Deletes a vector index. To specify the vector index, you can either
|
|
604
642
|
# use both the vector bucket name and vector index name, or use the
|
|
605
643
|
# vector index Amazon Resource Name (ARN).
|
|
606
644
|
#
|
|
607
|
-
#
|
|
645
|
+
# Permissions
|
|
608
646
|
#
|
|
609
|
-
#
|
|
647
|
+
# : You must have the `s3vectors:DeleteIndex` permission to use this
|
|
610
648
|
# operation.
|
|
611
649
|
#
|
|
612
650
|
# @option params [String] :vector_bucket_name
|
|
@@ -637,20 +675,14 @@ module Aws::S3Vectors
|
|
|
637
675
|
req.send_request(options)
|
|
638
676
|
end
|
|
639
677
|
|
|
640
|
-
#
|
|
641
|
-
# S3 and is subject
|
|
642
|
-
# to change.
|
|
643
|
-
#
|
|
644
|
-
# </note>
|
|
645
|
-
#
|
|
646
|
-
# Deletes a vector bucket. All vector indexes in the vector bucket must
|
|
678
|
+
# Deletes a vector bucket. All vector indexes in the vector bucket must
|
|
647
679
|
# be deleted before the vector bucket can be deleted. To perform this
|
|
648
680
|
# operation, you must use either the vector bucket name or the vector
|
|
649
681
|
# bucket Amazon Resource Name (ARN).
|
|
650
682
|
#
|
|
651
|
-
#
|
|
683
|
+
# Permissions
|
|
652
684
|
#
|
|
653
|
-
#
|
|
685
|
+
# : You must have the `s3vectors:DeleteVectorBucket` permission to use
|
|
654
686
|
# this operation.
|
|
655
687
|
#
|
|
656
688
|
# @option params [String] :vector_bucket_name
|
|
@@ -677,19 +709,13 @@ module Aws::S3Vectors
|
|
|
677
709
|
req.send_request(options)
|
|
678
710
|
end
|
|
679
711
|
|
|
680
|
-
#
|
|
681
|
-
# S3 and is subject
|
|
682
|
-
# to change.
|
|
683
|
-
#
|
|
684
|
-
# </note>
|
|
685
|
-
#
|
|
686
|
-
# Deletes a vector bucket policy. To specify the bucket, you must use
|
|
712
|
+
# Deletes a vector bucket policy. To specify the bucket, you must use
|
|
687
713
|
# either the vector bucket name or the vector bucket Amazon Resource
|
|
688
714
|
# Name (ARN).
|
|
689
715
|
#
|
|
690
|
-
#
|
|
716
|
+
# Permissions
|
|
691
717
|
#
|
|
692
|
-
#
|
|
718
|
+
# : You must have the `s3vectors:DeleteVectorBucketPolicy` permission to
|
|
693
719
|
# use this operation.
|
|
694
720
|
#
|
|
695
721
|
# @option params [String] :vector_bucket_name
|
|
@@ -716,19 +742,13 @@ module Aws::S3Vectors
|
|
|
716
742
|
req.send_request(options)
|
|
717
743
|
end
|
|
718
744
|
|
|
719
|
-
#
|
|
720
|
-
# S3 and is subject
|
|
721
|
-
# to change.
|
|
722
|
-
#
|
|
723
|
-
# </note>
|
|
724
|
-
#
|
|
725
|
-
# Deletes one or more vectors in a vector index. To specify the vector
|
|
745
|
+
# Deletes one or more vectors in a vector index. To specify the vector
|
|
726
746
|
# index, you can either use both the vector bucket name and vector index
|
|
727
747
|
# name, or use the vector index Amazon Resource Name (ARN).
|
|
728
748
|
#
|
|
729
|
-
#
|
|
749
|
+
# Permissions
|
|
730
750
|
#
|
|
731
|
-
#
|
|
751
|
+
# : You must have the `s3vectors:DeleteVectors` permission to use this
|
|
732
752
|
# operation.
|
|
733
753
|
#
|
|
734
754
|
# @option params [String] :vector_bucket_name
|
|
@@ -764,19 +784,13 @@ module Aws::S3Vectors
|
|
|
764
784
|
req.send_request(options)
|
|
765
785
|
end
|
|
766
786
|
|
|
767
|
-
#
|
|
768
|
-
# S3 and is subject
|
|
769
|
-
# to change.
|
|
770
|
-
#
|
|
771
|
-
# </note>
|
|
772
|
-
#
|
|
773
|
-
# Returns vector index attributes. To specify the vector index, you can
|
|
787
|
+
# Returns vector index attributes. To specify the vector index, you can
|
|
774
788
|
# either use both the vector bucket name and the vector index name, or
|
|
775
789
|
# use the vector index Amazon Resource Name (ARN).
|
|
776
790
|
#
|
|
777
|
-
#
|
|
791
|
+
# Permissions
|
|
778
792
|
#
|
|
779
|
-
#
|
|
793
|
+
# : You must have the `s3vectors:GetIndex` permission to use this
|
|
780
794
|
# operation.
|
|
781
795
|
#
|
|
782
796
|
# @option params [String] :vector_bucket_name
|
|
@@ -811,6 +825,8 @@ module Aws::S3Vectors
|
|
|
811
825
|
# resp.index.distance_metric #=> String, one of "euclidean", "cosine"
|
|
812
826
|
# resp.index.metadata_configuration.non_filterable_metadata_keys #=> Array
|
|
813
827
|
# resp.index.metadata_configuration.non_filterable_metadata_keys[0] #=> String
|
|
828
|
+
# resp.index.encryption_configuration.sse_type #=> String, one of "AES256", "aws:kms"
|
|
829
|
+
# resp.index.encryption_configuration.kms_key_arn #=> String
|
|
814
830
|
#
|
|
815
831
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/GetIndex AWS API Documentation
|
|
816
832
|
#
|
|
@@ -821,19 +837,13 @@ module Aws::S3Vectors
|
|
|
821
837
|
req.send_request(options)
|
|
822
838
|
end
|
|
823
839
|
|
|
824
|
-
#
|
|
825
|
-
# S3 and is subject
|
|
826
|
-
# to change.
|
|
827
|
-
#
|
|
828
|
-
# </note>
|
|
829
|
-
#
|
|
830
|
-
# Returns vector bucket attributes. To specify the bucket, you must use
|
|
840
|
+
# Returns vector bucket attributes. To specify the bucket, you must use
|
|
831
841
|
# either the vector bucket name or the vector bucket Amazon Resource
|
|
832
842
|
# Name (ARN).
|
|
833
843
|
#
|
|
834
|
-
#
|
|
844
|
+
# Permissions
|
|
835
845
|
#
|
|
836
|
-
#
|
|
846
|
+
# : You must have the `s3vectors:GetVectorBucket` permission to use this
|
|
837
847
|
# operation.
|
|
838
848
|
#
|
|
839
849
|
# @option params [String] :vector_bucket_name
|
|
@@ -870,19 +880,13 @@ module Aws::S3Vectors
|
|
|
870
880
|
req.send_request(options)
|
|
871
881
|
end
|
|
872
882
|
|
|
873
|
-
#
|
|
874
|
-
# S3 and is subject
|
|
875
|
-
# to change.
|
|
876
|
-
#
|
|
877
|
-
# </note>
|
|
878
|
-
#
|
|
879
|
-
# Gets details about a vector bucket policy. To specify the bucket, you
|
|
883
|
+
# Gets details about a vector bucket policy. To specify the bucket, you
|
|
880
884
|
# must use either the vector bucket name or the vector bucket Amazon
|
|
881
885
|
# Resource Name (ARN).
|
|
882
886
|
#
|
|
883
|
-
#
|
|
887
|
+
# Permissions
|
|
884
888
|
#
|
|
885
|
-
#
|
|
889
|
+
# : You must have the `s3vectors:GetVectorBucketPolicy` permission to
|
|
886
890
|
# use this operation.
|
|
887
891
|
#
|
|
888
892
|
# @option params [String] :vector_bucket_name
|
|
@@ -915,20 +919,13 @@ module Aws::S3Vectors
|
|
|
915
919
|
req.send_request(options)
|
|
916
920
|
end
|
|
917
921
|
|
|
918
|
-
#
|
|
919
|
-
# S3 and is subject
|
|
920
|
-
# to change.
|
|
921
|
-
#
|
|
922
|
-
# </note>
|
|
923
|
-
#
|
|
924
|
-
# Returns vector attributes. To specify the vector index, you can
|
|
925
|
-
# either
|
|
922
|
+
# Returns vector attributes. To specify the vector index, you can either
|
|
926
923
|
# use both the vector bucket name and the vector index name, or use the
|
|
927
924
|
# vector index Amazon Resource Name (ARN).
|
|
928
925
|
#
|
|
929
|
-
#
|
|
926
|
+
# Permissions
|
|
930
927
|
#
|
|
931
|
-
#
|
|
928
|
+
# : You must have the `s3vectors:GetVectors` permission to use this
|
|
932
929
|
# operation.
|
|
933
930
|
#
|
|
934
931
|
# @option params [String] :vector_bucket_name
|
|
@@ -982,19 +979,13 @@ module Aws::S3Vectors
|
|
|
982
979
|
req.send_request(options)
|
|
983
980
|
end
|
|
984
981
|
|
|
985
|
-
#
|
|
986
|
-
# S3 and is subject
|
|
987
|
-
# to change.
|
|
988
|
-
#
|
|
989
|
-
# </note>
|
|
990
|
-
#
|
|
991
|
-
# Returns a list of all the vector indexes within the specified vector
|
|
982
|
+
# Returns a list of all the vector indexes within the specified vector
|
|
992
983
|
# bucket. To specify the bucket, you must use either the vector bucket
|
|
993
984
|
# name or the vector bucket Amazon Resource Name (ARN).
|
|
994
985
|
#
|
|
995
|
-
#
|
|
986
|
+
# Permissions
|
|
996
987
|
#
|
|
997
|
-
#
|
|
988
|
+
# : You must have the `s3vectors:ListIndexes` permission to use this
|
|
998
989
|
# operation.
|
|
999
990
|
#
|
|
1000
991
|
# @option params [String] :vector_bucket_name
|
|
@@ -1048,18 +1039,60 @@ module Aws::S3Vectors
|
|
|
1048
1039
|
req.send_request(options)
|
|
1049
1040
|
end
|
|
1050
1041
|
|
|
1051
|
-
#
|
|
1052
|
-
#
|
|
1053
|
-
# to
|
|
1042
|
+
# Lists all of the tags applied to a specified Amazon S3 Vectors
|
|
1043
|
+
# resource. Each tag is a label consisting of a key and value pair. Tags
|
|
1044
|
+
# can help you organize, track costs for, and control access to
|
|
1045
|
+
# resources.
|
|
1046
|
+
#
|
|
1047
|
+
# <note markdown="1"> For a list of S3 resources that support tagging, see [Managing tags
|
|
1048
|
+
# for Amazon S3 resources][1].
|
|
1054
1049
|
#
|
|
1055
1050
|
# </note>
|
|
1056
1051
|
#
|
|
1057
|
-
#
|
|
1052
|
+
# Permissions
|
|
1053
|
+
#
|
|
1054
|
+
# : For vector buckets and vector indexes, you must have the
|
|
1055
|
+
# `s3vectors:ListTagsForResource` permission to use this operation.
|
|
1056
|
+
#
|
|
1057
|
+
#
|
|
1058
|
+
#
|
|
1059
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html#manage-tags
|
|
1060
|
+
#
|
|
1061
|
+
# @option params [required, String] :resource_arn
|
|
1062
|
+
# The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that
|
|
1063
|
+
# you want to list tags for. The tagged resource can be a vector bucket
|
|
1064
|
+
# or a vector index.
|
|
1065
|
+
#
|
|
1066
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1067
|
+
#
|
|
1068
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Hash<String,String>
|
|
1069
|
+
#
|
|
1070
|
+
# @example Request syntax with placeholder values
|
|
1071
|
+
#
|
|
1072
|
+
# resp = client.list_tags_for_resource({
|
|
1073
|
+
# resource_arn: "ResourceARN", # required
|
|
1074
|
+
# })
|
|
1075
|
+
#
|
|
1076
|
+
# @example Response structure
|
|
1077
|
+
#
|
|
1078
|
+
# resp.tags #=> Hash
|
|
1079
|
+
# resp.tags["TagKey"] #=> String
|
|
1080
|
+
#
|
|
1081
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/ListTagsForResource AWS API Documentation
|
|
1082
|
+
#
|
|
1083
|
+
# @overload list_tags_for_resource(params = {})
|
|
1084
|
+
# @param [Hash] params ({})
|
|
1085
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
1086
|
+
req = build_request(:list_tags_for_resource, params)
|
|
1087
|
+
req.send_request(options)
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
# Returns a list of all the vector buckets that are owned by the
|
|
1058
1091
|
# authenticated sender of the request.
|
|
1059
1092
|
#
|
|
1060
|
-
#
|
|
1093
|
+
# Permissions
|
|
1061
1094
|
#
|
|
1062
|
-
#
|
|
1095
|
+
# : You must have the `s3vectors:ListVectorBuckets` permission to use
|
|
1063
1096
|
# this operation.
|
|
1064
1097
|
#
|
|
1065
1098
|
# @option params [Integer] :max_results
|
|
@@ -1104,24 +1137,18 @@ module Aws::S3Vectors
|
|
|
1104
1137
|
req.send_request(options)
|
|
1105
1138
|
end
|
|
1106
1139
|
|
|
1107
|
-
#
|
|
1108
|
-
# S3 and is subject
|
|
1109
|
-
# to change.
|
|
1110
|
-
#
|
|
1111
|
-
# </note>
|
|
1112
|
-
#
|
|
1113
|
-
# List vectors in the specified vector index. To specify the vector
|
|
1140
|
+
# List vectors in the specified vector index. To specify the vector
|
|
1114
1141
|
# index, you can either use both the vector bucket name and the vector
|
|
1115
1142
|
# index name, or use the vector index Amazon Resource Name (ARN).
|
|
1116
1143
|
#
|
|
1117
|
-
#
|
|
1144
|
+
# `ListVectors` operations proceed sequentially; however, for faster
|
|
1118
1145
|
# performance on a large number of vectors in a vector index,
|
|
1119
1146
|
# applications can request a parallel `ListVectors` operation by
|
|
1120
1147
|
# providing the `segmentCount` and `segmentIndex` parameters.
|
|
1121
1148
|
#
|
|
1122
|
-
#
|
|
1149
|
+
# Permissions
|
|
1123
1150
|
#
|
|
1124
|
-
#
|
|
1151
|
+
# : You must have the `s3vectors:ListVectors` permission to use this
|
|
1125
1152
|
# operation. Additional permissions are required based on the request
|
|
1126
1153
|
# parameters you specify:
|
|
1127
1154
|
#
|
|
@@ -1234,19 +1261,13 @@ module Aws::S3Vectors
|
|
|
1234
1261
|
req.send_request(options)
|
|
1235
1262
|
end
|
|
1236
1263
|
|
|
1237
|
-
#
|
|
1238
|
-
# S3 and is subject
|
|
1239
|
-
# to change.
|
|
1240
|
-
#
|
|
1241
|
-
# </note>
|
|
1242
|
-
#
|
|
1243
|
-
# Creates a bucket policy for a vector bucket. To specify the bucket,
|
|
1264
|
+
# Creates a bucket policy for a vector bucket. To specify the bucket,
|
|
1244
1265
|
# you must use either the vector bucket name or the vector bucket Amazon
|
|
1245
1266
|
# Resource Name (ARN).
|
|
1246
1267
|
#
|
|
1247
|
-
#
|
|
1268
|
+
# Permissions
|
|
1248
1269
|
#
|
|
1249
|
-
#
|
|
1270
|
+
# : You must have the `s3vectors:PutVectorBucketPolicy` permission to
|
|
1250
1271
|
# use this operation.
|
|
1251
1272
|
#
|
|
1252
1273
|
# @option params [String] :vector_bucket_name
|
|
@@ -1283,21 +1304,14 @@ module Aws::S3Vectors
|
|
|
1283
1304
|
req.send_request(options)
|
|
1284
1305
|
end
|
|
1285
1306
|
|
|
1286
|
-
#
|
|
1287
|
-
# S3 and is subject
|
|
1288
|
-
# to change.
|
|
1289
|
-
#
|
|
1290
|
-
# </note>
|
|
1291
|
-
#
|
|
1292
|
-
# Adds one or more vectors to a vector index. To specify the vector
|
|
1307
|
+
# Adds one or more vectors to a vector index. To specify the vector
|
|
1293
1308
|
# index, you can either use both the vector bucket name and the vector
|
|
1294
1309
|
# index name, or use the vector index Amazon Resource Name (ARN).
|
|
1295
1310
|
#
|
|
1296
|
-
#
|
|
1311
|
+
# For more information about limits, see [Limitations and
|
|
1297
1312
|
# restrictions][1] in the *Amazon S3 User Guide*.
|
|
1298
1313
|
#
|
|
1299
|
-
#
|
|
1300
|
-
# index, you must provide
|
|
1314
|
+
# <note markdown="1"> When inserting vector data into your vector index, you must provide
|
|
1301
1315
|
# the vector data as `float32` (32-bit floating point) values. If you
|
|
1302
1316
|
# pass higher-precision values to an Amazon Web Services SDK, S3 Vectors
|
|
1303
1317
|
# converts the values to 32-bit floating point before storing them, and
|
|
@@ -1310,9 +1324,9 @@ module Aws::S3Vectors
|
|
|
1310
1324
|
#
|
|
1311
1325
|
# </note>
|
|
1312
1326
|
#
|
|
1313
|
-
#
|
|
1327
|
+
# Permissions
|
|
1314
1328
|
#
|
|
1315
|
-
#
|
|
1329
|
+
# : You must have the `s3vectors:PutVectors` permission to use this
|
|
1316
1330
|
# operation.
|
|
1317
1331
|
#
|
|
1318
1332
|
#
|
|
@@ -1363,26 +1377,19 @@ module Aws::S3Vectors
|
|
|
1363
1377
|
req.send_request(options)
|
|
1364
1378
|
end
|
|
1365
1379
|
|
|
1366
|
-
#
|
|
1367
|
-
# S3 and is subject
|
|
1368
|
-
# to change.
|
|
1369
|
-
#
|
|
1370
|
-
# </note>
|
|
1371
|
-
#
|
|
1372
|
-
# Performs an approximate nearest neighbor search query in a vector
|
|
1380
|
+
# Performs an approximate nearest neighbor search query in a vector
|
|
1373
1381
|
# index using a query vector. By default, it returns the keys of
|
|
1374
1382
|
# approximate nearest neighbors. You can optionally include the computed
|
|
1375
1383
|
# distance (between the query vector and each vector in the response),
|
|
1376
1384
|
# the vector data, and metadata of each vector in the response.
|
|
1377
1385
|
#
|
|
1378
|
-
#
|
|
1379
|
-
# bucket
|
|
1386
|
+
# To specify the vector index, you can either use both the vector bucket
|
|
1380
1387
|
# name and the vector index name, or use the vector index Amazon
|
|
1381
1388
|
# Resource Name (ARN).
|
|
1382
1389
|
#
|
|
1383
|
-
#
|
|
1390
|
+
# Permissions
|
|
1384
1391
|
#
|
|
1385
|
-
#
|
|
1392
|
+
# : You must have the `s3vectors:QueryVectors` permission to use this
|
|
1386
1393
|
# operation. Additional permissions are required based on the request
|
|
1387
1394
|
# parameters you specify:
|
|
1388
1395
|
#
|
|
@@ -1463,10 +1470,8 @@ module Aws::S3Vectors
|
|
|
1463
1470
|
# @example Response structure
|
|
1464
1471
|
#
|
|
1465
1472
|
# resp.vectors #=> Array
|
|
1466
|
-
# resp.vectors[0].key #=> String
|
|
1467
|
-
# resp.vectors[0].data.float32 #=> Array
|
|
1468
|
-
# resp.vectors[0].data.float32[0] #=> Float
|
|
1469
1473
|
# resp.vectors[0].distance #=> Float
|
|
1474
|
+
# resp.vectors[0].key #=> String
|
|
1470
1475
|
# resp.distance_metric #=> String, one of "euclidean", "cosine"
|
|
1471
1476
|
#
|
|
1472
1477
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/QueryVectors AWS API Documentation
|
|
@@ -1478,6 +1483,108 @@ module Aws::S3Vectors
|
|
|
1478
1483
|
req.send_request(options)
|
|
1479
1484
|
end
|
|
1480
1485
|
|
|
1486
|
+
# Applies one or more user-defined tags to an Amazon S3 Vectors resource
|
|
1487
|
+
# or updates existing tags. Each tag is a label consisting of a key and
|
|
1488
|
+
# value pair. Tags can help you organize, track costs for, and control
|
|
1489
|
+
# access to your resources. You can add up to 50 tags for each resource.
|
|
1490
|
+
#
|
|
1491
|
+
# <note markdown="1"> For a list of S3 resources that support tagging, see [Managing tags
|
|
1492
|
+
# for Amazon S3 resources][1].
|
|
1493
|
+
#
|
|
1494
|
+
# </note>
|
|
1495
|
+
#
|
|
1496
|
+
# Permissions
|
|
1497
|
+
#
|
|
1498
|
+
# : For vector buckets and vector indexes, you must have the
|
|
1499
|
+
# `s3vectors:TagResource` permission to use this operation.
|
|
1500
|
+
#
|
|
1501
|
+
#
|
|
1502
|
+
#
|
|
1503
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html#manage-tags
|
|
1504
|
+
#
|
|
1505
|
+
# @option params [required, String] :resource_arn
|
|
1506
|
+
# The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that
|
|
1507
|
+
# you're applying tags to. The tagged resource can be a vector bucket
|
|
1508
|
+
# or a vector index.
|
|
1509
|
+
#
|
|
1510
|
+
# @option params [required, Hash<String,String>] :tags
|
|
1511
|
+
# The user-defined tag that you want to add to the specified S3 Vectors
|
|
1512
|
+
# resource. For more information, see [Tagging for cost allocation or
|
|
1513
|
+
# attribute-based access control (ABAC)][1].
|
|
1514
|
+
#
|
|
1515
|
+
#
|
|
1516
|
+
#
|
|
1517
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html
|
|
1518
|
+
#
|
|
1519
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1520
|
+
#
|
|
1521
|
+
# @example Request syntax with placeholder values
|
|
1522
|
+
#
|
|
1523
|
+
# resp = client.tag_resource({
|
|
1524
|
+
# resource_arn: "ResourceARN", # required
|
|
1525
|
+
# tags: { # required
|
|
1526
|
+
# "TagKey" => "TagValue",
|
|
1527
|
+
# },
|
|
1528
|
+
# })
|
|
1529
|
+
#
|
|
1530
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/TagResource AWS API Documentation
|
|
1531
|
+
#
|
|
1532
|
+
# @overload tag_resource(params = {})
|
|
1533
|
+
# @param [Hash] params ({})
|
|
1534
|
+
def tag_resource(params = {}, options = {})
|
|
1535
|
+
req = build_request(:tag_resource, params)
|
|
1536
|
+
req.send_request(options)
|
|
1537
|
+
end
|
|
1538
|
+
|
|
1539
|
+
# Removes the specified user-defined tags from an Amazon S3 Vectors
|
|
1540
|
+
# resource. You can pass one or more tag keys.
|
|
1541
|
+
#
|
|
1542
|
+
# <note markdown="1"> For a list of S3 resources that support tagging, see [Managing tags
|
|
1543
|
+
# for Amazon S3 resources][1].
|
|
1544
|
+
#
|
|
1545
|
+
# </note>
|
|
1546
|
+
#
|
|
1547
|
+
# Permissions
|
|
1548
|
+
#
|
|
1549
|
+
# : For vector buckets and vector indexes, you must have the
|
|
1550
|
+
# `s3vectors:UntagResource` permission to use this operation.
|
|
1551
|
+
#
|
|
1552
|
+
#
|
|
1553
|
+
#
|
|
1554
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html#manage-tags
|
|
1555
|
+
#
|
|
1556
|
+
# @option params [required, String] :resource_arn
|
|
1557
|
+
# The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that
|
|
1558
|
+
# you're removing tags from. The tagged resource can be a vector bucket
|
|
1559
|
+
# or a vector index.
|
|
1560
|
+
#
|
|
1561
|
+
# @option params [required, Array<String>] :tag_keys
|
|
1562
|
+
# The array of tag keys that you're removing from the S3 Vectors
|
|
1563
|
+
# resource. For more information, see [Tagging for cost allocation or
|
|
1564
|
+
# attribute-based access control (ABAC)][1].
|
|
1565
|
+
#
|
|
1566
|
+
#
|
|
1567
|
+
#
|
|
1568
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html
|
|
1569
|
+
#
|
|
1570
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1571
|
+
#
|
|
1572
|
+
# @example Request syntax with placeholder values
|
|
1573
|
+
#
|
|
1574
|
+
# resp = client.untag_resource({
|
|
1575
|
+
# resource_arn: "ResourceARN", # required
|
|
1576
|
+
# tag_keys: ["TagKey"], # required
|
|
1577
|
+
# })
|
|
1578
|
+
#
|
|
1579
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/UntagResource AWS API Documentation
|
|
1580
|
+
#
|
|
1581
|
+
# @overload untag_resource(params = {})
|
|
1582
|
+
# @param [Hash] params ({})
|
|
1583
|
+
def untag_resource(params = {}, options = {})
|
|
1584
|
+
req = build_request(:untag_resource, params)
|
|
1585
|
+
req.send_request(options)
|
|
1586
|
+
end
|
|
1587
|
+
|
|
1481
1588
|
# @!endgroup
|
|
1482
1589
|
|
|
1483
1590
|
# @param params ({})
|
|
@@ -1496,7 +1603,7 @@ module Aws::S3Vectors
|
|
|
1496
1603
|
tracer: tracer
|
|
1497
1604
|
)
|
|
1498
1605
|
context[:gem_name] = 'aws-sdk-s3vectors'
|
|
1499
|
-
context[:gem_version] = '1.
|
|
1606
|
+
context[:gem_version] = '1.10.0'
|
|
1500
1607
|
Seahorse::Client::Request.new(handlers, context)
|
|
1501
1608
|
end
|
|
1502
1609
|
|