restore_managed_prefix_list_version
¶
restore_managed_prefix_list_version(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
prefix_list_id: Optional[PrefixListResourceId] = None,
previous_version: Optional[Long] = None,
current_version: Optional[Long] = None,
) -> RestoreManagedPrefixListVersionResult
Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
prefix_list_id(Optional[PrefixListResourceId], default:None) –The ID of the prefix list.
-
previous_version(Optional[Long], default:None) –The version to restore.
-
current_version(Optional[Long], default:None) –The current version number for the prefix list.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
58215 58216 58217 58218 58219 58220 58221 58222 58223 58224 58225 58226 58227 58228 58229 58230 58231 58232 58233 58234 58235 58236 58237 58238 58239 58240 58241 58242 58243 58244 58245 58246 58247 58248 58249 58250 58251 58252 58253 58254 58255 58256 58257 58258 58259 58260 58261 58262 58263 58264 58265 58266 58267 58268 58269 58270 58271 | |