create_managed_prefix_list¶
Operation¶
create_managed_prefix_list
async
¶
create_managed_prefix_list(request: CreateManagedPrefixListInput | CreateManagedPrefixListInputDict, /, *, plugins: list[Plugin] | None = None) -> CreateManagedPrefixListOutput
create_managed_prefix_list(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateManagedPrefixListInputDict]) -> CreateManagedPrefixListOutput
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:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
CreateManagedPrefixListOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
CreateManagedPrefixListInput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateManagedPrefixListInput structure.
Attributes¶
address_family
class-attribute
instance-attribute
¶
address_family: str | None = ...
The IP address type.
Valid Values: IPv4 | IPv6
client_token
class-attribute
instance-attribute
¶
client_token: str | 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.
This field is autopopulated if not provided.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
entries
class-attribute
instance-attribute
¶
entries: list[AddPrefixListEntry] | None = ...
One or more entries for the prefix list.
max_entries
class-attribute
instance-attribute
¶
max_entries: int | None = ...
The maximum number of entries for the prefix list.
prefix_list_name
class-attribute
instance-attribute
¶
prefix_list_name: str | None = ...
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws.
tag_specifications
class-attribute
instance-attribute
¶
tag_specifications: list[TagSpecification] | None = ...
The tags to apply to the prefix list during creation.
Dictionaries¶
CreateManagedPrefixListInputDict
¶
Bases: TypedDict
Dictionary form of CreateManagedPrefixListInput.
Attributes¶
address_family
instance-attribute
¶
The IP address type.
Valid Values: IPv4 | IPv6
client_token
instance-attribute
¶
client_token: str | 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.
This field is autopopulated if not provided.
dry_run
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
entries
instance-attribute
¶
entries: Sequence[AddPrefixListEntry | AddPrefixListEntryDict] | None
One or more entries for the prefix list.
max_entries
instance-attribute
¶
The maximum number of entries for the prefix list.
prefix_list_name
instance-attribute
¶
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws.
tag_specifications
instance-attribute
¶
tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None
The tags to apply to the prefix list during creation.
Output¶
CreateManagedPrefixListOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateManagedPrefixListOutput structure.
Attributes¶
prefix_list
class-attribute
instance-attribute
¶
prefix_list: ManagedPrefixList | None = ...
Information about the prefix list.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.