| 89 | } |
| 90 | |
| 91 | pub fn client(region: Region) -> Client { |
| 92 | Client::new( |
| 93 | &aws_types::SdkConfig::builder() |
| 94 | .http_client(crate::aws_common::http_client::client()) |
| 95 | .behavior_version(BehaviorVersion::v2025_08_07()) |
| 96 | .endpoint_url(oidc_url(®ion)) |
| 97 | .region(region) |
| 98 | .retry_config(RetryConfig::standard().with_max_attempts(3)) |
| 99 | .sleep_impl(SharedAsyncSleep::new(TokioSleep::new())) |
| 100 | .stalled_stream_protection(stalled_stream_protection_config()) |
| 101 | .app_name(app_name()) |
| 102 | .build(), |
| 103 | ) |
| 104 | } |
| 105 | |
| 106 | /// Represents an OIDC registered client, resulting from the "register client" API call. |
| 107 | #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] |