updateBackupPlan method
Future<UpdateBackupPlanOutput>
updateBackupPlan({
- required BackupPlanInput backupPlan,
- required String backupPlanId,
Updates the specified backup plan. The new version is uniquely identified by its ID.
May throw InvalidParameterValueException.
May throw MissingParameterValueException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter backupPlan :
The body of a backup plan. Includes a BackupPlanName and one
or more sets of Rules.
Parameter backupPlanId :
The ID of the backup plan.
Implementation
Future<UpdateBackupPlanOutput> updateBackupPlan({
required BackupPlanInput backupPlan,
required String backupPlanId,
}) async {
final $payload = <String, dynamic>{
'BackupPlan': backupPlan,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/backup/plans/${Uri.encodeComponent(backupPlanId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateBackupPlanOutput.fromJson(response);
}