Skip to content

query_schema_version_metadata async

query_schema_version_metadata(
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    schema_id: Optional[SchemaId] = None,
    schema_version_number: Optional[SchemaVersionNumber] = None,
    schema_version_id: Optional[SchemaVersionIdString] = None,
    metadata_list: Optional[MetadataList] = None,
    max_results: Optional[QuerySchemaVersionMetadataMaxResults] = None,
    next_token: Optional[SchemaRegistryTokenString] = None,
) -> QuerySchemaVersionMetadataResponse

Queries for the schema version metadata information.

Parameters:

  • schema_id (Optional[SchemaId], default: None ) –

    A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).

  • schema_version_number (Optional[SchemaVersionNumber], default: None ) –

    The version number of the schema.

  • schema_version_id (Optional[SchemaVersionIdString], default: None ) –

    The unique version ID of the schema version.

  • metadata_list (Optional[MetadataList], default: None ) –

    Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.

  • max_results (Optional[QuerySchemaVersionMetadataMaxResults], default: None ) –

    Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.

  • next_token (Optional[SchemaRegistryTokenString], default: None ) –

    A continuation token, if this is a continuation call.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def query_schema_version_metadata(
    self,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    schema_id: Optional["capo_glue.types.schema_id.SchemaId"] = None,
    schema_version_number: Optional[
        "capo_glue.types.schema_version_number.SchemaVersionNumber"
    ] = None,
    schema_version_id: Optional[
        "capo_glue.types.schema_version_id_string.SchemaVersionIdString"
    ] = None,
    metadata_list: Optional["capo_glue.types.metadata_list.MetadataList"] = None,
    max_results: Optional[
        "capo_glue.types.query_schema_version_metadata_max_results.QuerySchemaVersionMetadataMaxResults"
    ] = None,
    next_token: Optional[
        "capo_glue.types.schema_registry_token_string.SchemaRegistryTokenString"
    ] = None,
) -> "capo_glue.types.query_schema_version_metadata_response.QuerySchemaVersionMetadataResponse":
    """<p>Queries for the schema version metadata information. </p>

    Args:
        schema_id: <p>A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).</p>
        schema_version_number: <p>The version number of the schema.</p>
        schema_version_id: <p>The unique version ID of the schema version.</p>
        metadata_list: <p>Search key-value pairs for metadata, if they are not provided all the metadata information will be fetched.</p>
        max_results: <p>Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.</p>
        next_token: <p>A continuation token, if this is a continuation call.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.query_schema_version_metadata_input.QuerySchemaVersionMetadataInput]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.query_schema_version_metadata_response.QuerySchemaVersionMetadataResponse"
    ]:
        import capo_glue._operations.aws_glue.query_schema_version_metadata

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.query_schema_version_metadata.async_query_schema_version_metadata(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("QuerySchemaVersionMetadata")
    )
    input_: capo_glue.types.query_schema_version_metadata_input.QuerySchemaVersionMetadataInput = {}
    if schema_id is not None:
        input_["schema_id"] = schema_id
    if schema_version_number is not None:
        input_["schema_version_number"] = schema_version_number
    if schema_version_id is not None:
        input_["schema_version_id"] = schema_version_id
    if metadata_list is not None:
        input_["metadata_list"] = metadata_list
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output