startBlueprintRun method
Starts a new run of the specified blueprint.
May throw EntityNotFoundException.
May throw IllegalBlueprintStateException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationTimeoutException.
May throw ResourceNumberLimitExceededException.
Parameter blueprintName :
The name of the blueprint.
Parameter roleArn :
Specifies the IAM role used to create the workflow.
Parameter parameters :
Specifies the parameters as a BlueprintParameters object.
Implementation
Future<StartBlueprintRunResponse> startBlueprintRun({
required String blueprintName,
required String roleArn,
String? parameters,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.StartBlueprintRun'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BlueprintName': blueprintName,
'RoleArn': roleArn,
if (parameters != null) 'Parameters': parameters,
},
);
return StartBlueprintRunResponse.fromJson(jsonResponse.body);
}