AWS SDK

AWS SDK

rev. bd84e3fb31d07556dea6c7766d2723bd8c01e781 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/client/get_bucket_location.rs

@@ -1,1 +14,17 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
impl super::Client {
    3      3   
    /// Constructs a fluent builder for the [`GetBucketLocation`](crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder) operation.
    4      4   
    ///
    5      5   
    /// - The fluent builder is configurable:
    6      6   
    ///   - [`bucket(impl Into<String>)`](crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder::set_bucket):<br>required: **true**<br><p>The name of the bucket for which to get the location.</p> <p>When you use this API operation with an access point, provide the alias of the access point in place of the bucket name.</p> <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned. For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of Error Codes</a>.</p><br>
    7      7   
    ///   - [`expected_bucket_owner(impl Into<String>)`](crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option<String>)`](crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder::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>
    8      8   
    /// - On success, responds with [`GetBucketLocationOutput`](crate::operation::get_bucket_location::GetBucketLocationOutput) with field(s):
    9      9   
    ///   - [`location_constraint(Option<BucketLocationConstraint>)`](crate::operation::get_bucket_location::GetBucketLocationOutput::location_constraint): <p>Specifies the Region where the bucket resides. For a list of all the Amazon S3 supported location constraints by Region, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a>.</p> <p>Buckets in Region <code>us-east-1</code> have a LocationConstraint of <code>null</code>. Buckets with a LocationConstraint of <code>EU</code> reside in <code>eu-west-1</code>.</p>
   10     10   
    /// - On failure, responds with [`SdkError<GetBucketLocationError>`](crate::operation::get_bucket_location::GetBucketLocationError)
          11  +
    #[deprecated(
          12  +
        note = "Use HeadBucket operation instead to determine the bucket's region. For more information, see https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html"
          13  +
    )]
   11     14   
    pub fn get_bucket_location(&self) -> crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder {
   12     15   
        crate::operation::get_bucket_location::builders::GetBucketLocationFluentBuilder::new(self.handle.clone())
   13     16   
    }
   14     17   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_location/builders.rs

@@ -10,10 +69,72 @@
   30     30   
/// <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned. For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of Error Codes</a>.</p><note>
   31     31   
/// <p>We recommend that you use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a> to return the Region that a bucket resides in. For backward compatibility, Amazon S3 continues to support GetBucketLocation.</p>
   32     32   
/// </note>
   33     33   
/// <p>The following operations are related to <code>GetBucketLocation</code>:</p>
   34     34   
/// <ul>
   35     35   
/// <li>
   36     36   
/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a></p></li>
   37     37   
/// <li>
   38     38   
/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a></p></li>
   39     39   
/// </ul>
          40  +
#[deprecated(
          41  +
    note = "Use HeadBucket operation instead to determine the bucket's region. For more information, see https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html"
          42  +
)]
   40     43   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
   41     44   
pub struct GetBucketLocationFluentBuilder {
   42     45   
    handle: ::std::sync::Arc<crate::client::Handle>,
   43     46   
    inner: crate::operation::get_bucket_location::builders::GetBucketLocationInputBuilder,
   44     47   
    config_override: ::std::option::Option<crate::config::Builder>,
   45     48   
}
   46     49   
impl
   47     50   
    crate::client::customize::internal::CustomizableSend<
   48     51   
        crate::operation::get_bucket_location::GetBucketLocationOutput,
   49     52   
        crate::operation::get_bucket_location::GetBucketLocationError,