updateBlueprint method
Updates an existing Amazon Bedrock Data Automation Blueprint
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter blueprintArn :
ARN generated at the server side when a Blueprint is created
Implementation
Future<UpdateBlueprintResponse> updateBlueprint({
required String blueprintArn,
required String schema,
BlueprintStage? blueprintStage,
EncryptionConfiguration? encryptionConfiguration,
}) async {
final $payload = <String, dynamic>{
'schema': schema,
if (blueprintStage != null) 'blueprintStage': blueprintStage.value,
if (encryptionConfiguration != null)
'encryptionConfiguration': encryptionConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/blueprints/${Uri.encodeComponent(blueprintArn)}/',
exceptionFnMap: _exceptionFns,
);
return UpdateBlueprintResponse.fromJson(response);
}