MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / client

Function client

crates/chat-cli/src/auth/builder_id.rs:91–104  ·  view source on GitHub ↗
(region: Region)

Source from the content-addressed store, hash-verified

89}
90
91pub 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(&region))
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)]

Callers 7

start_pkce_authorizationFunction · 0.70
test_pkce_flow_e2eFunction · 0.70
loadMethod · 0.70
poll_create_tokenFunction · 0.70
newMethod · 0.50
newMethod · 0.50

Calls 12

oidc_urlFunction · 0.85
app_nameFunction · 0.85
buildMethod · 0.45
app_nameMethod · 0.45
sleep_implMethod · 0.45
retry_configMethod · 0.45
regionMethod · 0.45
endpoint_urlMethod · 0.45
behavior_versionMethod · 0.45
http_clientMethod · 0.45

Tested by 1

test_pkce_flow_e2eFunction · 0.56