deletePlan method
Deletes a Region switch plan. You must specify the ARN of the plan to delete.
You cannot delete a plan that has an active execution in progress.
May throw IllegalStateException.
May throw ResourceNotFoundException.
Parameter arn :
The Amazon Resource Name (ARN) of the plan.
Implementation
Future<void> deletePlan({
required String arn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'ArcRegionSwitch.DeletePlan'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'arn': arn,
},
);
}