updateBlueprint method
Updates a registered blueprint.
May throw ConcurrentModificationException.
May throw EntityNotFoundException.
May throw IllegalBlueprintStateException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationTimeoutException.
Parameter blueprintLocation :
Specifies a path in Amazon S3 where the blueprint is published.
Parameter name :
The name of the blueprint.
Parameter description :
A description of the blueprint.
Implementation
Future<UpdateBlueprintResponse> updateBlueprint({
required String blueprintLocation,
required String name,
String? description,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.UpdateBlueprint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BlueprintLocation': blueprintLocation,
'Name': name,
if (description != null) 'Description': description,
},
);
return UpdateBlueprintResponse.fromJson(jsonResponse.body);
}