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

Method get_idc_region

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

Get the region used for IdC login.

(&self)

Source from the content-addressed store, hash-verified

326
327 /// Get the region used for IdC login.
328 pub fn get_idc_region(&self) -> Result<Option<String>, DatabaseError> {
329 // Annoyingly, this is encoded as a JSON string on older clients
330 self.get_json_entry::<String>(Table::State, IDC_REGION_KEY)
331 }
332
333 /// Set the region used for IdC login.
334 pub fn set_idc_region(&mut self, region: String) -> Result<usize, DatabaseError> {

Callers 2

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected