Struct aws_sdk_ec2::input::CreateManagedPrefixListInput
source · #[non_exhaustive]pub struct CreateManagedPrefixListInput { /* private fields */ }
Implementations§
source§impl CreateManagedPrefixListInput
impl CreateManagedPrefixListInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateManagedPrefixList, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateManagedPrefixList, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateManagedPrefixList
>
Examples found in repository?
18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateManagedPrefixList,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateManagedPrefixListError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateManagedPrefixListOutput,
aws_smithy_http::result::SdkError<crate::error::CreateManagedPrefixListError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateManagedPrefixListInput
.
source§impl CreateManagedPrefixListInput
impl CreateManagedPrefixListInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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) -> Option<&str>
pub fn prefix_list_name(&self) -> Option<&str>
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws
.
sourcepub fn entries(&self) -> Option<&[AddPrefixListEntry]>
pub fn entries(&self) -> Option<&[AddPrefixListEntry]>
One or more entries for the prefix list.
sourcepub fn max_entries(&self) -> Option<i32>
pub fn max_entries(&self) -> Option<i32>
The maximum number of entries for the prefix list.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the prefix list during creation.
sourcepub fn address_family(&self) -> Option<&str>
pub fn address_family(&self) -> Option<&str>
The IP address type.
Valid Values: IPv4
| IPv6
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
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 CreateManagedPrefixListInput
impl Clone for CreateManagedPrefixListInput
source§fn clone(&self) -> CreateManagedPrefixListInput
fn clone(&self) -> CreateManagedPrefixListInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more