aws_sdk_elementalinference/client/get_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 [`GetFeedPolicy`](crate::operation::get_feed_policy::builders::GetFeedPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::get_feed_policy::builders::GetFeedPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_feed_policy::builders::GetFeedPolicyFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the feed whose policy you want to retrieve.</p><br>
7 /// - On success, responds with [`GetFeedPolicyOutput`](crate::operation::get_feed_policy::GetFeedPolicyOutput) with field(s):
8 /// - [`policy(String)`](crate::operation::get_feed_policy::GetFeedPolicyOutput::policy): <p>The resource-based policy document attached to the feed.</p>
9 /// - On failure, responds with [`SdkError<GetFeedPolicyError>`](crate::operation::get_feed_policy::GetFeedPolicyError)
10 pub fn get_feed_policy(&self) -> crate::operation::get_feed_policy::builders::GetFeedPolicyFluentBuilder {
11 crate::operation::get_feed_policy::builders::GetFeedPolicyFluentBuilder::new(self.handle.clone())
12 }
13}