Modify Managed Prefix List
ec2_modify_managed_prefix_list | R Documentation |
Modifies the specified managed prefix list¶
Description¶
Modifies the specified managed prefix list.
Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.
If you specify a current version number that does not match the true current version number, the request fails.
Usage¶
ec2_modify_managed_prefix_list(DryRun, PrefixListId, CurrentVersion,
PrefixListName, AddEntries, RemoveEntries, MaxEntries)
Arguments¶
DryRun
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
.PrefixListId
[required] The ID of the prefix list.
CurrentVersion
The current version of the prefix list.
PrefixListName
A name for the prefix list.
AddEntries
One or more entries to add to the prefix list.
RemoveEntries
One or more entries to remove from the prefix list.
MaxEntries
The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.
If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
Value¶
A list with the following syntax:
list(
PrefixList = list(
PrefixListId = "string",
AddressFamily = "string",
State = "create-in-progress"|"create-complete"|"create-failed"|"modify-in-progress"|"modify-complete"|"modify-failed"|"restore-in-progress"|"restore-complete"|"restore-failed"|"delete-in-progress"|"delete-complete"|"delete-failed",
StateMessage = "string",
PrefixListArn = "string",
PrefixListName = "string",
MaxEntries = 123,
Version = 123,
Tags = list(
list(
Key = "string",
Value = "string"
)
),
OwnerId = "string"
)
)