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

Method set_idc_region

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

Set the region used for IdC login.

(&mut self, region: String)

Source from the content-addressed store, hash-verified

332
333 /// Set the region used for IdC login.
334 pub fn set_idc_region(&mut self, region: String) -> Result<usize, DatabaseError> {
335 // Annoyingly, this is encoded as a JSON string on older clients
336 self.set_json_entry(Table::State, IDC_REGION_KEY, region)
337 }
338
339 /// Get if user has already completed a migration
340 pub fn get_has_migrated(&self) -> Result<Option<bool>, DatabaseError> {

Callers 1

executeMethod · 0.80

Calls 1

set_json_entryMethod · 0.80

Tested by

no test coverage detected