updateDataAutomationLibrary method

Future<UpdateDataAutomationLibraryResponse> updateDataAutomationLibrary({
  1. required String libraryArn,
  2. String? clientToken,
  3. String? libraryDescription,
})

Updates an existing Amazon Bedrock Data Automation Library

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter libraryArn : ARN generated at the server side when a DataAutomationLibrary is created

Implementation

Future<UpdateDataAutomationLibraryResponse> updateDataAutomationLibrary({
  required String libraryArn,
  String? clientToken,
  String? libraryDescription,
}) async {
  final $payload = <String, dynamic>{
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
    if (libraryDescription != null) 'libraryDescription': libraryDescription,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/data-automation-libraries/${Uri.encodeComponent(libraryArn)}/',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateDataAutomationLibraryResponse.fromJson(response);
}