#[non_exhaustive]pub struct CreateSpotDatafeedSubscriptionInput { /* private fields */ }
Expand description
Contains the parameters for CreateSpotDatafeedSubscription.
Implementations§
source§impl CreateSpotDatafeedSubscriptionInput
impl CreateSpotDatafeedSubscriptionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSpotDatafeedSubscription, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSpotDatafeedSubscription, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateSpotDatafeedSubscription
>
Examples found in repository?
src/client.rs (line 21368)
21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateSpotDatafeedSubscription,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateSpotDatafeedSubscriptionError>,
> {
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::CreateSpotDatafeedSubscriptionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateSpotDatafeedSubscriptionError>,
> {
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 CreateSpotDatafeedSubscriptionInput
.
source§impl CreateSpotDatafeedSubscriptionInput
impl CreateSpotDatafeedSubscriptionInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Rules for bucket naming in the Amazon S3 Developer Guide.
Trait Implementations§
source§impl Clone for CreateSpotDatafeedSubscriptionInput
impl Clone for CreateSpotDatafeedSubscriptionInput
source§fn clone(&self) -> CreateSpotDatafeedSubscriptionInput
fn clone(&self) -> CreateSpotDatafeedSubscriptionInput
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