pub struct CreateManagedPrefixList { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateManagedPrefixList
.
Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.
Implementations§
source§impl CreateManagedPrefixList
impl CreateManagedPrefixList
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateManagedPrefixList, AwsResponseRetryClassifier>, SdkError<CreateManagedPrefixListError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateManagedPrefixList, AwsResponseRetryClassifier>, SdkError<CreateManagedPrefixListError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateManagedPrefixListOutput, SdkError<CreateManagedPrefixListError>>
pub async fn send(
self
) -> Result<CreateManagedPrefixListOutput, SdkError<CreateManagedPrefixListError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
sourcepub fn prefix_list_name(self, input: impl Into<String>) -> Self
pub fn prefix_list_name(self, input: impl Into<String>) -> Self
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws
.
sourcepub fn set_prefix_list_name(self, input: Option<String>) -> Self
pub fn set_prefix_list_name(self, input: Option<String>) -> Self
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws
.
sourcepub fn entries(self, input: AddPrefixListEntry) -> Self
pub fn entries(self, input: AddPrefixListEntry) -> Self
Appends an item to Entries
.
To override the contents of this collection use set_entries
.
One or more entries for the prefix list.
sourcepub fn set_entries(self, input: Option<Vec<AddPrefixListEntry>>) -> Self
pub fn set_entries(self, input: Option<Vec<AddPrefixListEntry>>) -> Self
One or more entries for the prefix list.
sourcepub fn max_entries(self, input: i32) -> Self
pub fn max_entries(self, input: i32) -> Self
The maximum number of entries for the prefix list.
sourcepub fn set_max_entries(self, input: Option<i32>) -> Self
pub fn set_max_entries(self, input: Option<i32>) -> Self
The maximum number of entries for the prefix list.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the prefix list during creation.
sourcepub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
pub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
The tags to apply to the prefix list during creation.
sourcepub fn address_family(self, input: impl Into<String>) -> Self
pub fn address_family(self, input: impl Into<String>) -> Self
The IP address type.
Valid Values: IPv4
| IPv6
sourcepub fn set_address_family(self, input: Option<String>) -> Self
pub fn set_address_family(self, input: Option<String>) -> Self
The IP address type.
Valid Values: IPv4
| IPv6
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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.
Trait Implementations§
source§impl Clone for CreateManagedPrefixList
impl Clone for CreateManagedPrefixList
source§fn clone(&self) -> CreateManagedPrefixList
fn clone(&self) -> CreateManagedPrefixList
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more