list_indexes
async
¶
list_indexes(
*,
config_overrides: Optional[AsyncS3VectorsClientConfig] = None,
vector_bucket_name: Optional[VectorBucketName] = None,
vector_bucket_arn: Optional[VectorBucketArn] = None,
max_results: Optional[ListIndexesMaxResults] = None,
next_token: Optional[ListIndexesNextToken] = None,
prefix: Optional[ListIndexesPrefix] = None,
) -> ListIndexesOutput
Returns a list of all the vector indexes within the specified vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:ListIndexespermission to use this operation.
Parameters:
-
vector_bucket_name(Optional[VectorBucketName], default:None) –The name of the vector bucket that contains the vector indexes.
-
vector_bucket_arn(Optional[VectorBucketArn], default:None) –The ARN of the vector bucket that contains the vector indexes.
-
max_results(Optional[ListIndexesMaxResults], default:None) –The maximum number of items to be returned in the response.
-
next_token(Optional[ListIndexesNextToken], default:None) –The previous pagination token.
-
prefix(Optional[ListIndexesPrefix], default:None) –Limits the response to vector indexes that begin with the specified prefix.
Raises:
-
AccessDeniedException–Access denied.
-
InternalServerException–The request failed due to an internal server error.
-
RequestTimeoutException–The request timed out. Retry your request.
-
TooManyRequestsException–The request was denied due to request throttling.
-
ValidationException–The requested action isn't valid.
-
NotFoundException–The request was rejected because the specified resource can't be found.
-
ServiceUnavailableException–The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3vectors/_services/async_s3_vectors.py
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 | |