putWorkflowRunProperties method
Puts the specified workflow run properties for the given workflow run. If a property already exists for the specified run, then it overrides the value otherwise adds the property to existing properties.
May throw AlreadyExistsException. May throw EntityNotFoundException. May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException. May throw ResourceNumberLimitExceededException. May throw ConcurrentModificationException.
Parameter name
:
Name of the workflow which was run.
Parameter runId
:
The ID of the workflow run for which the run properties should be updated.
Parameter runProperties
:
The properties to put for the specified run.
Implementation
Future<void> putWorkflowRunProperties({
required String name,
required String runId,
required Map<String, String> runProperties,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(runId, 'runId');
_s.validateStringLength(
'runId',
runId,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(runProperties, 'runProperties');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.PutWorkflowRunProperties'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
'RunId': runId,
'RunProperties': runProperties,
},
);
}