describeArchive method
Retrieves details about an archive.
May throw InternalException.
May throw ResourceAlreadyExistsException.
May throw ResourceNotFoundException.
Parameter archiveName :
The name of the archive to retrieve.
Implementation
Future<DescribeArchiveResponse> describeArchive({
required String archiveName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSEvents.DescribeArchive'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ArchiveName': archiveName,
},
);
return DescribeArchiveResponse.fromJson(jsonResponse.body);
}