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. If the resource is from an AWS service, this identifier must be the full ARN of that resource. Otherwise, the identifier is a name that you assign and that is appropriate for the application that owns the resource. This name must not resemble an ARN.</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>The outputs to add to this feed. You must specify at least one output. You can later use the UpdateFeed action to change the list of outputs.</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><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 AWS ARN for this association.</p>
12    ///   - [`id(String)`](crate::operation::associate_feed::AssociateFeedOutput::id): <p>An ID for this response. It is unique in Elemental Inference for this AWS account.</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}