deleteArchive method
Deletes the specified archive.
May throw ConcurrentModificationException. May throw ResourceNotFoundException. May throw InternalException.
Parameter archiveName
:
The name of the archive to delete.
Implementation
Future<void> deleteArchive({
required String archiveName,
}) async {
ArgumentError.checkNotNull(archiveName, 'archiveName');
_s.validateStringLength(
'archiveName',
archiveName,
1,
48,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSEvents.DeleteArchive'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ArchiveName': archiveName,
},
);
}