Struct aws_sdk_ec2::input::AssociateDhcpOptionsInput
source · #[non_exhaustive]pub struct AssociateDhcpOptionsInput { /* private fields */ }
Implementations§
source§impl AssociateDhcpOptionsInput
impl AssociateDhcpOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateDhcpOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateDhcpOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateDhcpOptions
>
Examples found in repository?
src/client.rs (line 10231)
10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateDhcpOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateDhcpOptionsError>,
> {
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::AssociateDhcpOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateDhcpOptionsError>,
> {
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 AssociateDhcpOptionsInput
.
source§impl AssociateDhcpOptionsInput
impl AssociateDhcpOptionsInput
sourcepub fn dhcp_options_id(&self) -> Option<&str>
pub fn dhcp_options_id(&self) -> Option<&str>
The ID of the DHCP options set, or default
to associate no DHCP options with the VPC.
Trait Implementations§
source§impl Clone for AssociateDhcpOptionsInput
impl Clone for AssociateDhcpOptionsInput
source§fn clone(&self) -> AssociateDhcpOptionsInput
fn clone(&self) -> AssociateDhcpOptionsInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more