1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetSinkPolicy`](crate::operation::get_sink_policy::builders::GetSinkPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`sink_identifier(impl Into<String>)`](crate::operation::get_sink_policy::builders::GetSinkPolicyFluentBuilder::sink_identifier) / [`set_sink_identifier(Option<String>)`](crate::operation::get_sink_policy::builders::GetSinkPolicyFluentBuilder::set_sink_identifier):<br>required: **true**<br><p>The ARN of the sink to retrieve the policy of.</p><br>
    /// - On success, responds with [`GetSinkPolicyOutput`](crate::operation::get_sink_policy::GetSinkPolicyOutput) with field(s):
    ///   - [`sink_arn(Option<String>)`](crate::operation::get_sink_policy::GetSinkPolicyOutput::sink_arn): <p>The ARN of the sink.</p>
    ///   - [`sink_id(Option<String>)`](crate::operation::get_sink_policy::GetSinkPolicyOutput::sink_id): <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
    ///   - [`policy(Option<String>)`](crate::operation::get_sink_policy::GetSinkPolicyOutput::policy): <p>The policy that you specified, in JSON format.</p>
    /// - On failure, responds with [`SdkError<GetSinkPolicyError>`](crate::operation::get_sink_policy::GetSinkPolicyError)
    pub fn get_sink_policy(&self) -> crate::operation::get_sink_policy::builders::GetSinkPolicyFluentBuilder {
        crate::operation::get_sink_policy::builders::GetSinkPolicyFluentBuilder::new(self.handle.clone())
    }
}