Skip to main content

aws_sdk_elementalinference/client/
associate_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 [`AssociateFeed`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the feed.</p><br>
7    ///   - [`associated_resource_name(impl Into<String>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::associated_resource_name) / [`set_associated_resource_name(Option<String>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::set_associated_resource_name):<br>required: **true**<br><p>An identifier for the resource. This name must not resemble an ARN.</p> <p>The resource is the source media that the feed will process. The name you assign should help you to later identify the source media that belongs to the feed. In this way, you will know which source media to push to the feed (using PutMedia).</p><br>
8    ///   - [`outputs(CreateOutput)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::outputs) / [`set_outputs(Option<Vec::<CreateOutput>>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::set_outputs):<br>required: **true**<br><p>An array of one or more outputs that you want to add to this feed now, to supplement any outputs that you specified when you created or updated the feed.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::set_dry_run):<br>required: **false**<br><p>Set to true if you want to do a dry run of the associate action.</p> <p>Elemental Inference will validate that the real request would succeed without actually making any changes. A dry run catches errors such as missing IAM permissions, quota limits exceeded, conflicting outputs, and so on. If the dry run fails, the action returns a 4xx error code. After you've fixed the errors, resubmit the request.</p><br>
10    /// - On success, responds with [`AssociateFeedOutput`](crate::operation::associate_feed::AssociateFeedOutput) with field(s):
11    ///   - [`arn(String)`](crate::operation::associate_feed::AssociateFeedOutput::arn): <p>The ARN of the feed.</p>
12    ///   - [`id(String)`](crate::operation::associate_feed::AssociateFeedOutput::id): <p>The ID of the feed.</p>
13    /// - On failure, responds with [`SdkError<AssociateFeedError>`](crate::operation::associate_feed::AssociateFeedError)
14    pub fn associate_feed(&self) -> crate::operation::associate_feed::builders::AssociateFeedFluentBuilder {
15        crate::operation::associate_feed::builders::AssociateFeedFluentBuilder::new(self.handle.clone())
16    }
17}