querySchemaVersionMetadata method

Future<QuerySchemaVersionMetadataResponse> querySchemaVersionMetadata({
  1. int? maxResults,
  2. List<MetadataKeyValuePair>? metadataList,
  3. String? nextToken,
  4. SchemaId? schemaId,
  5. String? schemaVersionId,
  6. SchemaVersionNumber? schemaVersionNumber,
})

Queries for the schema version metadata information.

May throw InvalidInputException. May throw AccessDeniedException. May throw EntityNotFoundException.

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

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

Parameter nextToken : A continuation token, if this is a continuation call.

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

Parameter schemaVersionId : The unique version ID of the schema version.

Parameter schemaVersionNumber : The version number of the schema.

Implementation

Future<QuerySchemaVersionMetadataResponse> querySchemaVersionMetadata({
  int? maxResults,
  List<MetadataKeyValuePair>? metadataList,
  String? nextToken,
  SchemaId? schemaId,
  String? schemaVersionId,
  SchemaVersionNumber? schemaVersionNumber,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    50,
  );
  _s.validateStringLength(
    'schemaVersionId',
    schemaVersionId,
    36,
    36,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.QuerySchemaVersionMetadata'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (metadataList != null) 'MetadataList': metadataList,
      if (nextToken != null) 'NextToken': nextToken,
      if (schemaId != null) 'SchemaId': schemaId,
      if (schemaVersionId != null) 'SchemaVersionId': schemaVersionId,
      if (schemaVersionNumber != null)
        'SchemaVersionNumber': schemaVersionNumber,
    },
  );

  return QuerySchemaVersionMetadataResponse.fromJson(jsonResponse.body);
}