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

Method set_auth_profile

crates/chat-cli/src/database/mod.rs:261–264  ·  view source on GitHub ↗

Set the current user profile used to determine API endpoints.

(&mut self, profile: &AuthProfile)

Source from the content-addressed store, hash-verified

259
260 /// Set the current user profile used to determine API endpoints.
261 pub fn set_auth_profile(&mut self, profile: &AuthProfile) -> Result<(), DatabaseError> {
262 self.set_json_entry(Table::State, CODEWHISPERER_PROFILE_KEY, profile)?;
263 self.delete_entry(Table::State, CUSTOMIZATION_STATE_KEY)
264 }
265
266 /// Unset the current user profile used to determine API endpoints.
267 pub fn unset_auth_profile(&mut self) -> Result<(), DatabaseError> {

Callers 1

Calls 2

set_json_entryMethod · 0.80
delete_entryMethod · 0.80

Tested by

no test coverage detected