AWS SDK

AWS SDK

rev. 2b2bcd45ade3893da431939e183674ee0387e298

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/tests/default_retries.rs

@@ -0,1 +0,121 @@
           1  +
/*
           2  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           3  +
 * SPDX-License-Identifier: Apache-2.0
           4  +
 */
           5  +
           6  +
//! Integration tests proving that retries are enabled by default with BehaviorVersion::v2025_01_17
           7  +
//! and disabled by default with older behavior versions.
           8  +
           9  +
use aws_sdk_s3::config::{Credentials, Region, SharedAsyncSleep};
          10  +
use aws_sdk_s3::Config;
          11  +
use aws_smithy_async::rt::sleep::TokioSleep;
          12  +
use aws_smithy_http_client::test_util::infallible_client_fn;
          13  +
use aws_smithy_runtime_api::client::behavior_version::BehaviorVersion;
          14  +
use aws_smithy_types::body::SdkBody;
          15  +
use std::sync::atomic::{AtomicU32, Ordering};
          16  +
use std::sync::Arc;
          17  +
          18  +
/// Test that retries are enabled by default with BehaviorVersion::v2025_01_17.
          19  +
#[tokio::test]
          20  +
#[allow(deprecated)]
          21  +
async fn retries_enabled_by_default_with_v2025_01_17() {
          22  +
    let call_count = Arc::new(AtomicU32::new(0));
          23  +
    let call_count_clone = call_count.clone();
          24  +
          25  +
    let http_client = infallible_client_fn(move |_req| {
          26  +
        let count = call_count_clone.fetch_add(1, Ordering::SeqCst);
          27  +
        if count < 2 {
          28  +
            // Return 500 for first 2 attempts
          29  +
            http_1x::Response::builder()
          30  +
                .status(500)
          31  +
                .body(SdkBody::from("Internal Server Error"))
          32  +
                .unwrap()
          33  +
        } else {
          34  +
            // Return success on 3rd attempt
          35  +
            http_1x::Response::builder()
          36  +
                .status(200)
          37  +
                .body(SdkBody::from(
          38  +
                    r#"<?xml version="1.0" encoding="UTF-8"?>
          39  +
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
          40  +
    <Buckets></Buckets>
          41  +
    <Owner>
          42  +
        <ID>test-owner</ID>
          43  +
        <DisplayName>test</DisplayName>
          44  +
    </Owner>
          45  +
</ListAllMyBucketsResult>"#,
          46  +
                ))
          47  +
                .unwrap()
          48  +
        }
          49  +
    });
          50  +
          51  +
    let config = Config::builder()
          52  +
        .behavior_version(BehaviorVersion::v2025_01_17())
          53  +
        .region(Region::new("us-east-1"))
          54  +
        .credentials_provider(Credentials::for_tests())
          55  +
        .sleep_impl(SharedAsyncSleep::new(TokioSleep::new()))
          56  +
        .http_client(http_client)
          57  +
        .build();
          58  +
          59  +
    let client = aws_sdk_s3::Client::from_conf(config);
          60  +
          61  +
    // This should succeed after 2 retries
          62  +
    let result = client.list_buckets().send().await;
          63  +
          64  +
    if let Err(e) = &result {
          65  +
        eprintln!("Error: {:?}", e);
          66  +
    }
          67  +
          68  +
    assert!(
          69  +
        result.is_ok(),
          70  +
        "Request should succeed after retries with BehaviorVersion::v2025_01_17"
          71  +
    );
          72  +
          73  +
    // Verify 3 requests were made (1 initial + 2 retries)
          74  +
    assert_eq!(
          75  +
        call_count.load(Ordering::SeqCst),
          76  +
        3,
          77  +
        "Should have made 3 requests (1 initial + 2 retries)"
          78  +
    );
          79  +
}
          80  +
          81  +
/// Test that retries are disabled by default with older behavior versions.
          82  +
#[tokio::test]
          83  +
#[allow(deprecated)]
          84  +
async fn retries_disabled_by_default_with_v2024_03_28() {
          85  +
    let call_count = Arc::new(AtomicU32::new(0));
          86  +
    let call_count_clone = call_count.clone();
          87  +
          88  +
    let http_client = infallible_client_fn(move |_req| {
          89  +
        call_count_clone.fetch_add(1, Ordering::SeqCst);
          90  +
        // Always return 500
          91  +
        http_1x::Response::builder()
          92  +
            .status(500)
          93  +
            .body(SdkBody::from("Internal Server Error"))
          94  +
            .unwrap()
          95  +
    });
          96  +
          97  +
    let config = Config::builder()
          98  +
        .behavior_version(BehaviorVersion::v2024_03_28())
          99  +
        .region(Region::new("us-east-1"))
         100  +
        .credentials_provider(Credentials::for_tests())
         101  +
        .sleep_impl(SharedAsyncSleep::new(TokioSleep::new()))
         102  +
        .http_client(http_client)
         103  +
        .build();
         104  +
         105  +
    let client = aws_sdk_s3::Client::from_conf(config);
         106  +
         107  +
    // This should fail immediately without retries
         108  +
    let result = client.list_buckets().send().await;
         109  +
         110  +
    assert!(
         111  +
        result.is_err(),
         112  +
        "Request should fail immediately without retries with BehaviorVersion::v2024_03_28"
         113  +
    );
         114  +
         115  +
    // Verify only 1 request was made (no retries)
         116  +
    assert_eq!(
         117  +
        call_count.load(Ordering::SeqCst),
         118  +
        1,
         119  +
        "Should have made only 1 request (no retries)"
         120  +
    );
         121  +
}

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/associate_access_grants_identity_center/builders.rs

@@ -56,56 +116,117 @@
   76     76   
    pub fn as_input(&self) -> &crate::operation::associate_access_grants_identity_center::builders::AssociateAccessGrantsIdentityCenterInputBuilder {
   77     77   
        &self.inner
   78     78   
    }
   79     79   
    /// Sends the request and returns the response.
   80     80   
    ///
   81     81   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   82     82   
    /// can be matched against.
   83     83   
    ///
   84     84   
    /// By default, any retryable failures will be retried twice. Retry behavior
   85     85   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   86         -
    /// set when configuring the client.
          86  +
    /// set when configuring the client. Note: retries are enabled by default when using
          87  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   87     88   
    pub async fn send(
   88     89   
        self,
   89     90   
    ) -> ::std::result::Result<
   90     91   
        crate::operation::associate_access_grants_identity_center::AssociateAccessGrantsIdentityCenterOutput,
   91     92   
        ::aws_smithy_runtime_api::client::result::SdkError<
   92     93   
            crate::operation::associate_access_grants_identity_center::AssociateAccessGrantsIdentityCenterError,
   93     94   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   94     95   
        >,
   95     96   
    > {
   96     97   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_access_grant/builders.rs

@@ -58,58 +118,119 @@
   78     78   
    pub fn as_input(&self) -> &crate::operation::create_access_grant::builders::CreateAccessGrantInputBuilder {
   79     79   
        &self.inner
   80     80   
    }
   81     81   
    /// Sends the request and returns the response.
   82     82   
    ///
   83     83   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   84     84   
    /// can be matched against.
   85     85   
    ///
   86     86   
    /// By default, any retryable failures will be retried twice. Retry behavior
   87     87   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   88         -
    /// set when configuring the client.
          88  +
    /// set when configuring the client. Note: retries are enabled by default when using
          89  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   89     90   
    pub async fn send(
   90     91   
        self,
   91     92   
    ) -> ::std::result::Result<
   92     93   
        crate::operation::create_access_grant::CreateAccessGrantOutput,
   93     94   
        ::aws_smithy_runtime_api::client::result::SdkError<
   94     95   
            crate::operation::create_access_grant::CreateAccessGrantError,
   95     96   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   96     97   
        >,
   97     98   
    > {
   98     99   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_access_grants_instance/builders.rs

@@ -56,56 +116,117 @@
   76     76   
    pub fn as_input(&self) -> &crate::operation::create_access_grants_instance::builders::CreateAccessGrantsInstanceInputBuilder {
   77     77   
        &self.inner
   78     78   
    }
   79     79   
    /// Sends the request and returns the response.
   80     80   
    ///
   81     81   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   82     82   
    /// can be matched against.
   83     83   
    ///
   84     84   
    /// By default, any retryable failures will be retried twice. Retry behavior
   85     85   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   86         -
    /// set when configuring the client.
          86  +
    /// set when configuring the client. Note: retries are enabled by default when using
          87  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   87     88   
    pub async fn send(
   88     89   
        self,
   89     90   
    ) -> ::std::result::Result<
   90     91   
        crate::operation::create_access_grants_instance::CreateAccessGrantsInstanceOutput,
   91     92   
        ::aws_smithy_runtime_api::client::result::SdkError<
   92     93   
            crate::operation::create_access_grants_instance::CreateAccessGrantsInstanceError,
   93     94   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   94     95   
        >,
   95     96   
    > {
   96     97   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_access_grants_location/builders.rs

@@ -68,68 +128,129 @@
   88     88   
    pub fn as_input(&self) -> &crate::operation::create_access_grants_location::builders::CreateAccessGrantsLocationInputBuilder {
   89     89   
        &self.inner
   90     90   
    }
   91     91   
    /// Sends the request and returns the response.
   92     92   
    ///
   93     93   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   94     94   
    /// can be matched against.
   95     95   
    ///
   96     96   
    /// By default, any retryable failures will be retried twice. Retry behavior
   97     97   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   98         -
    /// set when configuring the client.
          98  +
    /// set when configuring the client. Note: retries are enabled by default when using
          99  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   99    100   
    pub async fn send(
  100    101   
        self,
  101    102   
    ) -> ::std::result::Result<
  102    103   
        crate::operation::create_access_grants_location::CreateAccessGrantsLocationOutput,
  103    104   
        ::aws_smithy_runtime_api::client::result::SdkError<
  104    105   
            crate::operation::create_access_grants_location::CreateAccessGrantsLocationError,
  105    106   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  106    107   
        >,
  107    108   
    > {
  108    109   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_access_point/builders.rs

@@ -60,60 +120,121 @@
   80     80   
    pub fn as_input(&self) -> &crate::operation::create_access_point::builders::CreateAccessPointInputBuilder {
   81     81   
        &self.inner
   82     82   
    }
   83     83   
    /// Sends the request and returns the response.
   84     84   
    ///
   85     85   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   86     86   
    /// can be matched against.
   87     87   
    ///
   88     88   
    /// By default, any retryable failures will be retried twice. Retry behavior
   89     89   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   90         -
    /// set when configuring the client.
          90  +
    /// set when configuring the client. Note: retries are enabled by default when using
          91  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   91     92   
    pub async fn send(
   92     93   
        self,
   93     94   
    ) -> ::std::result::Result<
   94     95   
        crate::operation::create_access_point::CreateAccessPointOutput,
   95     96   
        ::aws_smithy_runtime_api::client::result::SdkError<
   96     97   
            crate::operation::create_access_point::CreateAccessPointError,
   97     98   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   98     99   
        >,
   99    100   
    > {
  100    101   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_access_point_for_object_lambda/builders.rs

@@ -54,54 +114,115 @@
   74     74   
    pub fn as_input(&self) -> &crate::operation::create_access_point_for_object_lambda::builders::CreateAccessPointForObjectLambdaInputBuilder {
   75     75   
        &self.inner
   76     76   
    }
   77     77   
    /// Sends the request and returns the response.
   78     78   
    ///
   79     79   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   80     80   
    /// can be matched against.
   81     81   
    ///
   82     82   
    /// By default, any retryable failures will be retried twice. Retry behavior
   83     83   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   84         -
    /// set when configuring the client.
          84  +
    /// set when configuring the client. Note: retries are enabled by default when using
          85  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   85     86   
    pub async fn send(
   86     87   
        self,
   87     88   
    ) -> ::std::result::Result<
   88     89   
        crate::operation::create_access_point_for_object_lambda::CreateAccessPointForObjectLambdaOutput,
   89     90   
        ::aws_smithy_runtime_api::client::result::SdkError<
   90     91   
            crate::operation::create_access_point_for_object_lambda::CreateAccessPointForObjectLambdaError,
   91     92   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   92     93   
        >,
   93     94   
    > {
   94     95   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_bucket/builders.rs

@@ -66,66 +126,127 @@
   86     86   
    pub fn as_input(&self) -> &crate::operation::create_bucket::builders::CreateBucketInputBuilder {
   87     87   
        &self.inner
   88     88   
    }
   89     89   
    /// Sends the request and returns the response.
   90     90   
    ///
   91     91   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   92     92   
    /// can be matched against.
   93     93   
    ///
   94     94   
    /// By default, any retryable failures will be retried twice. Retry behavior
   95     95   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   96         -
    /// set when configuring the client.
          96  +
    /// set when configuring the client. Note: retries are enabled by default when using
          97  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   97     98   
    pub async fn send(
   98     99   
        self,
   99    100   
    ) -> ::std::result::Result<
  100    101   
        crate::operation::create_bucket::CreateBucketOutput,
  101    102   
        ::aws_smithy_runtime_api::client::result::SdkError<
  102    103   
            crate::operation::create_bucket::CreateBucketError,
  103    104   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  104    105   
        >,
  105    106   
    > {
  106    107   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_job/builders.rs

@@ -59,59 +119,120 @@
   79     79   
    pub fn as_input(&self) -> &crate::operation::create_job::builders::CreateJobInputBuilder {
   80     80   
        &self.inner
   81     81   
    }
   82     82   
    /// Sends the request and returns the response.
   83     83   
    ///
   84     84   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   85     85   
    /// can be matched against.
   86     86   
    ///
   87     87   
    /// By default, any retryable failures will be retried twice. Retry behavior
   88     88   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   89         -
    /// set when configuring the client.
          89  +
    /// set when configuring the client. Note: retries are enabled by default when using
          90  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   90     91   
    pub async fn send(
   91     92   
        self,
   92     93   
    ) -> ::std::result::Result<
   93     94   
        crate::operation::create_job::CreateJobOutput,
   94     95   
        ::aws_smithy_runtime_api::client::result::SdkError<
   95     96   
            crate::operation::create_job::CreateJobError,
   96     97   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   97     98   
        >,
   98     99   
    > {
   99    100   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_multi_region_access_point/builders.rs

@@ -58,58 +118,119 @@
   78     78   
    pub fn as_input(&self) -> &crate::operation::create_multi_region_access_point::builders::CreateMultiRegionAccessPointInputBuilder {
   79     79   
        &self.inner
   80     80   
    }
   81     81   
    /// Sends the request and returns the response.
   82     82   
    ///
   83     83   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   84     84   
    /// can be matched against.
   85     85   
    ///
   86     86   
    /// By default, any retryable failures will be retried twice. Retry behavior
   87     87   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   88         -
    /// set when configuring the client.
          88  +
    /// set when configuring the client. Note: retries are enabled by default when using
          89  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   89     90   
    pub async fn send(
   90     91   
        self,
   91     92   
    ) -> ::std::result::Result<
   92     93   
        crate::operation::create_multi_region_access_point::CreateMultiRegionAccessPointOutput,
   93     94   
        ::aws_smithy_runtime_api::client::result::SdkError<
   94     95   
            crate::operation::create_multi_region_access_point::CreateMultiRegionAccessPointError,
   95     96   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   96     97   
        >,
   97     98   
    > {
   98     99   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/create_storage_lens_group/builders.rs

@@ -44,44 +104,105 @@
   64     64   
    pub fn as_input(&self) -> &crate::operation::create_storage_lens_group::builders::CreateStorageLensGroupInputBuilder {
   65     65   
        &self.inner
   66     66   
    }
   67     67   
    /// Sends the request and returns the response.
   68     68   
    ///
   69     69   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   70     70   
    /// can be matched against.
   71     71   
    ///
   72     72   
    /// By default, any retryable failures will be retried twice. Retry behavior
   73     73   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   74         -
    /// set when configuring the client.
          74  +
    /// set when configuring the client. Note: retries are enabled by default when using
          75  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   75     76   
    pub async fn send(
   76     77   
        self,
   77     78   
    ) -> ::std::result::Result<
   78     79   
        crate::operation::create_storage_lens_group::CreateStorageLensGroupOutput,
   79     80   
        ::aws_smithy_runtime_api::client::result::SdkError<
   80     81   
            crate::operation::create_storage_lens_group::CreateStorageLensGroupError,
   81     82   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   82     83   
        >,
   83     84   
    > {
   84     85   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/delete_access_grant/builders.rs

@@ -50,50 +110,111 @@
   70     70   
    pub fn as_input(&self) -> &crate::operation::delete_access_grant::builders::DeleteAccessGrantInputBuilder {
   71     71   
        &self.inner
   72     72   
    }
   73     73   
    /// Sends the request and returns the response.
   74     74   
    ///
   75     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   76     76   
    /// can be matched against.
   77     77   
    ///
   78     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   79     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   80         -
    /// set when configuring the client.
          80  +
    /// set when configuring the client. Note: retries are enabled by default when using
          81  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   81     82   
    pub async fn send(
   82     83   
        self,
   83     84   
    ) -> ::std::result::Result<
   84     85   
        crate::operation::delete_access_grant::DeleteAccessGrantOutput,
   85     86   
        ::aws_smithy_runtime_api::client::result::SdkError<
   86     87   
            crate::operation::delete_access_grant::DeleteAccessGrantError,
   87     88   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   88     89   
        >,
   89     90   
    > {
   90     91   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/delete_access_grants_instance/builders.rs

@@ -50,50 +110,111 @@
   70     70   
    pub fn as_input(&self) -> &crate::operation::delete_access_grants_instance::builders::DeleteAccessGrantsInstanceInputBuilder {
   71     71   
        &self.inner
   72     72   
    }
   73     73   
    /// Sends the request and returns the response.
   74     74   
    ///
   75     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   76     76   
    /// can be matched against.
   77     77   
    ///
   78     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   79     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   80         -
    /// set when configuring the client.
          80  +
    /// set when configuring the client. Note: retries are enabled by default when using
          81  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   81     82   
    pub async fn send(
   82     83   
        self,
   83     84   
    ) -> ::std::result::Result<
   84     85   
        crate::operation::delete_access_grants_instance::DeleteAccessGrantsInstanceOutput,
   85     86   
        ::aws_smithy_runtime_api::client::result::SdkError<
   86     87   
            crate::operation::delete_access_grants_instance::DeleteAccessGrantsInstanceError,
   87     88   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   88     89   
        >,
   89     90   
    > {
   90     91   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/delete_access_grants_instance_resource_policy/builders.rs

@@ -52,52 +112,113 @@
   72     72   
    ) -> &crate::operation::delete_access_grants_instance_resource_policy::builders::DeleteAccessGrantsInstanceResourcePolicyInputBuilder {
   73     73   
        &self.inner
   74     74   
    }
   75     75   
    /// Sends the request and returns the response.
   76     76   
    ///
   77     77   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   78     78   
    /// can be matched against.
   79     79   
    ///
   80     80   
    /// By default, any retryable failures will be retried twice. Retry behavior
   81     81   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   82         -
    /// set when configuring the client.
          82  +
    /// set when configuring the client. Note: retries are enabled by default when using
          83  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   83     84   
    pub async fn send(
   84     85   
        self,
   85     86   
    ) -> ::std::result::Result<
   86     87   
        crate::operation::delete_access_grants_instance_resource_policy::DeleteAccessGrantsInstanceResourcePolicyOutput,
   87     88   
        ::aws_smithy_runtime_api::client::result::SdkError<
   88     89   
            crate::operation::delete_access_grants_instance_resource_policy::DeleteAccessGrantsInstanceResourcePolicyError,
   89     90   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   90     91   
        >,
   91     92   
    > {
   92     93   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/delete_access_grants_location/builders.rs

@@ -50,50 +110,111 @@
   70     70   
    pub fn as_input(&self) -> &crate::operation::delete_access_grants_location::builders::DeleteAccessGrantsLocationInputBuilder {
   71     71   
        &self.inner
   72     72   
    }
   73     73   
    /// Sends the request and returns the response.
   74     74   
    ///
   75     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   76     76   
    /// can be matched against.
   77     77   
    ///
   78     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   79     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   80         -
    /// set when configuring the client.
          80  +
    /// set when configuring the client. Note: retries are enabled by default when using
          81  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   81     82   
    pub async fn send(
   82     83   
        self,
   83     84   
    ) -> ::std::result::Result<
   84     85   
        crate::operation::delete_access_grants_location::DeleteAccessGrantsLocationOutput,
   85     86   
        ::aws_smithy_runtime_api::client::result::SdkError<
   86     87   
            crate::operation::delete_access_grants_location::DeleteAccessGrantsLocationError,
   87     88   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   88     89   
        >,
   89     90   
    > {
   90     91   
        let input = self

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/delete_access_point/builders.rs

@@ -52,52 +112,113 @@
   72     72   
    pub fn as_input(&self) -> &crate::operation::delete_access_point::builders::DeleteAccessPointInputBuilder {
   73     73   
        &self.inner
   74     74   
    }
   75     75   
    /// Sends the request and returns the response.
   76     76   
    ///
   77     77   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   78     78   
    /// can be matched against.
   79     79   
    ///
   80     80   
    /// By default, any retryable failures will be retried twice. Retry behavior
   81     81   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   82         -
    /// set when configuring the client.
          82  +
    /// set when configuring the client. Note: retries are enabled by default when using
          83  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   83     84   
    pub async fn send(
   84     85   
        self,
   85     86   
    ) -> ::std::result::Result<
   86     87   
        crate::operation::delete_access_point::DeleteAccessPointOutput,
   87     88   
        ::aws_smithy_runtime_api::client::result::SdkError<
   88     89   
            crate::operation::delete_access_point::DeleteAccessPointError,
   89     90   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   90     91   
        >,
   91     92   
    > {
   92     93   
        let input = self