list_schema_versions
async
¶
list_schema_versions(
type: SchemaVersionType,
*,
config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = 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.
>>> await client.list_schema_versions(schema_id='example.ColorControl', type='capability')
ListSchemaVersions by version.
>>> await client.list_schema_versions(type='capability', semantic_version='34.56')
ListSchemaVersions error for invalid input.
>>> await client.list_schema_versions(schema_id='example.ColorControl', type='capability', namespace='matter')
Source code in docs_src/capo_iot_managed_integrations/_services/async_io_t_managed_integrations.py
6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 | |