list_types
¶
list_types(
keyspace_name: KeyspaceName,
*,
config_overrides: Optional[KeyspacesClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListTypesResponse
The ListTypes operation returns a list of types for a specified keyspace.
To read keyspace metadata using ListTypes, the IAM principal needs Select action permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT in the Amazon Keyspaces Developer Guide.
Parameters:
-
next_token(Optional[NextToken], default:None) –The pagination token. To resume pagination, provide the
NextTokenvalue as an argument of a subsequent API invocation. -
max_results(Optional[MaxResults], default:None) –The total number of types to return in the output. If the total number of types available is more than the value specified, a
NextTokenis provided in the output. To resume pagination, provide theNextTokenvalue as an argument of a subsequent API invocation. -
keyspace_name(KeyspaceName) –The name of the keyspace that contains the listed types.
Raises:
-
AccessDeniedException–You don't have sufficient access permissions to perform this action.
-
InternalServerException–Amazon Keyspaces was unable to fully process this request because of an internal server error.
-
ResourceNotFoundException–The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly, or its status might not be
ACTIVE. -
ServiceQuotaExceededException–The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide.
-
ValidationException–The operation failed due to an invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_keyspaces/_services/keyspaces.py
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 | |