getPlan method
Retrieves detailed information about a Region switch plan. You must specify the ARN of the plan.
May throw ResourceNotFoundException.
Parameter arn :
The Amazon Resource Name (ARN) of the plan.
Implementation
Future<GetPlanResponse> getPlan({
required String arn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'ArcRegionSwitch.GetPlan'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'arn': arn,
},
);
return GetPlanResponse.fromJson(jsonResponse.body);
}