createDataAutomationLibrary method
Creates an Amazon Bedrock Data Automation Library
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<CreateDataAutomationLibraryResponse> createDataAutomationLibrary({
required String libraryName,
String? clientToken,
EncryptionConfiguration? encryptionConfiguration,
String? libraryDescription,
List<Tag>? tags,
}) async {
final $payload = <String, dynamic>{
'libraryName': libraryName,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
if (encryptionConfiguration != null)
'encryptionConfiguration': encryptionConfiguration,
if (libraryDescription != null) 'libraryDescription': libraryDescription,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/data-automation-libraries/',
exceptionFnMap: _exceptionFns,
);
return CreateDataAutomationLibraryResponse.fromJson(response);
}