getTemplateSyncConfig method
Future<GetTemplateSyncConfigOutput>
getTemplateSyncConfig({
- required String templateName,
- required TemplateType templateType,
Get detail data for a template sync configuration.
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.
Implementation
Future<GetTemplateSyncConfigOutput> getTemplateSyncConfig({
required String templateName,
required TemplateType templateType,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AwsProton20200720.GetTemplateSyncConfig'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'templateName': templateName,
'templateType': templateType.value,
},
);
return GetTemplateSyncConfigOutput.fromJson(jsonResponse.body);
}