updateAnalysisTemplate method
Updates the analysis template metadata.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter analysisTemplateIdentifier :
The identifier for the analysis template resource.
Parameter membershipIdentifier :
The identifier for a membership resource.
Parameter description :
A new description for the analysis template.
Implementation
Future<UpdateAnalysisTemplateOutput> updateAnalysisTemplate({
required String analysisTemplateIdentifier,
required String membershipIdentifier,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/memberships/${Uri.encodeComponent(membershipIdentifier)}/analysistemplates/${Uri.encodeComponent(analysisTemplateIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAnalysisTemplateOutput.fromJson(response);
}