create_managed_prefix_list
¶
create_managed_prefix_list(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
prefix_list_name: Optional[String] = None,
entries: Optional[AddPrefixListEntries] = None,
max_entries: Optional[Integer] = None,
tag_specifications: Optional[TagSpecificationList] = None,
address_family: Optional[String] = None,
client_token: Optional[String] = None,
) -> CreateManagedPrefixListResult
Creates a managed prefix list. You can specify entries for the prefix list. Each entry consists of a CIDR block and an optional description.
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_name(Optional[String], default:None) –A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws. -
entries(Optional[AddPrefixListEntries], default:None) –One or more entries for the prefix list.
-
max_entries(Optional[Integer], default:None) –The maximum number of entries for the prefix list.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the prefix list during creation.
-
address_family(Optional[String], default:None) –The IP address type.
Valid Values:
IPv4|IPv6 -
client_token(Optional[String], default:None) –Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Up to 255 UTF-8 characters in length.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 | |