Skip to main content

aws_sdk_elementalinference/client/
put_feed_policy.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 [`PutFeedPolicy`](crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the feed to attach the policy to.</p><br>
7    ///   - [`policy(impl Into<String>)`](crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The resource-based policy document to attach to the feed.</p><br>
8    /// - On success, responds with [`PutFeedPolicyOutput`](crate::operation::put_feed_policy::PutFeedPolicyOutput)
9    /// - On failure, responds with [`SdkError<PutFeedPolicyError>`](crate::operation::put_feed_policy::PutFeedPolicyError)
10    pub fn put_feed_policy(&self) -> crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder {
11        crate::operation::put_feed_policy::builders::PutFeedPolicyFluentBuilder::new(self.handle.clone())
12    }
13}