deleteProvisioningTemplate method
Deletes a fleet provisioning template.
May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw DeleteConflictException. May throw ThrottlingException. May throw ConflictingResourceUpdateException. May throw UnauthorizedException.
Parameter templateName
:
The name of the fleet provision template to delete.
Implementation
Future<void> deleteProvisioningTemplate({
required String templateName,
}) async {
ArgumentError.checkNotNull(templateName, 'templateName');
_s.validateStringLength(
'templateName',
templateName,
1,
36,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/provisioning-templates/${Uri.encodeComponent(templateName)}',
exceptionFnMap: _exceptionFns,
);
}