restore_managed_prefix_list_version
async
¶
restore_managed_prefix_list_version(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
59030 59031 59032 59033 59034 59035 59036 59037 59038 59039 59040 59041 59042 59043 59044 59045 59046 59047 59048 59049 59050 59051 59052 59053 59054 59055 59056 59057 59058 59059 59060 59061 59062 59063 59064 59065 59066 59067 59068 59069 59070 59071 59072 59073 59074 59075 59076 59077 59078 59079 59080 59081 59082 59083 59084 59085 59086 59087 | |