aws_sdk_ec2/client/create_spot_datafeed_subscription.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateSpotDatafeedSubscription`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7 /// - [`bucket(impl Into<String>)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::set_bucket):<br>required: **true**<br><p>The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p><br>
8 /// - [`prefix(impl Into<String>)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::prefix) / [`set_prefix(Option<String>)`](crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::set_prefix):<br>required: **false**<br><p>The prefix for the data feed file names.</p><br>
9 /// - On success, responds with [`CreateSpotDatafeedSubscriptionOutput`](crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionOutput) with field(s):
10 /// - [`spot_datafeed_subscription(Option<SpotDatafeedSubscription>)`](crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionOutput::spot_datafeed_subscription): <p>The Spot Instance data feed subscription.</p>
11 /// - On failure, responds with [`SdkError<CreateSpotDatafeedSubscriptionError>`](crate::operation::create_spot_datafeed_subscription::CreateSpotDatafeedSubscriptionError)
12 pub fn create_spot_datafeed_subscription(
13 &self,
14 ) -> crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder {
15 crate::operation::create_spot_datafeed_subscription::builders::CreateSpotDatafeedSubscriptionFluentBuilder::new(self.handle.clone())
16 }
17}