createBlueprint method
Creates an Amazon Bedrock Data Automation Blueprint
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<CreateBlueprintResponse> createBlueprint({
required String blueprintName,
required String schema,
required Type type,
BlueprintStage? blueprintStage,
String? clientToken,
EncryptionConfiguration? encryptionConfiguration,
List<Tag>? tags,
}) async {
final $payload = <String, dynamic>{
'blueprintName': blueprintName,
'schema': schema,
'type': type.value,
if (blueprintStage != null) 'blueprintStage': blueprintStage.value,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
if (encryptionConfiguration != null)
'encryptionConfiguration': encryptionConfiguration,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/blueprints/',
exceptionFnMap: _exceptionFns,
);
return CreateBlueprintResponse.fromJson(response);
}