getPlanInRegion method

Future<GetPlanInRegionResponse> getPlanInRegion({
  1. required String arn,
})

Retrieves information about a Region switch plan in a specific Amazon Web Services Region. This operation is useful for getting Region-specific information about a plan.

May throw AccessDeniedException. May throw ResourceNotFoundException.

Parameter arn : The Amazon Resource Name (ARN) of the plan in Region.

Implementation

Future<GetPlanInRegionResponse> getPlanInRegion({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'ArcRegionSwitch.GetPlanInRegion'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );

  return GetPlanInRegionResponse.fromJson(jsonResponse.body);
}