deleteProvisioningTemplateVersion method
Deletes a provisioning template version.
Requires permission to access the DeleteProvisioningTemplateVersion action.
May throw ConflictingResourceUpdateException.
May throw DeleteConflictException.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw UnauthorizedException.
Parameter templateName :
The name of the provisioning template version to delete.
Parameter versionId :
The provisioning template version ID to delete.
Implementation
Future<void> deleteProvisioningTemplateVersion({
required String templateName,
required int versionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/provisioning-templates/${Uri.encodeComponent(templateName)}/versions/${Uri.encodeComponent(versionId.toString())}',
exceptionFnMap: _exceptionFns,
);
}