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