Skip to main content

aws_sdk_elementalinference/client/
create_feed.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 [`CreateFeed`](crate::operation::create_feed::builders::CreateFeedFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::set_name):<br>required: **true**<br><p>A user-friendly name for this feed.</p><br>
7    ///   - [`outputs(CreateOutput)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::outputs) / [`set_outputs(Option<Vec::<CreateOutput>>)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::set_outputs):<br>required: **true**<br><p>An array of outputs for this feed. Each output represents a specific Elemental Inference feature. For example, there is one output type for the smart crop feature. You must specify at least one output, but you can later add outputs using AssociateFeed, or add, modify, and delete outputs using UpdateFeed.</p><br>
8    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_feed::builders::CreateFeedFluentBuilder::set_tags):<br>required: **false**<br><p>Optional tags. You can also add tags later, using TagResource.</p><br>
9    /// - On success, responds with [`CreateFeedOutput`](crate::operation::create_feed::CreateFeedOutput) with field(s):
10    ///   - [`arn(String)`](crate::operation::create_feed::CreateFeedOutput::arn): <p>A unique ARN that Elemental Inference assigns to the feed.</p>
11    ///   - [`name(String)`](crate::operation::create_feed::CreateFeedOutput::name): <p>The name that you specified in the request.</p>
12    ///   - [`id(String)`](crate::operation::create_feed::CreateFeedOutput::id): <p>A unique ID that Elemental Inference assigns to the feed.</p>
13    ///   - [`data_endpoints(Vec::<String>)`](crate::operation::create_feed::CreateFeedOutput::data_endpoints): <p>An array of endpoints for the feed. Typically, there is only one endpoint. The feed receives source media at this endpoint (when the calling application calls PutMedia) and returns the resulting metadata to this endpoint (when the calling application calls GetMetadata).</p>
14    ///   - [`outputs(Vec::<GetOutput>)`](crate::operation::create_feed::CreateFeedOutput::outputs): <p>Repeats the outputs that you specified in the request.</p>
15    ///   - [`status(FeedStatus)`](crate::operation::create_feed::CreateFeedOutput::status): <p>The current status of the feed. After creation of the feed has succeeded, the status will be AVAILABLE.</p>
16    ///   - [`association(Option<FeedAssociation>)`](crate::operation::create_feed::CreateFeedOutput::association): <p>The association for this feed. When you create the feed, this property is empty. You must associate a resource with the feed using AssociateFeed or UpdateFeed.</p>
17    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_feed::CreateFeedOutput::tags): <p>Any tags that you included when you created the feed.</p>
18    /// - On failure, responds with [`SdkError<CreateFeedError>`](crate::operation::create_feed::CreateFeedError)
19    pub fn create_feed(&self) -> crate::operation::create_feed::builders::CreateFeedFluentBuilder {
20        crate::operation::create_feed::builders::CreateFeedFluentBuilder::new(self.handle.clone())
21    }
22}