getTemplateSyncStatus method
Get the status of a template sync.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter templateName :
The template name.
Parameter templateType :
The template type.
Parameter templateVersion :
The template major version.
Implementation
Future<GetTemplateSyncStatusOutput> getTemplateSyncStatus({
required String templateName,
required TemplateType templateType,
required String templateVersion,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AwsProton20200720.GetTemplateSyncStatus'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'templateName': templateName,
'templateType': templateType.value,
'templateVersion': templateVersion,
},
);
return GetTemplateSyncStatusOutput.fromJson(jsonResponse.body);
}