1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetBucketPolicyStatus`](crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`bucket(impl Into<String>)`](crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder::set_bucket):<br>required: **true**<br><p>The name of the Amazon S3 bucket whose policy status you want to retrieve.</p><br>
    ///   - [`expected_bucket_owner(impl Into<String>)`](crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option<String>)`](crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder::set_expected_bucket_owner):<br>required: **false**<br><p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p><br>
    /// - On success, responds with [`GetBucketPolicyStatusOutput`](crate::operation::get_bucket_policy_status::GetBucketPolicyStatusOutput) with field(s):
    ///   - [`policy_status(Option<PolicyStatus>)`](crate::operation::get_bucket_policy_status::GetBucketPolicyStatusOutput::policy_status): <p>The policy status for the specified bucket.</p>
    /// - On failure, responds with [`SdkError<GetBucketPolicyStatusError>`](crate::operation::get_bucket_policy_status::GetBucketPolicyStatusError)
    pub fn get_bucket_policy_status(&self) -> crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder {
        crate::operation::get_bucket_policy_status::builders::GetBucketPolicyStatusFluentBuilder::new(self.handle.clone())
    }
}