list_schema_versions
¶
list_schema_versions(
type: SchemaVersionType,
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
schema_id: Optional[SchemaId] = None,
namespace: Optional[SchemaVersionNamespaceName] = None,
visibility: Optional[SchemaVersionVisibility] = None,
semantic_version: Optional[SchemaVersionVersion] = None,
) -> ListSchemaVersionsResponse
Lists schema versions with the provided information.
Parameters:
-
type(SchemaVersionType) –Filter on the type of schema version.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return at one time.
-
next_token(Optional[NextToken], default:None) –A token that can be used to retrieve the next set of results.
-
schema_id(Optional[SchemaId], default:None) –Filter on the id of the schema version.
-
namespace(Optional[SchemaVersionNamespaceName], default:None) –Filter on the name of the schema version.
-
visibility(Optional[SchemaVersionVisibility], default:None) –The visibility of the schema version.
-
semantic_version(Optional[SchemaVersionVersion], default:None) –The schema version. If this is left blank, it defaults to the latest version.
Raises:
-
AccessDeniedException–User is not authorized.
-
ConflictException–There is a conflict with the request.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–A validation error occurred when performing the API request.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
ListSchemaVersions happy path for an example schema version.
>>> client.list_schema_versions(schema_id='example.ColorControl', type='capability')
ListSchemaVersions by version.
>>> client.list_schema_versions(type='capability', semantic_version='34.56')
ListSchemaVersions error for invalid input.
>>> client.list_schema_versions(schema_id='example.ColorControl', type='capability', namespace='matter')
Source code in docs_src/capo_iot_managed_integrations/_services/io_t_managed_integrations.py
6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 | |