describeAgent method
Returns information about an DataSync agent, such as its name, service endpoint type, and status.
May throw InternalException.
May throw InvalidRequestException.
Parameter agentArn :
Specifies the Amazon Resource Name (ARN) of the DataSync agent that you
want information about.
Implementation
Future<DescribeAgentResponse> describeAgent({
required String agentArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'FmrsService.DescribeAgent'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AgentArn': agentArn,
},
);
return DescribeAgentResponse.fromJson(jsonResponse.body);
}