disassociateGlossaryTerms method

Future<DisassociateGlossaryTermsResponse> disassociateGlossaryTerms({
  1. required String assetIdentifier,
  2. required List<String> glossaryTermIdentifiers,
  3. String? clientToken,
})

Removes the association of one or more glossary terms from an asset in Glue Data Catalog.

May throw AccessDeniedException. May throw ConcurrentModificationException. May throw EntityNotFoundException. May throw InternalServiceException. May throw InvalidInputException. May throw ThrottlingException.

Parameter assetIdentifier : The unique identifier of the asset to disassociate glossary terms from.

Parameter glossaryTermIdentifiers : The list of glossary term identifiers to disassociate from the asset.

Parameter clientToken : A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Implementation

Future<DisassociateGlossaryTermsResponse> disassociateGlossaryTerms({
  required String assetIdentifier,
  required List<String> glossaryTermIdentifiers,
  String? clientToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.DisassociateGlossaryTerms'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AssetIdentifier': assetIdentifier,
      'GlossaryTermIdentifiers': glossaryTermIdentifiers,
      'ClientToken': clientToken ?? _s.generateIdempotencyToken(),
    },
  );

  return DisassociateGlossaryTermsResponse.fromJson(jsonResponse.body);
}